Welcome! Log In Create A New Profile

Advanced

compling current homebrew with homebrew menu std library

Posted by Kage52124 
compling current homebrew with homebrew menu std library
October 03, 2010 07:14PM
Hey, right now I'm trying to get Jewels to work with the libwiisprite version of Homebrew menu std library

I've already got the libwiisprite.a and header files in the right places (thanks Arikado!) and I can compile the source code without any changes, so I know I've got everything in the right places.

My error in compiling after entering the line #include in the jewels.c source gives me this error:

In file included from /home/kage52124/Wii/Projects/jewels/source/jewels.c:18:
/opt/devkitpro/libogc/include/hbmenuhead.h:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'namespace'
/opt/devkitpro/libogc/include/hbmenuhead.h:23: error: expected ')' before '*' token
make[1]: *** [jewels.o] Error 1
make: *** [build] Error 2

I've got no where near enough coding experience, but I've already changed what button press will exit Jewels, freeing up the home button, so this should be all that I need to fix right? How would I go about it?

I'm guessing I still don't have libwiisprite done quite right since 'wsp' is the libwiisprite namespace. Would it need to get recompiled under the devkitPPC I have, which I got Oct 2nd, 2010? or is something else going on?

Thanks a bunch for any postings/help!
Re: compling current homebrew with homebrew menu std library
October 03, 2010 07:29PM
#include wiisprite.h

before

#include hbmenuhead.h



Edited 3 time(s). Last edit at 10/03/2010 07:31PM by Arikado.
Re: compling current homebrew with homebrew menu std library
October 03, 2010 07:52PM
Okay adding #include wiisprite.h before hbmenuhead.h gave me more errors:


^[[AIn file included from /opt/devkitpro/libogc/include/image.h:10,
from /opt/devkitpro/libogc/include/gamewindow.h:10,
from /opt/devkitpro/libogc/include/wiisprite.h:8,
from /home/kage52124/Wii/Projects/jewels/source/jewels.c:18:
/opt/devkitpro/libogc/include/png.h:391:18: error: zlib.h: No such file or directory
In file included from /opt/devkitpro/libogc/include/image.h:10,
from /opt/devkitpro/libogc/include/gamewindow.h:10,
from /opt/devkitpro/libogc/include/wiisprite.h:8,
from /home/kage52124/Wii/Projects/jewels/source/jewels.c:18:
/opt/devkitpro/libogc/include/png.h:1137: error: expected specifier-qualifier-list before 'z_stream'
In file included from /opt/devkitpro/libogc/include/gamewindow.h:10,
from /opt/devkitpro/libogc/include/wiisprite.h:8,
from /home/kage52124/Wii/Projects/jewels/source/jewels.c:18:
/opt/devkitpro/libogc/include/image.h:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wsp'
In file included from /opt/devkitpro/libogc/include/wiisprite.h:8,
from /home/kage52124/Wii/Projects/jewels/source/jewels.c:18:
/opt/devkitpro/libogc/include/gamewindow.h:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wsp'
In file included from /opt/devkitpro/libogc/include/layermanager.h:10,
from /opt/devkitpro/libogc/include/wiisprite.h:9,
from /home/kage52124/Wii/Projects/jewels/source/jewels.c:18:
/opt/devkitpro/libogc/include/layer.h:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wsp'
In file included from /opt/devkitpro/libogc/include/wiisprite.h:9,
from /home/kage52124/Wii/Projects/jewels/source/jewels.c:18:
/opt/devkitpro/libogc/include/layermanager.h:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wsp'
In file included from /opt/devkitpro/libogc/include/sprite.h:12,
from /opt/devkitpro/libogc/include/wiisprite.h:12,
from /home/kage52124/Wii/Projects/jewels/source/jewels.c:18:
/opt/devkitpro/libogc/include/tiledlayer.h:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wsp'
In file included from /opt/devkitpro/libogc/include/wiisprite.h:12,
from /home/kage52124/Wii/Projects/jewels/source/jewels.c:18:
/opt/devkitpro/libogc/include/sprite.h:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wsp'
In file included from /opt/devkitpro/libogc/include/wiisprite.h:14,
from /home/kage52124/Wii/Projects/jewels/source/jewels.c:18:
/opt/devkitpro/libogc/include/quad.h:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wsp'
In file included from /home/kage52124/Wii/Projects/jewels/source/jewels.c:19:
/home/kage52124/Wii/Projects/jewels/build/hbmenuhead.h:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'namespace'
/home/kage52124/Wii/Projects/jewels/build/hbmenuhead.h:23: error: expected ')' before '*' token
make[1]: *** [jewels.o] Error 1
make: *** [build] Error 2



So I downloaded the Zlib for PPC (it's not ARM right?) and extracted the contents to the libogc folder, which eliminated the first two errors, but I still have everything afterwards.

I apologize if this is highly remedial

EDIT: > and < don't agree with forums, removed. Now I see why you didn't type them.



Edited 1 time(s). Last edit at 10/03/2010 08:03PM by Kage52124.
Re: compling current homebrew with homebrew menu std library
October 03, 2010 08:21PM
Is there a way I can convince you to send me your source so I can examine it?
Re: compling current homebrew with homebrew menu std library
October 03, 2010 08:36PM
absolutely, I'll send it to your e-mail.

EDIT: Here's the result:

Quote

Libwiisprite can only work with .cpp files. Not .c files

You were missing a rule for compiling .pngs

-lwiisprite and -lhbmenu need to be the first two libs defined in your LIBS:

(Still a few errors but they're all mistakes made in (the) source)

--Arikado

So now that's fixed, but since the source has been changed from .c to .cpp, there are plenty of new errors...I'll chip away at them over time



Edited 1 time(s). Last edit at 10/03/2010 10:57PM by Kage52124.
Re: compling current homebrew with homebrew menu std library
October 04, 2010 12:11AM
Problem solved: Libwiisprite does not work with .c files.
Sorry, you can't reply to this topic. It has been closed.