Open dadal00 opened 8 months ago
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)
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`
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
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".
Then, open Ubuntu and put these commands in.
Issue summary
After compiling the Integration UI with make, I am unable to properly run the executable. I get the below errors.
make
In addition, when I was running cmake I got the below warnings even though I have installed both python and CapnProto. I was wondering if this was affecting the compilation.
sudo cmake . -DBUILD_UI=ON -UPYLIB_DIRECTORY
System information