Am Sonntag, 3. Juli 2016 um 19:00:15, schrieb Georg Baum <georg.b...@post.rwth-aachen.de> > Kornel Benko wrote: > > > I cannot compile anymore with this change with cmake. > > Previously selecting LYX_3RDPARTY_BUILD, I was able to compile and bind > > with our hunspell sources. > > Now the compilation is OK too, but if it comes to bind I have many > > unsatisfied references. > > > > Will try to find out whats wrong, but I remember having problems before. > > That's why hunspel and iconv/zlib were separated. (I mean > > 'if(LYX_3RDPARTY_BUILD)' on separate places in CMakeLists.txt) > > If you want to use the included hunspell and not the included zlib and > libiconv then there should be separate configuration options. Having a > LYX_3RDPARTY_BUILD option that enables all three libs on windows but only > hunspell on unix is too confusing IMHO. > > > Took me some hours to find out, because also my hard disk seems to have > > problems, so I could not immediately determine whats wrong. > > Cleaning tree, changing compiler, checking packages, and so on. > > I am sorry for that. There was indeed a linker error, but not std::string > related. To me the CMakeLists.txt file provided by libiconv looks a bit > experimental, it could probably be cleaned up more. Does it work for you > with c7bfa7d34197f? >
No, sorry. Looks like the same quadrillion error messages. Trying now with clean build tree: ... Same result. As an example, this is the command line causing error if using 'make check_layout': cd /usr/BUILD/BuildLyxGitQt5.6main-gcc5.3/src/tests && /usr/bin/cmake -E cmake_link_script CMakeFiles/check_layout.dir/link.txt --verbose=1 /usr/local/gcc5.3/bin/g++ -Wall -Wunused-parameter --std=c++14 -fno-strict-aliasing -Wall -Wunused-parameter --std=c++14 -fno-strict-aliasing -O0 -g3 -D_DEBUG CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/insets/InsetLayout.cpp.o CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/Color.cpp.o CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/Counters.cpp.o CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/Floating.cpp.o CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/FloatList.cpp.o CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/FontInfo.cpp.o CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/Layout.cpp.o CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/LayoutFile.cpp.o CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/Lexer.cpp.o CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/ModuleList.cpp.o CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/Spacing.cpp.o CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/TextClass.cpp.o CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/tests/check_layout.cpp.o CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/tests/boost.cpp.o CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/tests/dummy_functions.cpp.o -o ../../bin/check_layout -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -rdynamic ../../lib/libsupport.a ../../lib/libzlibstatic.a ../../lib/libiconv.a -lmagic /usr/BUILD/BuildQt5/5.6/gcc_64/lib/libQt5Gui.so.5.6.0 /usr/BUILD/BuildQt5/5.6/gcc_64/lib/libQt5Core.so.5.6.0 -Wl,-rpath,/usr/BUILD/BuildQt5/5.6/gcc_64/lib CMakeFiles/check_layout.dir/usr2/src/lyx/lyx-git/src/insets/InsetLayout.cpp.o: In function `lyx::InsetLayout::InsetLayout()': /usr2/src/lyx/lyx-git/src/insets/InsetLayout.cpp:47: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string()' /usr2/src/lyx/lyx-git/src/insets/InsetLayout.cpp:47: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string()' /usr2/src/lyx/lyx-git/src/insets/InsetLayout.cpp:47: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string()' /usr2/src/lyx/lyx-git/src/insets/InsetLayout.cpp:47: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string()' /usr2/src/lyx/lyx-git/src/insets/InsetLayout.cpp:47: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string()' /usr2/src/lyx/lyx-git/src/insets/InsetLayout.cpp:47: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string()' and so on. I see the use of ../../lib/libzlibstatic.a and ../../lib/libiconv.a. There is some other bug I fear. Do you see anything missing? > Georg Kornel
signature.asc
Description: This is a digitally signed message part.