Author Topic: Code::Blocks for QT (cross-plattform)  (Read 8327 times)

mpk

  • Guest
Code::Blocks for QT (cross-plattform)
« on: December 31, 2009, 10:24:14 pm »
Hello,
two days ago I discovered Code::Blocks as simple, intelligent and easy IDE.

After some hours of fun about evaluating this IDE, I successfully created 3 scripts that replaces the gcc make program in every plattform (Linux. Mac OS X and Windows) and an universal Code::Blocks interface section for the QT the projects file.

I think, this is a fast, simple, easy to modify method to use QT under Code::Blocks. 8)

It's a pleasure for me to contribute this successful solution to the community of Code::Blocks users and developers as freeware.

Details for this Code::Blocks for QT interface you will find in the .zip file that is attached to this posting.

CONTENTS (CodeBlocs4QT_1_0.zip):
Code
1) Script for Linux (qmake-make-unix.sh)
2) Script for Mac OS X (qmake-make-macx.sh)
3) Script for Windows 32 bit (qmake-make-win32.bat)
4) Cross-plattform QT project file (example.pro)

Please follow the SETUP INSTRUCTIONS in the comments at the beginning of every script.

Have also a look to the attached screenshot that shows details about the files and folder structure of my cross-plattform QT project.

I have successfully tested these scripts building a QT cross-plattform project under openSuse Linux 11.2, Windows 7 and Windows XP. Because I have no Mac online yet, I regret that is was impossible for me to test the related script for that plattform.

So I would be glad to receive a success report from you for Mac OS X in this topic.

Kind regards and happy coding :)

Michael Paul Korthals


P.S: Please login to this forum to access to the attachements.


[attachment deleted by admin]
« Last Edit: January 01, 2010, 07:16:24 am by mpk »

deeply

  • Guest
Re: Code::Blocks for QT (cross-plattform)
« Reply #1 on: March 21, 2010, 06:40:01 am »
Thanks a lot ! Now it's much easier to use qt-designer with codeblocks.

P.S.
maybe there is a small mistake in example.pro
Code
unix {
OBJECTS_DIR = ./obj_unix/$$CBT
MOC_DIR = ./obj_unix/$$CBT
RCC_DIR = ./obj_macx/$$CBT

TARGET = ./bin_unix/$$CBT/$$QPN
}

It seems should be like:
RCC_DIR = ./obj_unix/$$CBT

Davidson

  • Guest
Re: Code::Blocks for QT (cross-plattform)
« Reply #2 on: December 29, 2010, 11:55:40 pm »
I found an extremely simple solution here : http://www.amazing-tutorials.com/qt/configure-qt-with-code-block/