RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Installing pcsx2

    Scheduled Pinned Locked Moved Help and Support
    pcsx2ubuntu16.04install
    36 Posts 5 Posters 23.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Charononus
      last edited by Charononus

      Posting my notes as I got it to run last night though it's not accepting input from my gamepad as of yet. Not quite sure where to start looking for that. But this got it to install and launch a game.

      Commands used to setup chroot
      sudo apt install schroot
      sudo apt install debootstrap

      sudo mkdir /srv/chroot/xenial
      sudo nano /etc/schroot/schroot.conf

      Pasted this to the end of the file

      [xenial]
      description=Ubuntu Xenial 16.0.4 32-bit
      directory=/srv/chroot/xenial
      groups=sbuild-security
      aliases=main
      personality=linux32

      sudo debootstrap --variant=buildd --foreign --arch i386 xenial /srv/chroot/xenial/ http://mirror.cc.columbia.edu/pub/linux/ubuntu/archive/

      sudo chroot /srv/chroot/xenial /debootstrap/debootstrap --second-stage

      sudo schroot -c xenial -u root

      nano /etc/apt/sources.list

      deb http://archive.ubuntu.com/ubuntu xenial main
      deb http://us.archive.ubuntu.com/ubuntu/ xenial universe
      deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
      deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
      deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
      deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
      deb http://security.ubuntu.com/ubuntu xenial-security main restricted
      deb http://security.ubuntu.com/ubuntu xenial-security universe
      deb http://security.ubuntu.com/ubuntu xenial-security multiverse

      apt update
      apt install ubuntu-standard
      apt install ubuntu-desktop
      apt install nvidia-375

      add-apt-repository ppa:gregory-hainaut/pcsx2.official.ppa

      apt update

      apt install pcsx2
      sudo mount -o bind /proc /srv/chroot/xenial/proc (system shell)
      sudo cp /etc/resolv.conf /var/chroot/etc/resolv.conf (system shell)
      export DISPLAY=:0.0
      xhost + (system shell)

      cd /usr/games
      DISPLAY=:0.0 ./PCSX2

      (system shell) is just a comment to myself that it was ran in a system terminal not a chrooted terminal. The install list could probably be reduced at somepoint, this is a huge install, but I went for brute force and didn't worry about disk space yet. Hopefully this could help someone else like me that wants to get it running.

      1 Reply Last reply Reply Quote 1
      • C
        Charononus
        last edited by

        As an update I learned that the gamepad is /dev/input/js0 so I linked the /dev to the chroot in the system shell with:
        sudo mount -o bind /dev /srv/chroot/xenial/dev
        but I still got nothing inside the game.

        I'm thinking that that mounting will be needed still, but I'm definitely still missing something.

        BuZzB 1 Reply Last reply Reply Quote 1
        • BuZzB
          BuZz administrators @Charononus
          last edited by

          @Charononus you have done well. You are right you will need to bind mount /dev. Also maybe /proc - hope you get it working. When i have more time i may introduce a simple workaround to exclude our custom sdl2, which may be easier. Appreciate your efforts - i always like when people are willing to spend time to problem solve.

          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

          1 Reply Last reply Reply Quote 1
          • BuZzB
            BuZz administrators
            last edited by

            I think I will prioritise this actually. It should be simple for me to allow exclusion of our SDL2. I will look at it over next couple of days.

            To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

            C 1 Reply Last reply Reply Quote 1
            • C
              Charononus
              last edited by

              Well small update on my part. I finally had a little bit of time to troubleshoot farther. The gamepad is being recognized inside the chroot. I tested this by installing jstest inside the chroot and running it. Unfortunately the onepad plug in for PCSX2 is still not recognizing that it's there. At least I know that the input does in fact show up in the chroot now though which means that I'm a step closer to getting things running this way.

              1 Reply Last reply Reply Quote 0
              • C
                Charononus @BuZz
                last edited by

                @BuZz
                Hey Buzz, if you have the time to answer any of this better than I can, I've got one of the devs for pcsx2 talking on their forums about this. http://forums.pcsx2.net/Thread-PCSX2-for-Debian-Ubuntu?pid=559958#pid559958

                BuZzB 1 Reply Last reply Reply Quote 0
                • BuZzB
                  BuZz administrators @Charononus
                  last edited by BuZz

                  @Charononus Not sure what you are after? The problem is due to our custom sdl2:amd64 - which conflicts with the system sdl2:i386 as they don't match. I am aware of the issue - there is nothing pcsx2 can do about it so not sure why you are posting there (unless they ever support native 64bit).

                  To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    Charononus @BuZz
                    last edited by

                    @BuZz said in Installing pcsx2:

                    @Charononus Not sure what you are after? The problem is due to our custom sdl2:amd64 - which conflicts with the system sdl2:i386 as they don't match. I am aware of the issue - there is nothing pcsx2 can do about it so not sure why you are posting there (unless they ever support native 64bit).

                    I was looking for some help with the chrooted version as I've been able to test that the gamepad I'm using is getting input into the chroot (tested via jstest and evtest) and the dev there asked about what version of libsdl wasn't working. I was unaware that we were using a customized one I just thought it was a newer version not a customized which is why I wasn't sure how to answer him.

                    1 Reply Last reply Reply Quote 0
                    • C
                      Charononus
                      last edited by

                      Actually VICTORY!!!!!

                      I've got the gamepad running.

                      Inside the system shell before launching the chroot you need to
                      sudo mount -o bind /sys /srv/chroot/xenial/sys/

                      Next up will be to get the audio working as I realized that it's not passing that out. Probably an export type deal. Not bad for a newb that didn't know anything about this a month ago.

                      1 Reply Last reply Reply Quote 0
                      • C
                        Charononus
                        last edited by

                        Looks like I spoke too soon about audio being easy. I thought I'd maybe have to install something, but it looks like audio is a known problem child with chroots and pcsx2. But things play. That's something for the moment.

                        1 Reply Last reply Reply Quote 0
                        • J
                          jerryfudd
                          last edited by

                          Hi, this is all beyond my ability but avidly watching for any progress :D

                          C 1 Reply Last reply Reply Quote 0
                          • C
                            Charononus @jerryfudd
                            last edited by

                            @jerryfudd said in Installing pcsx2:

                            Hi, this is all beyond my ability but avidly watching for any progress :D

                            Honestly there probably won't be anymore progress from me. While I love how easy retropie made things, the custom sdl2 was just too much of a problem for me to deal with anymore. I installed retroarch, emulationstation, dolphin and pcsx2 manually.

                            1 Reply Last reply Reply Quote 0
                            • BuZzB
                              BuZz administrators
                              last edited by BuZz

                              I have created a workaround to disable our custom sdl2 so pcsx2 will install without problems on 64bit systems.

                              First of all you need to downgrade sdl2 to the system packaged version. Make sure retropie-setup is updated then do from a terminal:

                              sudo ./retropie_packages.sh sdl2 revert
                              

                              You now need to create a config file in /opt/retropie/configs/all/retropie.cfg with the line

                              own_sdl2 = "0"
                              

                              RetroPie should now not try and install any custom sdl2 and installing pcsx2 should work.

                              To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                              BuZzB 1 Reply Last reply Reply Quote 3
                              • BuZzB
                                BuZz administrators @BuZz
                                last edited by

                                @BuZz Updated previous post with a couple of corrections.

                                To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                                1 Reply Last reply Reply Quote 1
                                • BuZzB
                                  BuZz administrators
                                  last edited by

                                  I have now implemented this automatically, so when installing pcsx2 it will prompt you if you want to downgrade to the system sdl2 or abort install of pcsx2.

                                  To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                                  C 2 Replies Last reply Reply Quote 2
                                  • C
                                    Charononus @BuZz
                                    last edited by

                                    @BuZz said in Installing pcsx2:

                                    I have now implemented this automatically, so when installing pcsx2 it will prompt you if you want to downgrade to the system sdl2 or abort install of pcsx2.

                                    Awesome man. I'm going to clear out my custom install so that I can take full advantage of all the run command and assorted other goodies again.

                                    1 Reply Last reply Reply Quote 0
                                    • C
                                      Charononus @BuZz
                                      last edited by

                                      @BuZz said in Installing pcsx2:

                                      I have now implemented this automatically, so when installing pcsx2 it will prompt you if you want to downgrade to the system sdl2 or abort install of pcsx2.

                                      Not finished with all the setup yet, so I can't tell you if there are any bugs in actual program execution, but I had to manually install
                                      libportaudio2:i386
                                      libasound2-plugins:i386

                                      on a fresh Ubuntu installation.

                                      BuZzB 1 Reply Last reply Reply Quote 0
                                      • BuZzB
                                        BuZz administrators @Charononus
                                        last edited by

                                        @Charononus at what point? If there was some error please post a log.

                                        To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                                        C 2 Replies Last reply Reply Quote 0
                                        • C
                                          Charononus @BuZz
                                          last edited by

                                          @BuZz said in Installing pcsx2:

                                          @Charononus at what point? If there was some error please post a log.

                                          Yeah it had an error when installing because of those two packages. I'll post it later tonight when I'm back on my computer rather than my phone. After installing those two packages with apt it went great.

                                          1 Reply Last reply Reply Quote 0
                                          • C
                                            Charononus @BuZz
                                            last edited by

                                            @BuZz

                                            Ok sorry it took so long. Here's the log. (Note that I did screw up and installed 16.10 instead of 16.04, which might be part of the problem.)

                                            Log started at: Fri Jun 9 22:48:57 EDT 2017

                                            = = = = = = = = = = = = = = = = = = = = =
                                            Installing dependencies for 'pcsx2' : PS2 emulator PCSX2
                                            = = = = = = = = = = = = = = = = = = = = =

                                            = = = = = = = = = = = = = = = = = = = = =
                                            Running action 'revert' for 'sdl2' : SDL (Simple DirectMedia Layer) v2.x
                                            = = = = = = = = = = = = = = = = = = = = =

                                            Reading package lists...
                                            Building dependency tree...
                                            Reading state information...
                                            The following additional packages will be installed:
                                            libgles2-mesa-dev libsndio-dev libxv-dev x11proto-video-dev
                                            The following NEW packages will be installed:
                                            libgles2-mesa-dev libsndio-dev libxv-dev x11proto-video-dev
                                            The following held packages will be changed:
                                            libsdl2-dev
                                            The following packages will be DOWNGRADED:
                                            libsdl2-2.0-0 libsdl2-dev
                                            0 upgraded, 4 newly installed, 2 downgraded, 0 to remove and 286 not upgraded.
                                            Need to get 1,065 kB of archives.
                                            After this operation, 152 kB of additional disk space will be used.
                                            Get:1 http://us.archive.ubuntu.com/ubuntu yakkety-updates/main amd64 libgles2-mesa-dev amd64 12.0.6-0ubuntu0.16.10.1 [33.4 kB]
                                            Get:2 http://us.archive.ubuntu.com/ubuntu yakkety/universe amd64 libsndio-dev amd64 1.1.0-2 [13.4 kB]
                                            Get:3 http://us.archive.ubuntu.com/ubuntu yakkety/main amd64 x11proto-video-dev all 2.3.3-1 [15.8 kB]
                                            Get:4 http://us.archive.ubuntu.com/ubuntu yakkety/main amd64 libxv-dev amd64 2:1.0.10-1 [32.4 kB]
                                            Get:5 http://us.archive.ubuntu.com/ubuntu yakkety/universe amd64 libsdl2-dev amd64 2.0.4+dfsg2-1ubuntu1 [625 kB]
                                            Get:6 http://us.archive.ubuntu.com/ubuntu yakkety/universe amd64 libsdl2-2.0-0 amd64 2.0.4+dfsg2-1ubuntu1 [345 kB]
                                            Fetched 1,065 kB in 0s (1,703 kB/s)
                                            Selecting previously unselected package libgles2-mesa-dev:amd64.
                                            (Reading database ...
                                            (Reading database ... 5%
                                            (Reading database ... 10%
                                            (Reading database ... 15%
                                            (Reading database ... 20%
                                            (Reading database ... 25%
                                            (Reading database ... 30%
                                            (Reading database ... 35%
                                            (Reading database ... 40%
                                            (Reading database ... 45%
                                            (Reading database ... 50%
                                            (Reading database ... 55%
                                            (Reading database ... 60%
                                            (Reading database ... 65%
                                            (Reading database ... 70%
                                            (Reading database ... 75%
                                            (Reading database ... 80%
                                            (Reading database ... 85%
                                            (Reading database ... 90%
                                            (Reading database ... 95%
                                            (Reading database ... 100%
                                            (Reading database ... 201486 files and directories currently installed.)
                                            Preparing to unpack .../0-libgles2-mesa-dev_12.0.6-0ubuntu0.16.10.1_amd64.deb ...
                                            Unpacking libgles2-mesa-dev:amd64 (12.0.6-0ubuntu0.16.10.1) ...
                                            Selecting previously unselected package libsndio-dev:amd64.
                                            Preparing to unpack .../1-libsndio-dev_1.1.0-2_amd64.deb ...
                                            Unpacking libsndio-dev:amd64 (1.1.0-2) ...
                                            Selecting previously unselected package x11proto-video-dev.
                                            Preparing to unpack .../2-x11proto-video-dev_2.3.3-1_all.deb ...
                                            Unpacking x11proto-video-dev (2.3.3-1) ...
                                            Selecting previously unselected package libxv-dev:amd64.
                                            Preparing to unpack .../3-libxv-dev_2%3a1.0.10-1_amd64.deb ...
                                            Unpacking libxv-dev:amd64 (2:1.0.10-1) ...
                                            dpkg: warning: downgrading libsdl2-dev:amd64 from 2.0.5+5 to 2.0.4+dfsg2-1ubuntu1
                                            Preparing to unpack .../4-libsdl2-dev_2.0.4+dfsg2-1ubuntu1_amd64.deb ...
                                            Unpacking libsdl2-dev (2.0.4+dfsg2-1ubuntu1) over (2.0.5+5) ...
                                            dpkg: warning: downgrading libsdl2-2.0-0:amd64 from 2.0.5+5 to 2.0.4+dfsg2-1ubuntu1
                                            Preparing to unpack .../5-libsdl2-2.0-0_2.0.4+dfsg2-1ubuntu1_amd64.deb ...
                                            Unpacking libsdl2-2.0-0:amd64 (2.0.4+dfsg2-1ubuntu1) over (2.0.5+5) ...
                                            Setting up libsndio-dev:amd64 (1.1.0-2) ...
                                            Setting up libgles2-mesa-dev:amd64 (12.0.6-0ubuntu0.16.10.1) ...
                                            Processing triggers for libc-bin (2.24-3ubuntu1) ...
                                            /sbin/ldconfig.real: /usr/lib/nvidia-375/libEGL.so.1 is not a symbolic link

                                            /sbin/ldconfig.real: /usr/lib32/nvidia-375/libEGL.so.1 is not a symbolic link

                                            Setting up libsdl2-2.0-0:amd64 (2.0.4+dfsg2-1ubuntu1) ...
                                            Setting up x11proto-video-dev (2.3.3-1) ...
                                            Setting up libxv-dev:amd64 (2:1.0.10-1) ...
                                            Processing triggers for man-db (2.7.5-1) ...
                                            Setting up libsdl2-dev (2.0.4+dfsg2-1ubuntu1) ...
                                            Processing triggers for libc-bin (2.24-3ubuntu1) ...
                                            /sbin/ldconfig.real: /usr/lib/nvidia-375/libEGL.so.1 is not a symbolic link

                                            /sbin/ldconfig.real: /usr/lib32/nvidia-375/libEGL.so.1 is not a symbolic link

                                            W: --force-yes is deprecated, use one of the options starting with --allow instead.

                                            = = = = = = = = = = = = = = = = = = = = =
                                            Installing 'pcsx2' : PS2 emulator PCSX2
                                            = = = = = = = = = = = = = = = = = = = = =

                                            Reading package lists...
                                            Building dependency tree...
                                            Reading state information...
                                            Some packages could not be installed. This may mean that you have
                                            requested an impossible situation or if you are using the unstable
                                            distribution that some required packages have not yet been created
                                            or been moved out of Incoming.
                                            The following information may help to resolve the situation:

                                            The following packages have unmet dependencies:
                                            pcsx2:i386 : Depends: libportaudio2:i386 (>= 19+svn20101113) but it is not going to be installed
                                            Recommends: libasound2-plugins:i386 but it is not going to be installed
                                            E: Unable to correct problems, you have held broken packages.
                                            Unable to install binary for pcsx2

                                            Log ended at: Fri Jun 9 22:49:10 EDT 2017
                                            Total running time: 0 hours, 0 mins, 13 secs

                                            BuZzB 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.