http://stackoverflow.com/questions/3848357/createprocess-no-such-file-or-directory
"Its specifically told that you need to reboot after you set the environmental variables in windows for migwin."
Oh well, I'll try rebooting then.
EDIT: It didn't work, same problem. Now I'm trying to use Cygwin, but I got this error:
$ scons.py
C:\Python27\python.exe: can't open file '/cygdrive/c/Python27/Scripts/scons.py': [Errno 2] No such file or directory
If I won't be able to fix it, I'll try using Visual Studio.
It "works" using "scons.bat" instead than "scons.py", this is the error I'm getting now (+ logs):
$ scons.bat
'MySQL' is not recognized as an internal or external command,
operable program or batch file.
'MySQL' is not recognized as an internal or external command,
operable program or batch file.
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... 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
scons: *** [build\src\Format.o] The system cannot find the file specified
scons: building terminated because of errors.
'strip' is not recognized as an internal or external command,
operable program or batch file.
EDIT: I didn't install any package in Cygwin, I'm not sure if it has the ones I need already installed.
Well, I was trying to use Cygwin until it gave me this error: "g++: error: spawn: No such file or directory".
Now I'm using Visual Studio, but it doesn't find Python: "Please install python and run generator.py. Also, make sure you downloaded and extracted Required Libraries.zip".
I downloaded and extracted "Required Libraries.zip" into the source code folder, I'm pretty sure Python2 dir is in "Path" env variable.
I ran generator.py, Visual Studio gives me these hree errors (I'm getting use to errors XD)
Gravità Codice Descrizione Progetto File Riga Stato eliminazione
Errore LNK1120 2 esterni non risolti The-Powder-Toy++ D:\Documenti e dati\Source\Repos\The-Powder-Toy-master\Build\Powder.exe 1
Errore LNK2019 riferimento al simbolo esterno "public: virtual __thiscall Element_LSNS::~Element_LSNS(void)" (??1Element_LSNS@@UAE@XZ) non risolto nella funzione "class std::vector<class Element,class std::allocator<class Element> > __cdecl GetElements(void)" (?GetElements@@YA?AV?$vector@VElement@@V?$allocator@VElement@@@std@@@std@@XZ) The-Powder-Toy++ D:\Documenti e dati\Source\Repos\The-Powder-Toy-master\ElementClasses.obj 1
Errore LNK2019 riferimento al simbolo esterno "public: __thiscall Element_LSNS::Element_LSNS(void)" (??0Element_LSNS@@QAE@XZ) non risolto nella funzione "class std::vector<class Element,class std::allocator<class Element> > __cdecl GetElements(void)" (?GetElements@@YA?AV?$vector@VElement@@V?$allocator@VElement@@@std@@@std@@XZ) The-Powder-Toy++ D:\Documenti e dati\Source\Repos\The-Powder-Toy-master\ElementClasses.obj 1
If you want I can translate them.
Ok I used Add>New Element, to add LSNS.cpp and it worked fine. It compiled with no any error. Thank you very much for your patient, I usually program in Java and UnrealScript, the only times I manually use a compiler is to compile UnrealScript files, I guess I'll better be used to compilers and C languages.