Cross Compiling on Mac OS X and Windows?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
ariejan
Posts: 28
Joined: Fri Jul 24, 2009 6:14 pm
Location: Eindhoven, Netherlands
Contact:

Cross Compiling on Mac OS X and Windows?

Post by ariejan »

Hey all. I know IrrLicht runs on many platforms, but in my situation I want to create two versions: Universal Mac OS X and Windows.

I already have a project setup in XCode (on my mac) and all is good. But how do I go about 'porting' my app to Windows? What's the best approach here?

Should I create a new project with Visual Studio (Express?) and compile from there? Or maybe all I need is a script that will kick-off the compilation process on Windows?

If you're cross-compiling your game please let me know how you go about it.

Thanks!
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, create a new project in MSVC. It's easily made and you can more easily change compile properties than by chaing nmake makefiles.
ariejan
Posts: 28
Joined: Fri Jul 24, 2009 6:14 pm
Location: Eindhoven, Netherlands
Contact:

Post by ariejan »

hybrid wrote:Yes, create a new project in MSVC. It's easily made and you can more easily change compile properties than by chaing nmake makefiles.
Oh, that's really nice! Is any version of MSVC recommended?
PaulBird
Posts: 10
Joined: Sat Dec 31, 2011 10:06 pm

Re: Cross Compiling on Mac OS X and Windows?

Post by PaulBird »

could someone explain this more?? im confused on how to go about this..
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Cross Compiling on Mac OS X and Windows?

Post by Nadro »

I use Code::Blocks for my projects with following compilers:
- GCC for Linux
- LLVM 3.0 for MacOSX
- MS Visual C++ 2010 for Windows
Of course I compile each project under dedicated platform, so MacOSX version under MacOSX, Linux version under Linux etc.

C::B allow us to easy handle of Android projects :)
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Post Reply