Pages: 1
  Print  
Author Topic: fatal error: ffi.h: No such file  (Read 2819 times)
Offline (Unknown gender) ojars
Posted on: May 28, 2019, 06:12:13 AM
Member
Joined: May 2019
Posts: 16

View Profile
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?
Logged
Offline (Male) hpg678
Reply #1 Posted on: May 28, 2019, 09:28:48 AM

Member
Location: Barbados
Joined: Mar 2017
Posts: 259

View Profile Email
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.



« Last Edit: May 28, 2019, 09:31:01 AM by hpg678 » Logged
Hugar
Offline (Unknown gender) sampletext
Reply #2 Posted on: May 28, 2019, 12:01:44 PM
Member
Joined: Nov 2018
Posts: 11

View Profile
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 ]
Logged
Offline (Male) Goombert
Reply #3 Posted on: May 29, 2019, 01:56:37 AM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3151

View Profile
A fix has been merged, sorry about the problems, and thanks again to Sociopart!
https://github.com/enigma-dev/enigma-dev/commit/ad7acb3f67a207d3e0fc1da71a2b60536984fab3
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) ojars
Reply #4 Posted on: May 29, 2019, 10:11:41 AM
Member
Joined: May 2019
Posts: 16

View Profile
Thanks for replays. Just fixed and all is OK.
Logged
Pages: 1
  Print