Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation Error #27

Closed
wge44 opened this issue Oct 8, 2020 · 6 comments
Closed

Compilation Error #27

wge44 opened this issue Oct 8, 2020 · 6 comments

Comments

@wge44
Copy link

wge44 commented Oct 8, 2020

I'm trying to compile the code but I'm getting this error:

oggplayer.c
C:/Users/WG/Downloads/libwiigui/libwiigui-master/source/oggplayer.c:32:10: fatal error: tremor/ivorbiscodec.h: No such file or directory
32 | #include <tremor/ivorbiscodec.h>
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [/opt/devkitpro/devkitPPC/base_rules:18: oggplayer.o] Error 1
make: *** [Makefile:101: build] Error 2

@wge44
Copy link
Author

wge44 commented Oct 8, 2020

installing the other devkitpro ppc packages with pacman -S $(pacman -Ssq ppc) solves the problem above

@wge44
Copy link
Author

wge44 commented Oct 8, 2020

Currently can't get past this error, fails building at the end

c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/10.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/WG/Downloads/libwiigui/libwiigui-master/source/menu.cpp:242: undefined reference to button_over_pcm_size' c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/10.2.0/../../../../powerpc-eabi/bin/ld.exe: menu.o: in function _ZL16MenuSettingsFilev':
C:/Users/WG/Downloads/libwiigui/libwiigui-master/source/menu.cpp:630: undefined reference to button_over_pcm_size' c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/10.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/WG/Downloads/libwiigui/libwiigui-master/source/menu.cpp:630: undefined reference to button_over_pcm_size'
c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/10.2.0/../../../../powerpc-eabi/bin/ld.exe: menu.o: in function Z12WindowPromptPKcS0_S0_S0': C:/Users/WG/Downloads/libwiigui/libwiigui-master/source/menu.cpp:79: undefined reference to button_over_pcm_size'
c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/10.2.0/../../../../powerpc-eabi/bin/ld.exe: menu.o:C:/Users/WG/Downloads/libwiigui/libwiigui-master/source/menu.cpp:79: more undefined references to button_over_pcm_size' follow c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/10.2.0/../../../../powerpc-eabi/bin/ld.exe: menu.o: in function _Z8MainMenui':
C:/Users/WG/Downloads/libwiigui/libwiigui-master/source/menu.cpp:779: undefined reference to bg_music_ogg_size' c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/10.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/WG/Downloads/libwiigui/libwiigui-master/source/menu.cpp:779: undefined reference to bg_music_ogg_size'
c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/10.2.0/../../../../powerpc-eabi/bin/ld.exe: gui_filebrowser.o: in function _ZN14GuiFileBrowserC2Eii': C:/Users/WG/Downloads/libwiigui/libwiigui-master/source/libwiigui/gui_filebrowser.cpp:35: undefined reference to button_over_pcm_size'
c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/10.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/WG/Downloads/libwiigui/libwiigui-master/source/libwiigui/gui_filebrowser.cpp:35: undefined reference to button_over_pcm_size' c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/10.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/WG/Downloads/libwiigui/libwiigui-master/source/libwiigui/gui_filebrowser.cpp:36: undefined reference to button_click_pcm_size'
c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/10.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/WG/Downloads/libwiigui/libwiigui-master/source/libwiigui/gui_filebrowser.cpp:36: undefined reference to button_click_pcm_size' c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/10.2.0/../../../../powerpc-eabi/bin/ld.exe: gui_keyboard.o: in function _ZN11GuiKeyboardC2EPcj':
C:/Users/WG/Downloads/libwiigui/libwiigui-master/source/libwiigui/gui_keyboard.cpp:116: undefined reference to button_over_pcm_size' c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/10.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/WG/Downloads/libwiigui/libwiigui-master/source/libwiigui/gui_keyboard.cpp:116: undefined reference to button_over_pcm_size'
c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/10.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/WG/Downloads/libwiigui/libwiigui-master/source/libwiigui/gui_keyboard.cpp:117: undefined reference to button_click_pcm_size' c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/10.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/WG/Downloads/libwiigui/libwiigui-master/source/libwiigui/gui_keyboard.cpp:117: undefined reference to button_click_pcm_size'
c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/10.2.0/../../../../powerpc-eabi/bin/ld.exe: gui_optionbrowser.o: in function _ZN16GuiOptionBrowserC2EiiP11_optionlist': C:/Users/WG/Downloads/libwiigui/libwiigui-master/source/libwiigui/gui_optionbrowser.cpp:32: undefined reference to button_over_pcm_size'
c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/10.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/WG/Downloads/libwiigui/libwiigui-master/source/libwiigui/gui_optionbrowser.cpp:32: undefined reference to button_over_pcm_size' c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/10.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/WG/Downloads/libwiigui/libwiigui-master/source/libwiigui/gui_optionbrowser.cpp:33: undefined reference to button_click_pcm_size'
c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/10.2.0/../../../../powerpc-eabi/bin/ld.exe: C:/Users/WG/Downloads/libwiigui/libwiigui-master/source/libwiigui/gui_optionbrowser.cpp:33: undefined reference to `button_click_pcm_size'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [/opt/devkitpro/devkitPPC/wii_rules:30: /home/WG/Downloads/libwiigui/libwiigui-master/libwiigui-demo.elf] Error 1
make: *** [Makefile:101: build] Error 2

@dborth
Copy link
Owner

dborth commented Oct 11, 2020

Fixed.

@dborth dborth closed this as completed Oct 11, 2020
@wge44
Copy link
Author

wge44 commented Oct 11, 2020

Is there a new commit coming/ is there something on my end I need to change?

@spotlightishere
Copy link

spotlightishere commented Nov 21, 2020

It seems at some point devkitPro's configuration for that started including the file's size in header instead of within the object, seemingly breaking the reliance of extern const as used within source/filelist.h (? I don't know C++ as much as I'd like.)

I was able to circumvent this by editing it to import every bin2o-operated file manually and rearranging OFILES within the Makefile to operate on CPPFILES/CFILES last so that headers/objs would be generated.

Is there a fix for this that hasn't been pushed yet? Happy to make a PR if not!

@wge44
Copy link
Author

wge44 commented Nov 21, 2020

@spotlightishere there’s no fix currently pushed, if you can make a PR that would be great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants