Problem compiling on OpenSuse 12.1 64bit

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

Problem compiling on OpenSuse 12.1 64bit

Postby dpbabin » Sat Aug 18, 2012 3:22 am

When I compile, I get the following error message:
g++ -c -m64 -pipe -O2 -D_REENTRANT -w -DQ7BASIC -DQUAZIP_STATIC -DQT_NO_DEBUG -DQT_DECLARATIVE_LIB -DQT_WEBKIT_LIB -DQT_PHONON_LIB -DQT_SVG_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtUiTools -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtSql -I/usr/include/QtSvg -I/usr/include/phonon -I/usr/include/QtWebKit -I/usr/include/QtDeclarative -I/usr/include -I. -I/usr/include/phonon_compat -I. -I. -o ./Application.o Application.cpp
Application.cpp: In member function ‘void Application::Q7B_on_lastWindowClosed()’:
Application.cpp:79:118: error: taking address of temporary [-fpermissive]
make: *** [Application.o] Error 1

linux-g73z:/home/dbabin/qbasic/Q7Basic_Source_Code # qmake -v
QMake version 2.01a
Using Qt version 4.7.4 in /usr/lib64

Any help would be appreciated.

Thanks

Dave
dpbabin
 
Posts: 3
Joined: Sun Aug 05, 2012 4:52 am

Re: Problem compiling on OpenSuse 12.1 64bit

Postby dpbabin » Sat Aug 18, 2012 3:30 am

This is the error I get on trying to compile the Q7BasicCompiler:

g++ -m64 -Wl,-O1 -o Q7BCompiler ./_Q7BCompiler.o ./moc__Q7BCompiler.o -L/usr/lib64 -lQtGui -L/usr/lib64 -L/usr/X11R6/lib64 -lQtCore -lpthread
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../lib64/crt1.o: In function `_start':
/home/abuild/rpmbuild/BUILD/glibc-2.14.1/csu/../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'
./moc__Q7BCompiler.o: In function `MakeInterface::qt_metacall(QMetaObject::Call, int, void**)':
moc__Q7BCompiler.cpp:(.text+0x110): undefined reference to `MakeInterface::directoryChanged(QString const&)'
collect2: ld returned 1 exit status
make: *** [Q7BCompiler] Error 1

Thanks

Dave
dpbabin
 
Posts: 3
Joined: Sun Aug 05, 2012 4:52 am

Re: Problem compiling on OpenSuse 12.1 64bit

Postby berndnoetscher » Sun Aug 19, 2012 8:37 am

dpbabin wrote:This is the error I get on trying to compile the Q7BasicCompiler:

g++ -m64 -Wl,-O1 -o Q7BCompiler ./_Q7BCompiler.o ./moc__Q7BCompiler.o -L/usr/lib64 -lQtGui -L/usr/lib64 -L/usr/X11R6/lib64 -lQtCore -lpthread
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../lib64/crt1.o: In function `_start':
/home/abuild/rpmbuild/BUILD/glibc-2.14.1/csu/../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'
./moc__Q7BCompiler.o: In function `MakeInterface::qt_metacall(QMetaObject::Call, int, void**)':
moc__Q7BCompiler.cpp:(.text+0x110): undefined reference to `MakeInterface::directoryChanged(QString const&)'
collect2: ld returned 1 exit status
make: *** [Q7BCompiler] Error 1

Thanks

Dave



There flag is needed in the pro file. I already changed it and updated of source codes (do use the latest version of source codes?), it will be in the compiler.


QMAKE_CXXFLAGS_DEBUG+=-fpermissive
QMAKE_CXXFLAGS_RELEASE+=-fpermissive
berndnoetscher
Site Admin
 
Posts: 344
Joined: Thu Mar 25, 2010 9:57 am

Re: Problem compiling on OpenSuse 12.1 64bit

Postby dpbabin » Sun Aug 19, 2012 9:10 pm

Thanks for the quick reply. I'll give it a try.

Dave
dpbabin
 
Posts: 3
Joined: Sun Aug 05, 2012 4:52 am

Re: Problem compiling on OpenSuse 12.1 64bit

Postby Slowdown » Sun Aug 26, 2012 6:57 am

@all,

Q7Basic on :D
Schermafbeelding 2012-08-26 om 08.55.26.png
Schermafbeelding 2012-08-26 om 08.55.26.png (184.5 KiB) Viewed 1057 times

Schermafbeelding 2012-08-26 om 10.34.26.png
Schermafbeelding 2012-08-26 om 10.34.26.png (62.93 KiB) Viewed 1054 times
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