Op 01-06-17 om 09:57 schreef Kornel Benko:
Am Donnerstag, 1. Juni 2017 um 08:56:06, schrieb Cor Blom <corne...@solcon.nl>
What is this BuildService about?
This buildservice is used to build the openSUSE distribution. It's like
Ubuntu's PPA. I want to see if cmake is a usuable alternative for
building the lyx package for openSUSE. I am the maintainer of the
official package in the distro. And I like a challenge.
make
Here it should be
'make package'
If I understand correctly this is for creating a package on a local
computer, but not usable for distribution packaging.
make install
Here: sudo rpm -U lyx23-2.3.0-something.rpm
(the "%cmake" macro inheritis all kind of openSUSE settings).
Which ones?
Expanded it becomes this:
find . -name CMakeLists.txt -exec sed -i -re
'/^[[:blank:]]*[sS][eE][tT][[:blank:]]*\([[:blank:]]*(CMAKE_BUILD_TYPE|CMAKE_COLOR_MAKEFILE|CMAKE_INSTALL_PREFIX|CMAKE_VERBOSE_MAKEFILE).*\)/{s/^/#IGNORE
/}' '{}' +
mkdir -p build
cd build
/usr/bin/cmake .. '-GUnix Makefiles' -DCMAKE_INSTALL_PREFIX:PATH=/usr
-DINCLUDE_INSTALL_DIR:PATH=/usr/include
-DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc
-DSHARE_INSTALL_PREFIX:PATH=/usr/share
-DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib64 -DCMAKE_BUILD_TYPE=RelWithDebInfo
'-DCMAKE_C_FLAGS=-fmessage-length=0 -grecord-gcc-switches -O2 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -g -DNDEBUG'
'-DCMAKE_CXX_FLAGS=-fmessage-length=0 -grecord-gcc-switches -O2 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -g -DNDEBUG'
'-DCMAKE_Fortran_FLAGS=-fmessage-length=0 -grecord-gcc-switches -O2
-Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -g -DNDEBUG'
'-DCMAKE_EXE_LINKER_FLAGS=-Wl,--as-needed -Wl,--no-undefined -Wl,-z,now'
'-DCMAKE_MODULE_LINKER_FLAGS=-Wl,--as-needed -Wl,--no-undefined
-Wl,-z,now' '-DCMAKE_SHARED_LINKER_FLAGS=-Wl,--as-needed
-Wl,--no-undefined -Wl,-z,now' -DLIB_SUFFIX=64
-DCMAKE_SKIP_RPATH:BOOL=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
-DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=OFF
-DCMAKE_COLOR_MAKEFILE:BOOL=OFF -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF
-DCMAKE_MODULES_INSTALL_DIR=/usr/share/cmake/Modules -DLYX_INSTALL=ON
-DLYX_USE_QT=QT5 -DLYX_EXTERNAL_BOOST=OFF -DLYX_PROGRAM_SUFFIX=ON
-DLYX_ASPELL=OFF -DLYX_HUNSPELL=ON -DLYX_ENCHANT=ON
I'm stuck with the "make install" part. The first two steps are running
fine. I get the following error:
make: *** No rule to make target 'install'. Stop.
That is surprising. What is the output of 'make help'? It should be the list
of all targets.
Here it is:
#make help|grep install
... install/local
... install/strip
... list_install_components
... install
As I don't build locally I don't have access to "make help". I will look
into that later, when I've more time. (I'm not in a hurry to solve this).
Thanks for the help,
Cor