codelite.desktop not generated by cmake

Discussion about CodeLite development process and patches
qdii
CodeLite Enthusiast
Posts: 13
Joined: Sun Nov 13, 2011 10:34 pm
Genuine User: Yes
IDE Question: C++
Contact:

codelite.desktop not generated by cmake

Post by qdii »

I can see that the old ./configure had a custom line

Code: Select all

sed s@%%PREFIX%%@$prefix@g Runtime/codelite.desktop.template >> Runtime/codelite.desktop
That line generated codelite.desktop from codelite.desktop.template
Yet I cannot find an equivalent within the CMakeLists.txt, and make install fails on me.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: codelite.desktop not generated by cmake

Post by eranif »

qdii wrote:Yet I cannot find an equivalent within the CMakeLists.txt
Ok, will fix this
qdii wrote:and make install fails on me
What do you mean by this? Can you show us the output you get from make install?

Eran
Make sure you have read the HOW TO POST thread
qdii
CodeLite Enthusiast
Posts: 13
Joined: Sun Nov 13, 2011 10:34 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: codelite.desktop not generated by cmake

Post by qdii »

I believe make install fails because the file cannot be found

Code: Select all

CMake Error at LiteEditor/cmake_install.cmake:204 (FILE):
  file INSTALL cannot find
  "/tmp/portage/dev-util/codelite-9999/work/codelite-9999/Runtime/codelite.desktop".
Call Stack (most recent call first):
  cmake_install.cmake:62 (INCLUDE)


make: *** [install] Error 1
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: codelite.desktop not generated by cmake

Post by eranif »

mm, I see what you mean... I did not notice this before since I already had that file on my system (from the old configure script)
Try updating now, should be fixed

Eran
Make sure you have read the HOW TO POST thread
qdii
CodeLite Enthusiast
Posts: 13
Joined: Sun Nov 13, 2011 10:34 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: codelite.desktop not generated by cmake

Post by qdii »

Seems to be working fine :)
good job!
qdii
CodeLite Enthusiast
Posts: 13
Joined: Sun Nov 13, 2011 10:34 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: codelite.desktop not generated by cmake

Post by qdii »

Actually it only partly worked.
The file is created, but the path is not set correctly because you used $prefix and not ${CMAKE_INSTALL_PREFIX}, resulting in codelite no longer having an icon :/

I have added a patch to fix that here.
Post Reply