I'm having issues building it
[72/75] Linking CXX executable openEMS
FAILED: openEMS
: && /usr/bin/mpicxx -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -Wl,-rpath -Wl,/usr/lib -Wl,--enable-new-dtags -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -rdynamic CMakeFiles/openEMS_bin.dir/main.cpp.o -o openEMS -Wl,-rpath,/var/tmp/pamac-build-user/openems-git/src/build: libopenEMS.so.0.0.36 -lCSXCAD -lfparser -ltinyxml -lhdf5 -lsz -lz -Wl,-Bstatic -ldl -Wl,-Bdynamic -lm -lhdf5_hl /usr/lib/libboost_serialization.so.1.86.0 /usr/lib/libvtkIOXML.so.9.3 /usr/lib/libvtkIOXMLParser.so.9.3 /usr/lib/libvtkIOGeometry.so.9.3 /usr/lib/libvtkIOLegacy.so.9.3 /usr/lib/libvtkIOPLY.so.9.3 /usr/lib/libvtkIOCore.so.9.3 /usr/lib/libvtkCommonExecutionModel.so.9.3 /usr/lib/libvtkCommonDataModel.so.9.3 /usr/lib/libvtkCommonTransforms.so.9.3 /usr/lib/libvtkCommonMath.so.9.3 /usr/lib/libvtkCommonCore.so.9.3 /usr/lib/libvtksys.so.9.3 -ldl /usr/lib/libtbb.so.12.13 -lgomp -Wl,-Bstatic -lpthread -Wl,-Bdynamic /usr/lib/libvtkkissfft.so.9.3 -lmpi && :
/usr/bin/ld: libopenEMS.so.0.0.36: undefined reference to `boost::program_options::abstract_variables_map::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
/usr/bin/ld: libopenEMS.so.0.0.36: undefined reference to `boost::thread::start_thread_noexcept()'
... (more libopenEMS errors)...
/usr/bin/ld: libopenEMS.so.0.0.36: undefined reference to `boost::program_options::to_internal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: libopenEMS.so.0.0.36: undefined reference to `boost::program_options::validate(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<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> >*, int)'
collect2: error: ld returned 1 exit status
[73/75] Linking CXX shared library nf2ff/libnf2ff.so.0.1.0
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting...
Pinned Comments
ra1nb0w commented on 2022-11-15 09:04 (UTC) (edited on 2022-11-15 09:05 (UTC) by ra1nb0w)
A few notes to use openEMS with Octave:
hdf5.h
and openEMS's setup fails. You need to patch setup.m present in /usr/share/openEMS/matlab withThen you need to build the dynamic-load module
Now you can use octave as always.