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

  • Thread starter Thread starter XorTroll
  • Start date Start date
  • Views Views 17,031
  • Replies Replies 46
  • Likes Likes 31
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
you didn't add -lopusfile to LIBS after -lsdl2_mixer
 
you didn't add -lopusfile to LIBS after -lsdl2_mixer

It is also worth noting that sdl_mixer is not needed for this, I do not know why it is included in the project. He he could also remove all references to sdl_mixer. This project does not play sounds.
 
where i can find more examples for this lib
it is only 4 examples on the git repo and doesn't cover all cases
 
its a dead project, xortrol moved on to plutonium.
i am using the plutonium...i need open source git apps or more samples
also how to reduce the size of the app it is very big
i just modified one of examples to mine and it is 9 MB already and it doesnt do much rather than changing an ini file contents
 
Last edited by KsAmJ,
i am using the plutonium...i need open source git apps or more samples
also how to reduce the size of the app it is very big
i just modified one of examples to mine and it is 9 MB already and it doesnt do much rather than changing an ini file contents
Goldleaf I guess?
If you really wanted to reduce the size of your app you'd need to figure out which parts of the UI library you don't need, remove them and adjust the rest of the code to not depend on them. Probably not worth it tho - 10MB sounds like a lot for a simple homebrew, but it's still tiny in terms of modern storage space.
 

Site & Scene News

Popular threads in this forum