Aseprite can't compile

As the title says, I'm unable to compile Aseprite despite following the instructions. When I copy and paste the following:
export CC=clang
export CXX=clang++
cmake \
  -DCMAKE_BUILD_TYPE=RelWithDebInfo \
  -DCMAKE_CXX_FLAGS:STRING=-stdlib=libc++ \
  -DCMAKE_EXE_LINKER_FLAGS:STRING=-stdlib=libc++ \
  -DLAF_BACKEND=skia \
  -DSKIA_DIR=$HOME/deps/skia \
  -DSKIA_LIBRARY_DIR=$HOME/deps/skia/out/Release-x64 \
  -DSKIA_LIBRARY=$HOME/deps/skia/out/Release-x64/libskia.a \
  -G Ninja \
  ..

I get the following error message
-- The C compiler identification is Clang 18.1.8
-- The CXX compiler identification is Clang 18.1.8
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
  The C compiler

    "/usr/bin/clang"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: '/var/home/AAcat/Programs/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-MpYRfQ'
    
    Run Build Command(s): /usr/bin/ninja-build -v cmTC_9bd72
    [1/2] /usr/bin/clang    -MD -MT CMakeFiles/cmTC_9bd72.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_9bd72.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_9bd72.dir/testCCompiler.c.o -c /var/home/AAcat/Programs/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-MpYRfQ/testCCompiler.c
    [2/2] : && /usr/bin/clang  -stdlib=libc++ CMakeFiles/cmTC_9bd72.dir/testCCompiler.c.o -o cmTC_9bd72   && :
    FAILED: cmTC_9bd72 
    : && /usr/bin/clang  -stdlib=libc++ CMakeFiles/cmTC_9bd72.dir/testCCompiler.c.o -o cmTC_9bd72   && :
    clang: error: unable to execute command: Executable "ld" doesn't exist!
    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:23 (project)


-- Configuring incomplete, errors occurred!

Anyone know what this means and the solution to it?
Solution
could not get it done this way, got an error, something to do with the "---image" part or something, I'll go over how I solved this in 3 easy steps to anyone that is interested in the future:

Step one: open BoxBuddy and create a Box using Arch (I used docker.io/library/...) and create. Call it what you want.

Step two: Install yay to make it easy and to go "yay it installed", plus pacman had it coming :^) Use the following command to make installing yay easy:
sudo pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si

Step three: Install aseprite, simply just type yay -Syu Asperite and proceed with the installation. After that, good to go. Can do distrobox-export --app aseprite to make it show up as a icon on your computer so you dont have to open the terminal or BoxBuddy again.
Was this page helpful?