[scribus] Linking error

JLuc jluc at no-log.org
Fri Sep 26 11:01:36 UTC 2014

Le 23/09/2014 14:53, Morten Langlo a écrit :
> If You by this mean .so package and dev-packages (headerfiles),
> .so packages are used for running a program, and the header files
> are used, when You compile a program.
> And the dev-package MUST be the same version as the .so package.
Ah ! What are the pratcical consequences ?
As for now, i've never had to force-update the dev packages when minor-updating  Qt
(that's not including the switch from Qt4 to Qt5)

Anyway, here, my issue happens at compile time, so apt-get installed dev-packages should not be relevant.

> Well :-)
> now You forced me to upgrade to Qt5-5.3.2 to see what is going on, and found
> that You now actual need to declare not one but two Qt libraries in the cmake command.
> So add this to whatever cmake command You use:
>     -DCMAKE_EXE_LINKER_FLAGS="-lQt5Quick -lQt5PrintSupport"
> before You compile, do a make clean to avoid trouble.

I tried doing so and FYI my updated script is there :
but in my case, it doesnt help.

Error still is :
Linking CXX executable scribus-1.5.0.svn
/usr/bin/ld: CMakeFiles/scribus-1.5.0.svn.dir/ui/helpbrowser.cpp.o: référence au symbole non défini 
/home/jluc/dev/Qt/Qt5.3.2/5.3/gcc_64/lib/libQt5PrintSupport.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

I've downloaded qt anew, no change.

In case it helps, when linked with Qt5.3.1 (and not Qt5.3.2 which fails)
ldd /usr/bin/scribus15svn | grep Qt
returns :
   libQt5Core.so.5 => /home/jluc/dev/Qt/Qt5.3.1/5.3/gcc_64/lib/libQt5Core.so.5 (0x00007f8497aaf000)
   libQt5Widgets.so.5 => /home/jluc/dev/Qt/Qt5.3.1/5.3/gcc_64/lib/libQt5Widgets.so.5 (0x00007f849726c000)
   libQt5Gui.so.5 => /home/jluc/dev/Qt/Qt5.3.1/5.3/gcc_64/lib/libQt5Gui.so.5 (0x00007f8496b49000)
   libQt5Xml.so.5 => /home/jluc/dev/Qt/Qt5.3.1/5.3/gcc_64/lib/libQt5Xml.so.5 (0x00007f849690b000)
   libQt5WebKitWidgets.so.5 => /home/jluc/dev/Qt/Qt5.3.1/5.3/gcc_64/lib/libQt5WebKitWidgets.so.5 (0x00007f84966c7000)
   libQt5Network.so.5 => /home/jluc/dev/Qt/Qt5.3.1/5.3/gcc_64/lib/libQt5Network.so.5 (0x00007f8496363000)
   libQt5Quick.so.5 => /home/jluc/dev/Qt/Qt5.3.1/5.3/gcc_64/lib/libQt5Quick.so.5 (0x00007f8494269000)
   libQt5PrintSupport.so.5 => /home/jluc/dev/Qt/Qt5.3.1/5.3/gcc_64/lib/libQt5PrintSupport.so.5 (0x00007f8493ff9000)
   libicui18n.so.52 => /home/jluc/dev/Qt/Qt5.3.1/5.3/gcc_64/lib/libicui18n.so.52 (0x00007f849197d000)
   libicuuc.so.52 => /home/jluc/dev/Qt/Qt5.3.1/5.3/gcc_64/lib/libicuuc.so.52 (0x00007f84915f4000)
   libQt5WebKit.so.5 => /home/jluc/dev/Qt/Qt5.3.1/5.3/gcc_64/lib/libQt5WebKit.so.5 (0x00007f848e66d000)
   libQt5OpenGL.so.5 => /home/jluc/dev/Qt/Qt5.3.1/5.3/gcc_64/lib/libQt5OpenGL.so.5 (0x00007f848e412000)
   libQt5Sensors.so.5 => /home/jluc/dev/Qt/Qt5.3.1/5.3/gcc_64/lib/libQt5Sensors.so.5 (0x00007f848e1d4000)
   libQt5Qml.so.5 => /home/jluc/dev/Qt/Qt5.3.1/5.3/gcc_64/lib/libQt5Qml.so.5 (0x00007f848c048000)
   libicudata.so.52 => /home/jluc/dev/Qt/Qt5.3.1/5.3/gcc_64/lib/libicudata.so.52 (0x00007f848a3d2000)
   libQt5Sql.so.5 => /home/jluc/dev/Qt/Qt5.3.1/5.3/gcc_64/lib/libQt5Sql.so.5 (0x00007f84872f7000)
   libQt5Positioning.so.5 => /home/jluc/dev/Qt/Qt5.3.1/5.3/gcc_64/lib/libQt5Positioning.so.5 (0x00007f84870b8000)
All links nicely point toward Qt/Qt5.3.1 libs


More information about the scribus mailing list