Maybe I found why cc.exe isn't found

  • FunkyPrince
    7th May 2017 Member 0 Permalink

    @jacob1 (View Post)

     The second log I put into the "EDIT", it's not a problem related to a denied access, maybe.

  • jacob1
    7th May 2017 Developer 0 Permalink
    @FunkyPrince (View Post)
    You shouldn't run scons as administrator, especially if it's incorrectly trying to write to C:\Windows

    Maybe either try an older version of MinGW (if possible), or Visual Studio. Or attempt to fix sconscript to look in the right temp directory somehow.

    Edit: Can you try adding "tmp" and "temp" to this list: https://github.com/simtr/The-Powder-Toy/blob/master/SConscript#L137
    I want to know if that fixes it, I can't easily test myself since I don't get this issue.
    Edited once by jacob1. Last: 7th May 2017
  • FunkyPrince
    7th May 2017 Member 0 Permalink

    @jacob1 (View Post)

     Any idea of where I can find these two files: https://github.com/Alexpux/MSYS2-packages/pull/239/files ?

  • jacob1
    7th May 2017 Developer 0 Permalink
    @FunkyPrince (View Post)
    Those two files won't help at all. See my edit, maybe adding things to that list will make scons work
  • FunkyPrince
    7th May 2017 Member 0 Permalink

    @jacob1 (View Post)

     

    jacob1:
    Edit: Can you try adding "tmp" and "temp" to this list: https://github.com/simtr/The-Powder-Toy/blob/master/SConscript#L137

     

    I modified the prints yesterday since Python3 doesn't accept prints without parenthesis, anyway I'll try adding those elements.

     

    EDIT: Should I add "tmp" and "temp" or "TMP" and "TEMP"?

     

    EDIT 2: The env var "CC" should be replaced with "GCC" maybe?

    Edited 2 times by FunkyPrince. Last: 7th May 2017
  • jacob1
    7th May 2017 Developer 0 Permalink
    @FunkyPrince (View Post)
    Oh, it should be TMP and TEMP
  • FunkyPrince
    7th May 2017 Member 0 Permalink

    @jacob1 (View Post)

     I made a second edit to the post above.

  • jacob1
    7th May 2017 Developer 0 Permalink
    @FunkyPrince (View Post)
    no, CC should not be GCC, I don't know what would make you think that. Can you try the TMP and TEMP thing?
  • FunkyPrince
    7th May 2017 Member 0 Permalink

    @jacob1 (View Post)

    EDIT: When it tries loading the libs, it says "Checking for C header file SDL.h... no", is it ok?

     

    EDIT 2: I think it's better if I paste all the logs:

     

    $ scons.py
    scons: Reading SConscript files ...
    copying environment variable TMP='C:\\Users\\FRANCE~1\\AppData\\Local\\Temp'
    copying environment variable TEMP='C:\\Users\\FRANCE~1\\AppData\\Local\\Temp'
    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... 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 pthread... yes
    Checking for C library m... yes
    Checking for C library gdi32... yes
    Checking for C library winmm... yes
    Checking for C library dxguid... yes
    scons: done reading SConscript files.
    scons: Building targets ...
    g++ -o build\src\Format.o -c -std=gnu++98 -Wno-invalid-offsetof -msse -msse2 -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -funsafe-loop-optimizations -DSDL_INC -DWIN -D_WIN32_WINNT=0x0501 -D_USING_V110_SDK71_ -DX86 -DX86_SSE -DX86_SSE2 -DGRAVFFT -DLUACONSOLE -DUSE_SDL -Ibuild\src -Isrc -Ibuild\data -Idata -Ibuild\generated -Igenerated src\Format.cpp
    =====
    g++: error: CreateProcess: No such file or directory

    =====
    scons: *** [build\src\Format.o] Error 1
    scons: building terminated because of errors.
    strip: 'build/Powder.exe': No such file

    Edited 3 times by FunkyPrince. Last: 7th May 2017
  • jacob1
    7th May 2017 Developer 0 Permalink
    @FunkyPrince (View Post)
    I don't really know then. Maybe try the Visual Studio guide instead. Cygwin could also work easily, there is no guide for that though.