Comments (9)
Writing out an answer to this me realize that I had installed the libstdc++
pre-compiled Skia version, while passing in libc++
in my command.
Swapping it out for libstdc++
resulted in a successful build 🥳
Sorry for wasting your time! Thank you for the help 🙏
from aseprite.
Same on 23.10
from aseprite.
Seems that laf submodule was not updated. Open a terminal in the directory where you cloned Aseprite repo, then try running:
git submodule update --recursive
Then run cmake and ninja again. Please let us know how it went.
from aseprite.
After running
git submodule update --recursive
And re-running this command:
export CC=clang
export CXX=clang++
mkdir build
cd build
cmake \
-DCMAKE_CXX_FLAGS=-stdlib=libc++ \
-DCMAKE_EXE_LINKER_FLAGS=-stdlib=libc++ \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_OSX_ARCHITECTURES=x86_64 \
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \
-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk \
-DLAF_BACKEND=skia \
-DSKIA_DIR=~/secondary/downloads/aseprite/deps/skia \
-DSKIA_LIBRARY_DIR=~/secondary/downloads/aseprite/deps/skia/out/Release-x64 \
-DSKIA_LIBRARY=~/secondary/downloads/aseprite/deps/skia/out/Release-x64/libskia.a \
-G Ninja \
..
ninja aseprite
I get a different error, it's absolutely enormous - but I'll write down what's at the very top.
I looked online and wasn't able to find a solution myself. Any ideas?
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x23
from aseprite.
Wait, weren't you trying to build Aseprite for Ubuntu?
from aseprite.
I am trying to build it on Ubuntu 22.04 - correct
Am I doing something wrong? 😕
from aseprite.
You are running cmake as if you were compiling for macos:
-DCMAKE_OSX_ARCHITECTURES=x86_64 \
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \
-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk \
Check these:
https://github.com/aseprite/aseprite/blob/main/INSTALL.md#macos-details
https://github.com/aseprite/aseprite/blob/main/INSTALL.md#linux-details
from aseprite.
Oh - I thought those don't do anything when used on Linux. I removed them (just in case) and get the same DWARF
error.
Here's the command I typed in:
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=~/secondary/downloads/aseprite/deps/skia \
-DSKIA_LIBRARY_DIR=~/secondary/downloads/aseprite/deps/skia/out/Release-x64 \
-DSKIA_LIBRARY=~/secondary/downloads/aseprite/deps/skia/out/Release-x64/libskia.a \
-G Ninja \
..
ninja aseprite
Error is
[1/1] Linking CXX executable bin/aseprite
FAILED: bin/aseprite
: && /usr/bin/ccache /usr/bin/clang++ -stdlib=libc++ -Wall -Wno-switch -Wimplicit-fallthrough -O2 -g -DNDEBUG -stdlib=libc++ src/CMakeFiles/aseprite.dir/main/main.cpp.o -o bin/aseprite lib/libapp-lib.a lib/libcfg-lib.a lib/libclip.a -lxcb lib/libdio-lib.a lib/libfilters-lib.a lib/libflic-lib.a lib/libtga-lib.a lib/librender-lib.a lib/libdoc-lib.a lib/libfixmath-lib.a lib/libcityhash.a lib/libui-lib.a lib/liblaf-os.a lib/liblaf-gfx.a lib/liblaf-ft.a /home/ariel/secondary/downloads/aseprite/deps/skia/out/Release-x64/libfreetype2.a /home/ariel/secondary/downloads/aseprite/deps/skia/out/Release-x64/libharfbuzz.a /home/ariel/secondary/downloads/aseprite/deps/skia/out/Release-x64/libskia.a /usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libfontconfig.so /usr/lib/x86_64-linux-gnu/libSM.so /usr/lib/x86_64-linux-gnu/libICE.so /usr/lib/x86_64-linux-gnu/libX11.so /usr/lib/x86_64-linux-gnu/libXext.so /usr/lib/x86_64-linux-gnu/libXcursor.so /home/ariel/secondary/downloads/aseprite/deps/skia/out/Release-x64/libskshaper.a lib/libobs.a lib/libundo.a lib/libcmark.a lib/libjpeg.a lib/libgiflib.a lib/libpng16.a -lm /home/ariel/secondary/downloads/aseprite/deps/skia/out/Release-x64/libwebp.a lib/libjson11.a lib/libarchive.a /usr/lib/x86_64-linux-gnu/libcrypto.so /usr/lib/x86_64-linux-gnu/libssl.so lib/libfmt.a lib/libtinyexpr.a lib/liblauxlib.a lib/liblua.a lib/liblualib.a lib/libixwebsocket.a lib/libz.a lib/libupdater-lib.a lib/libver-lib.a lib/libtinyxml.a lib/libnet-lib.a lib/liblaf-base.a -lpthread /usr/lib/x86_64-linux-gnu/libdl.a lib/libcurl.a -ldl && :
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x23
from aseprite.
Which clang and llvm version are you using? Are you using the precompiled version of Skia from Aseprite Skia's fork?
from aseprite.
Related Issues (20)
- Move objects with move tool
- incomplete type 'SkBlendMode' HOT 6
- Always apply filters (replace color, hue, etc.) to the selected cels/layers by default
- Eyedropper Tool (quick) not working on Aseprite v1.3.7 on Linux Mint 21.3 HOT 3
- Mismatch between zlib <-> cached png zlib in build dir
- JSON export of Cel Properties does not expose Opacity
- Buggy Spray tool with custom brushes
- cel.image = Image(cel.image, rectangle) can error
- Detect that the Linux Window Manager is getting the Alt shortcut instead of us
- == casting issue & math.floor internal optimization are breaking lua HOT 4
- Right-clicking with shading ink should do the configured action for right-click when no color range is selected
- Sort slices by name in File > Export > Export As...
- color_quantization.lua test fails in new MSVC (probably new compiler bug?) HOT 1
- Bitdefender flags Aseprite "trycompile" files during cmake configuration
- Export As.. - Add zero-padding to numbering in filenames when exporting frames HOT 7
- Crash using Image:drawImage() with different color modes
- Image:drawImage() doesn't behave like BlendMode.NORMAL by default with indexed image
- Random crash on the palette viewer
- Windows MSVC build error with East Asian codepage
- Cursor lag/disappears from screen
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 aseprite.