Emulator Issues #6682
closedLinux compile: cmake -D CMAKE_INSTALL_PREFIX=/new/path incorrectly applied
0%
Description
Building for Linux using a custom installation path fails since a couple of installed files do not obey the set path correctly. The cmake call looks like this:
cmake -D CMAKE_INSTALL_PREFIX=~/progs/testing ..
Thus installation should be done into /home/username/progs/testing instead of /usr . The following actually happens:
- /home/username/progs/testing/usr/share/dolphin-emu/* (should be /home/username/progs/testing/share/dolphin-emu/*)
- /home/username/progs/testing/share/pixmaps/dolphin-emu.xpm (this is correct)
- /home/username/progs/testing/share/applications/dolphin-emu.desktop (this is correct)
- /home/username/progs/testing/lib/libpolarssl.a (this is correct)
- /home/username/progs/testing/share/locale/* (this is correct)
- /home/username/progs/testing/usr/bin/dolphin-emu (should be /home/username/progs/testing/bin/dolphin-emu)
Hence the "usr/share/dolphin-emu" and "usr/bin/dolphin-emu" installs into the wrong location. To make worse things worse if you try to move the installed files to the correct location dolphin fails to start because it expects to find the files in the wrong locations.
Updated by roland over 10 years ago
It looks like the problem is due to some path not changing properly. If the cmake is called against after compiling and make install is called some path obey the new path set and others not, namely those marked as incorrect in the initial bug report. Hence the bug seems to be that not all path are updated for installation if cmake is called more than once.
Updated by v1993 over 3 years ago
Can not reproduce on current git: all of binary files install to correct path. Proposing to close as fixed.
Updated by JosJuice over 3 years ago
- Status changed from New to Fixed
Closing as fixed unless someone says otherwise.