Procedure to install TinyXML2 on Windows #4516
Replies: 5 comments 6 replies
-
And for Linux, simply : Shall we mark this topic as solved @alxbilger ? |
Beta Was this translation helpful? Give feedback.
-
Just a slight suggestion to make: tinyxml2 is compiled as a static library by default. Note that this cmake flag does not appear in the GUI version of cmake, so you will need to add the variable by yourself 🤔 |
Beta Was this translation helpful? Give feedback.
-
@hugtalbot Should be pre-built tinyxml2 and include it in the "dependency pack for Windows" as we have already a set of prebuilt binaries for libpng, zlib, etc. ? |
Beta Was this translation helpful? Give feedback.
-
TinyXML2 is now included in the WinDepPack --> https://www.sofa-framework.org/download/WinDepPack/VS-2017/latest |
Beta Was this translation helpful? Give feedback.
-
With the addition of TinyXML2 in the WinDepPack, it is no longer necessary to compile and install it. |
Beta Was this translation helpful? Give feedback.
-
TinyXML2 is the library used to parse XML scenes. It is a dependency of SOFA. Here is the procedure to install it on Windows:
TINYXML2_SRC
. For that, run the following command:git clone https://github.com/leethomason/tinyxml2.git --branch 10.0.0 --single-branch TINYXML2_SRC
.10.0.0
is the tag corresponding to the latest release at the time of writing.cmake -S TINYXML2_SRC -B TINYXML2_BUILD -DBUILD_SHARED_LIBS=1
. (TINYXML2_BUILD
is the folder where you want to build the library)cmake --build TINYXML2_BUILD --config Release
cmake --install TINYXML2_BUILD
. Without specifying the destination folder, it goes intoC:/Program Files/tinyxml2
, therefore it requires administrator privileges. If you want to change the destination folder, use the CMakeprefix
option.tinyxml2_DIR
in the CMake configuration of SOFA, pointing to the location of the installed library.Beta Was this translation helpful? Give feedback.
All reactions