I installed devkitpro on macOS and compiling the test project works fine.
To see if everything really works, I tried to compile the source code of Checkpoint :
https://github.com/FlagBrew/Checkpoint/blob/master/README.md
According to the manual, I added these packages :
pacman -S libnx switch-freetype switch-libpng switch-libjpeg-turbo switch-sdl2 switch-sdl2_image switch-sdl2_ttf
But the linker throws these errors :
I think the issue is libwebp is too old or maybe just missing, or maybe it's just some quirk on OSX.
Compilation itself was throwing no errors.
I see there is are weblibp files in the portlibs folder of devkitpro:
/opt/devkitpro/pacman/var/lib/pacman/local/switch-libwebp-1.0.2-1
/opt/devkitpro/pacman/var/lib/pacman/local/switch-libwebp-1.0.2-1/desc
/opt/devkitpro/pacman/var/lib/pacman/local/switch-libwebp-1.0.2-1/files
/opt/devkitpro/pacman/var/lib/pacman/local/switch-libwebp-1.0.2-1/mtree
/opt/devkitpro/portlibs/switch/lib/libwebp.a
/opt/devkitpro/portlibs/switch/lib/libwebp.la
/opt/devkitpro/portlibs/switch/lib/libwebpdemux.a
/opt/devkitpro/portlibs/switch/lib/libwebpdemux.la
/opt/devkitpro/portlibs/switch/lib/pkgconfig/libwebp.pc
/opt/devkitpro/portlibs/switch/lib/pkgconfig/libwebpdemux.pc
These are the installed packages :
$ sudo dkp-pacman -Qqe
devkitA64
devkitpro-keyring
general-tools
libnx
pkg-config
switch-examples
switch-freetype
switch-libjpeg-turbo
switch-libpng
switch-sdl2
switch-sdl2_gfx
switch-sdl2_image
switch-sdl2_ttf
switch-tools
Anybody any idea how to solve these kind of linker issues?
Thanks in advance.
To see if everything really works, I tried to compile the source code of Checkpoint :
https://github.com/FlagBrew/Checkpoint/blob/master/README.md
According to the manual, I added these packages :
pacman -S libnx switch-freetype switch-libpng switch-libjpeg-turbo switch-sdl2 switch-sdl2_image switch-sdl2_ttf
But the linker throws these errors :
/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld: /opt/devkitpro/portlibs/switch/lib/libSDL2_image.a(IMG_webp.o): in function `IMG_InitWEBP':
IMG_webp.c: (.text.IMG_InitWEBP+0x10): undefined reference to `WebPGetFeaturesInternal'
/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld: IMG_webp.c: (.text.IMG_InitWEBP+0x14): undefined reference to `WebPDecodeRGBInto'
/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld: IMG_webp.c: (.text.IMG_InitWEBP+0x18): undefined reference to `WebPDecodeRGBAInto'
/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld: IMG_webp.c: (.text.IMG_InitWEBP+0x1c): undefined reference to `WebPGetFeaturesInternal'
/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld: IMG_webp.c: (.text.IMG_InitWEBP+0x20): undefined reference to `WebPDecodeRGBInto'
/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld: IMG_webp.c: (.text.IMG_InitWEBP+0x24): undefined reference to `WebPDecodeRGBAInto'
collect2: error: ld returned 1 exit status
I think the issue is libwebp is too old or maybe just missing, or maybe it's just some quirk on OSX.
Compilation itself was throwing no errors.
I see there is are weblibp files in the portlibs folder of devkitpro:
/opt/devkitpro/pacman/var/lib/pacman/local/switch-libwebp-1.0.2-1
/opt/devkitpro/pacman/var/lib/pacman/local/switch-libwebp-1.0.2-1/desc
/opt/devkitpro/pacman/var/lib/pacman/local/switch-libwebp-1.0.2-1/files
/opt/devkitpro/pacman/var/lib/pacman/local/switch-libwebp-1.0.2-1/mtree
/opt/devkitpro/portlibs/switch/lib/libwebp.a
/opt/devkitpro/portlibs/switch/lib/libwebp.la
/opt/devkitpro/portlibs/switch/lib/libwebpdemux.a
/opt/devkitpro/portlibs/switch/lib/libwebpdemux.la
/opt/devkitpro/portlibs/switch/lib/pkgconfig/libwebp.pc
/opt/devkitpro/portlibs/switch/lib/pkgconfig/libwebpdemux.pc
These are the installed packages :
$ sudo dkp-pacman -Qqe
devkitA64
devkitpro-keyring
general-tools
libnx
pkg-config
switch-examples
switch-freetype
switch-libjpeg-turbo
switch-libpng
switch-sdl2
switch-sdl2_gfx
switch-sdl2_image
switch-sdl2_ttf
switch-tools
Anybody any idea how to solve these kind of linker issues?
Thanks in advance.
Last edited by thesjaakspoiler,