I gave up on visual studio

  • ubuntupokemoninc
    23rd Mar 2011 Member 0 Permalink
    It completly messed up my source code, I just found out you can cross compile :/

    I'm so close to a windows compile!

    this is the error it keeps continuing

    includes/air.h:21:7: warning: no newline at end of file
    In file included from includes/powder.h:5,
    from includes/element.h:5,
    from src/elements/yest.c:1:
    includes/graphics.h:3:21: error: SDL/SDL.h: No such file or directory
    In file included from includes/graphics.h:5,
    from includes/powder.h:5,
    from includes/element.h:5,
    from src/elements/yest.c:1:
    includes/hmap.h:34:7: warning: no newline at end of file
    In file included from includes/powder.h:5,
    from includes/element.h:5,
    from src/elements/yest.c:1:
    includes/graphics.h:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    In file included from includes/powder.h:7,
    from includes/element.h:5,
    from src/elements/yest.c:1:
    includes/interface.h:118: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sdl_mod’
    In file included from includes/element.h:5,
    from src/elements/yest.c:1:
    includes/powder.h:394: error: ‘NULL’ undeclared here (not in a function)
    make: *** [powder-sse.exe] Error 1

    I have SDL.DLL and the other 2 files also. compiles just fine for linux, but add the .exe at the end... man!
  • jacksonmj
    23rd Mar 2011 Developer 0 Permalink
    You need some libs and header files for cross-compiling.

    Have you followed the instructions on the wiki?
    https://powdertoy.co.uk/Wiki.html?id=linux_cross_compilation_guide
  • ubuntupokemoninc
    23rd Mar 2011 Member 0 Permalink
    the 3 files that you download

    * SDL-devel-1.2.14-mingw32.tar.gz from http://www.libsdl.org/

    * bzip2-1.0.5-2-mingw32-dev.tar.gz from MinGW on SourceForge.

    * mingw32-libgnurx-2.5.1-dev.tar from MinGW on SourceForge

    I'm not sure were to put them, do they just go in the root of the source? all i found in those were the same .DLL that it told you to put in earlier
  • snowfire777
    23rd Mar 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • jacksonmj
    23rd Mar 2011 Developer 0 Permalink
    @ubuntupokemoninc
    Read the next section of the wiki page.

    On Ubuntu:
    sudo nautilus
    Extract the files to /usr/i586-mingw32msvc
  • snowfire777
    23rd Mar 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • ubuntupokemoninc
    23rd Mar 2011 Member 0 Permalink
    Oh i get it now, i though we extracted those files to the source, but they go on the hard drive,

    now i'm not sure were to put the folder called man

    regex.3 and regex.7 i'm not sure were to put these
  • jacksonmj
    23rd Mar 2011 Developer 0 Permalink
    @ubuntupokemoninc
    Doesn't really matter. man = manual pages (help). You can put it in the same place if you want.

    You only actually need the include and lib folders.
  • ubuntupokemoninc
    23rd Mar 2011 Member 0 Permalink
    then why doesn't it still work!?!?!?

    $make powder-sse

    perfect

    $make powder-sse.exe

    EPIC FAIL!!

    The exact same errors as i listed above
  • jacksonmj
    23rd Mar 2011 Developer 0 Permalink
    Does the file /usr/i586-mingw32msvc/include/SDL/SDL.h exist?