Author Topic: Ubuntu setup issues  (Read 1251 times)

Tommy714

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Ubuntu setup issues
« 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

« Last Edit: February 11, 2023, 10:08:42 AM by Tommy714 »

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1240
    • View Profile
    • My deviantart page
Re: Ubuntu setup issues
« Reply #1 on: February 11, 2023, 03:33:55 PM »
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...

Tommy714

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: Ubuntu setup issues
« Reply #2 on: February 11, 2023, 05:21:08 PM »
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.....

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1240
    • View Profile
    • My deviantart page
Re: Ubuntu setup issues
« Reply #3 on: February 12, 2023, 04:07:52 AM »
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.

Tommy714

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: Ubuntu setup issues
« Reply #4 on: February 12, 2023, 09:04:05 AM »
Did I mention I am horrible with Linux....

Anyway, got it running.  Thanks for the help.  You were key!