[scribus] Failed to compile 1.5 via svn → what am i missing?

Owen rcook at pcug.org.au
Mon Aug 12 11:05:50 UTC 2013


On Mon, 12 Aug 2013 11:43:03 +0200
Thorsten Rochelmeyer <thr-news at rochelmeyer.com> wrote:


> Compiling repeatedly stoped at this point:
> 
> Linking CXX executable scribus
> /usr/bin/ld: CMakeFiles/scribus.dir/ui/moc_AdapterWidget.cxx.o:
> undefined reference to symbol 'OpenThreads::Atomic::operator--()'
> /usr/bin/ld: note: 'OpenThreads::Atomic::operator--()' is defined in
> DSO /usr/lib/libOpenThreads.so.14 so try adding it to the linker
> command line /usr/lib/libOpenThreads.so.14: could not read symbols:
> Invalid operation collect2: ld gab 1 als Ende-Status zurück
> make[2]: *** [scribus/scribus] Fehler 1
> make[1]: *** [scribus/CMakeFiles/scribus.dir/all] Fehler 2
> make: *** [all] Fehler 2
> 
> 
> So now I'm again asking for help :-/
> 
> 
> This was my cmake command line:
> 
> thr at thr-x1:~/src/scribus-svn/Scribus/build$ /usr/bin/cmake .
> -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/scribus-svn
> -DWANT_GRAPHICSMAGICK=1 -DWANT_VERSIONING=1 -DCMAKE_CXX_COMPILER=g++





Can I suggest you remove the '-DCMAKE_CXX_COMPILER=g++' option. If you
look at the end of the first run of cmake, you will see;

> You have changed variables that require your cache to be deleted.
> Configure will be re-run and you may have to reset some variables.
> The following variables have changed:
> CMAKE_CXX_COMPILER= g++


And then it finds gcc and g++



> -- Shared Library Flags:
> -- The C compiler identification is GNU 4.6.3
> -- The CXX compiler identification is GNU 4.6.3
> -- Check for working C compiler: /usr/bin/gcc
> -- Check for working C compiler: /usr/bin/gcc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler: /usr/bin/g++
> -- Check for working CXX compiler: /usr/bin/g++ -- works



> PNG Library Found OK


> OSG found OK

Just a guess, you might want to try building without OSG,
-DWANT_NOOSG=1 if the same error occurs

So I suggest you delete your build directory and run cmake again
without the -DMAKE_CXX_COMPILER=g++ option. Also you probably don't
need the -DWANT_VERSIONING=1 either



-- 
Owen



More information about the scribus mailing list