Opened 6 years ago

Closed 6 years ago

#1025 closed defect/bug (fixed)

CMake: error when installing system wide due to dbus cmake file

Reported by: korrosa Owned by: KaZeR
Priority: major Milestone:
Component: install Version: git master
Severity: Keywords:
Cc:

Description

When trying to install system wide from svn for the first time, I do the following:

svn up in src directory
cmake /path/to/svn/dir/ in build directory
make in build directory
sudo make install in build directory

(Subsequent compiles I leave out the cmake bit).

I get the following error at the last command:

-- Installing: /usr/local/lib/navit/binding/libbinding_dbus.so
CMake Error at navit/binding/dbus/cmake_install.cmake:50 (FILE):
  file INSTALL cannot find
  "/path/to/svn/dir/navit/binding/dbus/org.navit_project.navit.service".
Call Stack (most recent call first):
  navit/cmake_install.cmake:60 (INCLUDE)
  cmake_install.cmake:37 (INCLUDE)

To 'fix' this I just went into /path/to/build/dir/navit/binding/dbus/cmake_install.cmake and altered the line

  FILE(INSTALL DESTINATION "/usr/local/share/dbus-1/services" TYPE FILE FILES "/path/to/svn/dir/navit/binding/dbus/org.navit_project.navit.service")

to

  FILE(INSTALL DESTINATION "/usr/local/share/dbus-1/services" TYPE FILE FILES "/path/to/svn/dir/navit/binding/dbus/org.navit_project.navit.service.in")

as org.navit_project.navit.service.in exists in the source directory, whilst org.navit_project.navit.service does not. No idea if this is the right thing to do to fix it, but it did mean that I could continue with the system wide install...

Attachments (2)

cmake-install-dbus.diff (621 bytes) - added by tryagain 6 years ago.
cmake-install-dbus2.diff (803 bytes) - added by tryagain 6 years ago.
New patch suggested by woldcitizen, see http://irclogs.navit.ie/%23navit-2012-05-09.log

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by tryagain

comment:1 Changed 6 years ago by tryagain

Korrosa, attached patch seems to be the right way to fix this issue.

But I did not test it as I do not install Navit system wide and don't use dbus. So please test if it works as expected.

Changed 6 years ago by tryagain

New patch suggested by woldcitizen, see http://irclogs.navit.ie/%23navit-2012-05-09.log

comment:2 Changed 6 years ago by tryagain

  • Resolution set to fixed
  • Status changed from new to closed

Patch suggested by worldcitizen is applied in r5091

Note: See TracTickets for help on using tickets.