Author Topic: Trying to install Attract Mode on Pop_OS (based on Ubuntu 20.04)  (Read 9252 times)

kairowan

  • Newbie
  • *
  • Posts: 7
    • View Profile
Is there any way to install Attract Mode on Pop_OS? it's my main OS, and I'd rather not have to reboot into a separate OS when I want to load Attract Mode. The version of Pop_OS I'm running is based off Ubuntu 20.04. I've downloaded the .deb file, and, of course, I am missing dependencies, but when I try to install those dependencies, *they* are missing dependencies. It becomes an ever growing rabbit hole of missing dependencies.

I tried the easier way first, adding the PPA to my sources, but I got an error saying the Launchpad has no Release file.

Any ideas? I've only recently came back to Linux after several years of Windows being my main system, and I'll be honest, I've never been good at compiling software, so I've avoided that option for now. LOL. I can use the terminal some, but that's it.

akafox

  • Hero Member
  • *****
  • Posts: 985
    • View Profile
Re: Trying to install Attract Mode on Pop_OS (based on Ubuntu 20.04)
« Reply #1 on: August 15, 2020, 07:01:06 PM »
I have Linux 20.04 (but not pop OS). I can run it just fine. The PPA is not maintained any longer..I think?

"Welcome to dependency hell!" :D (been there done that...it sucks...) but once they are all loaded you do not need them again. So unless ray uses a new package to compile from..then you will be set for compiling on any future updates! (I have not had to reinstall these packages for three and a half years now..so "upgrading" AM is EASY :)

compiling is easier than you might think...

first open a terminal (command line)

Next as "root"
Code: [Select]
sudo apt-get update && sudo apt-get -y install git libsfml-dev libopenal-dev libavformat-dev libfontconfig1-dev libfreetype6-dev libswscale-dev libavresample-dev libarchive-dev libjpeg-dev libglu1-mesa-dev
second as a normal user (not sudo!) grab the source from git hub:
Code: [Select]
git clone https://github.com/mickelson/attract.git && cd attract
third type:
Code: [Select]
make(you can type 'make -j3' if you have a dual core cpu..or 'make -j5' if you have a quad core cpu. This is not needed but makes compiling faster if you want.)

to "install" attract mode type (as root)
Code: [Select]
sudo make install
if you have any problems just ask. And welcome back to linux! :D
« Last Edit: August 15, 2020, 07:04:23 PM by akafox »
People want life easy..then complain about it

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: Trying to install Attract Mode on Pop_OS (based on Ubuntu 20.04)
« Reply #2 on: August 16, 2020, 03:47:05 AM »
It's worth noting that compile time of attract on Linux is actually low in comparison to other things.

kairowan

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Trying to install Attract Mode on Pop_OS (based on Ubuntu 20.04)
« Reply #3 on: August 16, 2020, 07:20:34 PM »
Thanks akafox, I'll try that tonight. ^_^

I love how much Wine has evolved since I used Linux last, I'm actually thinking about deleting Windows entirely from my computer, I haven't logged in for over a month.

I'll let you know tomorrow if I was successful. LOL. Time to jump down the dependency rabbit hole. XD

akafox

  • Hero Member
  • *****
  • Posts: 985
    • View Profile
Re: Trying to install Attract Mode on Pop_OS (based on Ubuntu 20.04)
« Reply #4 on: August 17, 2020, 11:45:31 AM »
Thanks akafox, I'll try that tonight. ^_^

You're welcome I know it can be difficult to find help with linux.

I love how much Wine has evolved since I used Linux last, I'm actually thinking about deleting Windows entirely from my computer, I haven't logged in for over a month.

Yes WINE has improved a lot..but don't go deleting windows if you can help it. WINE is FAR from perfect. But it can get you by...
If you can leave windows on there for a back up just in case. I run Virtual box for some things because Linux just will NOT work for it (WINE). I'm just saying be SURE you can get by with a 100% Linux setup. Most hardware is made for windows as well...

I'll let you know tomorrow if I was successful. LOL. Time to jump down the dependency rabbit hole. XD

Good Luck! Alice makes her trip look like a fun ride compared to dependency rabbit holes at times! xD And like I said I can help and there are a few other linux users on here ..somewhere...
People want life easy..then complain about it

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: Trying to install Attract Mode on Pop_OS (based on Ubuntu 20.04)
« Reply #5 on: August 17, 2020, 12:00:23 PM »
I recently made the jump from Mac to Linux on my desktop. It was easier than I thought.

