[opensuse-buildservice] CMake and 64bit
Hello, I added a new project qgis, which fails under 64bit openSUSE (due to the libraries). http://build.opensuse.org/package/show?package=qgis&project=home%3Adstoecker My question is: How can I tell cmake, that the installation directory of the final library is /usr/lib64 and not /usr/lib. The CMakeList.txt files must also be patched, as it hardcodes the path for the subdirectory: How can I fix that? Is there a variable I could enter instead of /lib/? Copying the files after the install step seems to be an option, but not a good one I would say. Any cmake-using-package packagers here? P.S. Anyone else using pine? I packaged alpine, the OS replacement :-) Ciao -- http://www.dstoecker.eu/ (PGP key available) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
2007/8/28, Dirk Stoecker <opensuse@dstoecker.de>:
Hello,
I added a new project qgis, which fails under 64bit openSUSE (due to the libraries).
http://build.opensuse.org/package/show?package=qgis&project=home%3Adstoecker
My question is: How can I tell cmake, that the installation directory of the final library is /usr/lib64 and not /usr/lib.
The CMakeList.txt files must also be patched, as it hardcodes the path for the subdirectory: How can I fix that? Is there a variable I could enter instead of /lib/?
Copying the files after the install step seems to be an option, but not a good one I would say.
Any cmake-using-package packagers here?
P.S. Anyone else using pine? I packaged alpine, the OS replacement :-)
Ciao
Hi, I'm not sure about what are you needing, will a rpm macro do?, or you need a system variable pointing to /usr/lib64 for cmake? Ciro --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2007-08-28 18:44:39 +0200, Dirk Stoecker wrote:
I added a new project qgis, which fails under 64bit openSUSE (due to the libraries).
http://build.opensuse.org/package/show?package=qgis&project=home%3Adstoecker
My question is: How can I tell cmake, that the installation directory of the final library is /usr/lib64 and not /usr/lib.
The CMakeList.txt files must also be patched, as it hardcodes the path for the subdirectory: How can I fix that? Is there a variable I could enter instead of /lib/?
Copying the files after the install step seems to be an option, but not a good one I would say.
Any cmake-using-package packagers here?
install 10.3 and kde4-filesystem. that will give you an /etc/rpm/macros.kde4. that has an macro called cmake_kde4 [[[ %cmake_kde4(d:) \ export CFLAGS=$RPM_OPT_FLAGS \ _kde_libsuffix=$(echo %_lib | cut -b4-) \ bdir=. \ %{-d:dir=%{-d*} \ mkdir $dir \ cd $dir \ bdir=.. } \ cmake -DCMAKE_INSTALL_PREFIX=%{_kde_prefix} -DLIB_SUFFIX="$_kde_libsuffix" -DCMAKE_BUILD_TYPE=%{_kde_build_type} $bdir \ %{nil} ]]] you could minimize it to: cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_SUFFIX="$(echo %_lib | cut -b4-)" hope this helps darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Marcus Rueckert escribió:
you could minimize it to: cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_SUFFIX="$(echo %_lib | cut -b4-)"
I Think we need a default rpm macro for this, other distros already have it. -- Cristian Rodríguez R. SUSE R&D "You don't have to burn books to destroy a culture. Just get people to stop reading them." --Ray Bradbury --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Marcus Rueckert wrote:
On 2007-08-28 18:44:39 +0200, Dirk Stoecker wrote:
I added a new project qgis, which fails under 64bit openSUSE (due to the libraries).
http://build.opensuse.org/package/show?package=qgis&project=home%3Adstoecker
My question is: How can I tell cmake, that the installation directory of the final library is /usr/lib64 and not /usr/lib.
The CMakeList.txt files must also be patched, as it hardcodes the path for the subdirectory: How can I fix that? Is there a variable I could enter instead of /lib/?
Copying the files after the install step seems to be an option, but not a good one I would say.
Any cmake-using-package packagers here?
install 10.3 and kde4-filesystem. that will give you an /etc/rpm/macros.kde4. that has an macro called cmake_kde4
[[[ %cmake_kde4(d:) \ export CFLAGS=$RPM_OPT_FLAGS \ _kde_libsuffix=$(echo %_lib | cut -b4-) \ bdir=. \ %{-d:dir=%{-d*} \ mkdir $dir \ cd $dir \ bdir=.. } \ cmake -DCMAKE_INSTALL_PREFIX=%{_kde_prefix} -DLIB_SUFFIX="$_kde_libsuffix" -DCMAKE_BUILD_TYPE=%{_kde_build_type} $bdir \ %{nil} ]]]
you could minimize it to: cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_SUFFIX="$(echo %_lib | cut -b4-)"
LIB_SUFFIX is not a CMake variable. It is defined by KDE4 to install the libraries in the right directory. # Suffix for Linux SET(LIB_SUFFIX CACHE STRING "Define suffix of directory name (32/64)" ) SET(LIB_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX}" CACHE PATH "The subdirectory relative to the install prefix where libraries will be installed (default is prefix/lib)" FORCE ) The CMakeLists.txt have to be fixed!
hope this helps
darix
-- andreas -- http://www.cynapses.org/ - cybernetic synapses
participants (5)
-
Andreas Schneider
-
Ciro Iriarte
-
Cristian Rodriguez
-
Dirk Stoecker
-
Marcus Rueckert