Hello 'scapers,
I have been fiddling with a problem way too long now, I am hoping one of you can help. :-( I want to get a local copy of 2geom in the inkscape directory, and use that to build. This is now committed to the live-path-effects branch. It builds fine on windows, however I cannot get it to build on Linux. The 2geom directory is compiled (I see .o files) and the library is also created ('lib2geom.a'). But... for some reason, the linker cannot locate some 2geom symbols. For example I get the build error: /home/johan/inkscapelpe/src/./2geom/path.h:344: undefined reference to `Geom::Path::delete_range(__gnu_cxx::__normal_iterator<Geom::Curve**, std::vector<Geom::Curve*, std::allocatorGeom::Curve* > >, __gnu_cxx::__normal_iterator<Geom::Curve**, std::vector<Geom::Curve*, std::allocatorGeom::Curve* > >)'
When I run: nm ./src/2geom/lib2geom.a -C -g --defined-only
I do get : 00000150 T Geom::Path::delete_range(__gnu_cxx::__normal_iterator<Geom::Curve**, std::vector<Geom::Curve*, std::allocatorGeom::Curve* > >, __gnu_cxx::__normal_iterator<Geom::Curve**, std::vector<Geom::Curve*, std::allocatorGeom::Curve* > >)
The link command = g++ -Wall -Wformat-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -D_FORTIFY_SOURCE=2 -Wno-unused-parameter -g -O2 -o inkscape --export-dynamic main.o libinkpre.a 2geom/lib2geom.a application/libinkapp.a ui/dialog/libuidialog.a .... etcetera
So it includes the lib with the symbol in it. Still it gives that error.
Possible pointer to a solution: for some reason, 2geom is mentioned twice in /src/Makefile causing some warnings about overriding the old commands. I do not see why 2geom is put twice into this file.
Could someone please have a look at building my branch on Linux?
Thank you very very much, Johan