Hi all
I have divided into the posts here, the wiki and around the web, maybe you could help me finish this compile
I am compiling OpenVSP in a debian machine
I am using the latest git version;
Pre-compile the libs according to:
cmake -DCMAKE_BUILD_TYPE=Release \
-DVSP_USE_SYSTEM_CPPTEST=true \
-DVSP_USE_SYSTEM_LIBXML2=false \
-DVSP_USE_SYSTEM_EIGEN=false \
-DVSP_USE_SYSTEM_FLTK=true \
-DVSP_USE_SYSTEM_GLM=false \
-DVSP_USE_SYSTEM_GLEW=true \
-DVSP_USE_SYSTEM_CMINPACK=true \
-DVSP_USE_SYSTEM_CODEELI=false \
-DVSP_USE_SYSTEM_LIBIGES=false \
../repo/Libraries
But I am having a problem linking part of the results with the message bellow:
[ 2%] Built target STEPCODE
[ 3%] Built target glfont2
[ 3%] Built target stb_image
[ 4%] Built target cartesian
[ 4%] Built target triangle
[ 6%] Built target sixseries
[ 7%] Built target tritri
[ 7%] Built target clipper
[ 7%] Built target wavedragEL
[ 16%] Built target Angelscript
[ 26%] Built target vsp_graphic
[ 34%] Built target screens
[ 40%] Built target util
[ 41%] Built target xmlvsp
[ 56%] Built target geom_core
[ 60%] Built target cfd_mesh
[ 76%] Built target gui_and_draw
[ 77%] Built target geom_api_g
[ 78%] Built target geom_api
[ 79%] Built target gui_interface_g
[ 79%] Linking CXX executable vspscript
../geom_core/libgeom_core.a(XSec.cpp.o): In function `XSec::EncodeXSec(_xmlNode*&)':
XSec.cpp:(.text+0x65a): undefined reference to `xmlNewChild'
../geom_core/libgeom_core.a(XSec.cpp.o): In function `XSec::EncodeXml(_xmlNode*&)':
XSec.cpp:(.text+0x11ca0): undefined reference to `xmlNewChild'
XSec.cpp:(.text+0x11ce6): undefined reference to `xmlNewChild'
../geom_core/libgeom_core.a(XSec.cpp.o): In function `XSec::CopyFrom(XSec*)':
XSec.cpp:(.text+0x11d8d): undefined reference to `xmlNewNode'
XSec.cpp:(.text+0x11e77): undefined reference to `xmlFreeNode'
../geom_core/libgeom_core.a(DesignVarMgr.cpp.o): In function `DesignVarMgrSingleton::WriteDesVarsXDDM(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
DesignVarMgr.cpp:(.text+0x521): undefined reference to `xmlNewDoc'
DesignVarMgr.cpp:(.text+0x537): undefined reference to `xmlNewNode'
DesignVarMgr.cpp:(.text+0x547): undefined reference to `xmlDocSetRootElement'
DesignVarMgr.cpp:(.text+0x5e6): undefined reference to `xmlSetProp'
DesignVarMgr.cpp:(.text+0x61c): undefined reference to `xmlSetProp'
DesignVarMgr.cpp:(.text+0x632): undefined reference to `xmlSetProp'
DesignVarMgr.cpp:(.text+0x691): undefined reference to `xmlNewChild'
DesignVarMgr.cpp:(.text+0x757): undefined reference to `xmlSetProp'
DesignVarMgr.cpp:(.text+0x7ec): undefined reference to `xmlSetProp'
DesignVarMgr.cpp:(.text+0x8a7): undefined reference to `xmlNewChild'
DesignVarMgr.cpp:(.text+0x986): undefined reference to `xmlSaveFormatFile'
DesignVarMgr.cpp:(.text+0x98e): undefined reference to `xmlFreeDoc'
(bla bla bla)
../xmlvsp/libxmlvsp.a(XmlUtil.cpp.o): In function `XmlUtil::GetNumArray(_xmlNode*, char)':
XmlUtil.cpp:(.text+0xafc): undefined reference to `xmlNodeListGetString'
XmlUtil.cpp:(.text+0xb4d): undefined reference to `xmlFree'
../xmlvsp/libxmlvsp.a(XmlUtil.cpp.o): In function `XmlUtil::ExtractDoubleArray(_xmlNode*, char, double*, int)':
XmlUtil.cpp:(.text+0xb94): undefined reference to `xmlNodeListGetString'
XmlUtil.cpp:(.text+0xc6a): undefined reference to `xmlFree'
../xmlvsp/libxmlvsp.a(XmlUtil.cpp.o): In function `XmlUtil::ExtractIntArray(_xmlNode*, char, int*, int)':
XmlUtil.cpp:(.text+0xcd4): undefined reference to `xmlNodeListGetString'
XmlUtil.cpp:(.text+0xda9): undefined reference to `xmlFree'
../xmlvsp/libxmlvsp.a(XmlUtil.cpp.o): In function `XmlUtil::SetStringProp(_xmlNode*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
XmlUtil.cpp:(.text+0xad4): undefined reference to `xmlSetProp'
collect2: error: ld returned 1 exit status
make[2]: *** [vsp/CMakeFiles/vspscript.dir/build.make:141: vsp/vspscript] Error 1
make[1]: *** [CMakeFiles/Makefile2:1442: vsp/CMakeFiles/vspscript.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
I have traced xmlSetProp to the libxml2 library and thats why I have compile the version from OpenVSP
Is it a linker probem? does it has any similarity to the one reported here:
https://forums.fedoraforum.org/showthread.php?246434-Compiling-from-source-fails-(DSO)thanks for all the help,
rreis