You are not logged in.

ivanrolim

Beginner

  • "ivanrolim" started this thread

Posts: 2

Location: Brazil (Rio de janeiro)

Occupation: PHP and postgresql developer

  • Send private message

1

Tuesday, January 9th 2007, 12:08pm

KDE compilation (KDE 2 and QT): headers missing

Well, I am studying KDE programming with gcc since last month. I have bought a great book, KDe 2Qt programming Bible, from Arthur Griffith.

The problem is, I dont get its examples executed properly :(
It catches some errors, and I already know why: no header files :rolleyes: However, all was installed by YAST (automake, gcc, gcc-c++, kde3*, kde3*-devel, qt3* and qt3*-devel), in SUSE 9.3.

I just wanted to know which RPM file (or KDE tar.gz file) I may be missing, because even on google, terms like `ktactionmanager.h`, `ktexposuresheet.h` and `kttimeline.h` does not have any answer or information about its `owner file` (RPM or `what is`/ `where is found`).

Before, the compiler asked for ktmainwindow.h. Downloading it from KDE doesnt work, due to several other files needed.

# make
g++ -c -I/usr/lib/qt3/include -I/opt/kde3/include -o test.o test.cpp
In file included from test.h:6,
from test.cpp:8:
/opt/kde3/include/ktmainwindow.h:30:29: ktactionmanager.h: No such file or directory
/opt/kde3/include/ktmainwindow.h:31:28: ktviewdocument.h: No such file or directory
/opt/kde3/include/ktmainwindow.h:33:29: ktexposuresheet.h: No such file or directory
/opt/kde3/include/ktmainwindow.h:34:24: properties.h: No such file or directory
/opt/kde3/include/ktmainwindow.h:35:25: preferences.h: No such file or directory
/opt/kde3/include/ktmainwindow.h:36:20: scenes.h: No such file or directory
/opt/kde3/include/ktmainwindow.h:37:21: brushes.h: No such file or directory
/opt/kde3/include/ktmainwindow.h:38:26: colorpalette.h: No such file or directory
/opt/kde3/include/ktmainwindow.h:39:19: tools.h: No such file or directory
/opt/kde3/include/ktmainwindow.h:40:21: library.h: No such file or directory
/opt/kde3/include/ktmainwindow.h:41:24: kttimeline.h: No such file or directory
/opt/kde3/include/ktmainwindow.h:42:29: gltopcameraview.h: No such file or directory
/opt/kde3/include/ktmainwindow.h:43:30: glsidecameraview.h: No such file or directory
/opt/kde3/include/ktmainwindow.h:44:20: status.h: No such file or directory
/opt/kde3/include/ktmainwindow.h:45:19: about.h: No such file or directory
/opt/kde3/include/ktmainwindow.h:46:22: document.h: No such file or directory
/opt/kde3/include/ktmainwindow.h:47:20: import.h: No such file or directory
/opt/kde3/include/ktmainwindow.h:48:20: export.h: No such file or directory
/opt/kde3/include/ktmainwindow.h:49:29: ktcamerapreview.h: No such file or directory
/opt/kde3/include/ktmainwindow.h:50:28: ktviewdocument.h: No such file or directory
/opt/kde3/include/ktmainwindow.h:53:25: dmainwindow.h: No such file or directory
/opt/kde3/include/ktmainwindow.h:55:25: ktstatusbar.h: No such file or directory

Thanks really for any help,
I`m eager to advance in this area because I do trust in open source solutions in Linux systems using KDE as the main window manager.

Ivan
........Endless Optimization...

ivanrolim

Beginner

  • "ivanrolim" started this thread

Posts: 2

Location: Brazil (Rio de janeiro)

Occupation: PHP and postgresql developer

  • Send private message

2

Tuesday, January 9th 2007, 12:34pm

Ok fixed! ktmainwindow is deprecated!

Well, rather than being sorry about that, I know its an important thing to know, due to the fact many people are programming with KDE2 (due to valuable books and bibles around), and some class names were deprecated, that is, no longer in use.

The correct header file is kmainwindow.h.

Also, beware of KTMainWindow() function. Its also deprecated :(
Many can say `but this is VERY old`, but some are still getting stuck because of no google matches. I hope this can be useful :)
........Endless Optimization...