Attract-Mode Support Forum
Attract-Mode Support => General => Topic started by: Tommy714 on February 11, 2023, 09:51:50 AM
-
I am trying to install Attract mode from command line in Linux Ubuntu 22.04.
When I run the command "xrandr -q" I get the results shown below:
I'm not a Linux guy, and could really use some help. Let me know if I need to supply any more information.
When I run "make" from the directory where the Attract Mode download is located I get the following error:
Compiling obj/fe_present.o...
src/fe_present.cpp:42:10: fatal error: X11/extensions/Xrandr.h: No such file or directory
42 | #include <X11/extensions/Xrandr.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:486: obj/fe_present.o] Error 1
System as follows:
16GiB System memory
Xeon E3-1200 v5/E3-1500 v5/6th Gen C
6th-10th Gen Core Processor PCIe Con
HD Graphics 530
UBUNTU 22.04
Attract mode V2.6.2
MAME 0.251
-
It seems that you are missing some development libraries to build AM,
sudo apt install libxrandr-dev
will fix that but the number of libraries you'll need to install before building can be large...
-
Well, I thought I had everything I needed installed per the instructions in the wiki help file. The command you gave fixed that problem, but this is what arose.....
-
Well, I thought I had everything I needed installed per the instructions in the wiki help file. The command you gave fixed that problem, but this is what arose.....
That will happen for all the libraries that are missing. In this case it is
sudo apt install libfreetype6-dev
or
sudo apt install libfreetype-dev
Basically you'll have to write down the .h that doesn't work and find in which -dev library it is, and then install that library.
-
Did I mention I am horrible with Linux....
Anyway, got it running. Thanks for the help. You were key!