Git Product home page Git Product logo

Comments (7)

omegaui avatar omegaui commented on June 16, 2024

Same on 23.10

from aseprite.

martincapello avatar martincapello commented on June 16, 2024

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.

volovikariel avatar volovikariel commented on June 16, 2024

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.

martincapello avatar martincapello commented on June 16, 2024

Wait, weren't you trying to build Aseprite for Ubuntu?

from aseprite.

volovikariel avatar volovikariel commented on June 16, 2024

I am trying to build it on Ubuntu 22.04 - correct

Am I doing something wrong? 😕

from aseprite.

martincapello avatar martincapello commented on June 16, 2024

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.

volovikariel avatar volovikariel commented on June 16, 2024

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.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.