Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

quanganhct

macrumors member
Original poster
Dec 29, 2010
31
0
I recently have a scholar project about making game "Mummy". At first my prof just demand an algorithm, so i made it in text interface like this :

| +-----+-+---+--+--------------++++-++++---------
|J| |X| | | ++++M++++ X
| | --- --+ -+ +- | | | --+ +-+- X+
| | | |X | | |XXX| +X --- | |
| | +-- +-+ +X XX | | | --+ + | | ---+
| | | | +-+- -+ | | -+ X-++ X X|
| | | | | |X |X| --- | | + +X| ++ +X++ +XX -+
| | | | +- X |X| X +XXX+-+ ++ ++ --
| |X| ++ ++ +++XX| --
+---+-+---------------------++-++------+++--+--V

After that, the prof told me that since i have free time, i better off implement a graphic interface.
And then i choose SDL for my project ('cause it's cross-platform, since I use Mac at home, but they use Ubuntu and Win in my school). Following the tutorials over Internet, everything was neat up to now, but, when i try to run it in Ubuntu or window, it's not working. The file .app in the directory "Debug" is treated as it's a directory but an executable file. So now i don't know what to do. What must I do to make it run in Ubuntu or Window ? Plz help me

Thanks in advance.

NGUYEN Quang Anh
 
it's cross-platform

cross-platform doesn't mean that the compiled object code or executable will run on all three platforms. (Mach-O/.app for OS X, EXE for Windows, COFF/ELF for Linux/Unix...) http://en.wikipedia.org/wiki/Comparison_of_executable_file_formats

It usually means that the source code can be taken to the other OS and recompiled there to the right kind of executable. In some cases you may be able to cross-compile on one system for the others, but that requires far more work than just moving the source code and recompiling.

B
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.