Compiling Errors.

  • QuentinADay
    10th Jan 2015 Member 0 Permalink

    I ran scons.py from the git bash and it shows this:

     

     

    $ scons.py
    scons: Reading SConscript files ...
    Checking whether the C compiler works... yes
    Checking whether the C++ compiler works... yes
    Checking if 64 bit... no
    Adding 32 bit compile flags
    Checking for C library mingw32... yes
    Checking for C library ws2_32... yes
    Checking for C library SDLmain... yes
    Checking for C library SDL... yes
    Checking for C header file SDL.h... no
    Checking for C header file SDL/SDL.h... no
    SDL.h not found

     

    not sure what to do...

  • jacob1
    10th Jan 2015 Developer 0 Permalink
  • QuentinADay
    10th Jan 2015 Member 0 Permalink

    I already did... i don't know why it can't find it...

  • jacob1
    10th Jan 2015 Developer 0 Permalink
    @QuentinADay (View Post)
    So you do have C:\MinGW\include\SDL.h and C:\MinGW\lib\libSDL.a and files like that? Maybe try scons --clean, this should clear any caches. SCons likes to be kind of stupid and remember the fact that it couldn't find stuff, instead of trying again every time.
    Edited 3 times by jacob1. Last: 10th Jan 2015
  • QuentinADay
    10th Jan 2015 Member 0 Permalink

    yeah i have C:\minGW\include\SDL.h and C:\MinGW\libSDL.a etc... and i did scons --clean but it still doesn't work...

  • FeynmanLogomaker
    10th Jan 2015 Member 0 Permalink

    I remember running into this problem a lot when I was starting my mod back on Windows, but I don't remember how I solved it. I'll try to figure out what I did.

    i know it was really sketchy though

  • jacob1
    10th Jan 2015 Developer 0 Permalink
    @FeynmanLogomaker (View Post)
    was it --sdl-dir? I removed that option :P. It wasn't supposed to ever be needed anymore, and if it was you have to use slightly more complicated ways but you can get the same result.

    @QuentinADay (View Post)
    If you have C:\MinGW\include\SDL.h then I don't really know what the problem is ... Are you sure that is exactly the path? Don't know how to check where it is looking for include files, maybe posting config.log on pastebin would help
    Edited 3 times by jacob1. Last: 10th Jan 2015
  • QuentinADay
    16th Jan 2015 Member 0 Permalink

    I was recently having problems with my computer so i restarted it (to factory settings) and did everything over and it worked... not sure why it wasn't working but its fixed lol