Jump to content

Compilation de qtVlm


Recommended Posts

  • 2 months later...

I am trying to get qtVlm to compile. OS is Ubuntu 12.04 and I believe I have all the required libraries installed. After doing the make in the trunk directory it fails as below:

 

 

inetClient.cpp:187:50: error: 'Compact' is not a member of 'QJsonDocument'

make[1]: *** [objs/inetClient.o] Error 1

make[1]:  Leaving directory ' /home/steve/svn/trunk/src'

make: *** [all] Error 2

 

Any help would be appreciated.

Link to comment

In my case it is qt 5.1.1, and the error message ist

[  148s] make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/qtVlm-3.4.4r2293/src/libs/libgps'[  148s] cd src ;	 qmake-qt5 CONFIG+="release" ;	 make[  148s] Project MESSAGE: 5.1.1[  148s] Project WARNING: qt5 detected[  148s] Project ERROR: Unknown module(s) in QT: positioning[  148s] make[1]: Entering directory `/home/abuild/rpmbuild/BUILD/qtVlm-3.4.4r2293/src'[  148s] make[1]: *** No targets specified and no makefile found.  Stop.[  148s] make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/qtVlm-3.4.4r2293/src'[  148s] make: *** [all] Error 2[  148s] error: Bad exit status from /var/tmp/rpm-tmp.g5QNEr (%build)

Is there an additional module for GPS required?

Link to comment

Oxygen:
steve @ windy2: ~ / svn / trunk / src / libs / build $ ls -lah
total 1.7M
drwxrwxr-steve steve 2 x 4.0K 2:59 p.m. on September 16.
drwxrwxr-4.0K x 15 steve steve September 16, 14: 59 ..
rw-rw-1 r-- steve steve 130K September 16 2:59 p.m. libbase.a
rw-rw-1 r-- steve steve 101K September 16 2:59 p.m. libbsb.a
rw-rw-r - 1 steve steve 76K September 16th 2:59 p.m. libbz2.a
rw-rw-1 r-- steve steve 285K September 16 2:59 p.m. libg2clib.a
rw-rw-1 r-- steve steve 187K September 16 2:59 p.m. libgps.a
rw-rw-1 r-- steve steve 34K September 16th 2:59 p.m. libjp2.a
rw-rw-1 r-- steve steve 288K September 16 2:59 p.m. libjpc.a
rw-rw-r - 1 steve steve 33K September 16th 2:59 p.m. libminiunz.a
rw-rw-1 r-- steve steve 73K September 16th 2:59 p.m. libnmea.a
rw-rw-1 r-- steve steve 248K September 16 2:59 p.m. libqjson.a
rw-rw-1 r-- steve steve 101K September 16 2:59 p.m. libQt5ExtSerialPort.a
rw-rw-1 r-- steve steve 536 September 19 6:55 libQt5ExtSerialPort.prl
rw-rw-r - 1 steve steve 117K September 16 2:59 p.m. libz.a

 

Sorry for the delay, I was at sea on passage to Tahiti.

I now have internet.

 

Thanks



 

Edited by windjammer
Link to comment

maitai and oxygen:

 

The end of the run.

 

Project MESSAGE: 5.0.2

Project WARNING: detected QT5

make [1]: Entering directory `/ home / steve / svn / trunk / src ' g ++ -c -m64 -pipe -O2 - D_REENTRANT -Wall -W -fPIE -DQT_V5 -D_TTY_POSIX_ -D__TERRAIN_QIMAGE -D__UNIX_QTVLM -DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DQT_UITOOLS_LIB -DQT_CONCURRENT_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I / usr / share / QT5 / mkspecs / linux-g ++ - -I 64. -Iobjs -IDialogs -Ilibs / Bzip2 -Ilibs / zlib-1.2.7 -Ilibs / qextserialport12 / src -Ilibs / nmealib / src / nmea -Ilibs / libbsb -Ilibs / miniunz -Ilibs / g2clib-1.4.0 -Ilibs / jasper / include -I. -Ilibs / Libgps -I / usr / include / QT5 -I / usr / include / QT5 / QtXmlPatterns -I / usr / include / QT5 / QtMultimedia -I / usr / include / QT5 / QtWidgets -I / usr / include / QT5 / QtXml -I / usr / include / QT5 / QtUiTools -I / usr / include / QT5 / QtConcurrent -I / usr / include / QT5 / QtNetwork -I / usr / include / QT5 / QtGui -I / usr / include / QT5 / QtCore -Iobjs -Iobjs o objs / inetClient.o inetClient.cpp inetClient.cpp: In static member function 'static bool inetClient :: map_to_JSON (QVariantMap, QByteArray *)': inetClient.cpp: 187: 50: error: ' Compact 'is not a member of' QJsonDocument '

make [1]: *** [objs / inetClient.o] Error 1

make [1]: Leaving directory `/ home / steve / svn / trunk / src '

make: ** * [all] Error 2

 

 

Thanks for the help.















 

Edited by windjammer
Link to comment

Project MESSAGE: 5.0.2

 

Sorry for the delay, I was at sea on passage to Tahiti.

I now have internet.

 

Thanks

 

 

Compact format has been introduced in qt in 5.1.0, so since you are using 5.0.2 it's normal the build fails. You should either upgrade qt to latest 5.3.2, or downgrade it to 4.8.x because in that case it will use it's own library for Json.

 

I wish I was in Tahiti to. If you pass by Moorea please say hello to my brother Vincent at Aquablue diving club ;)

Link to comment

Thanks, I swithced to QT 5.4, the build run through, I will let you know how the changes to the directories work!

 

Result when starting in the terminal:

/usr/share/qtVlm/qtVlm: symbol lookup error: /usr/share/qtVlm/qtVlm: undefined symbol: _ZN6QDebugD1Ev
 

Edited by coogor
Link to comment
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.