libdragon icon indicating copy to clipboard operation
libdragon copied to clipboard

macOS Cannot install libdragon or build examples on preview branch

Open NicholasRicher opened this issue 3 months ago • 0 comments

Hello, I have cloned the preview branch of libdragon and I was following Option 3 in the install guide. I got to Step 7: Run ./build.sh at the top-level. This will install libdragon, its tools, and also build all examples.

But unfortunately I'm not able to run ./build.sh on the preview branch. I was able to run it after following the install guide from the trunk branch.

Computer model: MacBook Pro M3 Max

Homebrew version: 4.4.3

Homebrew installed packages:

==> Formulae
aom			gd			libmpdclient		m4			qemu
apr			gettext			libnghttp2		make			raylib
apr-util		giflib			libpng			midnight-commander	readline
argon2			git			libpq			mingw-w64		ripgrep
aspell			glew			libslirp		mpc			rtmpdump
autoconf		glfw			libsodium		mpdecimal		s-lang
automake		glib			libssh			mpfr			screen
brotli			gmp			libssh2			msgpack			sdl2
c-ares			gnu-sed			libtasn1		ncurses			snappy
ca-certificates		gnutls			libtiff			neovim			sqlite
capstone		highway			libtool			nettle			texinfo
clang-format		httpd			libunistring		node			tidy-html5
cmake			icu4c			libusb			oniguruma		tmux
cmake-docs		icu4c@75		libuv			openal-soft		tree-sitter
colima			imath			libvmaf			openexr			unbound
coreutils		isl			libvterm		openldap		unibilium
curl			jpeg-turbo		libxml2			openssl@3		unixodbc
diffutils		jpeg-xl			libzip			p11-kit			utf8proc
docker			krb5			lima			pcre2			vde
docker-completion	lazygit			little-cms2		php			webp
dtc			libavif			llvm@18			pixman			xz
fontconfig		libdeflate		lpeg			pkg-config		yarn
freetds			libevent		luajit			pnpm			zlib
freetype		libidn2			luv			python-packaging	zstd
fzf			libiodbc		lz4			[email protected]
gcc			libmpc			lzo			[email protected]

==> Casks
alt-tab		emacs		ibm-iaccess	warp

Error log (full log here errorlog.txt):

    [CC] src/system.c
      text       data        bss      total filename
      3264        736       3152       7152 build/audio/rsp_mixer.elf
    [CC] n64tool.o
make[1]: *** No rule to make target `n64elfcompress/n64elfcompress.c', needed by `n64elfcompress/n64elfcompress.o'.  Stop.
make[1]: *** Waiting for unfinished jobs....
      text       data        bss      total filename
       236          4          0        240 build/audio/rsp_opus_fft_bfly2.elf
    [CC] n64sym.o
      text       data        bss      total filename
      2880        640          0       3520 build/audio/rsp_opus_imdct.elf
      text       data        bss      total filename
       240          4          0        244 build/audio/rsp_opus_fft_bfly4m1.elf
n64sym.c:8:10: fatal error: 'common/subprocess.h' file not found
    8 | #include "common/subprocess.h"
      |          ^~~~~~~~~~~~~~~~~~~~~
n64tool.c:32:10: fatal error: 'ipl3.h' file not found
   32 | #include "ipl3.h"
      |          ^~~~~~~~
1 error generated.
make[1]: *** [n64tool.o] Error 1
1 error generated.
make[1]: *** [n64sym.o] Error 1
make: *** [tools] Error 2
make: *** Waiting for unfinished jobs....
      text       data        bss      total filename
       592          4          0        596 build/audio/rsp_opus_fft_bfly3.elf
      text       data        bss      total filename
       508          4          0        512 build/audio/rsp_opus_fft_postrot.elf
      text       data        bss      total filename
       568          4          0        572 build/audio/rsp_opus_fft_bfly4.elf
      text       data        bss      total filename
       848          4          0        852 build/audio/rsp_opus_fft_prerot.elf
      text       data        bss      total filename
       760          4          0        764 build/audio/rsp_opus_fft_bfly5.elf
      text       data        bss      total filename
      3888       2056        528       6472 build/GL/rsp_gl.elf
      text       data        bss      total filename
      3128        864          0       3992 build/audio/rsp_opus_dsp.elf
      text       data        bss      total filename
      3980       3104        576       7660 build/GL/rsp_gl_pipeline.elf

NicholasRicher avatar Oct 30 '24 03:10 NicholasRicher