Attract-Mode Support Forum
Attract-Mode Support => General => Topic started by: kairowan on August 15, 2020, 02:42:23 PM
-
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.
-
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"
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:
git clone https://github.com/mickelson/attract.git && cd attract
third type:
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)
sudo make install
if you have any problems just ask. And welcome back to linux! :D
-
It's worth noting that compile time of attract on Linux is actually low in comparison to other things.
-
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
-
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...
-
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?
-
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"
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:
git clone https://github.com/mickelson/attract.git && cd attract
third type:
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)
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
-
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.
-
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...
-
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.
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
-
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..
-
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.
-
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:
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/
-
do me a favor...in your terminal type
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 :)
-
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. ^_^
-
Contains binary utilities that are part of operating system:
/usr/bin
Contains bin installed by user admin:
/usr/local/bin
Installed bin can be launched by it's filename.
Launch any bin:
$ cd <dir>
$ ./<bin name>
-
Go to the pop_shop and look/search for Main Menu
or type
sudo apt-get install menulibre
in a terminal
next copy /home/kitsune/attract/util/icon.png to /home/jarvis/.local/share/applications/icon.png
(terminal)
cp /home/kitsune/attract/util/icon.png to /home/jarvis/.local/share/applications/icon.png
search for main menu in the unity bar..start it
highlight games...then choose new item
name: Attract Mode
command: attract
Comment: An emulator front end
in the little x at the left...that is a button press that to chose your icon (located in /home/jarvis/.local/share/applications/) press ok
next go to /home/jarvis/.local/share/applications/ (it is a hidden folder you you will need to show hidden files and folders) the right click on the desktop entry the you just made for attract mode go to properties then make executable by clicking the box and pressing ok
or sudo chmod +x /home/jarvis/.local/share/applications/menulibre-attract-mode.desktop
from the terminal
Restart the desktop (or your computer)..when you are back to the desktop look for Attract Mode in the search bar click it (or hit the enter key) to start it