mickelson / attract

A graphical front-end for command line emulators that hides the underlying operating system and is intended to be controlled with a joystick or gamepad.
http://attractmode.org
GNU General Public License v3.0
393 stars 113 forks source link

make issue #719

Closed disstress closed 2 years ago

disstress commented 2 years ago

Make command: make -j $(cat /proc/cpuinfo | grep -c processor) OS: Ubuntu 20.04.4 LTS \n \l git command: git clone http://github.com/mickelson/attract attract pull date: 04 June 2022

While attempting to build on a new Ubuntu 20 machine the following error (missing expat_config.h) prints and the make terminates. Using find the file is not present in the files pulled down from github.

$ make -j $(cat /proc/cpuinfo | grep -c processor) flags: -std=c++11 -Wl,--export-dynamic -I/usr/include/freetype2 -I/usr/include/libpng16 -DDATA_PATH=\"/usr/local/share/attract/\" -O2 -DNDEBUG -Iextlibs/miniz -Iextlibs/audio/include -D__STDC_CONSTANT_MACROS -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/AL -I/usr/include/x86_64-linux-gnu -Iextlibs/expat -Iextlibs/squirrel/include -Iextlibs/sqrat/include -Iextlibs/nowide -Iextlibs/nvapi -Iextlibs/rapidjson/include -Iextlibs/gameswf -DUSE_XLIB -DUSE_XINERAMA -DFE_HWACCEL_VAAPI -DFE_HWACCEL_VDPAU -DUSE_LIBCURL -DUSE_SWRESAMPLE Compiling obj/expat/xmlparse.o... Compiling obj/expat/xmlrole.o... Compiling obj/expat/loadlibrary.o... Compiling obj/expat/xmltok.o... extlibs/expat/xmlparse.c:61:10: fatal error: expat_config.h: No such file or directory 61 | #include | ^~~~ compilation terminated. make: [Makefile:566: obj/expat/xmlparse.o] Error 1 make: Waiting for unfinished jobs.... extlibs/expat/xmltok.c:46:10: fatal error: expat_config.h: No such file or directory 46 | #include | ^~~~ compilation terminated. make: [Makefile:566: obj/expat/xmltok.o] Error 1 extlibs/expat/xmlrole.c:41:10: fatal error: expat_config.h: No such file or directory 41 | #include | ^~~~ compilation terminated. make: [Makefile:566: obj/expat/xmlrole.o] Error 1

disstress commented 2 years ago

Installing libexpat resolved issue:

sudo apt-get install -y libexpat-dev