Error linking libtinyxml

Install support for openEMS

Moderators: thorsten, sebastian

Post Reply
eheinz
Posts: 14
Joined: Fri 26 Aug 2016, 10:38

Error linking libtinyxml

Post by eheinz » Wed 10 Jan 2018, 16:33

Hi everyone,

when trying to recompile openEMS-v0.0.35 to resolve some issues with a Qt update, compilation fails when trying to link with libtinyxml:
/usr/bin/c++ -O3 -DNDEBUG CMakeFiles/AppCSXCAD.dir/main.cpp.o CMakeFiles/AppCSXCAD.dir/AppCSXCAD.cpp.o CMakeFiles/AppCSXCAD.dir/AppCSXCAD_automoc.cpp.o -o AppCSXCAD -rdynamic /usr/qt/lib64/libQt5Widgets.so.5.10.0 /usr/qt/lib64/libQt5Xml.so.5.10.0 /usr/opt/openEMS/lib/libCSXCAD.so /usr/opt/openEMS/lib/libQCSXCAD.so /usr/lib64/math/libhdf5.so -lz -ldl -lm /usr/lib64/math/libhdf5_hl.so /usr/qt/lib64/libQt5Gui.so.5.10.0 /usr/qt/lib64/libQt5Core.so.5.10.0 -Wl,-rpath,/usr/qt/lib64:/usr/opt/openEMS/lib:/usr/lib64/math:/usr/X11R6/lib64: -Wl,-rpath-link,/usr/X11R6/lib64
/usr/opt/openEMS/lib/libCSXCAD.so: undefined reference to `TiXmlDocument::TiXmlDocument(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/opt/openEMS/lib/libCSXCAD.so: undefined reference to `TiXmlElement::Attribute(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/usr/opt/openEMS/lib/libCSXCAD.so: undefined reference to `TiXmlElement::SetAttribute(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status


openEMS-v0.0.35 compiled fine for me in the past. libtinyxml has not changed since then. The main difference is that I upgraded gcc from version 4.9.3 to 6.4.0. Any ideas? May be an issue with different C++ standards?

Any help is welcome.
Erik

thorsten
Posts: 1380
Joined: Mon 27 Jun 2011, 12:26

Re: Error linking libtinyxml

Post by thorsten » Wed 10 Jan 2018, 19:37

You information are a little bit sparse. Which distro is this? Have you tried a full build? I don't think this is gcc related. What is odd is that tinyxml is not linked in. But it should be already linkes for CSXCAD. Maybe you try an ldd on libCSXCAD.

br
Thorsten

eheinz
Posts: 14
Joined: Fri 26 Aug 2016, 10:38

Re: Error linking libtinyxml

Post by eheinz » Wed 10 Jan 2018, 20:01

Ho Thorsten,

thanks for the answer. My system is a homegrown Linux based on Gnome-3 on an x86_64 . Qt version is 5.10.0.
Yes, this has been a full build of openEMS. tinyxml IS linked, since libCSXCAD.so is linked against it. Output of `ldd libCSXCAD.so` is shown below.
So a -ltinyxml does't change anything. libtinyxml ist built from tinyxml-2.6.2 sources and has worked before.

Unfortunately, my C++ knowledge is quite limited, so I do not really understand these linker error messages. I had similar problems before with other C++ based software which could be solved by recompiling the shared libraries. This didn't help in this case, though.

Best regards,
Erik

ldd /usr/opt/openEMS/lib/libCSXCAD.so
linux-vdso.so.1 (0x00007ffec05c7000)
libfparser.so.4 => /usr/opt/openEMS/lib/libfparser.so.4 (0x00007fd399a67000)
libtinyxml.so => /usr/lib64/libtinyxml.so (0x00007fd39984d000)
libhdf5.so.100 => /usr/lib64/math/libhdf5.so.100 (0x00007fd399375000)
libz.so.1 => /usr/lib64/libz.so.1 (0x00007fd399162000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fd398f5e000)
libhdf5_hl.so.100 => /usr/lib64/math/libhdf5_hl.so.100 (0x00007fd398d40000)
libCGAL.so.11 => /usr/lib64/libCGAL.so.11 (0x00007fd398b1a000)
libboost_thread.so.1.61.0 => /usr/lib64/libboost_thread.so.1.61.0 (0x00007fd3988f6000)
libboost_system.so.1.61.0 => /usr/lib64/libboost_system.so.1.61.0 (0x00007fd3986f3000)
libboost_date_time.so.1.61.0 => /usr/lib64/libboost_date_time.so.1.61.0 (0x00007fd3984e2000)
libboost_serialization.so.1.61.0 => /usr/lib64/libboost_serialization.so.1.61.0 (0x00007fd39829d000)
libboost_chrono.so.1.61.0 => /usr/lib64/libboost_chrono.so.1.61.0 (0x00007fd398097000)
libfreetype.so.6 => /usr/graphics/lib64/libfreetype.so.6 (0x00007fd397e07000)
libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007fd39a0c5000)
libvtkDomainsChemistryOpenGL2-7.1.so.1 => /usr/opt/VTK/lib/libvtkDomainsChemistryOpenGL2-7.1.so.1 (0x00007fd397bfc000)
libjpeg.so.9 => /usr/graphics/lib64/libjpeg.so.9 (0x00007fd3979c2000)
libpng16.so.16 => /usr/graphics/lib64/libpng16.so.16 (0x00007fd397790000)
libtiff.so.5 => /usr/graphics/lib64/libtiff.so.5 (0x00007fd39751b000)
libvtkFiltersFlowPaths-7.1.so.1 => /usr/opt/VTK/lib/libvtkFiltersFlowPaths-7.1.so.1 (0x00007fd3972ce000)
libvtkFiltersGeneric-7.1.so.1 => /usr/opt/VTK/lib/libvtkFiltersGeneric-7.1.so.1 (0x00007fd3970a6000)
libvtkFiltersHyperTree-7.1.so.1 => /usr/opt/VTK/lib/libvtkFiltersHyperTree-7.1.so.1 (0x00007fd396e78000)
libvtkFiltersParallelImaging-7.1.so.1 => /usr/opt/VTK/lib/libvtkFiltersParallelImaging-7.1.so.1 (0x00007fd396c62000)
libvtkFiltersPoints-7.1.so.1 => /usr/opt/VTK/lib/libvtkFiltersPoints-7.1.so.1 (0x00007fd3969cb000)
libvtkFiltersProgrammable-7.1.so.1 => /usr/opt/VTK/lib/libvtkFiltersProgrammable-7.1.so.1 (0x00007fd3967be000)
libvtkFiltersSMP-7.1.so.1 => /usr/opt/VTK/lib/libvtkFiltersSMP-7.1.so.1 (0x00007fd396576000)
libvtkFiltersSelection-7.1.so.1 => /usr/opt/VTK/lib/libvtkFiltersSelection-7.1.so.1 (0x00007fd396366000)
libvtkFiltersVerdict-7.1.so.1 => /usr/opt/VTK/lib/libvtkFiltersVerdict-7.1.so.1 (0x00007fd396151000)
libvtkverdict-7.1.so.1 => /usr/opt/VTK/lib/libvtkverdict-7.1.so.1 (0x00007fd395f2b000)
libvtkGUISupportQtSQL-7.1.so.1 => /usr/opt/VTK/lib/libvtkGUISupportQtSQL-7.1.so.1 (0x00007fd395d28000)
libvtkIOSQL-7.1.so.1 => /usr/opt/VTK/lib/libvtkIOSQL-7.1.so.1 (0x00007fd395af6000)
libvtksqlite-7.1.so.1 => /usr/opt/VTK/lib/libvtksqlite-7.1.so.1 (0x00007fd395895000)
libvtkGeovisCore-7.1.so.1 => /usr/opt/VTK/lib/libvtkGeovisCore-7.1.so.1 (0x00007fd39563d000)
libvtkproj4-7.1.so.1 => /usr/opt/VTK/lib/libvtkproj4-7.1.so.1 (0x00007fd3953f2000)
libvtkIOAMR-7.1.so.1 => /usr/opt/VTK/lib/libvtkIOAMR-7.1.so.1 (0x00007fd3951c9000)
libm.so.6 => /lib64/libm.so.6 (0x00007fd394eb7000)
libvtkIOEnSight-7.1.so.1 => /usr/opt/VTK/lib/libvtkIOEnSight-7.1.so.1 (0x00007fd394c61000)
libvtkIOExodus-7.1.so.1 => /usr/opt/VTK/lib/libvtkIOExodus-7.1.so.1 (0x00007fd3949e3000)
libnetcdf_c++.so.4 => /usr/lib64/math/libnetcdf_c++.so.4 (0x00007fd3947ca000)
libnetcdf.so.11 => /usr/lib64/math/libnetcdf.so.11 (0x00007fd391477000)
libvtkIOExport-7.1.so.1 => /usr/opt/VTK/lib/libvtkIOExport-7.1.so.1 (0x00007fd391237000)
libvtkRenderingGL2PSOpenGL2-7.1.so.1 => /usr/opt/VTK/lib/libvtkRenderingGL2PSOpenGL2-7.1.so.1 (0x00007fd39102b000)
libgl2ps.so.1 => /usr/graphics/lib64/libgl2ps.so.1 (0x00007fd390e16000)
libvtkIOImport-7.1.so.1 => /usr/opt/VTK/lib/libvtkIOImport-7.1.so.1 (0x00007fd390be6000)
libvtkIOInfovis-7.1.so.1 => /usr/opt/VTK/lib/libvtkIOInfovis-7.1.so.1 (0x00007fd390995000)
libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00007fd39066c000)
libvtkIOLSDyna-7.1.so.1 => /usr/opt/VTK/lib/libvtkIOLSDyna-7.1.so.1 (0x00007fd390433000)
libvtkIOMINC-7.1.so.1 => /usr/opt/VTK/lib/libvtkIOMINC-7.1.so.1 (0x00007fd3901e9000)
libvtkIOMovie-7.1.so.1 => /usr/opt/VTK/lib/libvtkIOMovie-7.1.so.1 (0x00007fd38ffde000)
libtheoraenc.so.1 => /usr/media/lib64/libtheoraenc.so.1 (0x00007fd38fdb6000)
libtheoradec.so.1 => /usr/media/lib64/libtheoradec.so.1 (0x00007fd38fba9000)
libogg.so.0 => /usr/media/lib64/libogg.so.0 (0x00007fd38f9a4000)
libvtkIOPLY-7.1.so.1 => /usr/opt/VTK/lib/libvtkIOPLY-7.1.so.1 (0x00007fd38f790000)
libvtkIOParallel-7.1.so.1 => /usr/opt/VTK/lib/libvtkIOParallel-7.1.so.1 (0x00007fd38f53c000)
libjsoncpp.so.19 => /usr/lib64/libjsoncpp.so.19 (0x00007fd38f313000)
libvtkIOParallelXML-7.1.so.1 => /usr/opt/VTK/lib/libvtkIOParallelXML-7.1.so.1 (0x00007fd38f0f0000)
libvtkIOTecplotTable-7.1.so.1 => /usr/opt/VTK/lib/libvtkIOTecplotTable-7.1.so.1 (0x00007fd38eee6000)
libvtkIOVideo-7.1.so.1 => /usr/opt/VTK/lib/libvtkIOVideo-7.1.so.1 (0x00007fd38ecda000)
libvtkImagingMorphological-7.1.so.1 => /usr/opt/VTK/lib/libvtkImagingMorphological-7.1.so.1 (0x00007fd38ea7a000)
libvtkImagingStatistics-7.1.so.1 => /usr/opt/VTK/lib/libvtkImagingStatistics-7.1.so.1 (0x00007fd38e85f000)
libvtkImagingStencil-7.1.so.1 => /usr/opt/VTK/lib/libvtkImagingStencil-7.1.so.1 (0x00007fd38e63e000)
libvtkInteractionImage-7.1.so.1 => /usr/opt/VTK/lib/libvtkInteractionImage-7.1.so.1 (0x00007fd38e42c000)
libvtkRenderingContextOpenGL2-7.1.so.1 => /usr/opt/VTK/lib/libvtkRenderingContextOpenGL2-7.1.so.1 (0x00007fd38e206000)
libvtkRenderingImage-7.1.so.1 => /usr/opt/VTK/lib/libvtkRenderingImage-7.1.so.1 (0x00007fd38dfe2000)
libvtkRenderingLOD-7.1.so.1 => /usr/opt/VTK/lib/libvtkRenderingLOD-7.1.so.1 (0x00007fd38ddd5000)
libvtkRenderingQt-7.1.so.1 => /usr/opt/VTK/lib/libvtkRenderingQt-7.1.so.1 (0x00007fd38dbbe000)
libvtkRenderingVolumeOpenGL2-7.1.so.1 => /usr/opt/VTK/lib/libvtkRenderingVolumeOpenGL2-7.1.so.1 (0x00007fd38d979000)
libvtkViewsContext2D-7.1.so.1 => /usr/opt/VTK/lib/libvtkViewsContext2D-7.1.so.1 (0x00007fd38d76e000)
libvtkViewsQt-7.1.so.1 => /usr/opt/VTK/lib/libvtkViewsQt-7.1.so.1 (0x00007fd38d54b000)
libvtkDomainsChemistry-7.1.so.1 => /usr/opt/VTK/lib/libvtkDomainsChemistry-7.1.so.1 (0x00007fd38d2ff000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fd38d0e1000)
libvtkFiltersAMR-7.1.so.1 => /usr/opt/VTK/lib/libvtkFiltersAMR-7.1.so.1 (0x00007fd38cebf000)
libvtkFiltersParallel-7.1.so.1 => /usr/opt/VTK/lib/libvtkFiltersParallel-7.1.so.1 (0x00007fd38cc2f000)
libvtkexoIIc-7.1.so.1 => /usr/opt/VTK/lib/libvtkexoIIc-7.1.so.1 (0x00007fd38c9f4000)
libvtkIOGeometry-7.1.so.1 => /usr/opt/VTK/lib/libvtkIOGeometry-7.1.so.1 (0x00007fd38c729000)
libvtkIONetCDF-7.1.so.1 => /usr/opt/VTK/lib/libvtkIONetCDF-7.1.so.1 (0x00007fd38c4d8000)
libvtkParallelCore-7.1.so.1 => /usr/opt/VTK/lib/libvtkParallelCore-7.1.so.1 (0x00007fd38c29c000)
libvtkIOLegacy-7.1.so.1 => /usr/opt/VTK/lib/libvtkIOLegacy-7.1.so.1 (0x00007fd38c020000)
libvtkFiltersTexture-7.1.so.1 => /usr/opt/VTK/lib/libvtkFiltersTexture-7.1.so.1 (0x00007fd38be09000)
libvtkImagingMath-7.1.so.1 => /usr/opt/VTK/lib/libvtkImagingMath-7.1.so.1 (0x00007fd38bbd9000)
libvtkGUISupportQt-7.1.so.1 => /usr/opt/VTK/lib/libvtkGUISupportQt-7.1.so.1 (0x00007fd38b9a0000)
libvtkRenderingOpenGL2-7.1.so.1 => /usr/opt/VTK/lib/libvtkRenderingOpenGL2-7.1.so.1 (0x00007fd38b60f000)
libvtkglew-7.1.so.1 => /usr/opt/VTK/lib/libvtkglew-7.1.so.1 (0x00007fd38b391000)
libSM.so.6 => /usr/X11R6/lib64/libSM.so.6 (0x00007fd38b18b000)
libICE.so.6 => /usr/X11R6/lib64/libICE.so.6 (0x00007fd38af73000)
libX11.so.6 => /usr/X11R6/lib64/libX11.so.6 (0x00007fd38ac7e000)
libXext.so.6 => /usr/X11R6/lib64/libXext.so.6 (0x00007fd38aa6f000)
libXt.so.6 => /usr/X11R6/lib64/libXt.so.6 (0x00007fd38a818000)
libvtkViewsInfovis-7.1.so.1 => /usr/opt/VTK/lib/libvtkViewsInfovis-7.1.so.1 (0x00007fd38a57e000)
libvtkChartsCore-7.1.so.1 => /usr/opt/VTK/lib/libvtkChartsCore-7.1.so.1 (0x00007fd38a2a6000)
libvtkRenderingContext2D-7.1.so.1 => /usr/opt/VTK/lib/libvtkRenderingContext2D-7.1.so.1 (0x00007fd38a07c000)
libvtkFiltersImaging-7.1.so.1 => /usr/opt/VTK/lib/libvtkFiltersImaging-7.1.so.1 (0x00007fd389e67000)
libvtkInfovisLayout-7.1.so.1 => /usr/opt/VTK/lib/libvtkInfovisLayout-7.1.so.1 (0x00007fd389bff000)
libvtkInfovisCore-7.1.so.1 => /usr/opt/VTK/lib/libvtkInfovisCore-7.1.so.1 (0x00007fd38995f000)
libvtkViewsCore-7.1.so.1 => /usr/opt/VTK/lib/libvtkViewsCore-7.1.so.1 (0x00007fd389741000)
libvtkInteractionWidgets-7.1.so.1 => /usr/opt/VTK/lib/libvtkInteractionWidgets-7.1.so.1 (0x00007fd38936c000)
libvtkFiltersHybrid-7.1.so.1 => /usr/opt/VTK/lib/libvtkFiltersHybrid-7.1.so.1 (0x00007fd3890c7000)
libvtkImagingGeneral-7.1.so.1 => /usr/opt/VTK/lib/libvtkImagingGeneral-7.1.so.1 (0x00007fd388e2b000)
libvtkImagingSources-7.1.so.1 => /usr/opt/VTK/lib/libvtkImagingSources-7.1.so.1 (0x00007fd388bfc000)
libvtkFiltersModeling-7.1.so.1 => /usr/opt/VTK/lib/libvtkFiltersModeling-7.1.so.1 (0x00007fd3889a9000)
libvtkInteractionStyle-7.1.so.1 => /usr/opt/VTK/lib/libvtkInteractionStyle-7.1.so.1 (0x00007fd38876a000)
libvtkFiltersExtraction-7.1.so.1 => /usr/opt/VTK/lib/libvtkFiltersExtraction-7.1.so.1 (0x00007fd3884cc000)
libvtkFiltersStatistics-7.1.so.1 => /usr/opt/VTK/lib/libvtkFiltersStatistics-7.1.so.1 (0x00007fd38826b000)
libvtkImagingFourier-7.1.so.1 => /usr/opt/VTK/lib/libvtkImagingFourier-7.1.so.1 (0x00007fd38804a000)
libvtkalglib-7.1.so.1 => /usr/opt/VTK/lib/libvtkalglib-7.1.so.1 (0x00007fd387e34000)
libvtkImagingHybrid-7.1.so.1 => /usr/opt/VTK/lib/libvtkImagingHybrid-7.1.so.1 (0x00007fd387bdf000)
libvtkIOImage-7.1.so.1 => /usr/opt/VTK/lib/libvtkIOImage-7.1.so.1 (0x00007fd3878d0000)
libvtkDICOMParser-7.1.so.1 => /usr/opt/VTK/lib/libvtkDICOMParser-7.1.so.1 (0x00007fd3876be000)
libvtkmetaio-7.1.so.1 => /usr/opt/VTK/lib/libvtkmetaio-7.1.so.1 (0x00007fd387454000)
libvtkRenderingAnnotation-7.1.so.1 => /usr/opt/VTK/lib/libvtkRenderingAnnotation-7.1.so.1 (0x00007fd38718e000)
libvtkImagingColor-7.1.so.1 => /usr/opt/VTK/lib/libvtkImagingColor-7.1.so.1 (0x00007fd386f58000)
libvtkRenderingVolume-7.1.so.1 => /usr/opt/VTK/lib/libvtkRenderingVolume-7.1.so.1 (0x00007fd38691a000)
libvtkImagingCore-7.1.so.1 => /usr/opt/VTK/lib/libvtkImagingCore-7.1.so.1 (0x00007fd3865e1000)
libvtkIOXML-7.1.so.1 => /usr/opt/VTK/lib/libvtkIOXML-7.1.so.1 (0x00007fd386337000)
libvtkIOXMLParser-7.1.so.1 => /usr/opt/VTK/lib/libvtkIOXMLParser-7.1.so.1 (0x00007fd386125000)
libvtkIOCore-7.1.so.1 => /usr/opt/VTK/lib/libvtkIOCore-7.1.so.1 (0x00007fd385ed2000)
libvtkRenderingLabel-7.1.so.1 => /usr/opt/VTK/lib/libvtkRenderingLabel-7.1.so.1 (0x00007fd385c5b000)
libvtkRenderingFreeType-7.1.so.1 => /usr/opt/VTK/lib/libvtkRenderingFreeType-7.1.so.1 (0x00007fd3859b9000)
libvtkRenderingCore-7.1.so.1 => /usr/opt/VTK/lib/libvtkRenderingCore-7.1.so.1 (0x00007fd38562d000)
libvtkCommonColor-7.1.so.1 => /usr/opt/VTK/lib/libvtkCommonColor-7.1.so.1 (0x00007fd38541a000)
libvtkFiltersGeometry-7.1.so.1 => /usr/opt/VTK/lib/libvtkFiltersGeometry-7.1.so.1 (0x00007fd3851bb000)
libvtkFiltersSources-7.1.so.1 => /usr/opt/VTK/lib/libvtkFiltersSources-7.1.so.1 (0x00007fd384f41000)
libvtkFiltersGeneral-7.1.so.1 => /usr/opt/VTK/lib/libvtkFiltersGeneral-7.1.so.1 (0x00007fd384b4c000)
libvtkCommonComputationalGeometry-7.1.so.1 => /usr/opt/VTK/lib/libvtkCommonComputationalGeometry-7.1.so.1 (0x00007fd38491b000)
libvtkFiltersCore-7.1.so.1 => /usr/opt/VTK/lib/libvtkFiltersCore-7.1.so.1 (0x00007fd3843e7000)
libvtkCommonExecutionModel-7.1.so.1 => /usr/opt/VTK/lib/libvtkCommonExecutionModel-7.1.so.1 (0x00007fd384152000)
libvtkCommonDataModel-7.1.so.1 => /usr/opt/VTK/lib/libvtkCommonDataModel-7.1.so.1 (0x00007fd383cb7000)
libvtkCommonTransforms-7.1.so.1 => /usr/opt/VTK/lib/libvtkCommonTransforms-7.1.so.1 (0x00007fd383a91000)
libvtkCommonMisc-7.1.so.1 => /usr/opt/VTK/lib/libvtkCommonMisc-7.1.so.1 (0x00007fd38387c000)
libvtkCommonMath-7.1.so.1 => /usr/opt/VTK/lib/libvtkCommonMath-7.1.so.1 (0x00007fd38365d000)
libvtkCommonSystem-7.1.so.1 => /usr/opt/VTK/lib/libvtkCommonSystem-7.1.so.1 (0x00007fd38344b000)
libvtkCommonCore-7.1.so.1 => /usr/opt/VTK/lib/libvtkCommonCore-7.1.so.1 (0x00007fd382fc9000)
libvtksys-7.1.so.1 => /usr/opt/VTK/lib/libvtksys-7.1.so.1 (0x00007fd382d96000)
libQt5Widgets.so.5 => /usr/qt/lib64/libQt5Widgets.so.5 (0x00007fd382678000)
libQt5Gui.so.5 => /usr/qt/lib64/libQt5Gui.so.5 (0x00007fd3820de000)
libQt5Core.so.5 => /usr/qt/lib64/libQt5Core.so.5 (0x00007fd381aad000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fd381773000)
libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x00007fd381561000)
libc.so.6 => /lib64/libc.so.6 (0x00007fd3811c2000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd399fee000)
libmpfr.so.4 => /usr/lib64/libmpfr.so.4 (0x00007fd380f71000)
libgmp.so.10 => /usr/lib64/libgmp.so.10 (0x00007fd380d10000)
librt.so.1 => /lib64/librt.so.1 (0x00007fd380b08000)
libbz2.so.1.0 => /usr/lib64/libbz2.so.1.0 (0x00007fd3809fc000)
libGLU.so.1 => /usr/X11R6/lib64/libGLU.so.1 (0x00007fd38079f000)
libGL.so.1 => /usr/X11R6/lib64/libGL.so.1 (0x00007fd38053f000)
liblzma.so.5 => /usr/lib64/liblzma.so.5 (0x00007fd38031f000)
libjbig.so.2 => /usr/graphics/lib64/libjbig.so.2 (0x00007fd380113000)
libQt5Sql.so.5 => /usr/qt/lib64/libQt5Sql.so.5 (0x00007fd37fee3000)
libcurl.so.4 => /usr/lib/../lib64/libcurl.so.4 (0x00007fd37fc86000)
libidn.so.11 => /usr/lib/../lib64/libidn.so.11 (0x00007fd37fb56000)
libssl.so.1 => /usr/lib/../lib64/libssl.so.1 (0x00007fd37f8fa000)
libcrypto.so.1 => /usr/lib/../lib64/libcrypto.so.1 (0x00007fd37f543000)
libQt5X11Extras.so.5 => /usr/qt/lib64/libQt5X11Extras.so.5 (0x00007fd37f33f000)
libuuid.so.1 => /lib64/libuuid.so.1 (0x00007fd37f13b000)
libxcb.so.1 => /usr/X11R6/lib64/libxcb.so.1 (0x00007fd37ef1f000)
libXau.so.6 => /usr/X11R6/lib64/libXau.so.6 (0x00007fd37ed1d000)
libXdmcp.so.6 => /usr/X11R6/lib64/libXdmcp.so.6 (0x00007fd37eb18000)
libharfbuzz.so.0 => /usr/graphics/lib64/libharfbuzz.so.0 (0x00007fd37e884000)
libpcre2-16.so.0 => /usr/lib64/libpcre2-16.so.0 (0x00007fd37e625000)
libdouble-conversion.so.3.0.0 => /usr/lib64/libdouble-conversion.so.3.0.0 (0x00007fd37e41a000)
libgthread-2.0.so.0 => /usr/lib64/libgthread-2.0.so.0 (0x00007fd37e218000)
libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x00007fd37df2c000)
libxcb-dri3.so.0 => /usr/X11R6/lib64/libxcb-dri3.so.0 (0x00007fd37dd2a000)
libxcb-present.so.0 => /usr/X11R6/lib64/libxcb-present.so.0 (0x00007fd37db28000)
libxcb-sync.so.1 => /usr/X11R6/lib64/libxcb-sync.so.1 (0x00007fd37d923000)
libxshmfence.so.1 => /usr/X11R6/lib64/libxshmfence.so.1 (0x00007fd37d722000)
libglapi.so.0 => /usr/X11R6/lib64/libglapi.so.0 (0x00007fd37d4f4000)
libXdamage.so.1 => /usr/X11R6/lib64/libXdamage.so.1 (0x00007fd37d2f2000)
libXfixes.so.3 => /usr/X11R6/lib64/libXfixes.so.3 (0x00007fd37d0ed000)
libX11-xcb.so.1 => /usr/X11R6/lib64/libX11-xcb.so.1 (0x00007fd37ceec000)
libxcb-glx.so.0 => /usr/X11R6/lib64/libxcb-glx.so.0 (0x00007fd37ccd7000)
libxcb-dri2.so.0 => /usr/X11R6/lib64/libxcb-dri2.so.0 (0x00007fd37cad3000)
libXxf86vm.so.1 => /usr/X11R6/lib64/libXxf86vm.so.1 (0x00007fd37c8cf000)
libdrm.so.2 => /usr/X11R6/lib64/libdrm.so.2 (0x00007fd37c6c1000)
libssl.so.1.1 => /usr/lib/../lib64/libssl.so.1.1 (0x00007fd37c464000)
libcrypto.so.1.1 => /usr/lib/../lib64/libcrypto.so.1.1 (0x00007fd37c033000)
libpcre.so.1 => /usr/lib64/libpcre.so.1 (0x00007fd37bdfa000)

thorsten
Posts: 1380
Joined: Mon 27 Jun 2011, 12:26

Re: Error linking libtinyxml

Post by thorsten » Wed 10 Jan 2018, 21:23

I'm really not sure I can help you much. At least openEMS itself should run fine? Only the GUI tool "AppCSXCAD" cannot be build?

br
Thorsten

eheinz
Posts: 14
Joined: Fri 26 Aug 2016, 10:38

Re: Error linking libtinyxml

Post by eheinz » Thu 11 Jan 2018, 11:31

Linking the openEMS binary fails as well:
libopenEMS.so.0.0.35: undefined reference to `TiXmlDocument::TiXmlDocument(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/opt/openEMS/lib/libCSXCAD.so: undefined reference to `TiXmlElement::Attribute(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/usr/opt/openEMS/lib/libCSXCAD.so: undefined reference to `TiXmlElement::SetAttribute(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
make[5]: *** [CMakeFiles/openEMS_bin.dir/build.make:242: openEMS] Error 1
It would be interesting if someone successfully compiled openEMS using gcc6 and if so, which version of libtinyxml was used.

Best regards,
Erik

eheinz
Posts: 14
Joined: Fri 26 Aug 2016, 10:38

Re: Error linking libtinyxml

Post by eheinz » Fri 12 Jan 2018, 14:42

I solved the problem. tinyxml has to be compiled with -DTIXML_USE_STL switch.
Now openEMS and AppCSXCAD again build fine.

Best regards,
Erik

thorsten
Posts: 1380
Joined: Mon 27 Jun 2011, 12:26

Re: Error linking libtinyxml

Post by thorsten » Fri 12 Jan 2018, 17:27

I solved the problem. tinyxml has to be compiled with -DTIXML_USE_STL switch.
Yes indeed. I forgot about that since all distros these days have it on by default...

br
Thorsten

Post Reply