Comments (2)
Please read the BUILD.md
Compiling Errors
This section refers to running cmake -S... (truncated).
- vcpkg install failed
- Run the following in the root directory and try running the command again (don't forget to change directories afterwards):
- cd dependencies/vcpkg && git fetch --unshallow
from cemu.
I see, I completely missed that, apologies for the redundant issue and thank you for pointing that out. I actually ran into another problem upon retrying the cmake command, which I solved thanks to this stack overflow question.
The failure output I got is the one below, I will leave it here as I didn't find it in the troubleshoot, it is probably a specific case of:
- Compiling failed during the boost-build dependency.
It means you don't have a working/good standard library installation. Check the integrity of your system headers and making sure that C++ related packages are installed and intact.
To sum it up, clang++15 picks the most recent gcc installed, but it requires gcc-11 (for the libstdc++-11 dependency).
The cli output was:
-- Running vcpkg install
Detecting compiler hash for triplet x64-linux...
All requested packages are currently installed.
Total install time: 484 ns
The package boost is compatible with built-in CMake targets:
find_package(Boost REQUIRED [COMPONENTS <libs>...])
target_link_libraries(main PRIVATE Boost::boost Boost::<lib1> Boost::<lib2> ...)
The package openssl is compatible with built-in CMake targets:
find_package(OpenSSL REQUIRED)
target_link_libraries(main PRIVATE OpenSSL::SSL OpenSSL::Crypto)
The package zlib is compatible with built-in CMake targets:
find_package(ZLIB REQUIRED)
target_link_libraries(main PRIVATE ZLIB::ZLIB)
curl is compatible with built-in CMake targets:
find_package(CURL REQUIRED)
target_link_libraries(main PRIVATE CURL::libcurl)
The package fmt provides CMake targets:
find_package(fmt CONFIG REQUIRED)
target_link_libraries(main PRIVATE fmt::fmt)
# Or use the header-only version
find_package(fmt CONFIG REQUIRED)
target_link_libraries(main PRIVATE fmt::fmt-header-only)
glslang provides CMake targets:
find_package(glslang CONFIG REQUIRED)
target_link_libraries(main PRIVATE glslang::OSDependent glslang::glslang glslang::MachineIndependent glslang::GenericCodeGen glslang::glslang-default-resource-limits glslang::OGLCompiler glslang::SPVRemapper glslang::SPIRV glslang::HLSL)
libusb can be imported via CMake FindPkgConfig module:
find_package(PkgConfig REQUIRED)
pkg_check_modules(libusb REQUIRED IMPORTED_TARGET libusb-1.0)
target_link_libraries(main PRIVATE PkgConfig::libusb)
hidapi provides CMake targets:
# this is heuristically generated, and may not be correct
find_package(hidapi CONFIG REQUIRED)
target_link_libraries(main PRIVATE hidapi::hidapi hidapi::hidraw hidapi::libusb hidapi::include)
hidapi provides pkg-config modules:
# C Library for USB/Bluetooth HID device access from Linux, Mac OS X, FreeBSD, and Windows. This is the hidraw implementation.
hidapi-hidraw
# C Library for USB HID device access from Linux, Mac OS X, FreeBSD, and Windows. This is the libusb implementation.
hidapi-libusb
libzip provides CMake targets:
# this is heuristically generated, and may not be correct
find_package(libzip CONFIG REQUIRED)
target_link_libraries(main PRIVATE libzip::zip)
libzip provides pkg-config modules:
# library for handling zip archives
libzip
pugixml provides CMake targets:
# this is heuristically generated, and may not be correct
find_package(pugixml CONFIG REQUIRED)
target_link_libraries(main PRIVATE pugixml::static pugixml::pugixml)
pugixml provides pkg-config modules:
# Light-weight, simple and fast XML parser for C++ with XPath support.
pugixml
rapidjson provides CMake targets:
# this is heuristically generated, and may not be correct
find_package(RapidJSON CONFIG REQUIRED)
target_link_libraries(main PRIVATE rapidjson)
rapidjson provides pkg-config modules:
# A fast JSON parser/generator for C++ with both SAX/DOM style API
RapidJSON
sdl2 provides CMake targets:
find_package(SDL2 CONFIG REQUIRED)
target_link_libraries(main
PRIVATE
$<TARGET_NAME_IF_EXISTS:SDL2::SDL2main>
$<IF:$<TARGET_EXISTS:SDL2::SDL2>,SDL2::SDL2,SDL2::SDL2-static>
)
The package wxwidgets provides CMake targets:
find_package(wxWidgets CONFIG REQUIRED)
target_link_libraries(main PRIVATE wx::core wx::base)
The package zstd provides CMake targets:
find_package(zstd CONFIG REQUIRED)
target_link_libraries(main PRIVATE $<IF:$<TARGET_EXISTS:zstd::libzstd_shared>,zstd::libzstd_shared,zstd::libzstd_static>)
-- Running vcpkg install - done
-- The C compiler identification is Clang 15.0.7
-- The CXX compiler identification is Clang 15.0.7
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang-15 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /usr/bin/clang++-15
-- Check for working CXX compiler: /usr/bin/clang++-15 - broken
CMake Error at /usr/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake:62 (message):
The C++ compiler
"/usr/bin/clang++-15"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/antonio/Cemu/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_eaf2d && [1/2] Building CXX object CMakeFiles/cmTC_eaf2d.dir/testCXXCompiler.cxx.o
[2/2] Linking CXX executable cmTC_eaf2d
FAILED: cmTC_eaf2d
: && /usr/bin/clang++-15 CMakeFiles/cmTC_eaf2d.dir/testCXXCompiler.cxx.o -o cmTC_eaf2d && :
/usr/bin/ld: cannot find -lstdc++: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:36 (project)
-- Configuring incomplete, errors occurred!
See also "/home/antonio/Cemu/build/CMakeFiles/CMakeOutput.log".
See also "/home/antonio/Cemu/build/CMakeFiles/CMakeError.log".
Thanks again for your help!
from cemu.
Related Issues (20)
- Twilight Princess HD: Maps only loading partway on MacOS HOT 2
- Art Academy: Atelier/Home Studio graphics bug for saved images and prerecorded examples
- Fails to compile on Arch with GCC 14.1 HOT 2
- Holding a button down disables/enables or switches the preset of an asm Graphic Pack
- Graphic pack parser incorrectly parses commas in strings HOT 1
- Sonic & all-stars racing transformed crush in STARRY SPEEDWAY HOT 3
- Splatoon Crash with Wii U Save File HOT 4
- Wii Fit U Is Unplayable HOT 4
- Sonic & All Stars Racing Transformed - Starry Speedway Crash HOT 1
- MSX Games do not start HOT 1
- Cemu freezes on opening with every title HOT 4
- Native mouse support
- cemu2.0-83 crashes on opening on Mac -"Namespace DYLD, Code 1 Library missing" HOT 4
- Update files in the Cemu-Language repository HOT 2
- Linux: Cemu Crash with error signal 11 running BoTW HOT 3
- With the latest version, Skylanders: SuperChargers and Skylanders: Imaginators are crashing on main menu HOT 5
- Cemu threw an exception when trying to delete an account
- Commit 065fb7e freeze Xenoblade Chronicles X at start HOT 3
- Cemu crashes without a stack trace or any debugging related files when using ui to enable interpreter HOT 9
- GPU listings are repeated HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cemu.