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

    Need help installing OpenRCT2

    Scheduled Pinned Locked Moved Help and Support
    portsopenrct2
    27 Posts 2 Posters 2.2k 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.
    • quicksilverQ
      quicksilver @retropi19
      last edited by

      @retropi19 said in Need help installing OpenRCT2:

      does the game works fine?

      I havent been able to get it working properly. Unfortunately Im still a bit of a novice with this stuff.

      1 Reply Last reply Reply Quote 0
      • R
        retropi19
        last edited by

        where do you stuck?

        Rpi3B+ USB 2.0 Boot HDD Hitachi 40GB 5400rpm

        Rpi4 4GB rev1.4 USB 3.0 Boot HDD Hitachi 160GB 7200rpm

        quicksilverQ 1 Reply Last reply Reply Quote 0
        • quicksilverQ
          quicksilver @retropi19
          last edited by

          @retropi19 Im having a hard time compiling a newer version of OpenRCT2. I download the newer version from their site but when I try to build it it says it cant find cmake instructions or something like that

          1 Reply Last reply Reply Quote 0
          • R
            retropi19
            last edited by retropi19

            you need to install this packages: sudo apt-get install make cmake

            Rpi3B+ USB 2.0 Boot HDD Hitachi 40GB 5400rpm

            Rpi4 4GB rev1.4 USB 3.0 Boot HDD Hitachi 160GB 7200rpm

            quicksilverQ 1 Reply Last reply Reply Quote 0
            • quicksilverQ
              quicksilver @retropi19
              last edited by

              @retropi19 I believe I already did that as it required cmake with the older version of OpenRCT2 as well

              R 1 Reply Last reply Reply Quote 0
              • R
                retropi19 @quicksilver
                last edited by

                @quicksilver check it check also if you installed all the dependencies

                Rpi3B+ USB 2.0 Boot HDD Hitachi 40GB 5400rpm

                Rpi4 4GB rev1.4 USB 3.0 Boot HDD Hitachi 160GB 7200rpm

                quicksilverQ 1 Reply Last reply Reply Quote 0
                • quicksilverQ
                  quicksilver @retropi19
                  last edited by

                  @retropi19 according to the documentation I installed all the correct dependencies

                  1 Reply Last reply Reply Quote 0
                  • R
                    retropi19
                    last edited by retropi19

                    Did you delete the folder you compiled before the older version or you compiled on it the latest one? if not delete totally the folder and try the latest version

                    otherwise maybe the latest version is the problem try the 0.2.1 version and if it does the same try the 0.2.0

                    to create a shortcut do this

                    cd /home/pi/RetroPie/roms/ports
                    sudo nano Openrct2.sh
                    inside type the game location eg: cd /home/pi/openrct2 press enter to go a line under
                    and type the command that you start the game
                    finally press control+x and yes to save

                    Rpi3B+ USB 2.0 Boot HDD Hitachi 40GB 5400rpm

                    Rpi4 4GB rev1.4 USB 3.0 Boot HDD Hitachi 160GB 7200rpm

                    quicksilverQ 1 Reply Last reply Reply Quote 0
                    • quicksilverQ
                      quicksilver @retropi19
                      last edited by quicksilver

                      @retropi19 Alright so I found part of the problem. The newer version of OpenRCT2 requires cmake 3.9 or higher and the cmake included in the repository is only 3.7.2. Any idea on how to install a more updated version of cmake?

                      EDIT:
                      So I was able to update to a newer version of cmake but the OpenRCT2 build now fails. Here is a copy of the CMake error log

                      Performing C++ SOURCE FILE Test CXX_WARN_MISSING_VARIABLE_DECLARATIONS failed with the following output:
                      Change Dir: /home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp
                      
                      Run Build Command:"/usr/bin/make" "cmTC_380c5/fast"
                      /usr/bin/make -f CMakeFiles/cmTC_380c5.dir/build.make CMakeFiles/cmTC_380c5.dir/build
                      make[1]: Entering directory '/home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp'
                      Building CXX object CMakeFiles/cmTC_380c5.dir/src.cxx.o
                      /usr/bin/c++    -Ofast -DNDEBUG -mcpu=cortex-a53 -DCXX_WARN_MISSING_VARIABLE_DECLARATIONS   -Wmissing-variable-declarations -std=gnu++1z -o CMakeFiles/cmTC_380c5.dir/src.cxx.o -c /home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp/src.cxx
                      c++: error: unrecognized command line option '-Wmissing-variable-declarations'; did you mean '-Wmissing-declarations'?
                      CMakeFiles/cmTC_380c5.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_380c5.dir/src.cxx.o' failed
                      make[1]: *** [CMakeFiles/cmTC_380c5.dir/src.cxx.o] Error 1
                      make[1]: Leaving directory '/home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp'
                      Makefile:126: recipe for target 'cmTC_380c5/fast' failed
                      make: *** [cmTC_380c5/fast] Error 2
                      
                      Source file was:
                      int main() { return 0; }
                      Performing C++ SOURCE FILE Test CXX_WARN_DUPLICATED_BRANCHES failed with the following output:
                      Change Dir: /home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp
                      
                      Run Build Command:"/usr/bin/make" "cmTC_a4d47/fast"
                      /usr/bin/make -f CMakeFiles/cmTC_a4d47.dir/build.make CMakeFiles/cmTC_a4d47.dir/build
                      make[1]: Entering directory '/home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp'
                      Building CXX object CMakeFiles/cmTC_a4d47.dir/src.cxx.o
                      /usr/bin/c++    -Ofast -DNDEBUG -mcpu=cortex-a53 -DCXX_WARN_DUPLICATED_BRANCHES   -Wduplicated-branches -std=gnu++1z -o CMakeFiles/cmTC_a4d47.dir/src.cxx.o -c /home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp/src.cxx
                      c++: error: unrecognized command line option '-Wduplicated-branches'; did you mean '-Wduplicated-cond'?
                      CMakeFiles/cmTC_a4d47.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_a4d47.dir/src.cxx.o' failed
                      make[1]: *** [CMakeFiles/cmTC_a4d47.dir/src.cxx.o] Error 1
                      make[1]: Leaving directory '/home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp'
                      Makefile:126: recipe for target 'cmTC_a4d47/fast' failed
                      make: *** [cmTC_a4d47/fast] Error 2
                      
                      Source file was:
                      int main() { return 0; }
                      Performing C++ SOURCE FILE Test CXX_WARN_RESTRICT failed with the following output:
                      Change Dir: /home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp
                      
                      Run Build Command:"/usr/bin/make" "cmTC_9be04/fast"
                      /usr/bin/make -f CMakeFiles/cmTC_9be04.dir/build.make CMakeFiles/cmTC_9be04.dir/build
                      make[1]: Entering directory '/home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp'
                      Building CXX object CMakeFiles/cmTC_9be04.dir/src.cxx.o
                      /usr/bin/c++    -Ofast -DNDEBUG -mcpu=cortex-a53 -DCXX_WARN_RESTRICT   -Wrestrict -std=gnu++1z -o CMakeFiles/cmTC_9be04.dir/src.cxx.o -c /home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp/src.cxx
                      c++: error: unrecognized command line option '-Wrestrict'; did you mean '-mrestrict-it'?
                      CMakeFiles/cmTC_9be04.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_9be04.dir/src.cxx.o' failed
                      make[1]: *** [CMakeFiles/cmTC_9be04.dir/src.cxx.o] Error 1
                      make[1]: Leaving directory '/home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp'
                      Makefile:126: recipe for target 'cmTC_9be04/fast' failed
                      make: *** [cmTC_9be04/fast] Error 2
                      
                      Source file was:
                      int main() { return 0; }
                      Performing C++ SOURCE FILE Test CXX_WARN_UNREACHABLE_CODE_BREAK failed with the following output:
                      Change Dir: /home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp
                      
                      Run Build Command:"/usr/bin/make" "cmTC_39e2b/fast"
                      /usr/bin/make -f CMakeFiles/cmTC_39e2b.dir/build.make CMakeFiles/cmTC_39e2b.dir/build
                      make[1]: Entering directory '/home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp'
                      Building CXX object CMakeFiles/cmTC_39e2b.dir/src.cxx.o
                      /usr/bin/c++    -Ofast -DNDEBUG -mcpu=cortex-a53 -DCXX_WARN_UNREACHABLE_CODE_BREAK   -Wunreachable-code-break -std=gnu++1z -o CMakeFiles/cmTC_39e2b.dir/src.cxx.o -c /home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp/src.cxx
                      c++: error: unrecognized command line option '-Wunreachable-code-break'; did you mean '-Wunreachable-code'?
                      CMakeFiles/cmTC_39e2b.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_39e2b.dir/src.cxx.o' failed
                      make[1]: *** [CMakeFiles/cmTC_39e2b.dir/src.cxx.o] Error 1
                      make[1]: Leaving directory '/home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp'
                      Makefile:126: recipe for target 'cmTC_39e2b/fast' failed
                      make: *** [cmTC_39e2b/fast] Error 2
                      
                      Source file was:
                      int main() { return 0; }
                      Performing C++ SOURCE FILE Test CXX_WARN_RANGE_LOOP_ANALYSIS failed with the following output:
                      Change Dir: /home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp
                      
                      Run Build Command:"/usr/bin/make" "cmTC_1a910/fast"
                      /usr/bin/make -f CMakeFiles/cmTC_1a910.dir/build.make CMakeFiles/cmTC_1a910.dir/build
                      make[1]: Entering directory '/home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp'
                      Building CXX object CMakeFiles/cmTC_1a910.dir/src.cxx.o
                      /usr/bin/c++    -Ofast -DNDEBUG -mcpu=cortex-a53 -DCXX_WARN_RANGE_LOOP_ANALYSIS   -Wrange-loop-analysis -std=gnu++1z -o CMakeFiles/cmTC_1a910.dir/src.cxx.o -c /home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp/src.cxx
                      c++: error: unrecognized command line option '-Wrange-loop-analysis'
                      CMakeFiles/cmTC_1a910.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_1a910.dir/src.cxx.o' failed
                      make[1]: *** [CMakeFiles/cmTC_1a910.dir/src.cxx.o] Error 1
                      make[1]: Leaving directory '/home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp'
                      Makefile:126: recipe for target 'cmTC_1a910/fast' failed
                      make: *** [cmTC_1a910/fast] Error 2
                      
                      Source file was:
                      int main() { return 0; }
                      Performing C++ SOURCE FILE Test CXX_WARN_TAUTOLOGICAL_ZERO_COMPARE failed with the following output:
                      Change Dir: /home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp
                      
                      Run Build Command:"/usr/bin/make" "cmTC_b9376/fast"
                      /usr/bin/make -f CMakeFiles/cmTC_b9376.dir/build.make CMakeFiles/cmTC_b9376.dir/build
                      make[1]: Entering directory '/home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp'
                      Building CXX object CMakeFiles/cmTC_b9376.dir/src.cxx.o
                      /usr/bin/c++    -Ofast -DNDEBUG -mcpu=cortex-a53 -DCXX_WARN_TAUTOLOGICAL_ZERO_COMPARE   -Wtautological-unsigned-zero-compare -std=gnu++1z -o CMakeFiles/cmTC_b9376.dir/src.cxx.o -c /home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp/src.cxx
                      c++: error: unrecognized command line option '-Wtautological-unsigned-zero-compare'; did you mean '-Wtautological-compare'?
                      CMakeFiles/cmTC_b9376.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_b9376.dir/src.cxx.o' failed
                      make[1]: *** [CMakeFiles/cmTC_b9376.dir/src.cxx.o] Error 1
                      make[1]: Leaving directory '/home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp'
                      Makefile:126: recipe for target 'cmTC_b9376/fast' failed
                      make: *** [cmTC_b9376/fast] Error 2
                      
                      Source file was:
                      int main() { return 0; }
                      Determining if the pthread_create exist failed with the following output:
                      Change Dir: /home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp
                      
                      Run Build Command:"/usr/bin/make" "cmTC_7f22d/fast"
                      /usr/bin/make -f CMakeFiles/cmTC_7f22d.dir/build.make CMakeFiles/cmTC_7f22d.dir/build
                      make[1]: Entering directory '/home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp'
                      Building CXX object CMakeFiles/cmTC_7f22d.dir/CheckSymbolExists.cxx.o
                      /usr/bin/c++    -Ofast -DNDEBUG -mcpu=cortex-a53 -Wno-clobbered -fstrict-overflow -fstrict-aliasing -Werror -Wundef -Wmissing-declarations -Winit-self -Wall -Wextra -Wshadow -Wno-unknown-pragmas -Wno-missing-braces -Wno-comment -Wnonnull -Wno-unused-parameter -DDEBUG=0  -fPIE   -std=gnu++1z -o CMakeFiles/cmTC_7f22d.dir/CheckSymbolExists.cxx.o -c /home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
                      Linking CXX executable cmTC_7f22d
                      /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7f22d.dir/link.txt --verbose=1
                      /usr/bin/c++  -Ofast -DNDEBUG -mcpu=cortex-a53 -Wno-clobbered -fstrict-overflow -fstrict-aliasing -Werror -Wundef -Wmissing-declarations -Winit-self -Wall -Wextra -Wshadow -Wno-unknown-pragmas -Wno-missing-braces -Wno-comment -Wnonnull -Wno-unused-parameter -DDEBUG=0     CMakeFiles/cmTC_7f22d.dir/CheckSymbolExists.cxx.o  -o cmTC_7f22d 
                      CMakeFiles/cmTC_7f22d.dir/CheckSymbolExists.cxx.o: In function `main':
                      CheckSymbolExists.cxx:(.text.startup+0x1c): undefined reference to `pthread_create'
                      collect2: error: ld returned 1 exit status
                      CMakeFiles/cmTC_7f22d.dir/build.make:97: recipe for target 'cmTC_7f22d' failed
                      make[1]: *** [cmTC_7f22d] Error 1
                      make[1]: Leaving directory '/home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp'
                      Makefile:126: recipe for target 'cmTC_7f22d/fast' failed
                      make: *** [cmTC_7f22d/fast] Error 2
                      
                      File /home/pi/OpenRCT2-0.2.2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
                      /* */
                      #include <pthread.h>
                      
                      int main(int argc, char** argv)
                      {
                        (void)argv;
                      #ifndef pthread_create
                        return ((int*)(&pthread_create))[argc];
                      #else
                        (void)argc;
                        return 0;
                      #endif
                      }
                      
                      
                      1 Reply Last reply Reply Quote 0
                      • R
                        retropi19
                        last edited by

                        or you post this on the github page of the port maybe they can help you more or you try to install an older version as i said before eg: 0.2.1 or 0.2.0

                        Rpi3B+ USB 2.0 Boot HDD Hitachi 40GB 5400rpm

                        Rpi4 4GB rev1.4 USB 3.0 Boot HDD Hitachi 160GB 7200rpm

                        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.