Homebrew RELEASE CustomUI - C++ libnx libs for creating switch-like UI homebrew apps!

KsAmJ

Well-Known Member
Member
Joined
Oct 1, 2015
Messages
249
Trophies
0
Age
40
XP
1,160
can anyone help.. i can't make any exmaple it always shows these errors

Code:
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: C:/devkitPro/portlibs/switch/lib\libSDL2_mixer.a(music_opus.o): in function `OPUS_Load':
music_opus.c:(.text.OPUS_Load+0x10): undefined reference to `op_open_callbacks'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x14): undefined reference to `op_free'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x18): undefined reference to `op_head'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x1c): undefined reference to `op_seekable'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x20): undefined reference to `op_open_callbacks'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x24): undefined reference to `op_read'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x28): undefined reference to `op_pcm_seek'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x2c): undefined reference to `op_free'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x30): undefined reference to `op_head'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x34): undefined reference to `op_seekable'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x3c): undefined reference to `op_read'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x44): undefined reference to `op_pcm_seek'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [/opt/devkitpro/libnx/switch_rules:80: /opt/devkitpro/Repos/Plutonium/Examples/Dialogs/Dialogs.elf] Error 1
make: *** [Makefile:156: Build] Error 2
 

blawar

Developer
Developer
Joined
Nov 21, 2016
Messages
1,708
Trophies
1
Age
40
XP
4,311
Country
United States
can anyone help.. i can't make any exmaple it always shows these errors

Code:
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: C:/devkitPro/portlibs/switch/lib\libSDL2_mixer.a(music_opus.o): in function `OPUS_Load':
music_opus.c:(.text.OPUS_Load+0x10): undefined reference to `op_open_callbacks'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x14): undefined reference to `op_free'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x18): undefined reference to `op_head'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x1c): undefined reference to `op_seekable'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x20): undefined reference to `op_open_callbacks'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x24): undefined reference to `op_read'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x28): undefined reference to `op_pcm_seek'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x2c): undefined reference to `op_free'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x30): undefined reference to `op_head'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x34): undefined reference to `op_seekable'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x3c): undefined reference to `op_read'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x44): undefined reference to `op_pcm_seek'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [/opt/devkitpro/libnx/switch_rules:80: /opt/devkitpro/Repos/Plutonium/Examples/Dialogs/Dialogs.elf] Error 1
make: *** [Makefile:156: Build] Error 2

If you are on absolute latest DKP, I cant help you since it has problems. If you are an older, DKP try this in the makefile:

-lSDL2_mixer -lmodplug -lmpg123 -lvorbisidec -logg
 

KsAmJ

Well-Known Member
Member
Joined
Oct 1, 2015
Messages
249
Trophies
0
Age
40
XP
1,160
how to downgarde to optimal working one that i can just type make and get the nro without any error

--------------------- MERGED ---------------------------

If you are on absolute latest DKP, I cant help you since it has problems. If you are an older, DKP try this in the makefile:

-lSDL2_mixer -lmodplug -lmpg123 -lvorbisidec -logg
 

KsAmJ

Well-Known Member
Member
Joined
Oct 1, 2015
Messages
249
Trophies
0
Age
40
XP
1,160
this is the stock LIBS in the examples MAKE file

Code:
LIBS    := -lpu -lfreetype -lSDL2_mixer -lmodplug -lmpg123 -lvorbisidec -logg -lSDL2_ttf -lSDL2_gfx -lSDL2_image -lSDL2 -lEGL -lGLESv2 -lglapi -ldrm_nouveau -lwebp -lpng -ljpeg `sdl2-config --libs` `freetype-config --libs` -lnx

should i replace it with

Code:
LIBS    := -lSDL2_mixer -lmodplug -lmpg123 -lvorbisidec -logg
 

blawar

Developer
Developer
Joined
Nov 21, 2016
Messages
1,708
Trophies
1
Age
40
XP
4,311
Country
United States
this is the stock LIBS in the examples MAKE file

Code:
LIBS    := -lpu -lfreetype -lSDL2_mixer -lmodplug -lmpg123 -lvorbisidec -logg -lSDL2_ttf -lSDL2_gfx -lSDL2_image -lSDL2 -lEGL -lGLESv2 -lglapi -ldrm_nouveau -lwebp -lpng -ljpeg `sdl2-config --libs` `freetype-config --libs` -lnx

should i replace it with

Code:
LIBS    := -lSDL2_mixer -lmodplug -lmpg123 -lvorbisidec -logg

No, do not replace it. You are 100% encountering an issue with new DKP's bullshit. I cannot help you, as I stay away from that dumpster fire.
 

KsAmJ

Well-Known Member
Member
Joined
Oct 1, 2015
Messages
249
Trophies
0
Age
40
XP
1,160
No, do not replace it. You are 100% encountering an issue with new DKP's bullshit. I cannot help you, as I stay away from that dumpster fire.
so should i give up now or what???
i wanna use the templates for my app using this lib
 

KsAmJ

