You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Greetings, I've been interested in getting a build out of this repository for a while, but I have noticed that on the README it only recommends getting Devkitpro and libogc but does not state which versions are needed to actually get a build. And using the latest versions just result in build errors:
In file included from /home/gabo1423/wii-gc-adapter-inject/source/wii-u-gc-adapter.c:40:
/home/gabo1423/wii-gc-adapter-inject/source/input.h:14:8: error: redefinition of 'struct timeval'
14 | struct timeval {
| ^~~~~~~
In file included from /opt/devkitpro/devkitPPC/powerpc-eabi/include/sys/select.h:15,
from /opt/devkitpro/devkitPPC/powerpc-eabi/include/sys/types.h:50,
from /opt/devkitpro/devkitPPC/powerpc-eabi/include/time.h:28,
from /home/gabo1423/wii-gc-adapter-inject/source/wii-u-gc-adapter.c:25:
/opt/devkitpro/devkitPPC/powerpc-eabi/include/sys/_timeval.h:54:8: note: originally defined here
54 | struct timeval {
| ^~~~~~~
In file included from /home/gabo1423/wii-gc-adapter-inject/source/usb.c.h:49,
from /home/gabo1423/wii-gc-adapter-inject/source/wii-u-gc-adapter.c:49:
/home/gabo1423/wii-gc-adapter-inject/source/functionPointers.h:26:7: error: 'IOS_Ioctl' redeclared as different kind of symbol
26 | s32 (*IOS_Ioctl)(s32 fd,s32 ioctl,void *buffer_in,s32 len_in,void *buffer_io,s32 len_io) = (void*)0x80212d40;
| ^~~~~~~~~
In file included from /home/gabo1423/wii-gc-adapter-inject/source/functionPointers.h:7:
/opt/devkitpro/libogc/include/ogc/ipc.h:88:5: note: previous declaration of 'IOS_Ioctl' with type 's32(s32, s32, void *, s32, void *, s32)' {aka 'int(int, int, void *, int, void *, int)'}
88 | s32 IOS_Ioctl(s32 fd,s32 ioctl,void *buffer_in,s32 len_in,void *buffer_io,s32 len_io);
| ^~~~~~~~~
/home/gabo1423/wii-gc-adapter-inject/source/functionPointers.h:27:7: error: 'IOS_Ioctlv' redeclared as different kind of symbol
27 | s32 (*IOS_Ioctlv)(s32 fd, s32 ioctl, s32 cnt_in, s32 cnt_io, ioctlv *argv) = (void*)0x80213090;
| ^~~~~~~~~~
/opt/devkitpro/libogc/include/ogc/ipc.h:90:5: note: previous declaration of 'IOS_Ioctlv' with type 's32(s32, s32, s32, s32, ioctlv *)' {aka 'int(int, int, int, int, struct _ioctlv *)'}
90 | s32 IOS_Ioctlv(s32 fd,s32 ioctl,s32 cnt_in,s32 cnt_io,ioctlv *argv);
| ^~~~~~~~~~
/home/gabo1423/wii-gc-adapter-inject/source/functionPointers.h:28:7: error: 'IOS_IoctlvAsync' redeclared as different kind of symbol
28 | s32 (*IOS_IoctlvAsync)(s32 fd,s32 ioctl,s32 cnt_in,s32 cnt_io,ioctlv *argv,ipccallback ipc_cb,void *usrdata) = (void*)0x80212fac;
| ^~~~~~~~~~~~~~~
/opt/devkitpro/libogc/include/ogc/ipc.h:91:5: note: previous declaration of 'IOS_IoctlvAsync' with type 's32(s32, s32, s32, s32, ioctlv *, s32 (*)(s32, void *), void *)' {aka 'int(int, int, int, int, struct _ioctlv *, int (*)(int, void *), void *)'}
91 | s32 IOS_IoctlvAsync(s32 fd,s32 ioctl,s32 cnt_in,s32 cnt_io,ioctlv *argv,ipccallback ipc_cb,void *usrdata);
| ^~~~~~~~~~~~~~~
/home/gabo1423/wii-gc-adapter-inject/source/functionPointers.h:29:7: error: 'IOS_IoctlAsync' redeclared as different kind of symbol
29 | s32 (*IOS_IoctlAsync)(s32 fd,s32 ioctl,void *buffer_in,s32 len_in,void *buffer_io,s32 len_io,ipccallback ipc_cb,void *usrdata) = (void*)0x80212c08;
| ^~~~~~~~~~~~~~
/opt/devkitpro/libogc/include/ogc/ipc.h:89:5: note: previous declaration of 'IOS_IoctlAsync' with type 's32(s32, s32, void *, s32, void *, s32, s32 (*)(s32, void *), void *)' {aka 'int(int, int, void *, int, void *, int, int (*)(int, void *), void *)'}
89 | s32 IOS_IoctlAsync(s32 fd,s32 ioctl,void *buffer_in,s32 len_in,void *buffer_io,s32 len_io,ipccallback ipc_cb,void *usrdata);
| ^~~~~~~~~~~~~~
/home/gabo1423/wii-gc-adapter-inject/source/functionPointers.h:35:8: error: 'iosFree' redeclared as different kind of symbol
35 | void (*iosFree)(s32 hid,void *ptr) = (void*)0x802137a8;
| ^~~~~~~
/opt/devkitpro/libogc/include/ogc/ipc.h:68:6: note: previous declaration of 'iosFree' with type 'void(s32, void *)' {aka 'void(int, void *)'}
68 | void iosFree(s32 hid,void *ptr);
| ^~~~~~~
/home/gabo1423/wii-gc-adapter-inject/source/functionPointers.h:36:9: error: 'IPC_GetBufferLo' redeclared as different kind of symbol
36 | void* (*IPC_GetBufferLo)() = (void*)0x80211ae8;
| ^~~~~~~~~~~~~~~
/opt/devkitpro/libogc/include/ogc/ipc.h:70:7: note: previous declaration of 'IPC_GetBufferLo' with type 'void *(void)'
70 | void* IPC_GetBufferLo(void);
| ^~~~~~~~~~~~~~~
/home/gabo1423/wii-gc-adapter-inject/source/functionPointers.h:37:7: error: 'iosCreateHeap' redeclared as different kind of symbol
37 | s32 (*iosCreateHeap)(void* bufferLo, s32 size) = (void*)0x80213468;
| ^~~~~~~~~~~~~
/opt/devkitpro/libogc/include/ogc/ipc.h:66:5: note: previous declaration of 'iosCreateHeap' with type 's32(s32)' {aka 'int(int)'}
66 | s32 iosCreateHeap(s32 size);
| ^~~~~~~~~~~~~
/home/gabo1423/wii-gc-adapter-inject/source/functionPointers.h:38:7: error: 'IOS_Open' redeclared as different kind of symbol
38 | s32 (*IOS_Open)(const char *filepath,u32 mode) = (void*)0x802123a8;
| ^~~~~~~~
/opt/devkitpro/libogc/include/ogc/ipc.h:75:5: note: previous declaration of 'IOS_Open' with type 's32(const char *, u32
' {aka 'int(const char *, unsigned int)'}
75 | s32 IOS_Open(const char *filepath,u32 mode);
| ^~~~~~~~
/home/gabo1423/wii-gc-adapter-inject/source/functionPointers.h:39:7: error: 'IOS_Close' redeclared as different kind of symbol
39 | s32 (*IOS_Close)(s32 fd) = (void*)0x80212588;
| ^~~~~~~~~
/opt/devkitpro/libogc/include/ogc/ipc.h:78:5: note: previous declaration of 'IOS_Close' with type 's32(s32)' {aka 'int(int)'}
78 | s32 IOS_Close(s32 fd);
| ^~~~~~~~~
/home/gabo1423/wii-gc-adapter-inject/source/usb.c.h: In function 'USB_ResumeDevice':
/home/gabo1423/wii-gc-adapter-inject/source/usb.c.h:654:1: warning: control reaches end of non-void function [-Wreturn-type]
654 | }
| ^
make[1]: *** [/opt/devkitpro/devkitPPC/base_rules:18: wii-u-gc-adapter.o] Error 1
make: *** [Makefile:108: build] Error 2
So with that said, which versions should I use to get a build?
The text was updated successfully, but these errors were encountered:
Greetings, I've been interested in getting a build out of this repository for a while, but I have noticed that on the README it only recommends getting Devkitpro and libogc but does not state which versions are needed to actually get a build. And using the latest versions just result in build errors:
So with that said, which versions should I use to get a build?
The text was updated successfully, but these errors were encountered: