TinyXML becomes a big problem
Moderators: thorsten, sebastian
-
- Posts: 1
- Joined: Tue 16 Jun 2020, 23:20
TinyXML becomes a big problem
On an Ubuntu 18.4 machine using
git clone --recursive https://github.com/thliebig/openEMS-Project.git
./update_openEMS.sh /hdd/home/flash/opt/openEMS from within /hdd/home/flash/tmp/openEMS-Project
I get
make failed ...
(base) flash@FlashSuper64:/hdd/home/flash/tmp/openEMS-Project$ cat build_20200616_141326.log
-- The CXX compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CMAKE_INSTALL_PREFIX: /hdd/home/flash/opt/openEMS
-- Build AppCSXCAD: YES
-- with MPI: 0
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/tmp.UHXamvZaep
Scanning dependencies of target fparser
[ 2%] Creating directories for 'fparser'
[ 5%] No download step for 'fparser'
[ 7%] No patch step for 'fparser'
[ 10%] No update step for 'fparser'
[ 12%] Performing configure step for 'fparser'
-- The CXX compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/tmp.UHXamvZaep/fparser-prefix/src/fparser-build
[ 15%] Performing build step for 'fparser'
Scanning dependencies of target fparser
[ 33%] Building CXX object CMakeFiles/fparser.dir/fparser.cc.o
[ 66%] Building CXX object CMakeFiles/fparser.dir/fpoptimizer.cc.o
[100%] Linking CXX shared library libfparser.so
[100%] Built target fparser
[ 17%] Performing install step for 'fparser'
[100%] Built target fparser
Install the project...
-- Install configuration: ""
-- Installing: /hdd/home/flash/opt/openEMS/lib/libfparser.so.4.5.1
-- Up-to-date: /hdd/home/flash/opt/openEMS/lib/libfparser.so.4
-- Up-to-date: /hdd/home/flash/opt/openEMS/lib/libfparser.so
-- Up-to-date: /hdd/home/flash/opt/openEMS/include/fparser.hh
[ 20%] Completed 'fparser'
[ 20%] Built target fparser
Scanning dependencies of target CSXCAD
[ 22%] Creating directories for 'CSXCAD'
[ 25%] No download step for 'CSXCAD'
[ 27%] No patch step for 'CSXCAD'
[ 30%] No update step for 'CSXCAD'
[ 32%] Performing configure step for 'CSXCAD'
-- The CXX compiler identification is GNU 7.5.0
-- The C compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Git: /usr/bin/git (found version "2.17.1")
-- Found Git repository, CSXCAD version tag: v0.6.2-93-gef6e409
-- FPARSER_ROOT_DIR: /hdd/home/flash/opt/openEMS
-- fparser_INCLUDE_DIR: /hdd/home/flash/opt/openEMS/include
-- TinyXML_ROOT_DIR
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find TinyXML (missing: TinyXML_LIBRARY TinyXML_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindTinyXML.cmake:65 (find_package_handle_standard_args)
CMakeLists.txt:96 (find_package)
-- Configuring incomplete, errors occurred!
See also "/tmp/tmp.UHXamvZaep/CSXCAD-prefix/src/CSXCAD-build/CMakeFiles/CMakeOutput.log".
CMakeFiles/CSXCAD.dir/build.make:106: recipe for target 'CSXCAD-prefix/src/CSXCAD-stamp/CSXCAD-configure' failed
make[2]: *** [CSXCAD-prefix/src/CSXCAD-stamp/CSXCAD-configure] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/CSXCAD.dir/all' failed
make[1]: *** [CMakeFiles/CSXCAD.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
***********************************************************************************************************************************************
I've been down this road a few times .. so I fixed the paths but it doesn't help
echo $TinyXML_ROOT_PATH
/hdd/home/flash/opt/tinyxml
echo $TinyXML_LIBRARY
/hdd/home/flash/opt/tinyxml
echo $TinyXML_INCLUDE_DIR
/hdd/home/flash/opt/tinyxml
I'm already pretty much bald so pulling my hair won't work. Any suggestions?
git clone --recursive https://github.com/thliebig/openEMS-Project.git
./update_openEMS.sh /hdd/home/flash/opt/openEMS from within /hdd/home/flash/tmp/openEMS-Project
I get
make failed ...
(base) flash@FlashSuper64:/hdd/home/flash/tmp/openEMS-Project$ cat build_20200616_141326.log
-- The CXX compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CMAKE_INSTALL_PREFIX: /hdd/home/flash/opt/openEMS
-- Build AppCSXCAD: YES
-- with MPI: 0
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/tmp.UHXamvZaep
Scanning dependencies of target fparser
[ 2%] Creating directories for 'fparser'
[ 5%] No download step for 'fparser'
[ 7%] No patch step for 'fparser'
[ 10%] No update step for 'fparser'
[ 12%] Performing configure step for 'fparser'
-- The CXX compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/tmp.UHXamvZaep/fparser-prefix/src/fparser-build
[ 15%] Performing build step for 'fparser'
Scanning dependencies of target fparser
[ 33%] Building CXX object CMakeFiles/fparser.dir/fparser.cc.o
[ 66%] Building CXX object CMakeFiles/fparser.dir/fpoptimizer.cc.o
[100%] Linking CXX shared library libfparser.so
[100%] Built target fparser
[ 17%] Performing install step for 'fparser'
[100%] Built target fparser
Install the project...
-- Install configuration: ""
-- Installing: /hdd/home/flash/opt/openEMS/lib/libfparser.so.4.5.1
-- Up-to-date: /hdd/home/flash/opt/openEMS/lib/libfparser.so.4
-- Up-to-date: /hdd/home/flash/opt/openEMS/lib/libfparser.so
-- Up-to-date: /hdd/home/flash/opt/openEMS/include/fparser.hh
[ 20%] Completed 'fparser'
[ 20%] Built target fparser
Scanning dependencies of target CSXCAD
[ 22%] Creating directories for 'CSXCAD'
[ 25%] No download step for 'CSXCAD'
[ 27%] No patch step for 'CSXCAD'
[ 30%] No update step for 'CSXCAD'
[ 32%] Performing configure step for 'CSXCAD'
-- The CXX compiler identification is GNU 7.5.0
-- The C compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Git: /usr/bin/git (found version "2.17.1")
-- Found Git repository, CSXCAD version tag: v0.6.2-93-gef6e409
-- FPARSER_ROOT_DIR: /hdd/home/flash/opt/openEMS
-- fparser_INCLUDE_DIR: /hdd/home/flash/opt/openEMS/include
-- TinyXML_ROOT_DIR
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find TinyXML (missing: TinyXML_LIBRARY TinyXML_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindTinyXML.cmake:65 (find_package_handle_standard_args)
CMakeLists.txt:96 (find_package)
-- Configuring incomplete, errors occurred!
See also "/tmp/tmp.UHXamvZaep/CSXCAD-prefix/src/CSXCAD-build/CMakeFiles/CMakeOutput.log".
CMakeFiles/CSXCAD.dir/build.make:106: recipe for target 'CSXCAD-prefix/src/CSXCAD-stamp/CSXCAD-configure' failed
make[2]: *** [CSXCAD-prefix/src/CSXCAD-stamp/CSXCAD-configure] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/CSXCAD.dir/all' failed
make[1]: *** [CMakeFiles/CSXCAD.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
***********************************************************************************************************************************************
I've been down this road a few times .. so I fixed the paths but it doesn't help
echo $TinyXML_ROOT_PATH
/hdd/home/flash/opt/tinyxml
echo $TinyXML_LIBRARY
/hdd/home/flash/opt/tinyxml
echo $TinyXML_INCLUDE_DIR
/hdd/home/flash/opt/tinyxml
I'm already pretty much bald so pulling my hair won't work. Any suggestions?
Re: TinyXML becomes a big problem
I had the same problem. I installed tinyxml using Synaptic Package Manager. The build and install worked but then I get an error when running openEMS:
>> RunOpenEMS( '.', 'nonexistant.xml', '' )
/home/xxxxx/opt/openEMS/share/openEMS/matlab/private/../../../../bin/openEMS: error while loading shared libraries: libtinyxml.so.2.6.2: cannot open shared object file: No such file or directory
>>
Built from the sources obtained here:
wget http://openems.de/download/src/openEMS-v0.0.35.tar.bz2
Have tried installing a specific earlier version of tinyxml from here:
http://archive.ubuntu.com/ubuntu/pool/u ... t/tinyxml/
and then re-installing against that. No improvement.
Sorry this is not more helpful.
>> RunOpenEMS( '.', 'nonexistant.xml', '' )
/home/xxxxx/opt/openEMS/share/openEMS/matlab/private/../../../../bin/openEMS: error while loading shared libraries: libtinyxml.so.2.6.2: cannot open shared object file: No such file or directory
>>
Built from the sources obtained here:
wget http://openems.de/download/src/openEMS-v0.0.35.tar.bz2
Have tried installing a specific earlier version of tinyxml from here:
http://archive.ubuntu.com/ubuntu/pool/u ... t/tinyxml/
and then re-installing against that. No improvement.
Sorry this is not more helpful.
Re: TinyXML becomes a big problem
Hm, I never had any issues with tiny_xml so far, even on cutting edge distros like Manjaro...
I will have a closer look...
I will have a closer look...
Re: TinyXML becomes a big problem
Found another subtle problem caused by the libvtk version.
I have libvtk7 installed. openEMS demands libvtk6. Installing 6 remove 7 which I need for more critical apps.
Maybe a virtual machine running 14.04 would do it.
I have libvtk7 installed. openEMS demands libvtk6. Installing 6 remove 7 which I need for more critical apps.
Maybe a virtual machine running 14.04 would do it.
Re: TinyXML becomes a big problem
Hm, no openEMS can use any vtk version. I use 8.2 here. Try Qt5 packages and the latest vtk. It should work fine. I really have to update the required packages for a later Ubuntu. The problem is that I do not use Ubuntu anymore and thus I'm not really up to date and what packages should be used.
regards
Thorsten
regards
Thorsten
Re: TinyXML becomes a big problem
Just tried installing from github source. No improvement.
From the build log
-- Found TinyXML: /usr/lib/x86_64-linux-gnu/libtinyxml.so
-- TinyXML_INCLUDE_DIR: /usr/include
-- TinyXML_LIBRARY: /usr/lib/x86_64-linux-gnu/libtinyxml.so
No indication that tinyxml should fail
The VTK problem changed a bit. It no longer calls for vtk6:
-- Found TinyXML: /usr/lib/x86_64-linux-gnu/libtinyxml.so
-- The imported target "vtkRenderingPythonTkWidgets" references the file
"/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/cmake/vtk-7.1/VTKTargets.cmake"
but not all the files it references.
-- The imported target "vtk" references the file
"/usr/bin/vtk"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/cmake/vtk-7.1/VTKTargets.cmake"
but not all the files it references.
-- The imported target "pvtk" references the file
"/usr/bin/pvtk"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/cmake/vtk-7.1/VTKTargets.cmake"
but not all the files it references.
-- Found package VTK. Using version 7.1.1
-- vtk libraries
From the build log
-- Found TinyXML: /usr/lib/x86_64-linux-gnu/libtinyxml.so
-- TinyXML_INCLUDE_DIR: /usr/include
-- TinyXML_LIBRARY: /usr/lib/x86_64-linux-gnu/libtinyxml.so
No indication that tinyxml should fail
The VTK problem changed a bit. It no longer calls for vtk6:
-- Found TinyXML: /usr/lib/x86_64-linux-gnu/libtinyxml.so
-- The imported target "vtkRenderingPythonTkWidgets" references the file
"/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/cmake/vtk-7.1/VTKTargets.cmake"
but not all the files it references.
-- The imported target "vtk" references the file
"/usr/bin/vtk"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/cmake/vtk-7.1/VTKTargets.cmake"
but not all the files it references.
-- The imported target "pvtk" references the file
"/usr/bin/pvtk"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/cmake/vtk-7.1/VTKTargets.cmake"
but not all the files it references.
-- Found package VTK. Using version 7.1.1
-- vtk libraries
Re: TinyXML becomes a big problem
Just tried openSuse Tumbleweed on VirtualBox. Still stuck on TinyXML.
-
- Posts: 31
- Joined: Thu 23 May 2019, 18:05
Re: TinyXML becomes a big problem
Hi, I have an Ubuntu 18.04 machine with openEMS on somewhere - I will try and dig out the tinyxml version when I'm on there next. Once I got going, I have never had a problem following the "fresh install" of all the dependencies before an openEMS install on an x86 machine.
Re: TinyXML becomes a big problem
Tried on another Ubuntu 18.04 computer. Now getting stuck on:
>> CSXGeomPlot('nonexistant.xml')
invoking AppCSXCAD, exit to continue script...
/home/matt/opt/openEMS/share/CSXCAD/matlab/../../../bin/AppCSXCAD: error while loading shared libraries: libQt5Widgets.so.5: cannot open shared object file: Nosuch file or directory
This time using these instructions:
https://github.com/thliebig/openEMS-Pro ... nstruction
instead of these instructions:
https://openems.de/index.php/Compile_from_Source.html
Hand selecting and installing the packages with synaptic instead of using this which gets stuck on libvtk5:
sudo apt-get install build-essential git cmake libhdf5-dev libvtk5-dev libboost-all-dev libcgal-dev libtinyxml-dev libqt4-dev libvtk5-qt4-dev
>> CSXGeomPlot('nonexistant.xml')
invoking AppCSXCAD, exit to continue script...
/home/matt/opt/openEMS/share/CSXCAD/matlab/../../../bin/AppCSXCAD: error while loading shared libraries: libQt5Widgets.so.5: cannot open shared object file: Nosuch file or directory
This time using these instructions:
https://github.com/thliebig/openEMS-Pro ... nstruction
instead of these instructions:
https://openems.de/index.php/Compile_from_Source.html
Hand selecting and installing the packages with synaptic instead of using this which gets stuck on libvtk5:
sudo apt-get install build-essential git cmake libhdf5-dev libvtk5-dev libboost-all-dev libcgal-dev libtinyxml-dev libqt4-dev libvtk5-qt4-dev
Re: TinyXML becomes a big problem
May have forgotten
>> InitFDTD('NrTS', 0, 'EndCriteria', 0)
on the last attempt.
Now I get a problem with libmpi_cxx:
>> InitFDTD('NrTS', 0, 'EndCriteria', 0)
ans =
scalar structure containing the fields:
ATTRIBUTE =
scalar structure containing the fields:
NumberOfTimesteps = 0
endCriteria = 0
>> RunOpenEMS( '.', 'nonexistant.xml', '' )
args = "nonexistant.xml"
/home/matt/opt/openEMS/share/openEMS/matlab/private/../../../../bin/openEMS: error while loading shared libraries: libmpi_cxx.so.20: cannot open shared object file: No such file or directory
Does this ever end?
>> InitFDTD('NrTS', 0, 'EndCriteria', 0)
on the last attempt.
Now I get a problem with libmpi_cxx:
>> InitFDTD('NrTS', 0, 'EndCriteria', 0)
ans =
scalar structure containing the fields:
ATTRIBUTE =
scalar structure containing the fields:
NumberOfTimesteps = 0
endCriteria = 0
>> RunOpenEMS( '.', 'nonexistant.xml', '' )
args = "nonexistant.xml"
/home/matt/opt/openEMS/share/openEMS/matlab/private/../../../../bin/openEMS: error while loading shared libraries: libmpi_cxx.so.20: cannot open shared object file: No such file or directory
Does this ever end?