ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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??
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.
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).
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!!)
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.