kakwa / libvisio2svg

Library/Tools to convert Microsoft (MS) Visio documents (VSS and VSD) to SVG
GNU General Public License v2.0
112 stars 21 forks source link

Error at Compiling time #18

Closed sysadmin-core closed 7 years ago

sysadmin-core commented 7 years ago

Hi, thank you very much for your effort into creating this tool,

Im getting the next error at compiling time: (Im sorry if Im asking at the wrong place, Im an Operations guy trying to compile this.)

x@x /tmp/vss/libvisio2svg » make
Scanning dependencies of target TitleGenerator
[ 12%] Building CXX object CMakeFiles/TitleGenerator.dir/src/lib/visio2svg/TitleGenerator.cpp.o
[ 25%] Linking CXX shared library libTitleGenerator.so
[ 25%] Built target TitleGenerator
Scanning dependencies of target Visio2Svg
[ 37%] Building CXX object CMakeFiles/Visio2Svg.dir/src/lib/visio2svg/Visio2Svg.cpp.o
[ 50%] Linking CXX shared library libVisio2Svg.so
[ 50%] Built target Visio2Svg
Scanning dependencies of target vsd2svg-conv
[ 62%] Building CXX object CMakeFiles/vsd2svg-conv.dir/src/conv/vsd2svg.cpp.o
[ 75%] Linking CXX executable vsd2svg-conv

/bin/ld: CMakeFiles/vsd2svg-conv.dir/src/conv/vsd2svg.cpp.o: undefined reference to symbol '_ZTVN10__cxxabiv117__class_type_infoE@@CXXABI_1.3'
/usr/lib64/libstdc++.so.6: error adding symbols: DSO missing from command line

collect2: error: ld returned 1 exit status
CMakeFiles/vsd2svg-conv.dir/build.make:103: recipe for target 'vsd2svg-conv' failed
make[2]: *** [vsd2svg-conv] Error 1
CMakeFiles/Makefile2:174: recipe for target 'CMakeFiles/vsd2svg-conv.dir/all' failed
make[1]: *** [CMakeFiles/vsd2svg-conv.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2  

I guess, I have some wrong version of the Libraries linked, but again I know very little about compiling, the version of the libraries used are:

libwmf-devel-0.2.8.4-46.fc22.x86_64
libvisio-tools-0.1.5-1.fc22.x86_64
librevenge-devel-0.0.4-1.fc22.x86_64
libvisio-devel-0.1.5-1.fc22.x86_64
librevenge-0.0.4-1.fc22.x86_64
libwmf-0.2.8.4-46.fc22.x86_64
libvisio-0.1.5-1.fc22.x86_64
libwmf-lite-0.2.8.4-46.fc22.x86_64

I compiled your libemf2svg from git today and I got this:

x@x /tmp/vss/libvisio2svg » ls -lha /opt/visio/libemf2svg/lib/
lrwxrwxrwx. 1 x x     15 Jul 25 16:53 libemf2svg.so -> libemf2svg.so.1
lrwxrwxrwx. 1 x x     19 Jul 25 16:53 libemf2svg.so.1 -> libemf2svg.so.1.0.1
-rwxr-xr-x. 1 x x   2.7M Jul 25 16:53 libemf2svg.so.1.0.1

Any help in regards of what could be wrong? Im setting up a VM to download and compile all the libraries stated at README.md to see if that helps but in the meantime i thought why not to also ask xD

Thank you very much.

kakwa commented 7 years ago

Hummm, not very explicit error message from gcc.

Maybe Fedora 22 doesn't support regex in stdlib? I use it to sanitize file names (from stencil names) but it can be disabled:

cmake . -DUNSAFE_FILENAME=ON

It's a bit of a blind shot, I'm not sure it's the actual issue, but it's easy to try.

If it doesn't work, could you also paste the output of the configure phase (cmake . and your options)

(By the way, you should really update, Fedora 22 was End Of Life July 2016)