Question about compiling

  • 1_1
    15th May 2019 Member 0 Permalink

    I was following this tutorial, and I got to the part where it says to download SDL2-devel-2.0.9-mingw.tar.gz, but it doesn't say what I'm actually supposed to do with it. I feel like it's supposed to be obvious, but I'm a bit inexperienced with this kind of thing. I'd be more than willing to learn, though.

  • jacob2
    15th May 2019 Member 0 Permalink
    Put it in the same place as the other libraries (C:\MinGW)

    I recommend using the visual studio guide instead, but the MinGW guide may work Post in this thread if you get any other problems.
  • 1_1
    15th May 2019 Member 0 Permalink

    I tried that, but it still failed at "Checking for C library SDL2main". I managed to open the file using 7zip and somehow get the correct libraries out of it anyway, I think, but now it just stops somewhere else.

     

    $ 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 SDL2main... yes
    Checking for C library SDL2... yes
    Checking for C header file SDL2/SDL.h... yes
    Checking for C library lua5.1... yes
    Checking for C header file lua5.1/lua.h... yes
    Checking for C library fftw3f... yes
    Checking for C library bz2... yes
    Checking for C header file bzlib.h... yes
    Checking for C library z... yes
    Checking for C library curl... no
    Checking for C library libcurl... no
    libcurl not found or not installed

     

  • jacob1
    17th May 2019 Developer 0 Permalink
    @1_1 (View Post)
    I guess the guide hasn't been updated with libcurl, that's a new library we added.

    The only way to get it is to compile and install libcurl: https://curl.haxx.se/download.html

    (I don't have instructions on how to do this, it's probably not too difficult though)

    You could also use the more supported visual studio guide. The MinGW guide is so out of date that I don't think the compiler is supported much anymore.