switchbrew / switch-examples

Switch examples for devkitA64 and libnx.
https://devkitpro.org/viewforum.php?f=42
566 stars 101 forks source link

Linker(?) error during hwopus-decoder compilation. #103

Closed Alec-de-Boer closed 1 year ago

Alec-de-Boer commented 1 year ago

Just to preface, this has nothing to do with missing packages, since I installed those properly. Been looking around for a while now, but even with my extensive C(++) knowledge I can't manage to fix this.

image

Alec-de-Boer commented 1 year ago

Added in image instead of code blocks, github markdown ain't working properly. Might be my own mistake though.

WinterMute commented 1 year ago

I'm completely unable to reproduce this. How did you install the opus packages?

Could you add -v to LDFLAGS in the Makefile then rebuild & show me the output?

The build for me looks like this (including installation of opus packages)

davem@ashpool MSYS /opt/devkitpro/examples/switch/audio/hwopus-decoder
$ pacman -S switch-opusfile
resolving dependencies...
looking for conflicting packages...

Packages (2) switch-libopus-1.3-2  switch-opusfile-0.10-3

Total Download Size:   0.26 MiB
Total Installed Size:  1.12 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 switch-libopus-1.3-2-any                                          218.0 KiB   385 KiB/s 00:01 [######################################################] 100%
 switch-opusfile-0.10-3-any                                         46.5 KiB   183 KiB/s 00:00 [######################################################] 100%
 Total (2/2)                                                       264.4 KiB   205 KiB/s 00:01 [######################################################] 100%
(2/2) checking keys in keyring                                                                 [######################################################] 100%
(2/2) checking package integrity                                                               [######################################################] 100%
(2/2) loading package files                                                                    [######################################################] 100%
(2/2) checking for file conflicts                                                              [######################################################] 100%
(2/2) checking available disk space                                                            [######################################################] 100%
:: Processing package changes...
(1/2) installing switch-libopus                                                                [######################################################] 100%
(2/2) installing switch-opusfile                                                               [######################################################] 100%

davem@ashpool MSYS /opt/devkitpro/examples/switch/audio/hwopus-decoder
$ make
sample.opus
main.c
linking hwopus-decoder.elf
built ... hwopus-decoder.nacp
built ... hwopus-decoder.nro
endrift commented 1 year ago

Make sure to make clean after doing any package updates

WinterMute commented 1 year ago

Assuming OP figured out their issue.