News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Help with cross platform project

Started by gReaen, March 18, 2008, 08:45:18 AM

Previous topic - Next topic

gReaen

Hello,
I have built a project which has few dialogs using Code::Blocks nightly build 4893 on Windows XP(SP 2) and MinGW 5.1 compiler. Must say, using wxSmith has been easy after trying to find a user friendly GUI builder.
       But now my problem is, I want the project to be cross platform. I have installed CB on Ubuntu but I'll have to make few changes in the build options settings for my windows project to run there i guess. But how do i run the same project on a system which does not have CB? Do i need to have CB installed to run them?  :?
       Any help would be much appreciated...

JGM

The best way is to create 2 projects, one for ubuntu (in your case) and other for windows. In that way you could compile for the same source for the different platforms using different configurations. Also check these useful links:

http://forums.next.codeblocks.org/index.php/topic,7978.0.html
http://wiki.codeblocks.org/index.php?title=Cross_Compiling_wxWidgets_Applications_on_Linux

killerbot

you can manually merge them into 1 cbp also, and specify the platform, then on win only the windows ones build, and on linux on the the linux ones ;-)

afb

And on mac the Mac OS X ones... ;-)

JGM

Quote from: afb on March 20, 2008, 08:52:09 AM
And on mac the Mac OS X ones... ;-)

I haven't used an apple computer since I was on high school. wow almost 8 years hehe :shock:.

gReaen

Hey,
Thank you for your suggestions. I actually didn't want to build separate projects on all platforms. Thanks anyways for replying...