mgba: Visual Studio CMake errors
Hello,
I’m getting CMake errors.
Some details:
I’m using the most recent build, I assume. I cloned the repository today. I’m not sure where to find the build version number. I looked around for it on this github repository.
I’m on Windows 10, 64-bit
Graphics Card: AMD Radeon ™ R9 380 Series
I was following the Visual Studio building instructions on the front page: https://github.com/mgba-emu/mgba
I installed these: vcpkg install ffmpeg[vpx,x264] libepoxy libpng libzip lua sdl2 sqlite3
and I installed these: vcpkg install qt5-base qt5-multimedia
This took about four hours total. I think that all went well.
I then used Visual Studio to clone the project from here https://github.com/mgba-emu/mgba.git. That worked fine.
Finally, I got to the CMake part and in Visual Studio it gave the output I show below.
It says it couldn’t find the epoxy module. It says “Windows requires epoxy module!” I don’t normally use CMake to build Visual Studio projects. I mean, I have used CMake on the command line, but not within Visual Studio. I also assumed this would be 32-bit build. VS seems to want a 64-bit build.
I wonder if anyone knows what I’m doing wrong here.
1> CMake generation started for configuration: 'x64-Debug'.
1> Found and using vcpkg toolchain file (E:/Programs/vcpkg/vcpkg-master/scripts/buildsystems/vcpkg.cmake).
1> Command line: "C:\WINDOWS\system32\cmd.exe" /c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="E:\Projects\Fiverr\jek0jak21\mgba\out\install\x64-Debug" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe" -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" -DCMAKE_TOOLCHAIN_FILE="E:/Programs/vcpkg/vcpkg-master/scripts/buildsystems/vcpkg.cmake" "E:\Projects\Fiverr\jek0jak21\mgba" 2>&1"
1> Working directory: E:\Projects\Fiverr\jek0jak21\mgba\out\build\x64-Debug
1> [CMake] -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
1> [CMake] -- Checking for one of the modules 'FFMPEG'
1> [CMake] CMake Warning at src/platform/cmake/FindFeature.cmake:83 (message):
1> [CMake] Requested module FFMPEG missing for feature USE_FFMPEG. Feature disabled.
1> [CMake] Call Stack (most recent call first):
1> [CMake] CMakeLists.txt:476 (find_feature)
1> [CMake] -- Checking for one of the modules 'minizip'
1> [CMake] CMake Warning at src/platform/cmake/FindFeature.cmake:83 (message):
1> [CMake] Requested module minizip missing for feature USE_MINIZIP. Feature
1> [CMake] disabled.
1> [CMake] Call Stack (most recent call first):
1> [CMake] CMakeLists.txt:485 (find_feature)
1> [CMake] -- Checking for one of the modules 'libzip'
1> [CMake] CMake Warning at src/platform/cmake/FindFeature.cmake:83 (message):
1> [CMake] Requested module libzip missing for feature USE_LIBZIP. Feature disabled.
1> [CMake] Call Stack (most recent call first):
1> [CMake] CMakeLists.txt:487 (find_feature)
1> [CMake] -- Checking for one of the modules 'epoxy'
1> [CMake] CMake Warning at src/platform/cmake/FindFeature.cmake:83 (message):
1> [CMake] Requested module epoxy missing for feature USE_EPOXY. Feature disabled.
1> [CMake] Call Stack (most recent call first):
1> [CMake] CMakeLists.txt:488 (find_feature)
1> [CMake] -- Checking for one of the modules 'libelf'
1> [CMake] CMake Warning at src/platform/cmake/FindFeature.cmake:83 (message):
1> [CMake] Requested module libelf missing for feature USE_ELF. Feature disabled.
1> [CMake] Call Stack (most recent call first):
1> [CMake] CMakeLists.txt:491 (find_feature)
1> [CMake] CMake Error at E:\Projects\Fiverr\jek0jak21\mgba\CMakeLists.txt:719 (message):
1> [CMake] Windows requires epoxy module!
1> [CMake]
1> [CMake]
1> [CMake] -- Configuring incomplete, errors occurred!
1> [CMake] See also "E:/Projects/Fiverr/jek0jak21/mgba/out/build/x64-Debug/CMakeFiles/CMakeOutput.log".
1> [CMake] See also "E:/Projects/Fiverr/jek0jak21/mgba/out/build/x64-Debug/CMakeFiles/CMakeError.log".
1> 'C:\WINDOWS\system32\cmd.exe' '/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="E:\Projects\Fiverr\jek0jak21\mgba\out\install\x64-Debug" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe" -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" -DCMAKE_TOOLCHAIN_FILE="E:/Programs/vcpkg/vcpkg-master/scripts/buildsystems/vcpkg.cmake" "E:\Projects\Fiverr\jek0jak21\mgba" 2>&1"' execution failed with error: ''C:\WINDOWS\system32\cmd.exe' '/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="E:\Projects\Fiverr\jek0jak21\mgba\out\install\x64-Debug" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe" -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" -DCMAKE_TOOLCHAIN_FILE="E:/Programs/vcpkg/vcpkg-master/scripts/buildsystems/vcpkg.cmake" "E:\Projects\Fiverr\jek0jak21\mgba" 2>&1"' returned with exit code: 1'.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 18 (6 by maintainers)
Never seen that before. I have some testing I need to do soon, I’ll be updating this thread as I do that.
Please take a look at the solution for that I already posted here: https://github.com/mgba-emu/mgba/issues/2591#issuecomment-1188511836