Pages: 1
Author Topic: fatal error: ffi.h: No such file  (63,218 Views)
Offline (Unknown gender) ojars

Member
Joined: May 2019
Posts: 16
View profile
Posted on: May 28, 2019, 11: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?
Offline (Unknown gender) hpg678

Member
Joined: Mar 2017
Posts: 283
View profile
Reply #1 Posted on: May 28, 2019, 02:28:48 PM
hi and welcome to the Forums. did a little research so you could try



pacboy -S libffi:i (32bit)
pacboy -S libffi:x (64 bit)





within your msys terminal.



Offline (Unknown gender) sampletext

Member
Joined: Nov 2018
Posts: 11
View profile
Reply #2 Posted on: May 28, 2019, 05: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 ]
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #3 Posted on: May 29, 2019, 06: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
Offline (Unknown gender) ojars

Member
Joined: May 2019
Posts: 16
View profile
Reply #4 Posted on: May 29, 2019, 03:11:41 PM
Thanks for replays. Just fixed and all is OK.
Pages: 1