News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Code::Blocks for QT (cross-plattform)

Started by mpk, December 31, 2009, 10:24:14 PM

Previous topic - Next topic

mpk

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):

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]

deeply

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

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