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

    Error compiling EmulationStation

    Scheduled Pinned Locked Moved Help and Support
    emulationstatiocompilation
    17 Posts 4 Posters 884 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.
    • mituM
      mitu Global Moderator
      last edited by

      cmake 2.8.x is a 9 years old release, I guess since then it learned to support UTF8 for the generators/modules. Can't reproduce with a recent cmake version.

      1 Reply Last reply Reply Quote 0
      • S
        sushisan
        last edited by

        This is exact but CMakeLists.txt say cmake_minimum_required(VERSION 2.8)
        New versions of cmake don't have this error.
        Converting FindRapidJSON.cmake to ascii like FindFreeImage.cmake FindlibCEC.cmake FindOpenGLES.cmake FindSDL2.cmake FindVLC.cmake MacroEnsureVersion.cmake can maintain compatibility without problem

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

          Interesting. The problem seems to be from the UTF-8 BOM header present in the file.
          Seems a bug has been logged here for this error, being fixed in the 3.0 release of cmake.

          1 Reply Last reply Reply Quote 0
          • S
            sushisan
            last edited by

            Exact.
            I see two solutions: update cmake_minimum_required or convert FindRapidJSON.cmake to ascii
            The second solution can maintain compatibility and is very simple

            mituM 1 Reply Last reply Reply Quote 0
            • S
              sushisan
              last edited by

              I have compiled EmulationStation on Centos 7 without problem with the second solution

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

                @sushisan said in Error compiling EmulationStation:

                I see two solutions: update cmake_minimum_required or convert FindRapidJSON.cmake to ascii

                Probably both, at some point.

                I have compiled EmulationStation on Centos 7 without problem with the second solution

                Well, Centos7 is hardly a gaming platform :), probably that's why nobody complained so far. Thanks for reporting.

                V 1 Reply Last reply Reply Quote 1
                • V
                  VictimRLSH @mitu
                  last edited by

                  @mitu I used to run CentOS around 5.0 a long time ago. VERY maintenance heavy, switched to Knoppix. Maintenance headaches vanished. :)

                  System Config: Retropie 4.4 with full desktop, RPi 3B, 256gb SD, 5v 2.1A 5,200 mAH USB battery. EasyMSX controller mounted with Pimoroni Hyperpixel 4 (non touch). Also running 4.6 on a 4gb Pi 4 serving as my primary desktop computer now.

                  1 Reply Last reply Reply Quote 0
                  • S
                    sushisan
                    last edited by

                    I want to use a long term supported distro and don't like Debian and derivates.
                    Centos 7 is still very stable but I will port to Centos 8

                    https://github.com/hiperiondev/RetroArcade-CentOS

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

                      @sushisan How about ArchLinux ? Never tried it, but I heard good things about it.

                      1 Reply Last reply Reply Quote 0
                      • S
                        sushisan
                        last edited by sushisan

                        I have not experience in Arch but I work with RedHat distros from '98.

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

                          @sushisan without wanting to sound harsh, we are focussed on RetroPie. We can't be expected to support a distro that old (even if it's still supported by the vendor), with a cmake from 2015.

                          If you want to submit a fix that won't affect anything else feel free but for me it's a wontfix.

                          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

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            sushisan @BuZz
                            last edited by sushisan

                            @BuZz Are you correct!
                            I this case there are two errors: ascii encode and cmake_minimum_required
                            If you maintain minimum version of cmake in 2.8 then you have an error in encoding.
                            If you require newer version, and correct cmake_minimum_required, then there are no errors.

                            But I agree with you if not support oldedr versions. Is reasonable

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

                              @sushisan I do agree with that. The code that fails was added later and I guess wasn't tested on older cmake. We can bump the cmake version but I don't mind if someone wants to make it work on older cmake too so long as it's easily maintainable. Eg Not having to adjusting the JSON cmake files if we upgrade that component to keep compatibility. Easier just to require a newer cmake.

                              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 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.