[opensuse-packaging] -DCMAKE_INSTALL_PREFIX does not work
This problem exists in nearly every package based on cmake. When I am trying to build a cmake application for KDE3 (where it should be in /opt/kde3 prefix), it gets installed in /usr. I already abandoned several packages and in other ones I manually patched the makefiles. Is there a general way, or CMAKE is just a buggy crap? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Dne St 29. ledna 2014 11:50:50, Ilya Chernykh napsal(a):
This problem exists in nearly every package based on cmake. When I am trying to build a cmake application for KDE3 (where it should be in /opt/kde3 prefix), it gets installed in /usr. I already abandoned several packages and in other ones I manually patched the makefiles. Is there a general way, or CMAKE is just a buggy crap?
The INSTALL_PREFIX is not what you expect it to be. Like in autotools if you specify --prefix then it overrides all other nested values. It sadly is not usually the case in cmake. Mostly it depends on how the CMakeLists.txt are written. Cheers Tom
On Wednesday 29 January 2014 13:09:16 Tomáš Chvátal wrote:
Dne St 29. ledna 2014 11:50:50, Ilya Chernykh napsal(a):
This problem exists in nearly every package based on cmake. When I am trying to build a cmake application for KDE3 (where it should be in /opt/kde3 prefix), it gets installed in /usr. I already abandoned several packages and in other ones I manually patched the makefiles. Is there a general way, or CMAKE is just a buggy crap?
The INSTALL_PREFIX is not what you expect it to be.
Like in autotools if you specify --prefix then it overrides all other nested values. It sadly is not usually the case in cmake. Mostly it depends on how the CMakeLists.txt are written.
The CMakeLists.txt does not mention prefix at all. In no file I found any prefix override yet it always is set to /usr. I contacted the upstream and they say I should specify -DCMAKE_INSTALL_PREFIX but it does not help! I already spent two days for it as if I had nothing to do besides! This is so frustrating! -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Dne St 29. ledna 2014 13:12:45, Ilya Chernykh napsal(a):
The CMakeLists.txt does not mention prefix at all. In no file I found any prefix override yet it always is set to /usr.
I contacted the upstream and they say I should specify -DCMAKE_INSTALL_PREFIX but it does not help! I already spent two days for it as if I had nothing to do besides! This is so frustrating!
Well point us the package maybe we will spot something that could solve your ache. Cheers Tom
On Wednesday 29 January 2014 11:50:50 Ilya Chernykh wrote:
This problem exists in nearly every package based on cmake. When I am trying to build a cmake application for KDE3 (where it should be in /opt/kde3 prefix), it gets installed in /usr. I already abandoned several packages and in other ones I manually patched the makefiles. Is there a general way, or CMAKE is just a buggy crap?
Ilya, Can you copy&paste that part of the spec-file where you call cmake ? For KDE4 and KF5 we are utilizing this parameter and there things are working fine. Raymond -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Wednesday 29 January 2014 13:26:25 Raymond Wooninck wrote:
On Wednesday 29 January 2014 11:50:50 Ilya Chernykh wrote:
This problem exists in nearly every package based on cmake. When I am trying to build a cmake application for KDE3 (where it should be in /opt/kde3 prefix), it gets installed in /usr. I already abandoned several packages and in other ones I manually patched the makefiles. Is there a general way, or CMAKE is just a buggy crap?
Ilya,
Can you copy&paste that part of the spec-file where you call cmake ? For KDE4 and KF5 we are utilizing this parameter and there things are working fine.
Raymond
I tried %cmake .. -DCMAKE_INSTALL_PREFIX=/opt/kde3 \ -DCMAKE_VERBOSE_MAKEFILE=OFF \ -DQT_PREFIX_DIR=/usr/lib/qt3 \ -DQT_LIBRARY_DIR=/usr/lib/qt3/%_lib \ -DWITH_ALL_FEATURES=ON \ -DWITH_TIFF=OFF \ -DWITH_ASPELL=OFF \ -DWITH_HUNSPELL=OFF \ -DWITH_MAD=OFF \ -DWITH_OPENEXR=OFF \ -DWITH_LIBART=OFF Also just cmake without the %. Also tried to put the .. in the end. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (3)
-
Ilya Chernykh
-
Raymond Wooninck
-
Tomáš Chvátal