Ubuntu is based off debian, and popos is based off Ubuntu. I'm a little confused on the difference between popos and Ubuntu. Is the only significant difference a dock in gnome?

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: Trying to install Attract Mode on Pop_OS (based on Ubuntu 20.04)
« Reply #6 on: August 17, 2020, 12:04:17 PM »
I have Linux 20.04 (but not pop OS). I can run it just fine. The PPA is not maintained any longer..I think?

"Welcome to dependency hell!" :D (been there done that...it sucks...) but once they are all loaded you do not need them again. So unless ray uses a new package to compile from..then you will be set for compiling on any future updates! (I have not had to reinstall these packages for three and a half years now..so "upgrading" AM is EASY :)

compiling is easier than you might think...

first open a terminal (command line)

Next as "root"
Code: [Select]
sudo apt-get update && sudo apt-get -y install git libsfml-dev libopenal-dev libavformat-dev libfontconfig1-dev libfreetype6-dev libswscale-dev libavresample-dev libarchive-dev libjpeg-dev libglu1-mesa-dev
second as a normal user (not sudo!) grab the source from git hub:
Code: [Select]
git clone https://github.com/mickelson/attract.git && cd attract
third type:
Code: [Select]
make(you can type 'make -j3' if you have a dual core cpu..or 'make -j5' if you have a quad core cpu. This is not needed but makes compiling faster if you want.)

to "install" attract mode type (as root)
Code: [Select]
sudo make install
if you have any problems just ask. And welcome back to linux! :D

 this is what i used and five min later i am up running AM on linux....lovin it..
plan on trying playonlinux, 86box,  ext....slowley getting rid of windows...over time....
thanks for the post
help a friend....

kairowan

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Trying to install Attract Mode on Pop_OS (based on Ubuntu 20.04)
« Reply #7 on: August 17, 2020, 02:42:19 PM »
When I tried compiling AM using the steps Akafox listed, I got error messages on the first step. I'm including the terminal text and hopefully you can tell me what went wrong? I tried continuing, and wasn't able to get it working. I love Linux, but I remember why I hated it occasionally too. LOL.

Editing to add: When I try to compile, it tells me I'm missing a bunch of packages, I'm guessing because of the errors from the first step. I can include a screenshot of that as well.

« Last Edit: August 17, 2020, 02:47:18 PM by kairowan »

akafox

  • Hero Member
  • *****
  • Posts: 985
    • View Profile
Re: Trying to install Attract Mode on Pop_OS (based on Ubuntu 20.04)
« Reply #8 on: August 17, 2020, 04:13:45 PM »
Ubuntu is based off fedora, and popos is based off Ubuntu.

I though ubuntu was based off Debian?

I can include a screenshot of that as well.

no just copy and paste part of the terminal output... that will be enough..

but ..let me fire up a VB and load Pop OS myself..that will help both of us tackle this. I will report in a few hours...
People want life easy..then complain about it

kairowan

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Trying to install Attract Mode on Pop_OS (based on Ubuntu 20.04)
« Reply #9 on: August 17, 2020, 04:30:14 PM »
Thanks so much for helping. I'm hoping I don't have to install a different flavour of Linux to get it working, cause I really like Pop_OS so far. :)

Here's the terminal output when I tried to compile AM.

Code: [Select]
jarvis@pop-os:~/attract$ make
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
Package libavformat was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavformat.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavformat' found
Package libavcodec was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavcodec.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavcodec' found
Package libavutil was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavutil.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavutil' found
Package libswscale was not found in the pkg-config search path.
Perhaps you should add the directory containing `libswscale.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libswscale' found
Package openal was not found in the pkg-config search path.
Perhaps you should add the directory containing `openal.pc'
to the PKG_CONFIG_PATH environment variable
No package 'openal' found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
Package libavformat was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavformat.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavformat' found
Package libavcodec was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavcodec.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavcodec' found
Package libavutil was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavutil.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavutil' found
Package libswscale was not found in the pkg-config search path.
Perhaps you should add the directory containing `libswscale.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libswscale' found
Package openal was not found in the pkg-config search path.
Perhaps you should add the directory containing `openal.pc'
to the PKG_CONFIG_PATH environment variable
No package 'openal' found
flags: -Wl,--export-dynamic  -DDATA_PATH=\"/usr/local/share/attract/\" -O2 -DNDEBUG -Iextlibs/miniz -Iextlibs/audio/include -D__STDC_CONSTANT_MACROS  -Iextlibs/expat -Iextlibs/squirrel/include -Iextlibs/sqrat/include -Iextlibs/nowide -Iextlibs/nvapi -Iextlibs/rapidjson/include -Iextlibs/gameswf
Compiling obj/fe_base.o...
In file included from src/fe_base.cpp:24:
src/fe_util.hpp:28:10: fatal error: SFML/Config.hpp: No such file or directory
   28 | #include <SFML/Config.hpp>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:484: obj/fe_base.o] Error 1

