Can't build 2geom from slackbuilds.org on Slackware 15.0
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[ 45%] Building CXX object src/2geom/CMakeFiles/2geom.dir/utils.cpp.o
[ 45%] Linking CXX shared library lib2geom.so
[ 45%] Built target 2geom
[ 45%] Building CXX object tests/CMakeFiles/intersection-graph-test.dir/intersection-graph-test.cpp.o
[ 48%] Linking CXX executable intersection-graph-test
/usr/bin/ld: CMakeFiles/intersection-graph-test.dir/intersection-graph-test.cpp.o: in function `void testing::internal::DefaultPrintTo<Geom::Path>(testing::internal::WrapPrinterType<(testing::internal::DefaultPrinterType)0>, Geom::Path const&, std::ostream*) [clone .isra.0]':
intersection-graph-test.cpp:(.text._ZN7testing8internal14DefaultPrintToIN4Geom4PathEEEvNS0_15WrapPrinterTypeILNS0_18DefaultPrinterTypeE0EEERKT_PSo.isra.0[_ZN7testing8internal18CmpHelperEQFailureIN4Geom10PathVectorENS2_4PathEEENS_15AssertionResultEPKcS7_RKT_RKT0_]+0x10b): undefined reference to `testing::internal2::PrintBytesInObjectTo(unsigned char const*, unsigned long, std::ostream*)'
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[2]: *** [tests/CMakeFiles/intersection-graph-test.dir/build.make:101: tests/intersection-graph-test] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:501: tests/CMakeFiles/intersection-graph-test.dir/all] Fehler 2
make: *** [Makefile:146: all] Fehler 2
Is this just me or is there a general problem?
It seems your extract is too short to tell something. Were the 2 dependencies correctly generated and installed ? Have you a full Slackware install (maybe without one or other desktop) ?
Since the routines which could not be linked had the namespace `testing::`, I added `-D2GEOM_TESTING=OFF` to the Slackbuild's cmake line. Using this modification, it build (and works) fine.
Not sure what the actual problem was, but since the tests are not run anyway, their building should probably be removed from the Slackbuild script anyway.
No, gtest is installed. I can also link arbitrary objects against it without any problem (so the linker does normally find it). The header files are also found when building 2geom. Just the linking seems to fail.
Although not really understanding why, but sometimes, when compiling inkscape I had to remove the old inkscape package first as 2geom did not get built properly (it was omitted/skipped).
Does it help to remove the old 2geom package first, before compiling the new one?
(hmmm; at my end on current the error does not show up, and compiling works when 2geom is present; so dunno whether this would work)
When compiling Inkscape 1.3.2 with a modified SlackBuild from SBo, it didn't build successfully until I enabled -DWITH_INTERNAL_2GEOM=ON in the cmake options. I forgot what was causing the original to not build though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.