ENIGMA Forums

Outsourcing saves money => Issues Help Desk => Topic started by: ojars on May 28, 2019, 06:12:13 am

Title: fatal error: ffi.h: No such file
Post by: ojars on May 28, 2019, 06:12:13 am
Hi!
Just installed ENIGMA on a 32 bit windows 8.1 desktop computer, followed instructions from the download page step by step. Started LateralGM from MSYS2 MinGW 32-bit. Then loaded a game "Collapse-game-tutorial.gmk" in LateralGM, pressed Run and the process started. Soon the process stopped with a message "Compile filed at a C++ level". The last line is: C:/Users/Ojars/AppData/Local/ENIGMA/.eobjs/Windows/Windows/Mingw_GCC_G++/Run/Platforms/Win32/WINDOWSexternals.o Platforms/Win32/WINDOWSexternals.cpp
Platforms/Win32/WINDOWSexternals.cpp:44:10: fatal error: ffi.h: No such file or directory
 #include <ffi.h>
compilation terminated.
Searched the whole computer - there's no such files on my computer (WINDOWSexternals.o, ffi.h).
Where do I can find them?
Title: Re: fatal error: ffi.h: No such file
Post by: hpg678 on May 28, 2019, 09:28:48 am
hi and welcome to the Forums. did a little research so you could try


Code: [Select]
pacboy -S libffi:i (32bit)
pacboy -S libffi:x (64 bit)




within your msys terminal.



Title: Re: fatal error: ffi.h: No such file
Post by: sampletext on May 28, 2019, 12:01:44 pm
I found one of reasons to this bug and paste it on GitHub, so now you should wait when devs fix that, or:

Open enigma-dev\Compilers\Windows\gcc.ey in Notepad++/ any other text editor which show lines
change line 15 to this:
cxxflags: -std=c++11 -I/mingw32/lib/libffi-3.2.1/include -I/mingw64/lib/libffi-3.2.1/include -I../Additional/i686-w64-mingw32/include

[ https://github.com/enigma-dev/enigma-dev/issues/1734 ]
Title: Re: fatal error: ffi.h: No such file
Post by: Goombert on May 29, 2019, 01:56:37 am
A fix has been merged, sorry about the problems, and thanks again to Sociopart!
https://github.com/enigma-dev/enigma-dev/commit/ad7acb3f67a207d3e0fc1da71a2b60536984fab3
Title: Re: fatal error: ffi.h: No such file
Post by: ojars on May 29, 2019, 10:11:41 am
Thanks for replays. Just fixed and all is OK.