Re: [Nektar-users] Compile the last version nektar++ shows link errors
Dear Dave Very thanks for your help! I tried it, but it still shows the same link errors. I guess the errors possible from "cxx11". All the best! Wenjie Liu
-----Original Messages----- From: "David Moxey" <D.Moxey@exeter.ac.uk> Sent Time: 2018-06-06 18:49:45 (Wednesday) To: liuwenjie@hit.edu.cn Cc: nektar-users@imperial.ac.uk Subject: Re: [Nektar-users] Compile the last version nektar++ shows link errors
Hi Wenjie,
It looks like TinyXML might not have been installed correctly. One option might be for you to use the Debian package (libtinyxml-dev) and see if that is better?
Cheers,
Dave
On 6 Jun 2018, at 10:37, <liuwenjie@hit.edu.cn> <liuwenjie@hit.edu.cn> wrote:
Dear all I compile the last version nektar++, used g++ 8.0.1 and cmake 3.11.2 in 64 ubuntu. I tried some suggestions. It still shows the following link errors. Can you given me some advice? Very thanks!
Pde2016@ubuntu-1:~/libs/nektar++/build$ cmake -DCMAKE_INSTALL_PREFIX=/home/Pde2016/Bin/nektar-4.5.0 .. -- Found TinyXML: /usr/local/lib/libtinyxml.a -- Build Scotch: /home/Pde2016/libs/nektar++/build/ThirdParty/dist/lib/libscotch.a -- Found Zlib: /usr/lib/x86_64-linux-gnu/libz.so (version 1.2.8) -- Searching for Boost: -- -- Found Boost thread library: /usr/local/lib/libboost_thread.so -- -- Found Boost iostreams library: /usr/local/lib/libboost_iostreams.so -- -- Found Boost filesystem library: /usr/local/lib/libboost_filesystem.so -- -- Found Boost system library: /usr/local/lib/libboost_system.so -- -- Found Boost program_options library: /usr/local/lib/libboost_program_options.so -- -- Found Boost regex library: /usr/local/lib/libboost_regex.so -- Found BLAS and LAPACK: /usr/lib/liblapack.so;/usr/lib/libblas.so -- Configuring done -- Generating done -- Build files have been written to: /home/Pde2016/libs/nektar++/build Pde2016@ubuntu-1:~/libs/nektar++/build$ make [ 2%] Built target scotch-6.0.4 [ 2%] Built target tinyxml-2.6.2 [ 2%] Built target zlib-1.2.7 [ 2%] Built target boost [ 11%] Built target LibUtilities [ 14%] Built target StdRegions [ 17%] Built target SpatialDomains [ 19%] Built target LocalRegions [ 20%] Built target Collections [ 26%] Built target MultiRegions [ 28%] Built target GlobalMapping [ 35%] Built target FieldUtils [ 38%] Built target NekMeshUtils [ 38%] Linking CXX executable NekMesh ../../library/LibUtilities/libLibUtilities.so.4.5.0: undefined reference to `TiXmlDocument::TiXmlDocument(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' ../../library/LibUtilities/libLibUtilities.so.4.5.0: undefined reference to `operator>>(std::istream&, TiXmlNode&)' ../../library/SpatialDomains/libSpatialDomains.so.4.5.0: undefined reference to `TiXmlElement::SetAttribute(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> > const&)' ../../library/LibUtilities/libLibUtilities.so.4.5.0: undefined reference to `operator<<(std::ostream&, TiXmlNode const&)' ../../library/SpatialDomains/libSpatialDomains.so.4.5.0: undefined reference to `TiXmlElement::TiXmlElement(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' collect2: error: ld returned 1 exit status utilities/NekMesh/CMakeFiles/NekMesh.dir/build.make:583: recipe for target 'utilities/NekMesh/NekMesh' failed make[2]: *** [utilities/NekMesh/NekMesh] Error 1 CMakeFiles/Makefile2:262: recipe for target 'utilities/NekMesh/CMakeFiles/NekMesh.dir/all' failed make[1]: *** [utilities/NekMesh/CMakeFiles/NekMesh.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2
Thanks! All the best!
Wenjie Liu Lecturer, Department of Mathematics, Harbin Institute of Technology _______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
participants (1)
-
liuwenjie@hit.edu.cn