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

[Solved]CMake Error

Tags: None
(comma "," separated)
User avatar
Kusa
Registered Member
Posts
25
Karma
0
OS

[Solved]CMake Error

Fri Aug 07, 2009 6:54 pm
Hello, i try to be a new KDE Developper and i'm on KDE techbase but when i try to compile my poor helloworld, cmake gives me this error:
Code: Select all
CMake Error at /usr/share/cmake/Modules/FindKDE4.cmake:84 (MESSAGE):                     
  ERROR: cmake/modules/FindKDE4Internal.cmake not found in                               
  /home/kusa/.kde4/share/apps;/var/lib/mandriva/kde4-profiles/one/share/apps;/var/lib/mandriva/kde4-profiles/common/share/apps;/usr/share/apps
Call Stack (most recent call first):
  CMakeLists.txt:4 (find_package)


-- Configuring incomplete, errors occurred!


I'm on Mandriva one 2009.1 and i don't know how i can resolve this error.

Thanks for help and sorry for my poor english :/

Last edited by Kusa on Thu Aug 13, 2009 7:52 am, edited 1 time in total.


New french developper!!!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: CMake Error

Fri Aug 07, 2009 9:06 pm
It appears to be a case-sensitive issue. Please check in /usr/share/cmake/Modules for "FindKDE4Internal.cmake"


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Kusa
Registered Member
Posts
25
Karma
0
OS

Re: CMake Error

Sat Aug 08, 2009 4:43 am
Thanks for your answer, i look at this file and it doesn't exist... i just have FindKDE4.cmake :/ . How can i have FindKDE4Internal?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: CMake Error

Sat Aug 08, 2009 7:25 am
Have you installed the kdelibs and qt development packages?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Kusa
Registered Member
Posts
25
Karma
0
OS

Re: CMake Error

Sat Aug 08, 2009 10:38 pm
With the package task-kde4-devel, cmake can build perfectly ;D.
But when i compile my code, i have an error with kil8n i dont' know why.... but i think it's just an include to add.

Thank you so much.


New french developper!!!
User avatar
Kusa
Registered Member
Posts
25
Karma
0
OS

Re: CMake Error  Topic is solved

Sun Aug 09, 2009 8:31 pm
Hummm i don't know if it's normal but hello world can't compile...:/
i try with the same code in Kde Techbase and it doesn't work.

Code: Select all
#include <KApplication>
#include <KAboutData>
#include <KCmdLineArgs>
#include <KMessageBox>
 
int main (int argc, char *argv[])
{
    KAboutData aboutData(
                         // The program name used internally.
                         "tutorial1",
                         // The message catalog name
                         // If null, program name is used instead.
                         0,
                         // A displayable program name string.
                         ki18n("Tutorial 1"),
                         // The program version string.
                         "1.0",
                         // Short description of what the app does.
                         ki18n("Displays a KMessageBox popup"),
                         // The license this code is released under
                         KAboutData::License_GPL,
                         // Copyright Statement
                         ki18n("(c) 2007"),
                         // Optional text shown in the About box.
                         // Can contain any information desired.
                         ki18n("Some text..."),
                         // The program homepage string.
                         "http://tutorial.com/",
                         // The bug report email address
                         "submit@bugs.kde.org");
 
    KCmdLineArgs::init( argc, argv, &aboutData );
    KApplication app;
    KGuiItem yesButton( i18n( "Hello" ), QString(),
                        i18n( "This is a tooltip" ),
                        i18n( "This is a WhatsThis help text." ) );
    KMessageBox::questionYesNo( 0, i18n( "Hello World" ),
                                i18n( "Hello" ), yesButton );
    return 0;
}


this is the code in KDE Techbase and this is error:
Code: Select all
[100%] Building CXX object CMakeFiles/helloworld.dir/src/main.o                           
/home/kusa/Documents/KDE/src/main.cpp: In function ‘int main(int, char**)’:
/home/kusa/Documents/KDE/src/main.cpp:8: erreur: ‘kil8n’ was not declared in this scope
make[2]: *** [CMakeFiles/helloworld.dir/src/main.o] Erreur 1
make[1]: *** [CMakeFiles/helloworld.dir/all] Erreur 2
make: *** [all] Erreur 2


Edit: it resolve with include KLocale, anyone can modify the code in KDE Techbase?


New french developper!!!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: CMake Error

Mon Aug 10, 2009 4:17 am
KDE Techbase is a wiki, allowing anyone to make changes. If the document has been locked, please contact the KDE Webmasters at kde-www@kde.org who will be able to change it.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

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