Code Monkey home page Code Monkey logo

Comments (4)

dadal00 avatar dadal00 commented on May 27, 2024 1

Okay, I was able to get it to work. I had to install VcXsrv, then run XLaunch. These additions are mainly because I am using Ubuntu on WSL2 so I would need to do some configurations to connect the X server.

Within the application window of XLaunch keep clicking next until you get here and make sure the "Disable access control" is checked".
image

Then, open Ubuntu and put these commands in.
image

from stable-retro.

MatPoliquin avatar MatPoliquin commented on May 27, 2024

You are using WSL2 right?
Just as a note you don't have to use sudo to run cmake

Just so I repro your issue. You did a fresh install of Ubuntu 22.04 on WSL 2, then ran these commands for integration tool?

sudo apt-get install python3 python3-pip git zlib1g-dev libopenmpi-dev ffmpeg
sudo apt-get install capnproto libcapnp-dev libqt5opengl5-dev qtbase5-dev
#Get the lastest retro source code
git clone https://github.com/Farama-Foundation/stable-retro.git
cd retro
cmake . -DBUILD_UI=ON -UPYLIB_DIRECTORY
make -j$(grep -c ^processor /proc/cpuinfo)

from stable-retro.

dadal00 avatar dadal00 commented on May 27, 2024

I am using WSL2 and without the sudo I get the following output for cmake. Otherwise I ran the same commands to build the integration UI. The only difference would be that I cd into stable-retro instead of retro.

-- Could NOT find Python (missing: Development.Module) (found suitable version "3.10.12", minimum required is "3")
CMake Error at /usr/share/cmake-3.22/Modules/WriteBasicConfigVersionFile.cmake:49 (configure_file):
  Operation not permitted
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/CMakePackageConfigHelpers.cmake:237 (write_basic_config_version_file)
  third-party/capnproto/c++/CMakeLists.txt:84 (write_basic_package_version_file)


CMake Error at /usr/share/cmake-3.22/Modules/CMakePackageConfigHelpers.cmake:342 (configure_file):
  Operation not permitted
Call Stack (most recent call first):
  third-party/capnproto/c++/CMakeLists.txt:91 (configure_package_config_file)


CMake Warning at CMakeLists.txt:306 (message):
  Could not find CapnProto, disabling search save/load


CMake Error at third-party/libzip/CMakeLists.txt:169 (CONFIGURE_FILE):
  Operation not permitted


CMake Error at third-party/libzip/CMakeLists.txt:173 (CONFIGURE_FILE):
  Operation not permitted


CMake Error at third-party/libzip/CMakeLists.txt:174 (CONFIGURE_FILE):
  Operation not permitted


CMake Error: Could not open file for write in copy operation /home/dadal/vs/stable-retro/CMakeFiles/runtest.tmp
CMake Error: : System Error: Permission denied
CMake Error at third-party/libzip/CMakeLists.txt:182 (CONFIGURE_FILE):
  CONFIGURE_FILE Problem configuring file


CMake Error at third-party/libzip/CMakeLists.txt:183 (FILE):
  FILE COPY cannot set permissions on
  "/home/dadal/vs/stable-retro/regress/runtest": Operation not permitted.


CMake Deprecation Warning at third-party/gtest/googlemock/CMakeLists.txt:46 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at third-party/gtest/googletest/CMakeLists.txt:53 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Error at /usr/share/cmake-3.22/Modules/CPack.cmake:855 (configure_file):
  Operation not permitted
Call Stack (most recent call first):
  CMakeLists.txt:408 (include)


CMake Error at /usr/share/cmake-3.22/Modules/CPack.cmake:883 (configure_file):
  Operation not permitted
Call Stack (most recent call first):
  CMakeLists.txt:408 (include)


-- Configuring incomplete, errors occurred!
See also "/home/dadal/vs/stable-retro/CMakeFiles/CMakeOutput.log".
See also "/home/dadal/vs/stable-retro/CMakeFiles/CMakeError.log".
CMake Error: Unable to open check cache file for write. /home/dadal/vs/stable-retro/CMakeFiles/cmake.check_cache`

from stable-retro.

dadal00 avatar dadal00 commented on May 27, 2024

I also tried using Ubuntu 20.04 on WSL2 and I was able to get a different cmake output without using sudo.

CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at third-party/capnproto/c++/CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Warning at CMakeLists.txt:306 (message):
  Could not find CapnProto, disabling search save/load


CMake Deprecation Warning at third-party/libzip/CMakeLists.txt:5 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at third-party/gtest/googlemock/CMakeLists.txt:46 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at third-party/gtest/googletest/CMakeLists.txt:53 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Warning (dev) at third-party/gtest/googletest/cmake/internal_utils.cmake:213 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  third-party/gtest/googletest/CMakeLists.txt:65 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done (1.9s)
-- Generating done (0.1s)
-- Build files have been written to: /home/dadal/stable-retro

However, I still get the same error when I compile the integration UI using the above steps.

qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Aborted

from stable-retro.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.