Page 1 of 1

[linux] problem to build 6.2.3 on non x86_64 system

Posted: 26 Jan 2014 23:14
by Sergey
Hello.

I found some changes in Makefile between 6.1.4 and 6.2.3. For example:

Code: Select all

-QMAKE         = /usr/bin/qmake
+QMAKE         = /usr/lib/x86_64-linux-gnu/qt4/bin/qmake

-       /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) GUI/LineEditorWidget.h -o objs/moc_LineEditorWidget.cpp
+       /usr/lib/x86_64-linux-gnu/qt4/bin/moc $(DEFINES) $(INCPATH) GUI/LineEditorWidget.h -o objs/moc_LineEditorWidget.cpp
This creates a problem compiling on i586.

Re: [linux] problem to build 6.2.3 on non x86_64 system

Posted: 28 Jan 2014 00:35
by jza
Hi,

You are watching a bad Makefile, the one that is automatically generated by qmake.

To compile zyGrib you have to run make in the root directory of the archive.
If necessary, adjust the QTBIN variable to specify the path to your qmake.
That's all... if all goes well ;)

Re: [linux] problem to build 6.2.3 on non x86_64 system

Posted: 28 Jan 2014 12:40
by Sergey
I make package since 5.0.6. Spec-file for rpm was written long time ago...
But you are right, I was inattentive. :-)

This is a problem of qwt:

Code: Select all

cd src/qwt-6.0.1/src; /usr/lib/qt4/bin/qmake; make -j5
Project ERROR: local build will conflict with /usr/lib/libqwt.*
make[1]: Entering directory `/home/user/RPM/BUILD/zyGrib-6.2.3/src/qwt-6.0.1/src'
/usr/lib/x86_64-linux-gnu/qt4/bin/qmake -o Makefile src.pro
make[1]: /usr/lib/x86_64-linux-gnu/qt4/bin/qmake: Command not found
qwt can't be builded when system's libqwt exist. But I seen last message only, about "Command not found". So solved, thanks.