-- AimilianosKoulouris - 2016-07-23

New Small Wheel VMM software log

This is an unofficial page to gather some compilation and installation issues with the vmm-readout-software and hopefully include solutions.

Compilation errors

g++: error: unrecognized command line option -stdlib=libc++

make sure you are actually using Qt5.7 (do: qmake -v)

../include/config_handler.h:22:41: fatal error: boost/property_tree/ptree.hpp: No such file or directory

edit the .pro file to link to the correct boost directories


/usr/bin/ld: mainwindow.o: undefined reference to symbol 'shm_unlink@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/librt.so.1: error adding symbols: DSO missing from command line
Makefile:174: recipe for target 'vmmdcs' failed
collect2: error: ld returned 1 exit status
make: *** [vmmdcs] Error 1
21:44:12: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project vmmdcs (kit: QT)
When executing step "Make"

Solution for Linux Mint 18 Sarah 64-bit (MATE): Add "-lrt" at the end of the "else:LIBS" field of the .pro file ( link)

-rpath or -rpath-link linking issues

On Linux Mint 18 Sarah 64-bit (MATE), an issue with linking was encountered while using Qt 5.5.1 as a kit. Installed and switched to Qt 5.4.2 and the project was built successfully. When installing, choose to open QtCreator immediately from the installer, in order to properly integrate the kit to the QtCreator IDE.


For the problem:

libThread.so by ibRIO.so not found using rpath or rpath link

The compiler is looking for libThread.so, and does not find it, so you have to add the dynamic library directory in the .pro file:

QMAKE_LFLAGS_DEBUG += "-Wl,-rpath,/home/ak/ROOT534/lib"

c++11, boost,

ak@akMint ~/workspace/vmm_readout_software $ git diff build/vmmdcs.pro

@@ -11,8 +11,8 @@
# for now, the user specifies where Boost is located

# do not touch these
@@ -37,6 +37,8 @@ QT += xml
CONFIG += console
CONFIG +=declarative_debug
CONFIG +=c++11
+QMAKE_CXXFLAGS += -std=c++11

TARGET = vmmdcs
@@ -44,22 +46,18 @@ TEMPLATE = app
# make sure the boost version we point to is this one

-linux {
- QMAKE_RPATHDIR += $$boostlib
- QMAKE_RPATHDIR += ./objects
+QMAKE_RPATHDIR += $$boostlib
+QMAKE_RPATHDIR += ./objects

-win32:LIBS += -L$(ROOTSYS)/lib -llibCint -llibRIO -llibNet \
- -llibHist -llibGraf -llibGraf3d -llibGpad -llibTree \
- -llibRint -llibPostscript -llibMatrix -llibPhysics \
- -llibGui -llibRGL -llibMathCore
-else:LIBS += -L$(ROOTSYS)/lib -lCore -lCint -lRIO -lNet \
+LIBS += -L$(ROOTSYS)/lib -lCore -lCint -lRIO -lNet \
-lHist -lGraf -lGraf3d -lGpad -lTree \
-lRint -lPostscript -lMatrix -lPhysics \
-lGui -lMathCore #-lRGL -lMathCore

-LIBS += -L$$boostlib -lboost_thread-mt -lboost_filesystem-mt -lboost_system-mt -lboost_chrono-mt -lboost_atomic-mt
+LIBS += -L$$boostlib -lboost_thread -lboost_filesystem -lboost_system -lboost_chrono -lboost_atomic

LIBS += -L./objects -lMylib

ak@akMint ~/workspace/vmm_readout_software $

Runtime errors

Application compiling but not starting in QtCreator

Compilation seemed to work fine (in QtCreator). Clicking on run did not start the application (although on the qt terminal it looked started, but nothing appeared).
I uninstalled QtCreator and qt.

Reinstalled. Only the latest (5.7) qt, and bare (without the extra android or other stuffs).
Compiled on QtCreator, ok. managed to run the executable in the terminal.
Did a few more cleans and rebuilds and change from debug mode to release mode and back to debug mode, and now it works again on the qtcreator.

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatext vmm-mon r1 manage 2031.3 K 2016-11-25 - 17:42 AimilianosKoulouris  
Unknown file formatgz vmmBuild.tar.gz r1 manage 42681.8 K 2016-11-25 - 17:47 AimilianosKoulouris  
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r10 - 2017-03-20 - AimilianosKoulouris
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback