Hi John...now got it working patches,replacement files and all

looking very good ....thanks for the help

David VK4BDJ












On 05/08/13 08:39, John Nogatch wrote:
On Sun, Aug 4, 2013 at 2:56 PM, David <[email protected]> wrote:
Hi Joe .....my Qt5.1.0 .is in /opt/Qt5.1.0 so i changed the Makefile.linux
to reflect that

this is the error im now getting

g++ -c -I'/opt/Qt5.1.0/5.1.0/gcc/include'
-I'/opt/Qt5.1.0./5.1.0/gcc/include/QtCore
ipcomm.cpp

In File included from /opt/Qt5.1.0/5.1.0gcc/include/QtCore/qalgorithams:
4:45:0
/qdebug.h:45
/QDebug:1
/qglobal.h:975:4:error
#error  "You must build your with position independant code if Qt was built
with
-reduce-relocations"  Compile your code with  -fPIC or _fPIE "

make *** [ipcomm] error 1


what have i done wrong
No, you have not done anything wrong. It is unfortunate that
lib/Makefile.linux is not sensitive to the QT5 setting in the
directory above.

I found it necessary to make the changes below, in order to compile
ipcomm with Qt5.

Is it necessary to build ipcomm with Qt5 ? I do not know. However, on
ubuntu 13.04, with only Qt5 installed, I want to be able to build
ipcomm. Similarly, on older ubuntu 12.10, I want to build wsjtx using
only Qt4, but found it was necessary to put an additional ifdef in
mainwindow.cpp:
#ifdef QT5
#include <QtConcurrent/QtConcurrentMap>
#include <QtConcurrent/QtConcurrentRun>
#endif


-John AC6SL


$ diff lib/Makefile.linux old/lib/Makefile.linux
3c3
< INCPATH =  -I'/usr/include/qt5' -I'/usr/include/qt5/QtCore'
---
INCPATH =  -I'/usr/include/qt4' -I'/usr/include/qt4/QtCore'
6c6
< CXX = g++ -fPIE
---
CXX = g++
9,10c9,10
< FFLAGS = -O2 -fbounds-check -Wall -Wno-conversion -fno-second-underscore -fPIE
< CFLAGS = -I. -fbounds-check -mno-stack-arg-probe -fPIE
---
FFLAGS = -O2 -fbounds-check -Wall -Wno-conversion -fno-second-underscore
CFLAGS = -I. -fbounds-check -mno-stack-arg-probe
52c52
< $(CXX) -o jt9 $(OBJS2) libjt9.a -lfftw3f -lgfortran -lQt5Core
---
$(CXX) -o jt9 $(OBJS2) libjt9.a -lfftw3f -lgfortran -lQtCore
_______________________________________________
Wsjt-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/wsjt-devel


_______________________________________________
Wsjt-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/wsjt-devel

Reply via email to