Configuring CMake for TinyXML

Install support for openEMS

Moderators: thorsten, sebastian

Post Reply
nicolas.bachelard
Posts: 9
Joined: Fri 01 Sep 2017, 02:08

Configuring CMake for TinyXML

Post by nicolas.bachelard » Fri 01 Sep 2017, 02:17

Hello everyone,

I am trying to make theinstall of openEMS onto my fedora 26 distribution (64bits).
During the install (through CMake if I get it porperly)

Code: Select all

./update_openEMS.sh ~/opt/openEMS
I obtain the following error:

Code: Select all

-- fparser_INCLUDE_DIR: /home/nbachela/opt/openEMS/include
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find TinyXML (missing: TinyXML_LIBRARY TinyXML_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
  cmake/Modules/FindTinyXML.cmake:65 (find_package_handle_standard_args)
  CMakeLists.txt:90 (find_package)
So I deduced that I need to export the TinyXML_LIBRARY and TinyXML_INCLUDE_DIR to the good path. Do you confirm?
The question is how we manage to do that? I am not familiar with CMake.

Someone can tell me how to properly configure my CMake?

Nicolas

nicolas.bachelard
Posts: 9
Joined: Fri 01 Sep 2017, 02:08

Re: Configuring CMake for TinyXML

Post by nicolas.bachelard » Fri 01 Sep 2017, 17:13

Hi,

I guess I solved my problem. I was missing the tiny_XML-devel package.
For those who might be interested I also struggle to install cgal (for which I needed also cgal-devel and cgal-demo-sources) because there does not seem to have a package version under fedora 26.

Best

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

Re: Configuring CMake for TinyXML

Post by thorsten » Fri 01 Sep 2017, 19:01

Hello Nicolas,

yes indeed cmake just did not find the package. Whenever I tried building openEMS on Fedora I always struggled a lot with different packages. But usually I managed to do it in the end somehow...
If you succeed I would ask that you maybe post which packages you needed to install?

regards
Thorsten

nicolas.bachelard
Posts: 9
Joined: Fri 01 Sep 2017, 02:08

Re: Configuring CMake for TinyXML

Post by nicolas.bachelard » Sat 02 Sep 2017, 21:37

Hi,

I had a hard time to install everything, mostly because many of the needed libraries are not packaged on fedora.
I join you a part of my journalctl:

to install tiny_XML

Code: Select all

USER=root ; COMMAND=/bin/dnf install tinyxml
USER=root ; COMMAND=/bin/dnf provides tinyxml-dev
to install cgal

Code: Select all

USER=root ; COMMAND=/bin/dnf install CGAL-4.10-1.fc26.i686.rpm
USER=root ; COMMAND=/bin/dnf install CGAL-devel-4.10-1.fc26.i686.rpm
USER=root ; COMMAND=/bin/dnf install CGAL-demos-source
to install vtk and qt

Code: Select all

 USER=root ; COMMAND=/bin/dnf install qt-devel
USER=root ; COMMAND=/bin/dnf install vtk
USER=root ; COMMAND=/bin/dnf install vtk-devel
Hope it helps

Post Reply