Yet another compiling issue

  • nucular
    6th Aug 2013 Member 0 Permalink

    While trying to build the repo with Mingw32 on Winderp 7 x32 i ran into the following issue:


    >scons --win --lua-dir C:\MinGW\include\Lua --sdl-dir C:\MinGW\include\SDL
    scons: Reading SConscript files ...
    Checking for C header file C:\MinGW\include\SDL/SDL.h... yes
    Der Befehl "pkg-config" ist entweder falsch geschrieben oder
    konnte nicht gefunden werden.
    Checking for C header file C:\MinGW\include\Lua/lua.h... yes
    Checking for C library fftw3f... yes
    Checking for C library bz2... yes
    Checking for C library z... yes
    Checking for C header file bzlib.h... yes
    Checking for C library lua5.1... yes
    scons: done reading SConscript files.
    scons: Building targets ...
    scons: `C:\MinGW\include\Lua' is up to date.
    scons: `C:\MinGW\include\SDL' is up to date.
    scons: done building targets.


    After that, no build folder was created.
    I've used the library pack from the wiki page.

    Inside the Mingw32 directory, I have this file tree:


    C:+
    +-+ MinGW
    +--+ include
    | |
    | +--+ Lua
    | | +--- *Lua includes*
    | |
    | +--+ SDL
    | | +--- *SDL includes*
    | |
    | +--- regex.h
    | +--- fftw3.h
    |
    +--+ lib
    | +--- libSDLmain.a
    | +--- libSDL.a
    | +--- libregex.a
    | +--- liblua5.1.a
    | +--- libfftw3f.a


    The config.log here.

  • firefreak11
    6th Aug 2013 Member 0 Permalink

    "The command "pkg-config" is either misspelled or

    could not be found."

    Is probably the issue.

  • greymatter
    6th Aug 2013 Member 0 Permalink
    "Der Befehl "pkg-config" ist entweder falsch geschrieben oder
    konnte nicht gefunden werden."
    What?What kind of PC or OS do you use?
    Anyway that sounds like a problem.

    EDIT: @firefreak11 beat me to it..
    Edited 2 times by greymatter. Last: 6th Aug 2013
  • jacob1
    6th Aug 2013 Developer 0 Permalink
    no, it always gives the pkg-config error. Just an issue with the sconscript trying to do commands that don't work. In this case, I don't see any errors at all. make sure you have the source in src/ or something ...

    you could also try running scons -c to clear it's caches and try again.
  • nucular
    6th Aug 2013 Member 0 Permalink

    I cleared the cach, but it still doesn't work :[. And the error message is german :D

  • jacksonmj
    6th Aug 2013 Developer 0 Permalink

    Try adding some equals signs, it may be interpreting the paths as targets to build:

    --lua-dir=C:\MinGW\include\Lua --sdl-dir=C:\MinGW\include\SDL

  • nucular
    6th Aug 2013 Member 0 Permalink

    Lol... THAT was my fault? I thought it would handle this like argparse...
    Anyway, got it to work now!
    Thanks!

  • MiningMarsh
    6th Aug 2013 Member 0 Permalink

    It kind of was your fault, you didn't bother to look at maybe just "scons --help" to see if you were doing args wrong. Programs all have different arg parsers, especially cross platform ones where the GNU argument parser lib may not be available.