Source code not compilable
Closed this issue · 4 comments
GoogleCodeExporter commented
I've checked out the latest SVN Code.
In the Make file
LIBDIRS :=
should be exchanged with:
LIBDIRS := $(PORTLIBS)
There are many compile errors:
c:/devkitpro/hugo-gx-read-only/source/ngc/osd_ngc_gfx.c:93: error: expected
spec
ifier-qualifier-list before 'Vector'
c:/devkitpro/hugo-gx-read-only/source/ngc/osd_ngc_gfx.c:115: error: extra brace
group at end of initializer
c:/devkitpro/hugo-gx-read-only/source/ngc/osd_ngc_gfx.c:115: error: (near
initia
lization for 'cam')
c:/devkitpro/hugo-gx-read-only/source/ngc/osd_ngc_gfx.c:115: warning:
excess ele
ments in struct initializer
c:/devkitpro/hugo-gx-read-only/source/ngc/osd_ngc_gfx.c:115: warning: (near
init
ialization for 'cam')
c:/devkitpro/hugo-gx-read-only/source/ngc/osd_ngc_gfx.c:116: error: extra brace
group at end of initializer
c:/devkitpro/hugo-gx-read-only/source/ngc/osd_ngc_gfx.c:116: error: (near
initia
lization for 'cam')
and some more...
Original issue reported on code.google.com by talant...@gmail.com
on 24 May 2010 at 9:33
GoogleCodeExporter commented
Yeah I know.
The point is, current code did not change since the last official release and I
don't
have the time anymore to manage several emulators at the same time.
Original comment by ekeeke31@gmail.com
on 26 May 2010 at 12:51
- Changed state: WontFix
GoogleCodeExporter commented
Ok, I don't have the ability to test ans commit fixed code for compilation with
latest libfat/libogc but there should be only a limited changes:
in osd_ngc_machine.c, osd_init_machine(), remove the following lines:
#ifdef HW_RVL
fatEnableReadAhead ("sd", 6, 64);
fatEnableReadAhead ("usb", 6, 64);
#else
fatEnableReadAhead ("carda", 6, 64);
fatEnableReadAhead ("cardb", 6, 64);
#endif
In osd_ngc_gfx.c, replace:
typedef struct tagcamera
{
Vector pos;
Vector up;
Vector view;
} camera;
with
typedef struct tagcamera
{
guVector pos;
guVector up;
guVector view;
} camera;
Original comment by ekeeke31@gmail.com
on 26 May 2010 at 1:48
GoogleCodeExporter commented
thank you very much for your help! :)
Original comment by talant...@gmail.com
on 26 May 2010 at 1:55
GoogleCodeExporter commented
it worked, code is now compilable. So let the tinkering begin ^^
Original comment by talant...@gmail.com
on 26 May 2010 at 3:39