944,183 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 6388
  • C++ RSS
Feb 10th, 2007
0

Problem using QT4 with codeblocks

Expand Post »
Hello all,

I know this is borderline off-topic, but then again QT4 is a C++ based
program...

I compiled QT4.1.1 on a fedora 4 OS.
I finally got all the registration issues worked so that it works in it's native X11 form as an executable.

However codeblocks is having trouble with it. I edited the the paths in the *wizard.script file to reflect the installed base, lib, and include directories, but it still is looking for QtCore4, which does not exist.

I edited the script to look for QtCore (without the 4) which does exist, but it still say it can't find it.

I suppose I would be bettter off if I KNEW what it expected from this directory, so I could find where THAT requirement lives, but I just don't know whrer to go from here...

C++ Syntax (Toggle Plain Text)
  1. ////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Qt4 project wizard
  4. //
  5. ////////////////////////////////////////////////////////////////////////////////
  6.  
  7. // globals
  8. QtPathDefault <- _T("/usr/local/Trolltech/Qt-4.1.1");
  9. QtPathDefaultInc <- _T("/usr/local/Trolltech/Qt-4.1.1/include");
  10. QtPathDefaultLib <- _T("/usr/local/Trolltech/Qt-4.1.1/lib");
  11. QtPath <- _T("/usr/local/Trolltech/Qt-4.1.1");
  12.  
  13. function BeginWizard()
  14. {
  15. local intro_msg = _T("Welcome to the new Trolltech Qt4 project wizard!\n" +
  16. "This wizard will guide you to create a new Qt4 project\n" +
  17. "using the Trolltech Qt4 cross-platform GUI toolkit\n\n" +
  18. "When you're ready to proceed, please click \"Next\"...");
  19.  
  20. local qtpath_msg = _T("Please select the location of Trolltech Qt4 on your computer.\n" +
  21. "This is the top-level folder where Qt4 was installed.\n" +
  22. "To help you, this folder must contain the subfolders\n" +
  23. "\"include\" and \"lib\".");
  24.  
  25. Wizard.AddInfoPage(_T("QtIntro"), intro_msg);
  26. Wizard.AddProjectPathPage();
  27. Wizard.AddGenericSelectPathPage(_T("QtPath"), qtpath_msg, _T("Qt's location:"), QtPathDefault);
  28. Wizard.AddCompilerPage(_T(""), _T("gcc*"), true, true);
  29. }
  30.  
  31. ////////////////////////////////////////////////////////////////////////////////
  32. // Qt's path page
  33. ////////////////////////////////////////////////////////////////////////////////
  34.  
  35. function OnLeave_QtPath(fwd)
  36. {
  37. if (fwd)
  38. {
  39. local dir = Wizard.GetTextControlValue(_T("txtFolder")); // txtFolder is the text control in GenericSelectPathPage
  40. local dir_nomacro = VerifyDirectory(dir);
  41.  
  42. if (dir_nomacro.IsEmpty())
  43. return false;
  44.  
  45. // verify include dependencies
  46. local dir_nomacro_inc = GetCompilerIncludeDir(dir, QtPathDefault, QtPathDefaultInc);
  47. if (dir_nomacro_inc.IsEmpty())
  48. return false;
  49. if (!VerifyFile(dir_nomacro_inc + wxFILE_SEP_PATH + _T("QtGui"), _T("QApplication"), _T("Qt's include"))) return false;
  50.  
  51. // verify library dependencies
  52. local dir_nomacro_lib = GetCompilerLibDir(dir, QtPathDefault, QtPathDefaultLib);
  53. if (dir_nomacro_lib.IsEmpty())
  54. 1,64 Top

I know you guys use this IDE, so I'm sure SOMEONE has the answer!
Thanks.
Similar Threads
JRM
Reputation Points: 130
Solved Threads: 75
Practically a Master Poster
JRM is offline Offline
618 posts
since Oct 2006
Feb 12th, 2007
0

Re: Problem using QT4 with codeblocks

Hi,

i am just starting to learn Qt4, so i can really answer your question.But check out http://www.qtcentre.org/forum/... most propable you will have your question answered!
Reputation Points: 23
Solved Threads: 12
Posting Whiz in Training
n.aggel is offline Offline
202 posts
since Nov 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: C++ const help
Next Thread in C++ Forum Timeline: Please help on this





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC