This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED] cmake error : could not find FindKDE4Internal.cmake

Tags: None
(comma "," separated)
Pepeg
Registered Member
Posts
2
Karma
0
Hello,
I'm trying to create a small kde4 app under ubuntu jaunty using cmake 2.6, but cmake returns an error.
I managed to build it successfully a few months ago but I reinstalled my system and now it won't work...

Here's the error returned by cmake :

Code: Select all
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:82 (FIND_PACKAGE):
  Could not find module FindKDE4Internal.cmake or a configuration file for   
  package KDE4Internal.                                                     

  Adjust CMAKE_MODULE_PATH to find FindKDE4Internal.cmake or set
  KDE4Internal_DIR to the directory containing a CMake configuration file for
  KDE4Internal.  The file will have one of the following names:

    KDE4InternalConfig.cmake
    kde4internal-config.cmake

Call Stack (most recent call first):
  CMakeLists.txt:4 (find_package)


Of course I have kdelibs5-dev and kdebase-dev packages installed, and I have the FindKDE4Internal.cmake file on my system, precisely in /usr/share/kde4/apps/cmake/modules/
I've been searching around for a few hours but I can't find a solution, I really need help.
Thanks

Last edited by Pepeg on Mon May 04, 2009 8:37 am, edited 1 time in total.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Try setting the environment variable: CMAKE_MODULE_PATH to /usr/share/kde4/apps/cmake/modules/ then running CMake.

Code: Select all
export CMAKE_MODULE_PATH=/usr/share/kde4/apps/cmake/modules
cmake


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Pepeg
Registered Member
Posts
2
Karma
0
Actually it was a -lot- simpler and I feel very stupid now, I'm such a noob v_v
As I said I successfully built my project a few months ago on my previous system and there were still cmake files in my directory (CMakeCache, CMakeTmp etc.) which were created back then. Deleting them simply solved my problem...
I don't know what is stored in those files but there must have been some parameters which obviously didn't match my brand new system.

Problem is solved, but thank you very much for taking time to answer to a newbie like me :)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]