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

    Dolphin & RetroArch Compile fails - RockPro64 Armbian Ubuntu 20.04.6 LTS - RetroPie Setup 4.8.5

    Scheduled Pinned Locked Moved Help and Support
    dolphinfailed compilerockpro644.8.5retroarch
    34 Posts 3 Posters 3.0k 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.
    • 2Play2
      2Play @mitu
      last edited by 2Play

      @mitu good day
      qt5 is installed.
      Ill try to install 6.5 (i found out that 6.5 is native to 22.04 Ubuntu so I wont bother to compile from source.)
      Ill try now that below deleted and compile retroarch

      About retroarch noted. On clean os 22.04 both compile ok. Not on current 20.04

      about the brcm
      I did little digging and found
      ls -la /usr/lib/aarch64-linux-gnu/pkgconfig/brcm*

      -rw-r--r-- 1 root root 375 Jan 25 2022 brcmegl.pc
      -rw-r--r-- 1 root root 256 Jan 25 2022 brcmglesv2.pc
      -rw-r--r-- 1 root root 256 Jan 25 2022 brcmvg.pc

      I delete these and Ill retry. Maybe they got created on last year compile trials

      Your friend,
      2Play!

      1 Reply Last reply Reply Quote 0
      • 2Play2
        2Play @WhiteT982
        last edited by 2Play

        @WhiteT982 Thank you for your kind suggestion. Ill have a test

        Unfo no go . Cant be installed on rp64
        a849709b-c28c-4d70-b3ef-d680c48c900d-image.png
        and when I tried local install of the pack it posted as unsupported

        Your friend,
        2Play!

        1 Reply Last reply Reply Quote 0
        • 2Play2
          2Play @mitu
          last edited by

          @mitu
          Both failed once more
          Dolphin (had to remove 0-42% due to size)
          [https://pastebin.com/B7L2X2vZ](link url)

          Retroarch (as mentioned compiles only manually with above parameters)
          [https://pastebin.com/66jzYkVu](link url)

          Ill try to see if i can compile dolphin manually

          Your friend,
          2Play!

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @2Play
            last edited by

            @2Play said in Dolphin & RetroArch Compile fails - RockPro64 Armbian Ubuntu 20.04.6 LTS - RetroPie Setup 4.8.5:

            Dolphin (had to remove 0-42% due to size)
            [https://pastebin.com/B7L2X2vZ](link url)

            This seems to be an upstream issue. Either it requires a newer C++ compiler or it's a temporary build problem due to a bug in the code.

            Retroarch (as mentioned compiles only manually with above parameters)
            [https://pastebin.com/66jzYkVu](link url)

            The log shows:

            Checking presence of header file EGL/eglext.h ... yes
            Checking presence of package brcmegl ... no
            Checking existence of -lbrcmEGL ... no
            Forced to build with library -lbrcmEGL, but cannot locate. Exiting ...
            ...
            

            which seems to indicate that it retained the previous config. Can you clean up the sources and re-try installation ?

            2Play2 1 Reply Last reply Reply Quote 0
            • 2Play2
              2Play @mitu
              last edited by

              @mitu
              When tried dolphin manually it posts
              "Requires GCC 10, Clang 12, (system has 9 which i removed and added 10 but when run scriptmodule it seems it installs 9 back from apt)
              Below not needed on my setup
              AppleClang 13.0.0 (Xcode 13.0), or MSVC 14.32 (Visual Studio 2022 17.2.3) or higher"

              Im currently building lr-mess. (everything else except above 2 compile ok) so ill retry RA but I always clean the source folder prior re compile.
              Ill retry when lr-mess is complete.
              Tx for taking the time

              On another note (ill make new post as needed after i test to the dev section?):
              The BasiliskII compile cant load the default img and rom. Have working setup that i tested files and all ok
              Im compiling also manually from git source to see if ok or not

              Your friend,
              2Play!

              mituM 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @2Play
                last edited by mitu

                @2Play said in Dolphin & RetroArch Compile fails - RockPro64 Armbian Ubuntu 20.04.6 LTS - RetroPie Setup 4.8.5:

                "Requires GCC 10, Clang 12, (system has 9 which i removed and added 10 but when run scriptmodule it seems it installs 9 back from apt)
                Below not needed on my setup

                Yes, the latest Dolphin (master branch) requires gcc 10 at least, the RetroPie scriptmodule will download and install an older Dolphin revision when it detects an older gcc. So I can't explain - based on your log - why it's trying to download and install the master branch.

                Are you sure you're using the latest RetroPie-Setup ?

                The BasiliskII compile cant load the default img and rom. Have working setup that i tested files and all ok

                I'm not familiar with BasiliskII, but more details - a runtime log - could help narrow the problem.

                2Play2 1 Reply Last reply Reply Quote 0
                • 2Play2
                  2Play @mitu
                  last edited by 2Play

                  @mitu
                  Ill retry the scriptmodule steps manually. Im preparing a clean OS with 22.04 and kernel 6 which so far compiles RA ok.
                  Ill test the dolphin on it and lr-mess (failed last night on 20.04 - ill post pastebin below)

                  BasiliskII i compiled manually and seem detects x11 and binary is 12MB :-) rather ~1MB SDL based binary.
                  I tested existing files on desktop x11 and runs ok, so i think Ill play with the launch script since my original img and rom files are ok

                  Pastebin lr-mess compile (private as it found offensive material??? in the log :D)
                  [https://pastebin.com/r8Dt1hG0](link url)

                  FYR
                  11567e56-ff4b-4801-a3f2-577015ef0bd9-image.png

                  Your friend,
                  2Play!

                  mituM 1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator @2Play
                    last edited by mitu

                    @2Play said in Dolphin & RetroArch Compile fails - RockPro64 Armbian Ubuntu 20.04.6 LTS - RetroPie Setup 4.8.5:

                    Pastebin lr-mess compile (private as it found offensive material??? in the log :D)
                    [https://pastebin.com/r8Dt1hG0](link url)

                    Not sure what use is it - I don't have an account with Pastebin to see it and I don't intend to create one.

                    2Play2 1 Reply Last reply Reply Quote 0
                    • 2Play2
                      2Play @mitu
                      last edited by

                      @mitu :) ok dk not my error
                      I tried to cut text that just has no relative information and managed to save as public
                      You can try above when you have time

                      Your friend,
                      2Play!

                      mituM 1 Reply Last reply Reply Quote 0
                      • mituM
                        mitu Global Moderator @2Play
                        last edited by mitu

                        @2Play you don't have enough RAM to compilelr-mess - for 64bit you'd need at least 12 GB available, if not more.

                        2Play2 1 Reply Last reply Reply Quote 1
                        • 2Play2
                          2Play @mitu
                          last edited by

                          @mitu thought so. I have an idea. tx for your feedback

                          Your friend,
                          2Play!

                          1 Reply Last reply Reply Quote 0
                          • 2Play2
                            2Play
                            last edited by

                            @mitu in regards to RA compile
                            Tried to compile clean (removed package and try to compile RA 1.16 on RockPro64)
                            Latest RPie Setup
                            aabb25ff-4946-4cbb-ae4c-dc7a62a535d8-image.png

                            From Source
                            da380a93-a691-4cce-97c3-9e3776bc2307-image.png

                            CRASH in seconds
                            3a7f6183-02d8-4887-91bc-e7f58feafd6d-image.png

                            From log is looking again for brcm
                            `= = = = = = = = = = = = = = = = = = = = =
                            Building 'retroarch' : RetroArch - frontend to the libretro emulator cores - required by all lr-* emulators
                            = = = = = = = = = = = = = = = = = = = = =

                            Checking operating system ... Linux (Ubuntu 20.04.6 LTS 20.04)
                            Checking for suitable working C compiler ... /usr/bin/gcc works
                            Checking for suitable working C++ compiler ... /usr/bin/g++ works
                            Checking for pkg-config ... /usr/bin/pkg-config
                            Checking for availability of switch -std=gnu99 in /usr/bin/gcc ... yes
                            Checking for availability of switch -std=c++11 in /usr/bin/g++ ... yes
                            Checking for availability of switch -Wno-unused-result in /usr/bin/gcc ... yes
                            Checking for availability of switch -Wno-unused-variable in /usr/bin/gcc ... yes
                            Checking function sd_get_machine_names in -lsystemd ... no
                            Checking presence of package bcm_host ... 1
                            Checking presence of header file EGL/eglext.h ... yes
                            Checking presence of package brcmegl ... no
                            Checking existence of -lbrcmEGL ... no
                            Forced to build with library -lbrcmEGL, but cannot locate. Exiting ...
                            rm -rf obj-unix
                            rm -f retroarch
                            rm -f .d
                            config.mk is outdated or non-existing. Run ./configure again.
                            make: *** [Makefile:196: config.mk] Error 1
                            Could not successfully build retroarch - RetroArch - frontend to the libretro emulator cores - required by all lr-
                            emulators (/home/pi/RetroPie-Setup/tmp/build/retroarch/retroarch not found).
                            /home/pi

                            Log ended at: Mon 23 Oct 2023 01:57:45 PM UTC`

                            As you can see on top image, the system is recognized correctly.

                            Any suggestions? Something to add to the scriptmodule?

                            Your friend,
                            2Play!

                            mituM 1 Reply Last reply Reply Quote 0
                            • mituM
                              mitu Global Moderator @2Play
                              last edited by

                              @2Play said in Dolphin & RetroArch Compile fails - RockPro64 Armbian Ubuntu 20.04.6 LTS - RetroPie Setup 4.8.5:

                              Checking existence of -lbrcmEGL ... no
                              Forced to build with library -lbrcmEGL, but cannot locate. Exiting ...

                              It fails because of the error above. I don't know why it tries to include brcmEGL, can you upload the config.log from the build folder somewhere to take a look ?

                              1 Reply Last reply Reply Quote 0
                              • 2Play2
                                2Play
                                last edited by

                                @mitu
                                I took the liberty and changed the scriptmodule to do my job on the RockPro64

                                Ive updated below build function to

                                function build_retroarch() {
                                    local params=(--disable-opengl1 --disable-videocore --enable-udev --enable-kms --enable-x11 --enable-egl --enable-vulkan --disable-sdl --enable-sdl2 --disable-pulse --disable-oss --disable-al --disable-jack --disable-qt --enable-opengles --enable-opengles3 --enable-opengles3_1 --disable-opengles3_2)
                                    ./configure --prefix="$md_inst" "${params[@]}"
                                    make clean
                                    make
                                    md_ret_require="$md_build/retroarch"
                                

                                from original

                                function build_retroarch() {
                                    local params=(--disable-sdl --enable-sdl2 --disable-oss --disable-al --disable-jack --disable-qt)
                                        if ! isPlatform "x11"; then
                                            params+=(--disable-pulse)
                                            ! isPlatform "mesa" && params+=(--disable-x11)
                                        fi
                                        if [[ "$__os_debian_ver" -lt 9 ]]; then
                                            params+=(--disable-ffmpeg)
                                        fi
                                        isPlatform "gles" && params+=(--enable-opengles)
                                        if isPlatform "gles3"; then
                                            params+=(--enable-opengles3)
                                            isPlatform "gles31" && params+=(--enable-opengles3_1)
                                            isPlatform "gles32" && params+=(--enable-opengles3_2)
                                        fi
                                        isPlatform "rpi" && isPlatform "mesa" && params+=(--disable-videocore)
                                        # Temporarily block dispmanx support for fkms until upstream support is fixed
                                        isPlatform "dispmanx" && ! isPlatform "kms" && params+=(--enable-dispmanx --disable-opengl1)
                                        isPlatform "mali" && params+=(--enable-mali_fbdev)
                                        isPlatform "kms" && params+=(--enable-kms --enable-egl)
                                        isPlatform "arm" && params+=(--enable-floathard)
                                        isPlatform "neon" && params+=(--enable-neon)
                                        isPlatform "vulkan" && params+=(--enable-vulkan) || params+=(--disable-vulkan)
                                        ! isPlatform "x11" && params+=(--disable-wayland)
                                        isPlatform "vero4k" && params+=(--enable-mali_fbdev --with-opengles_libs='-L/opt/vero3/lib')
                                        ./configure --prefix="$md_inst" "${params[@]}"
                                        make clean
                                        make
                                        md_ret_require="$md_build/retroarch"
                                

                                It compiled ok.
                                So ill do this in the meantime until a fix applied or have more time in peace to see what is breaks the script from the params choices

                                Your friend,
                                2Play!

                                mituM 1 Reply Last reply Reply Quote 0
                                • mituM
                                  mitu Global Moderator @2Play
                                  last edited by

                                  @2Play said in Dolphin & RetroArch Compile fails - RockPro64 Armbian Ubuntu 20.04.6 LTS - RetroPie Setup 4.8.5:

                                  So ill do this in the meantime until a fix applied

                                  I don't think there will be any fix applied if the cause of the failure is not determined first.

                                  2Play2 1 Reply Last reply Reply Quote 0
                                  • 2Play2
                                    2Play @mitu
                                    last edited by

                                    @mitu I hear you but the prob seems to be in the params mix
                                    If you have an idea bss the log it would be great.
                                    Ill test my side and propose here and Ill leave the commits to you in due time

                                    Your friend,
                                    2Play!

                                    1 Reply Last reply Reply Quote 0
                                    • 2Play2
                                      2Play
                                      last edited by

                                      @mitu
                                      With the latest RA 1.16 the lr dolphin crashes with segmentation fault.
                                      In similar post you fixed something related to Intellivision core
                                      Do you believe that there is also a similar problem to latest RA code affecting lr dolphin?
                                      Was ok on 1.15

                                      Btw compiled from source the core just in case. No change

                                      I'll check with previous bin as I kept backup and advise.

                                      Your friend,
                                      2Play!

                                      mituM 2Play2 2 Replies Last reply Reply Quote 0
                                      • mituM
                                        mitu Global Moderator @2Play
                                        last edited by

                                        @2Play said in Dolphin & RetroArch Compile fails - RockPro64 Armbian Ubuntu 20.04.6 LTS - RetroPie Setup 4.8.5:

                                        In similar post you fixed something related to Intellivision core
                                        Do you believe that there is also a similar problem to latest RA code affecting lr dolphin?

                                        I don't remember about the Intellivision core, but I doubt it's the same problema as lr-dolphin. I don't have any ARM system set-up for lr-dolphin, so I don't know what might be wrong.

                                        2Play2 2 Replies Last reply Reply Quote 0
                                        • 2Play2
                                          2Play @mitu
                                          last edited by

                                          @mitu
                                          here is what happened back then
                                          https://retropie.org.uk/forum/topic/32019/intellivision-lr-freeintv-segmentation-fault/7?_=1698166199893

                                          Your friend,
                                          2Play!

                                          1 Reply Last reply Reply Quote 0
                                          • 2Play2
                                            2Play @mitu
                                            last edited by

                                            @mitu btw if i can help/test with something, feel free to let me know. if I can I will!

                                            Your friend,
                                            2Play!

                                            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.