Hi! I have followed the Linux instructions to compile Aseprite for Kubuntu 22.04, but upon running the CMake command, I get the following error.
CMake Error at /usr/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake:62 (message): The C++ compiler "/usr/bin/c++" is not able to compile a simple test program. It fails with the following output: Change Dir: /home/zax/aseprite/aseprite/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_337a3 && [1/2] Building CXX object CMakeFiles/cmTC_337a3.dir/testCXXCompiler.cxx.o FAILED: CMakeFiles/cmTC_337a3.dir/testCXXCompiler.cxx.o /usr/bin/c++ -stdlib=libc++ -std=c++17 -o CMakeFiles/cmTC_337a3.dir/testCXXCompiler.cxx.o -c /home/zax/aseprite/aseprite/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx c++: error: unrecognized command-line option ‘-stdlib=libc++’ ninja: build stopped: subcommand failed. CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:32 (project)
After some light searching in this forum, I found This thread that stated to install the
libc++abi-dev package. Upon installation of that, I get the same error as above.
Another red flag (or nugget of debug info!) was that some other packages could not be found, here is the apt output when running the dependence install command.
Reading package lists... Done Building dependency tree... Done Reading state information... Done Package clang-10 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'clang-10' has no installation candidate E: Unable to locate package libc++-10-dev E: Couldn't find any package by regex 'libc++-10-dev' E: Unable to locate package libc++abi-10-dev E: Couldn't find any package by regex 'libc++abi-10-dev'
For some system/OS info, here is a