PCSX2 for Debian/Ubuntu
(01-12-2021, 12:03 AM)hansolo77 Wrote: I did some digging and I think the problem I'm having is because it wants to store the plugins and such in the /root folder. Since I'm not using the root user, it must have been giving me difficulties. When I try to run the script with sudo, I can actually get it to load the BIOS but there is no audio. Grr, close but not there yet. Would really like some help.

Late, but this may help someone else if not you:

They are stored (should be) in /usr/games/plugins/
Just point your PCSX installation there in the plugins settings. If you installed it locally (i.e. compiled it) and it is not happy looking for the plugins where you pointed to locally, just copy them to /usr/games/plugins/. Failing that, there's the Appimage (see below)
Also, the reason there's no audio could be that PCSX2 sometimes defaults to SPU2null plugin. Just go to the plugins select option and choose the other one, SPU2-X 2.0.0 (or whatever version it is you have).

If you want to make your life easy, there's the AppImage repo:
https://github.com/ferion11/PCSX2_Appima...continuous

Before you run the AppImage:
1. Backup ~/.config/PCSX2, then delete everything it it other than your PS BIOS dump and memory cards.
2. As root apt-get purge pcsx2 && apt-get autoremove
3. Probably a dumb reminder, but chmod a+x <pcsx2-version>.appimage
4. Optionally, as root, mv pcsx2.appimage /usr/loca/bin/
(Note it's better to place a soft link to it if you have a small /usr/ partition, but most *nix users only have /tmp, /var, /home, and / as separate partitions and storage these days is plentiful for systems on a single partition).

Note: The appimage may give a plugin error message about not being able to find them. Ignore it and it should automagically find them (may require a restart). After that, your settings in ~/.config/PCSX2/ default and you'll have to reconfigure the plugins. I do not suggest migrating older config files as a lot has changed between 1.4 and 1.5, and even more by 1.7 (dev). If there's a setting that seems missing, it's most likely merged into another one / redundant, or it was simply moved since the UI has changed and some of the settings have been recategorised.
Ryzen 3600X || 8GB DDR4-2666 || GTX 1650 4GB || Debian 10 || PCSX 1.7 (App Image), 1.5 (Stable), 1.4 (EOL)
Reply

Sponsored links

Trying to compile on an Ubuntu 20.04 VM but I keep getting this error, any ideas? Just following the steps from here, and I keep running into this after running make -j$(nproc).
 



Code:
/usr/bin/ld: CMakeFiles/PCSX2.dir/x86/iR3000A.cpp.o: in function `recResetIOP()':
iR3000A.cpp:(.text+0x3040): undefined reference to `ConsoleLogSource::Write(ConsoleColors, wchar_t const*, ...) const'
/usr/bin/ld: iR3000A.cpp:(.text+0x30b1): undefined reference to `ConsoleLogSource::Write(ConsoleColors, wchar_t const*, ...) const'
/usr/bin/ld: CMakeFiles/PCSX2.dir/x86/ix86-32/iR5900-32.cpp.o: in function `recResetRaw() [clone .part.0]':
iR5900-32.cpp:(.text+0x10fe): undefined reference to `BaseScopedAlloc<char>::BaseScopedAlloc(BaseScopedAlloc<char> const&)'
/usr/bin/ld: CMakeFiles/PCSX2.dir/x86/ix86-32/iR5900-32.cpp.o: in function `recAlloc()':
iR5900-32.cpp:(.text+0x37f7): undefined reference to `BaseScopedAlloc<char>::BaseScopedAlloc(BaseScopedAlloc<char> const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [pcsx2/CMakeFiles/PCSX2.dir/build.make:7186: pcsx2/PCSX2] Error 1
make[1]: *** [CMakeFiles/Makefile2:1519: pcsx2/CMakeFiles/PCSX2.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

I'd rather just get rid of the AppImage and compile things myself (because the AppImage doesn't integrate well with my theme), so help would be appreciated.
Reply
What's the output when you run the cmake command in a new build directory.
Reply
What do you mean by a new build directory?
Reply
New as in empty, I want cmake to generate everything anew, without anything being cached. Just remove everything from the `build` directory and type `cmake ..`
Can you show the output of that?
Reply
Code:
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building with GNU GCC
-- BuildType set to Devel by default
-- Disable the building of po files by default in Devel build !!!
-- Cross compilation is disabled.
-- Compiling a x86_64 build on a x86_64 host.
-- Found ALSA: /usr/lib/x86_64-linux-gnu/libasound.so (found version "1.2.2")
-- Found PCAP: /usr/lib/x86_64-linux-gnu/libpcap.so 
-- Performing Test PCAP_LINKS_SOLO
-- Performing Test PCAP_LINKS_SOLO - Success
-- Looking for pcap_get_pfring_id
-- Looking for pcap_get_pfring_id - not found
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.10")
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version "2.10.1")
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.8.1")
-- Found Git: /usr/bin/git (found version "2.25.1")
-- Looking for lzma_auto_decoder in /usr/lib/x86_64-linux-gnu/liblzma.so
-- Looking for lzma_auto_decoder in /usr/lib/x86_64-linux-gnu/liblzma.so - found
-- Looking for lzma_easy_encoder in /usr/lib/x86_64-linux-gnu/liblzma.so
-- Looking for lzma_easy_encoder in /usr/lib/x86_64-linux-gnu/liblzma.so - found
-- Looking for lzma_lzma_preset in /usr/lib/x86_64-linux-gnu/liblzma.so
-- Looking for lzma_lzma_preset in /usr/lib/x86_64-linux-gnu/liblzma.so - found
-- Found LibLZMA: /usr/lib/x86_64-linux-gnu/liblzma.so (found version "5.2.4")
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so   
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.37")
-- Could NOT find Vtune (missing: VTUNE_LIBRARIES VTUNE_INCLUDE_DIRS)
-- Found wxWidgets: -L/usr/lib/x86_64-linux-gnu;-pthread;;;-lwx_baseu-3.0;-lwx_gtk3u_core-3.0;-lwx_gtk3u_adv-3.0 (found version "3.0.4")
-- Found Libc: /usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so 
-- Found PulseAudio: /usr/lib/x86_64-linux-gnu/libpulse.so (found version "13.99.0")
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- EGL found pkg
-- X11_XCB found pkg
-- XCB found pkg
-- AIO found
-- LIBUDEV found pkg
-- PORTAUDIO found
-- SOUNDTOUCH found pkg
-- SAMPLERATE found pkg
-- SDL2 found pkg
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- GTK3 found pkg
-- Found the following HarfBuzz libraries:
--  HarfBuzz (required): /usr/lib/x86_64-linux-gnu/libharfbuzz.so
-- Found HarfBuzz: /usr/include/harfbuzz (found version "2.6.4")
-- No system fmt was found. Using bundled
-- Version: 7.1.3
-- Build type: Devel
-- CXX_STANDARD: 11
-- Performing Test has_std_11_flag
-- Performing Test has_std_11_flag - Success
-- Performing Test has_std_0x_flag
-- Performing Test has_std_0x_flag - Success
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS - Success
-- Performing Test FMT_HAS_VARIANT
-- Performing Test FMT_HAS_VARIANT - Success
-- Required features: cxx_variadic_templates
-- Looking for strtod_l
-- Looking for strtod_l - not found
-- Using bundled yaml-cpp
Using precompiled headers.
-- Found Python: /usr/bin/python3.8 (found version "3.8.10") found components: Interpreter
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/username/Downloads/pcsx2/build

Is what I got from 
Code:
cmake ..
.
Reply
Hello there, I'm new here

Just followed the steps to compile the program on Ubuntu 20.04 (actually I have installed Ubuntu 21.10), after compilation the program runs but, when I try to run a game shows:

Huh

window title: Assertion failed:Unhandled page fault @ 0x00000000


Code:
/home/user/pcsx2/common/Linux/LnxHostSys.cpp(69) : assertion failed:
    Function:  void SysPageFaultSignalFilter(int, siginfo_t*, void*)
    Thread:    MTGS
    Condition: false
    Message:  Unhandled page fault @ 0x00000000

Stacktrace:
[00] 0x0x55c220c0ed9f                           
[01] 0x0x7f4181c17520                           
[02] 0x0x55c22085aa4f                           
[03] 0x0x55c220630435                           
[04] 0x0x55c220bfcf6e                           
[05] 0x0x55c220bfe2c8                           
[06] 0x0x7f4181c69947                           
[07] clone
Reply
@gregory.. you're a boss man. Just downloaded the appimage of 1.72530 and man is this a massive difference in quality from 1.6 that I was able to pull from the ppa...noticing some small quirks though.. Where would the best place to mention them? I dont want to muddy up this thread with em if it's not the right place to do so.
amd tr 1950x                                                 amd ryzen 5 2500u
asrock x399 taichi                                         amd vega 8 
XFX Radeon rx570                                       16gb ddr 4 2400 ram
32gb gskill ddr4-3200                                   1tb nvme ssd
Debian Bullseye                                           480gb sata ssd
Custom loop water cooled                           HP envy x360
nzxt 340 case
Reply
I just use the 1.7 PPA, and it works for my purposes.
Reply
(09-08-2022, 11:55 PM)Neigdoig Wrote: I just use the 1.7 PPA, and it works for my purposes.

The PPA builds are no longer supported, appimages on the website are the official source.
Reply




Users browsing this thread: 2 Guest(s)