Am Donnerstag, 27. Juli 2017 um 21:57:54, schrieb Cor Blom <corne...@solcon.nl> > Op 27-07-17 om 20:11 schreef Kornel Benko: > > Have you requested LYX_USE_STD_REGEX? > > How do I do that? > > If yes, do you have the devel package for boost-regex installed? > > Don't know the package name for SuSE, on ubuntu it is for example > > libboost-regex1.55-dev > > I have those packages installed. They are called on Tumbleweed: > > - libboost_regex1_64_0 > - libboost_regex1_64_0-devel
Should be OK, but maybe we do not search > This is the last part of the log: > ... > [ 97s] CMake Error at CMakeLists.txt:814 (message): > [ 97s] Boost not found This means that the devel version boost-regex is not found. But maybe your installed cmake is not able to find such new boost version. Checking FindBoost.cmake in cmake 3.9, the last known boost are versions between 1.63.00 .. 1.64.99 though. So, what is your cmake version? OTOH, why use boost-regex? You have gcc7.1 installed, so you already may use std-regex (e.g. without boost) Nonetheless, you found a bug in our cmake files. You may want to try the attached. > Cor Kornel
signature.asc
Description: This is a digitally signed message part.
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6975751..5e58de8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -795,23 +795,23 @@ else() endif() if(LYX_EXTERNAL_BOOST) - message(STATUS "Searching for boost") if(NOT LYX_USE_STD_REGEX) + message(STATUS "Searching for boost") find_package(Boost COMPONENTS regex) - endif() - if(Boost_FOUND) - message(STATUS "Boost found") - message(STATUS "Boost-libs = ${Boost_LIBRARIES}") - set(Lyx_Boost_Libraries ${Boost_LIBRARIES}) - if (LYX_STDLIB_DEBUG) - # Comment from Jean-Marc Lasgouttes: - # In general, system boost libraries are incompatible with - # the use of stdlib-debug in libstdc++. See ticket #9736 for - # details. - message(WARNING "Compiling LyX with stdlib-debug and system boost libraries may lead to crashes. Consider using '-DLYX_STDLIB_DEBUG=OFF' or using '-DLYX_EXTERNAL_BOOST=OFF'") + if(Boost_FOUND) + message(STATUS "Boost found") + message(STATUS "Boost-libs = ${Boost_LIBRARIES}") + set(Lyx_Boost_Libraries ${Boost_LIBRARIES}) + if (LYX_STDLIB_DEBUG) + # Comment from Jean-Marc Lasgouttes: + # In general, system boost libraries are incompatible with + # the use of stdlib-debug in libstdc++. See ticket #9736 for + # details. + message(WARNING "Compiling LyX with stdlib-debug and system boost libraries may lead to crashes. Consider using '-DLYX_STDLIB_DEBUG=OFF' or using '-DLYX_EXTERNAL_BOOST=OFF'") + endif() + else() + message(FATAL_ERROR "Boost not found" ${Boost_ERROR_REASON}) endif() - else() - message(FATAL_ERROR "Boost not found" ${Boost_ERROR_REASON}) endif() else() if(NOT LYX_USE_STD_REGEX)