Project

General

Profile

Actions

Emulator Issues #6682

closed

Linux compile: cmake -D CMAKE_INSTALL_PREFIX=/new/path incorrectly applied

Added by roland over 10 years ago. Updated over 3 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

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.

Actions #1

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.

Actions #2

Updated by parlane over 10 years ago

  • Status changed from New to New
Actions #3

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.

Actions #4

Updated by JosJuice over 3 years ago

  • Status changed from New to Fixed

Closing as fixed unless someone says otherwise.

Actions

Also available in: Atom PDF