Well-Known Member
Member
Joined
Oct 1, 2015
Messages
249
Trophies
0
Age
40
XP
1,160
same result
Code:
C:\devkitPro\Repos\Plutonium\Examples\SimpleApplication>make
MainApplication.main.cpp
aarch64-none-elf-g++ -MMD -MP -MF /opt/devkitpro/Repos/Plutonium/Examples/SimpleApplication/Build/MainApplication.main.d -g -O2 -fpermissive -ffunction-sections -w -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE  -I/opt/devkitpro/Repos/Plutonium/Examples/SimpleApplication/Include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/opt/devkitpro/Repos/Plutonium/Examples/SimpleApplication/../../Plutonium/Output/include -I/opt/devkitpro/Repos/Plutonium/Examples/SimpleApplication/Build -D__SWITCH__ -fexceptions -std=gnu++17 -c /opt/devkitpro/Repos/Plutonium/Examples/SimpleApplication/Source/MainApplication.main.cpp -o MainApplication.main.o
MainApplication.cpp
aarch64-none-elf-g++ -MMD -MP -MF /opt/devkitpro/Repos/Plutonium/Examples/SimpleApplication/Build/MainApplication.d -g -O2 -fpermissive -ffunction-sections -w -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE  -I/opt/devkitpro/Repos/Plutonium/Examples/SimpleApplication/Include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/opt/devkitpro/Repos/Plutonium/Examples/SimpleApplication/../../Plutonium/Output/include -I/opt/devkitpro/Repos/Plutonium/Examples/SimpleApplication/Build -D__SWITCH__ -fexceptions -std=gnu++17 -c /opt/devkitpro/Repos/Plutonium/Examples/SimpleApplication/Source/MainApplication.cpp -o MainApplication.o
linking SimpleApplication.elf
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: C:/devkitPro/portlibs/switch/lib\libSDL2_mixer.a(music_opus.o): in function `OPUS_Load':
music_opus.c:(.text.OPUS_Load+0x10): undefined reference to `op_open_callbacks'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x14): undefined reference to `op_free'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x18): undefined reference to `op_head'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x1c): undefined reference to `op_seekable'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x20): undefined reference to `op_open_callbacks'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x24): undefined reference to `op_read'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x28): undefined reference to `op_pcm_seek'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x2c): undefined reference to `op_free'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x30): undefined reference to `op_head'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x34): undefined reference to `op_seekable'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x3c): undefined reference to `op_read'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/8.3.0/../../../../aarch64-none-elf/bin/ld.exe: music_opus.c:(.text.OPUS_Load+0x44): undefined reference to `op_pcm_seek'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [/opt/devkitpro/libnx/switch_rules:80: /opt/devkitpro/Repos/Plutonium/Examples/SimpleApplication/SimpleApplication.elf] Error 1
make: *** [Makefile:156: Build] Error 2
try adding -lopus to your libs string
also try adding -lopusfile
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Each bite is a $1 well spent
  • SylverReZ @ SylverReZ:
    @ZeroT21, Agreed. I hate oven pizza, only from pizza place.
    +1
  • K3Nv2 @ K3Nv2:
    Nah I can still go for totinos
  • RedColoredStars @ RedColoredStars:
    i like totinos party pizzas. lol.
  • RedColoredStars @ RedColoredStars:
    the cracker-like crust is great on those
  • RedColoredStars @ RedColoredStars:
    My neighbor and I are going to make this next month....
  • SylverReZ @ SylverReZ:
    Tiger crust is great.
  • K3Nv2 @ K3Nv2:
    I'm beefing with a neighbor currently each time I ask him for help with something he makes bs excuses then ignores my calls text but seems to randomly speak when I'm done with the project after doing things to help him
  • RedColoredStars @ RedColoredStars:
    DiGiorno Crispy Pan Pizza tasted pretty dang close to Pizza hut pan pizza, but Im not sure if theyve been discontinued or not. Havent seen them locally for a couple of months now.
  • RedColoredStars @ RedColoredStars:
    The croissant crust is still available though, but not quite as good imo.
  • RedColoredStars @ RedColoredStars:
    @SylverReZ Never heard of tiger crust. What is it?
  • SylverReZ @ SylverReZ:
    @RedColoredStars, Its known as tiger bread, also known as dutch crust.
  • Maximumbeans @ Maximumbeans:
    It's fuggin gooooood
    +1
  • RedColoredStars @ RedColoredStars:
    I mean. Whats different about it?
  • RedColoredStars @ RedColoredStars:
    Never even seen a tiger crust pizza in any stores around here. Walmart, Cub, or otherwise.
  • RedColoredStars @ RedColoredStars:
    Must be a regional thing.
  • RedColoredStars @ RedColoredStars:
    Gonna smoke this bowl then go get kitties ashes. <3
  • RedColoredStars @ RedColoredStars:
    Last thing I told her is how much I love her, and that Im not leaving her there forever and I promise to come back and take her back home with me.
  • Bunjolio @ Bunjolio:
    halllo
  • Black_Manta_8bit @ Black_Manta_8bit:
    hello, anyone is able to create cheat patches for cemu? i have a simple request if anyone can help
  • SylverReZ @ SylverReZ:
    @RedColoredStars, Rest in piece. Hope she rests well, she'll always love you too. :sad:
  • BakerMan @ BakerMan:
    @RedColoredStars My condolences, was that your cat?
    BakerMan @ BakerMan: @RedColoredStars My condolences, was that your cat?