compile-aseprite-linux icon indicating copy to clipboard operation
compile-aseprite-linux copied to clipboard

Added support for arch and manjaro with pacman

Open TalenMud opened this issue 10 months ago • 5 comments

added another elif statement into the script so if arch or manjaro are found it uses pacman. I also added another elif statement to the sudo installation line using pacman.

TalenMud avatar Feb 06 '25 12:02 TalenMud

Thanks for the pull request! I know this is probably unnecessary to ask, but did you test it on your system first? (I don't have a computer running Arch right now)

(Closes #2)

mak448a avatar Feb 06 '25 14:02 mak448a

Also, could you also add EndeavourOS too?

By the way, is there any difference between this and the dependencies listed on the Aseprite official guide?

mak448a avatar Feb 06 '25 15:02 mak448a

I'll test it out as soon as I can and let you know how it works on arch, sorry I should've tested properly before sending the pull request.

TalenMud avatar Feb 06 '25 15:02 TalenMud

Tried running it on manjaro, it gave me this error:

-- The C compiler identification is unknown -- The CXX compiler identification is unknown -- 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: '/home/manjaro/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-cuMaXe'

Run Build Command(s): /usr/bin/ninja -v cmTC_ea653
[1/2] /usr/bin/clang    -o CMakeFiles/cmTC_ea653.dir/testCCompiler.c.o -c /home/manjaro/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-cuMaXe/testCCompiler.c
FAILED: CMakeFiles/cmTC_ea653.dir/testCCompiler.c.o 
/usr/bin/clang    -o CMakeFiles/cmTC_ea653.dir/testCCompiler.c.o -c /home/manjaro/aseprite/build/CMakeFiles/CMakeScratch/TryCompile-cuMaXe/testCCompiler.c
/usr/bin/clang: error while loading shared libraries: libLLVM.so.19.1: cannot open shared object file: No such file or directory
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! ninja: error: loading 'build.ninja': No such file or directory mv: cannot stat 'aseprite/build/bin': No such file or directory mv: cannot stat 'aseprite/build/aseprite': No such file or directory Done compiling! The executable is stored in ~/Applications/aseprite. Have fun! You can move this folder anywhere.

any ideas?

TalenMud avatar Feb 07 '25 12:02 TalenMud

Did you install git? I don't think the script automatically installs that (except for apt distros?). I should probably add that if it starts working after you do that.

Also did you try sudo pacman -S gcc clang libc++ cmake ninja libx11 libxcursor mesa-libgl fontconfig libwebp before you ran the script? Those were the official dependencies from aseprite's build guide.

mak448a avatar Feb 07 '25 22:02 mak448a

#17 does the same thing so I am going to close this pull request

mak448a avatar Oct 30 '25 03:10 mak448a