Homebrew Compiling a libogc-app with NetBeans

  • Thread starter Thread starter MopSec
  • Start date Start date
  • Views Views 1,425
  • Replies Replies 0

MopSec

"Leftist snowflake milennial"
Member
Joined
Jun 14, 2011
Messages
1,890
Solutions
1
Reaction score
1,365
Trophies
3
Age
28
Location
Munich
XP
4,539
Country
Germany
I'd like to start learning how to code for the Wii by porting a homebrew game I made for the 3DS over to the Wii. I used NetBeans to code the original game for the 3DS and compiling and building everything worked just fine using it. However, trying to compile something including libogc is giving me a headache at the moment. By now I've tried compiling the filesystem example provided by devkitPro and one of the examples that come with BRRLIB and both give me the same errors when I compile them:
Code:
In file included from c:\mingw\include\windows.h:48:0,
                 from ../../../../libogc/include/wiiuse/wiiuse.h:6,
                 from ../../../../libogc/include/wiiuse/wpad.h:35,
                 from c:/devkitPro/examples/wii/filesystem/directory/source/directory.c:2:
c:\mingw\include\windef.h:234:17: error: conflicting types for 'BOOL'
 typedef WINBOOL BOOL;
                 ^
In file included from ../../../../libogc/include/ogc/dsp.h:39:0,
                 from ../../../../libogc/include/gccore.h:39,
                 from c:/devkitPro/examples/wii/filesystem/directory/source/directory.c:1:
../../../../libogc/include/gctypes.h:51:22: note: previous declaration of 'BOOL' was here
 typedef unsigned int BOOL;
                      ^
../../../../libogc/include/gctypes.h:54:15: error: conflicting types for 's32'
 #define FIXED s32     ///< Alias type for sfp32
               ^
../../../../libogc/include/gctypes.h:24:17: note: previous declaration of 's32' was here
 typedef int32_t s32;    ///< 32bit signed integer
                 ^
In file included from c:\mingw\include\windows.h:98:0,
                 from ../../../../libogc/include/wiiuse/wiiuse.h:6,
                 from ../../../../libogc/include/wiiuse/wpad.h:35,
                 from c:/devkitPro/examples/wii/filesystem/directory/source/directory.c:2:
c:\mingw\include\winsock2.h:103:2: warning: #warning "fd_set and associated macros have been defined in sys/types.      This may cause runtime problems with W32 sockets" [-Wcpp]
 #warning "fd_set and associated macros have been defined in sys/types.  \
  ^
In file included from c:\mingw\include\rpcdce.h:10:0,
                 from c:\mingw\include\rpc.h:40,
                 from c:\mingw\include\windows.h:82,
                 from ../../../../libogc/include/wiiuse/wiiuse.h:6,
                 from ../../../../libogc/include/wiiuse/wpad.h:35,
                 from c:/devkitPro/examples/wii/filesystem/directory/source/directory.c:2:
../../../../libogc/include/fat.h:79:69: error: expected ';', ',' or ')' before 'struct'
 extern bool fatMountSimple (const char* name, const DISC_INTERFACE* interface);
                                                                     ^
../../../../libogc/include/fat.h:89:63: error: expected ';', ',' or ')' before 'struct'
 extern bool fatMount (const char* name, const DISC_INTERFACE* interface, sec_t startSector, uint32_t cacheSize, uint32_t SectorsPerPage);

Building the examples using only the makefile with cmd works like a charm though, I really do not know what's going on there. I've included all the necessary headers, too...or did I?
BP002Ao.png
 

Site & Scene News

Popular threads in this forum