LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-06-2003, 03:55 AM   #1
jester_fu
LQ Newbie
 
Registered: Aug 2003
Location: Australia
Posts: 8

Rep: Reputation: 0
Unhappy Kdevelop C++ HELP


Hi,

I'm a recent linux convert and i'm trying to implement a simple hello word kde widget app using Debian woody distro, KDE 2.2.2, KDevelope 2.1 and Qt 3.1.2. My problem is this.... i use the wizard to generat a kde - mini application (in keeping with the kde tutorials) and all goes well. My app compiles, but fails at make throwing compiler error " 'objectDict' Undeclared ". As far as i can tell, this is part of the kunload library (kunload.h), which is on my pc, i've done a locate and i find it... so i'm assuming it is actually there.

I really don't know where to start with this, and have spent much time removing my hair trying to figure it out... I'm convinced it has something to do with KDevelop pointing to the correct directory at make time.... but i can't seem to change it to the location of kunload.h and the other k prefixed headers. TAm i on the right track?? Where do i change this??

Please help...

Scott Morris
 
Old 08-06-2003, 08:09 AM   #2
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
Which tutorials are you following?

I'm just starting QT-Programming and C++ (refreshing my memories) as well (later on I'll be posting a pointer question hehe).

I followed the first basic tutorial on the KDevelop site, it was pretty easy.

As for your question, maybe its just a question of adding an:

Code:
#include <kunload.h>
but since I'm not sure which tutorial you're following or what your code looks like, its hard to say for sure.
 
Old 08-06-2003, 07:56 PM   #3
jester_fu
LQ Newbie
 
Registered: Aug 2003
Location: Australia
Posts: 8

Original Poster
Rep: Reputation: 0
Yeah.... I wish it was that easy.

That doesn't work, not something i'd tryed before my original post, but i sometimes forget the obvious. The tutorial i was doing was just the first KDE "hello world" app using widgets (tutorial 1). I can't even get the empty project to compile. I've tryed commenting out the offending lines of code, but it just generates more errors.

I'm fairly sure it's a library/path problem, but i'm new to linux and just don't know where to start.

RE: You pointer question... fire away, my C++ is pretty good (have been programming consistently for about 2 years under Micro$soft Vi$ual $tudio and getting paid!!).

Thanks for the suggestion... i'm really stuck with this.
 
Old 08-07-2003, 09:54 AM   #4
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
Quote:
Originally posted by jester_fu
RE: You pointer question... fire away, my C++ is pretty good (have been programming consistently for about 2 years under Micro$soft Vi$ual $tudio and getting paid!!).

Thanks for the suggestion... i'm really stuck with this.

Thanks As it is, I figured out my pointer question, turns out it wasn't a pointer problem per-say but the way QObject::connect works. It still isn't working properly, but now I've got a more concrete error to chase...

As for your problem, you say you can't compile the blank project?

What error do you get? Do you use the new project wizard? If not, try it...what errors do you get in the step where it runs the make? (I mean when you use the wizard and have a blank project)

One place you might want to browse (I found TONS of solutions to all the little annoyances I ran into last month when I started) the forums on www.kdevelop.org (the link's at the top right).
 
Old 08-07-2003, 07:45 PM   #5
jester_fu
LQ Newbie
 
Registered: Aug 2003
Location: Australia
Posts: 8

Original Poster
Rep: Reputation: 0
I'm using the Wizard. There are no errors up until the point where i actually make the project, then i get the error i mentioned before " 'objectDict' Undeclared ". I was kind of hoping someone else has had this problem, and they could point me in the right direction.... at this stage, it looks as though i'll be hacking out my own solution (somehow ). I'm starting to think it has to do with the fact that my Debian distro has BOTH autoconf2.53 and 2.13. I read in the KDevelop forums an issue where these things conflict, but i can't find the posting again (should have bookmarked that one!). I'm still at two minds as whether that is the actual cause of the problem, because i can get a console application to compile no hassles.

Damn.... even Microsoft have more documentation on their packages than KDevelop. I understand that it's free, but i'm just finding it really hard to make the transition. I wont be going back to Linux, but i'll certainly have to re-think my use of KDevelop real soon. I'm meant to be using it to develop my finaly year project for my engineering degree.....

Vi La Penguin.... boo to KDevelop (at this stage!!)
 
Old 08-07-2003, 07:47 PM   #6
jester_fu
LQ Newbie
 
Registered: Aug 2003
Location: Australia
Posts: 8

Original Poster
Rep: Reputation: 0
Oooops, i meant i wont be going back to Window$.

Viva La Penguin!
 
Old 08-08-2003, 12:23 PM   #7
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
Quote:
Originally posted by jester_fu
I'm starting to think it has to do with the fact that my Debian distro has BOTH autoconf2.53 and 2.13.
I read about that problem when I was digging last month...damn, I wish I had bookmarked it, but I'm running Mdk 9.1 and I didn't get that problem so I didn't dwell...but I'll keep my eye out

As for the docs...well obviously its not MSDN.net or anything...but I find that KDevelop is very capable. It just takes a bit of practice to find the quirks...

Like this one annoyed the hell out of me til I figured it out...I'd design a UI in qt-designer, which would generate a .h and .cpp file in my project, I'd go into the .cpp and add stuff in the constructor for my ui class...but then I'd make the project and my stuff would disappear!!!

Well it turns out that the .h and .cpp file is regenerated from the .ui file from qt-designer when you do a make all (or something like that...)...so what you need to do is make another class that inherits your base ui object and add your code there! Grrrrr...had fun with that one for a few days lemme tell yah.

All in all tho, I wouldn't give up on KDevelop just yet...its maturing quickly and its definitely useable...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDevelop PhuckFonix Linux - Software 1 05-11-2004 11:43 AM
KDevelop Pedroski Linux - Software 4 11-01-2003 12:47 PM
using kdevelop 2.0 vytalelementz Linux - Software 0 02-07-2003 12:54 PM
need help with Kdevelop and QT!!! FreakboY Programming 9 01-13-2003 10:27 PM
KDevelop 2.0 solar_neutrino Linux - Software 1 11-12-2002 09:39 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration