![]() Registered Member ![]()
|
Hi all, on the road to kde devland (like hans
![]() ![]() This is my CMakeLists.txt (everything is good):
And this is my appnameui.rc(called kxmlwindowui.rc):
And finally my kxmlwindow.cpp and main.cpp ![]()
I have this message when i launch my app:
Thanks a lot for your help. |
![]() Administrator ![]()
|
You need to change the following line in your CMakeLists.txt file to be as follows:
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Same problem with install(FILES kxmlwindowui.rc DESTINATION ${DATA_INSTALL_DIR}/KXmlWindow)
![]() I have a folder called KXmlWindow, see ls command:
In Src, i've main.cpp, mainwin.cpp, mainwin.h files... i don't understand KAction, QAction is more usably i think.
New french developper!!!
|
![]() Administrator ![]()
|
Try installing it to: ${DATA_INSTALL_DIR}/kmxlguiwindow instead.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Same Problem... my file .rc is in good place or not?
New french developper!!!
|
![]() Administrator ![]()
|
Can you please post the "mainwin.h" file so I can compile and test the source code?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Here comes
![]()
|
![]() Administrator ![]()
|
It worked for me.... I did make some small changes to the CMakeLists.txt file though.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Hummm very strange, i try with your CMakeLists but it's the same problem, where did you place your kxmlwindowui.rc?
New french developper!!!
|
![]() Administrator ![]()
|
When I ran CMake, I used the following command:
You then need to run "make install" ( may need sudo )
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Ok it's resolved but if i don't want to compile it with root??
Thank you a lot for your help ![]()
New french developper!!!
|
![]() Administrator ![]()
|
You don't have to compile as root, but you will need to install as root.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
You don't have to install as root if you're not going to install in a system directory like /usr (you can install, for example, in a special directory in you $HOME directory). But the point is that you have to install the app (with make install) to copy the .rc files to the correct directory.
Of course, running the app from a special KDE directory in your $HOME takes a few more extra steps. ![]()
Jucato, proud to be a member of KDE forums since 2008-Oct.
|
Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]