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

uyjulian

Homebrewer
Member
Joined
Nov 26, 2012
Messages
2,567
Trophies
2
Location
United States
Website
sites.google.com
XP
3,892
Country
United States
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
 

blawar

Developer
Developer
Joined
Nov 21, 2016
Messages
1,708
Trophies
1
Age
40
XP
4,311
Country
United States
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.
 

KsAmJ

Well-Known Member
Member
Joined
Oct 1, 2015
Messages
249
Trophies
0
Age
40
XP
1,160
where i can find more examples for this lib
it is only 4 examples on the git repo and doesn't cover all cases
 

KsAmJ

Well-Known Member
Member
Joined
Oct 1, 2015
Messages
249
Trophies
0
Age
40
XP
1,160
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,

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,890
Trophies
2
XP
29,449
Country
United Kingdom
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

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    What a weird game
  • K3Nv2 @ K3Nv2:
    Yeah I wanted to see shards of the titanic
  • BigOnYa @ BigOnYa:
    I kept thinking jaws was gonna come up and attack
  • K3Nv2 @ K3Nv2:
    Jaws is on a diet
  • K3Nv2 @ K3Nv2:
    Damn power went out
  • BigOnYa @ BigOnYa:
    Ok xdqwerty, your little bro prob tripped On the cord and unplugged you
  • K3Nv2 @ K3Nv2:
    Ya I'm afraid of the dark hug me
  • BigOnYa @ BigOnYa:
    Grab and hold close your AncientBoi doll.
  • K3Nv2 @ K3Nv2:
    Damn didn't charge my external battery either
  • BigOnYa @ BigOnYa:
    Take the batteries out of your SuperStabber3000... Or is it gas powered?
  • K3Nv2 @ K3Nv2:
    I stole batteries from your black mamba
    +1
  • K3Nv2 @ K3Nv2:
    My frozen food better hold up for an hour I know that
  • BigOnYa @ BigOnYa:
    Or else gonna be a big lunch and dinner tomorrow.
  • BigOnYa @ BigOnYa:
    Did you pay your power bill? Or give all yo money to my wife, again.
  • K3Nv2 @ K3Nv2:
    Oh good the estimated time is the same exact time they just said
    +1
  • BigOnYa @ BigOnYa:
    Load up your pc and monitor, and head to a McDonalds dining room, they have free WiFi
  • K3Nv2 @ K3Nv2:
    Sir please watch your porn in the bathroom
    +2
  • BigOnYa @ BigOnYa:
    No sir we can not sell you anymore apple pies, after what you did with the last one.
  • K3Nv2 @ K3Nv2:
    We ran out
  • HiradeGirl @ HiradeGirl:
    for your life
    +1
  • K3Nv2 @ K3Nv2:
    My life has no value my fat ass is staying right here
    SylverReZ @ SylverReZ: https://www.youtube.com/watch?v=8EmXheuVzFo