akafox

  • Hero Member
  • *****
  • Posts: 985
    • View Profile
Re: Trying to install Attract Mode on Pop_OS (based on Ubuntu 20.04)
« Reply #10 on: August 17, 2020, 08:28:00 PM »
that is so strange....all the dependencies you are missing should have been installed with that line of "code" I gave you...that is direct from the AM wiki!  :o well my install seems to be stuck..I may not be able to get back to you till tomorrow

If you can load/install synaptic package manager and look for all the listed missing packages one by one (you can copy the test up to the .ps extension) ...and make sure to install the DEV packages as well! you need those to compile...

example:

libavformat not libavformat.ps

and the libavformat-dev

okay so..I am compiling on a fresh install of POP os as I type...no errors...............and..finished..and runs...

almost looks as if it didn't install any dependencies as I look at your output...weird...

can I ask..you did install pop on your hard drive correct? because remember you can not install anything on a live CD... (though I am guessing you have..) and you are using sudo to install these right?

(sorry for the questions..just been doing this too long to not cover ALL bases...)

can you tell me what you type to install the deps..and any errors there please? (also if they are installed it will say they "are the newest version"..but let's start from output there..maybe we can get down to it and get you going..




« Last Edit: August 17, 2020, 09:22:27 PM by akafox »
People want life easy..then complain about it

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: Trying to install Attract Mode on Pop_OS (based on Ubuntu 20.04)
« Reply #11 on: August 18, 2020, 05:08:02 AM »
I meant Debian, not fedora.

It looks like you could possibly be missing dependency packages. First step is to see if you actually have the files on your computer. If not, try to install the package. Do it one at a time to make it easy to look at the log.

kairowan

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Trying to install Attract Mode on Pop_OS (based on Ubuntu 20.04)
« Reply #12 on: August 18, 2020, 09:06:37 PM »
Okay. I managed to get the dependencies installed and AM compiled. When I ran sudo make install, it seemed to install, it created a directory, but it isn't showing up in my installed programs.

In case you are curious what went wrong with the dependencies the first couple times, apparently, when I was manually downloading the dependencies before, I accidentally changed a software source server and since it didn't have a Release File, it would refuse to download anything from it. I manually changed the server, and it downloaded the dependencies fine. :)

Here's the output when I told it to sudo make install:

Code: [Select]
jarvis@pop-os:~/attract$ sudo make install
[sudo] password for jarvis:
flags: -Wl,--export-dynamic -I/usr/include/freetype2 -I/usr/include/libpng16 -DDATA_PATH=\"/usr/local/share/attract/\" -O2 -DNDEBUG -Iextlibs/audio/include -D__STDC_CONSTANT_MACROS -I/usr/include/uuid -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/squirrel/include -Iextlibs/sqrat/include -Iextlibs/nowide -Iextlibs/nvapi -Iextlibs/rapidjson/include -Iextlibs/gameswf  -DUSE_XLIB -DUSE_FONTCONFIG -DUSE_LIBARCHIVE -DUSE_SWRESAMPLE
mkdir -p -p /usr/local/share/attract/
install -D attract /usr/local/bin/attract
mkdir -p /usr/local/share/attract/
cp -r config/* /usr/local/share/attract/

akafox

  • Hero Member
  • *****
  • Posts: 985
    • View Profile
Re: Trying to install Attract Mode on Pop_OS (based on Ubuntu 20.04)
« Reply #13 on: August 19, 2020, 01:12:24 PM »
do me a favor...in your terminal type

Code: [Select]
attract
and see if AM loads. If it does great..problems solved!...

as foe adding it into your menu..we can do that manually if needed :)
People want life easy..then complain about it

kairowan

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Trying to install Attract Mode on Pop_OS (based on Ubuntu 20.04)
« Reply #14 on: August 19, 2020, 05:07:22 PM »
Yay! It loads! Plus I just installed my 6TB drive 10 minutes ago, so I'll have lots of room for games. XD

So I just need to add the icon to my installed programs. ^_^