Compiling and running in ubuntu 12.04 64 bits

If you have problems with the installation, you are right here.

Compiling and running in ubuntu 12.04 64 bits

Postby pepe_eloy » Tue Nov 27, 2012 7:15 pm

Hi!

What I need to compile and run Q7Basic in ubuntu 12.04 64 bits?
Thanks!
pepe_eloy
 
Posts: 3
Joined: Wed Nov 07, 2012 4:58 pm

Re: Compiling and running in ubuntu 12.04 64 bits

Postby Slowdown » Tue Nov 27, 2012 8:25 pm

Just running,
see http://www.q7basic.org/#Linux
If you want to compile Q7Basic yourself take the source codes.
Make sure you have the Qt libs installed > 4.7 and don't forget the phonon libs.
The best way to do it is compile from Creator.
Select the Q7Basic.pro file and after that one select the Q7BCompiler.pro file.
You have to adapt the .pro files with the following lines,
QMAKE_CXXFLAGS_DEBUG+=-fpermissive
QMAKE_CXXFLAGS_RELEASE+=-fpermissive
Kind regards,
Slowdown

OSX 10.8.x, VBox Xp, Ubuntu 32/64 bit, EOS 64 bit
Slowdown
 
Posts: 464
Joined: Sat May 01, 2010 7:11 pm
Location: Netherlands

Re: Compiling and running in ubuntu 12.04 64 bits

Postby pepe_eloy » Fri Dec 07, 2012 5:19 pm

Hello!

An apology for not answering your message, I've busy with another projects. I've modified the files Q7Basic.pro and Q7BCompiler.pro, then I run these commands in terminal:
qmake ./Q7Basic.pro --> this works well, I guess, no messages are showing.
make ---> I get the message: Q7BCompiler.h:18:23: error fatal: ../Global.h: No existe el archivo o el directorio (spanish).
Q7BCompiler.h:18:23: error fatal: ../Global.h: No such file or directory (english).

My question is: Is there an error in the source code?

Thanks
pepe_eloy
 
Posts: 3
Joined: Wed Nov 07, 2012 4:58 pm

Re: Compiling and running in ubuntu 12.04 64 bits

Postby Slowdown » Fri Dec 07, 2012 8:04 pm

Hi pepe_eloy,
An apology for not answering your message

No problem.
My question is: Is there an error in the source code?

Yes there are a few problems but sadly i didn't document them but with this one i can help you.
As the error will tell you there is a problem in Q7BCompiler.h and to be exact in line 18
Load Q7BCompiler.h in Qt Creator or in a text editor and go to line 18 and you will see,
Code: Select all
#include "../Global.h"

Remove the ../ and save the file again and restart qmake.
If you find other issues let me know.
Kind regards,
Slowdown

OSX 10.8.x, VBox Xp, Ubuntu 32/64 bit, EOS 64 bit
Slowdown
 
Posts: 464
Joined: Sat May 01, 2010 7:11 pm
Location: Netherlands

Re: Compiling and running in ubuntu 12.04 64 bits

Postby pepe_eloy » Tue Dec 11, 2012 3:04 am

Hello!

I've corrected the Q7BCompiler.h as you tell me, and run again the make command. I've found the same error with the file Q7BCompiler.cpp, then I've made the same changes, I removed the "../" string in the error line. Then I got the same error with the files moc_Application.cpp, moc_CodeView.cpp, moc_Declare.cpp, moc_FindReplaceFile.cpp, moc_Global.cpp, moc_MainWindow.cpp and again removed the "../" string, but I get a new error message:

moc_MainWindow.cpp:287:22: error: ‘class MainWindow’ doesn't has a member called ‘on_actionDeploy_triggered'

How can I to correct this?

Regards

P. D. My english is not very good, I hope you understand me.
pepe_eloy
 
Posts: 3
Joined: Wed Nov 07, 2012 4:58 pm

Re: Compiling and running in ubuntu 12.04 64 bits

Postby Slowdown » Tue Dec 11, 2012 7:57 pm

Hi,

Remove all moc_*.* files.
These are made when the project is made.
Kind regards,
Slowdown

OSX 10.8.x, VBox Xp, Ubuntu 32/64 bit, EOS 64 bit
Slowdown
 
Posts: 464
Joined: Sat May 01, 2010 7:11 pm
Location: Netherlands


Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest

cron