Cross-compile help

  • jacksonmj
    21st Sep 2010 Developer 0 Permalink
    pilojo
    No idea. Could you upload to somewhere the full output and the source you are trying to compile? Which OS are you compiling on and which command did you use to do it?
  • Taliathion
    21st Sep 2010 Member 0 Permalink
    @zc00gii

    Only if you got the mac with Xcode pre-installed. Mine doesnt.

    I will use Ubuntu to Compile to powder-sse2.exe with help from this guide then, thanks jacksonmj!
  • pilojo
    21st Sep 2010 Member 0 Permalink
    I'm using Windows Vista, and using a program called Dev-C++ to try and compile it.
  • zc00gii
    21st Sep 2010 Banned 0 Permalink
    This post is hidden because the user is banned
  • Taliathion
    21st Sep 2010 Member 0 Permalink
    @zc00gii

    Output:
    -bash: gcc: command not found
  • Taliathion
    21st Sep 2010 Member 0 Permalink
    To clarify, I move those files into the appropriate places and then ctrl-h find and replace #ifdef WIN32 with
    #if defined(WIN32) && !defined(__MINGW32__)

    and then use

    make powder-sse2.exe

    to compile it?

    or

    gcc (something)

    make powder-sse2.exe does the same thing as always ( make: *** No rule to make target `powder-res.rc', needed by `powder-res.o'. Stop.) and
    gcc powder-sse2.exe has a no such file error, and
    gcc comes with the same errors as antB had, but a LOT of them

    Suggestions?
  • jacksonmj
    21st Sep 2010 Developer 0 Permalink
    Taliathion:
    No rule to make target `powder-res.rc'

    In the powder toy source there should be a Resources subfolder. Copy and paste the contents of this into the powder toy source folder.
  • zc00gii
    21st Sep 2010 Banned 0 Permalink
    This post is hidden because the user is banned
  • Taliathion
    21st Sep 2010 Member 0 Permalink
    Dangit, Can't get it to work.

    Output after following all instructions.

    http://pastebin.com/3suLapiF
  • jacksonmj
    21st Sep 2010 Developer 0 Permalink
    Taliathion
    Check you have followed all instructions correctly. Replace #ifdef WIN32 just above the _inlines, just above x86_cpuid, and just above mv = max(fabsf(.....

    graphics.h:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ means that just above line 40 in graphics.h you need to
    jacksonmj:
    replace:
    #ifdef WIN32
    with:
    #if defined(WIN32) && !defined(__MINGW32__)

    graphics.h:3:21: error: SDL/SDL.h: No such file or directory
    jacksonmj:
    Download SDL-devel-1.2.14-mingw32.tar.gz from http://www.libsdl.org/download-1.2.php. Extract the contents of the subfolder SDL-1.2.14 of this archive into /usr/i586-mingw32msvc