toydoll / pcsx-revolution

Automatically exported from code.google.com/p/pcsx-revolution
GNU General Public License v2.0
0 stars 0 forks source link

Compiling #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Can someone please help me compile for the Wii. I go to the Gamecube 
folder from the source where the Makefile.wii is located. I try to compile 
and I get an errors mostly in plugins.c and when it tries to link 
pcsx.elf. I also go to the root folder where I downloaded the source and 
type -- make -f makefile.gekko wii -- and get the same errors. I think 
this is a great program and comend you all for the hard work you are 
doing. I am still using r28. At the very least, could someone compile it 
for me and PM me. Thank You in advance.

Original issue reported on code.google.com by RussStee...@aol.com on 12 Feb 2010 at 6:26

GoogleCodeExporter commented 8 years ago
>> I get an errors mostly in plugins.c
It's warnings, not errors.

>> and when it tries to link pcsx.elf
And what it says?

Original comment by AndreyLegchilin on 12 Feb 2010 at 9:08

GoogleCodeExporter commented 8 years ago
debug.o In function 'DEBUG_update'
It gives a bunch of warnings concerning debug.o and after all the warnings it 
points 
to /PCSX/Gamecube/font.c:283 undefined reference to '_wgPIPE'collect2:Id 
returned 1 
exit status. I then use libogc 1.7.1. It uses 
/devkitpro/libogc/lib/wii\libiso9660.a 
gives more warnings and collect2: ID returned 1 exit status

Original comment by RussStee...@aol.com on 12 Feb 2010 at 10:19

GoogleCodeExporter commented 8 years ago
I'm compiling through command prompt. Is there anyway to copy and paste from 
there? 
When I run the /Gamecube/Makefile.wii through programmer's notepad it says *** 
No 
targets specified and no makefile found. Stop. How would I go about compiling 
using 
programmer's notepad?

Original comment by RussStee...@aol.com on 12 Feb 2010 at 10:23

GoogleCodeExporter commented 8 years ago
I found out how to copy and paste..here it goes:

>>This is using libogc 1.8.1:

D:\PCSX>make -f makefile.gekko wii release
cd "./Gamecube" && make -f Makefile.Wii BUILD=release
make[1]: Entering directory `/d/PCSX/Gamecube'
linking ... pcsx.elf
debug.o: In function `DEBUG_update':
d:/PCSX/Gamecube/DEBUG.c:43: multiple definition of `DEBUG_update'
DEBUG.o:d:/PCSX/Gamecube/DEBUG.c:43: first defined here
debug.o: In function `DEBUG_print':
d:/PCSX/Gamecube/DEBUG.c:101: multiple definition of `DEBUG_print'
DEBUG.o:d:/PCSX/Gamecube/DEBUG.c:101: first defined here
debug.o: In function `DEBUG_stats':
d:/PCSX/Gamecube/DEBUG.c:132: multiple definition of `DEBUG_stats'
DEBUG.o:d:/PCSX/Gamecube/DEBUG.c:132: first defined here
debug.o:(.sdata.printToSD+0x0): multiple definition of `printToSD'
DEBUG.o:(.sdata.printToSD+0x0): first defined here
debug.o: In function `DEBUG_update':
d:/PCSX/Gamecube/DEBUG.c:43: multiple definition of `flushed'
DEBUG.o:d:/PCSX/Gamecube/DEBUG.c:43: first defined here
debug.o: In function `DEBUG_update':
d:/PCSX/Gamecube/DEBUG.c:43: multiple definition of `writtenbefore'
DEBUG.o:d:/PCSX/Gamecube/DEBUG.c:43: first defined here
debug.o: In function `DEBUG_update':
d:/PCSX/Gamecube/DEBUG.c:43: multiple definition of `amountwritten'
DEBUG.o:d:/PCSX/Gamecube/DEBUG.c:43: first defined here
debug.o:(.sdata.dump_filename+0x0): multiple definition of `dump_filename'
DEBUG.o:(.sdata.dump_filename+0x0): first defined here
debug.o: In function `DEBUG_update':
d:/PCSX/Gamecube/DEBUG.c:43: multiple definition of `fdebug'
DEBUG.o:d:/PCSX/Gamecube/DEBUG.c:43: first defined here
font.o: In function `write_font':
d:/PCSX/Gamecube/font.c:283: undefined reference to `_wgPipe'
d:/PCSX/Gamecube/font.c:283: undefined reference to `_wgPipe'
drawGX.o: In function `GX_Position2f32':
d:/devkitPro/libogc/include/ogc/gx.h:1178: undefined reference to `_wgPipe'
d:/devkitPro/libogc/include/ogc/gx.h:1178: undefined reference to `_wgPipe'
collect2: ld returned 1 exit status
make[2]: *** [/d/PCSX/Gamecube/pcsx.elf] Error 1
make[1]: *** [release] Error 2
make[1]: Leaving directory `/d/PCSX/Gamecube'
make: *** [wii] Error 2

>>This is using libogc 1.7.1:

D:\PCSX>make -f makefile.gekko wii release
cd "./Gamecube" && make -f Makefile.Wii BUILD=release
make[1]: Entering directory `/d/PCSX/Gamecube'
linking ... pcsx.elf
debug.o: In function `DEBUG_update':
d:/PCSX/Gamecube/DEBUG.c:43: multiple definition of `DEBUG_update'
DEBUG.o:d:/PCSX/Gamecube/DEBUG.c:43: first defined here
debug.o: In function `DEBUG_print':
d:/PCSX/Gamecube/DEBUG.c:101: multiple definition of `DEBUG_print'
DEBUG.o:d:/PCSX/Gamecube/DEBUG.c:101: first defined here
debug.o: In function `DEBUG_stats':
d:/PCSX/Gamecube/DEBUG.c:132: multiple definition of `DEBUG_stats'
DEBUG.o:d:/PCSX/Gamecube/DEBUG.c:132: first defined here
debug.o:(.sdata.printToSD+0x0): multiple definition of `printToSD'
DEBUG.o:(.sdata.printToSD+0x0): first defined here
debug.o: In function `DEBUG_update':
d:/PCSX/Gamecube/DEBUG.c:43: multiple definition of `flushed'
DEBUG.o:d:/PCSX/Gamecube/DEBUG.c:43: first defined here
debug.o: In function `DEBUG_update':
d:/PCSX/Gamecube/DEBUG.c:43: multiple definition of `writtenbefore'
DEBUG.o:d:/PCSX/Gamecube/DEBUG.c:43: first defined here
debug.o: In function `DEBUG_update':
d:/PCSX/Gamecube/DEBUG.c:43: multiple definition of `amountwritten'
DEBUG.o:d:/PCSX/Gamecube/DEBUG.c:43: first defined here
debug.o:(.sdata.dump_filename+0x0): multiple definition of `dump_filename'
DEBUG.o:(.sdata.dump_filename+0x0): first defined here
debug.o: In function `DEBUG_update':
d:/PCSX/Gamecube/DEBUG.c:43: multiple definition of `fdebug'
DEBUG.o:d:/PCSX/Gamecube/DEBUG.c:43: first defined here
font.o: In function `write_font':
d:/PCSX/Gamecube/font.c:283: undefined reference to `_wgPipe'
d:/PCSX/Gamecube/font.c:283: undefined reference to `_wgPipe'
drawGX.o: In function `GX_Position2f32':
d:/devkitPro/libogc/include/ogc/gx.h:1178: undefined reference to `_wgPipe'
d:/devkitPro/libogc/include/ogc/gx.h:1178: undefined reference to `_wgPipe'
d:/devkitPro/libogc/lib/wii\libiso9660.a(iso9660.o): In function `_read':
iso9660.c:(.text._read+0x6a): undefined reference to `__io_wiidvd'
iso9660.c:(.text._read+0x72): undefined reference to `__io_wiidvd'
d:/devkitPro/libogc/lib/wii\libiso9660.a(iso9660.o): In function `read_volume_de
scriptor':
iso9660.c:(.text.read_volume_descriptor+0xa): undefined reference to `__io_wiidv
d'
iso9660.c:(.text.read_volume_descriptor+0xe): undefined reference to `__io_wiidv
d'
d:/devkitPro/libogc/lib/wii\libiso9660.a(iso9660.o): In function `ISO9660_Mount'
:
iso9660.c:(.text.ISO9660_Mount+0x5a): undefined reference to `__io_wiidvd'
d:/devkitPro/libogc/lib/wii\libiso9660.a(iso9660.o):iso9660.c:(.text.ISO9660_Mou
nt+0x5e): more undefined references to `__io_wiidvd' follow
collect2: ld returned 1 exit status
make[2]: *** [/d/PCSX/Gamecube/pcsx.elf] Error 1
make[1]: *** [release] Error 2
make[1]: Leaving directory `/d/PCSX/Gamecube'
make: *** [wii] Error 2

Original comment by RussStee...@aol.com on 12 Feb 2010 at 10:41

GoogleCodeExporter commented 8 years ago
Trying to compile it with DevkitPro and getting this message:
"make": *** No targets specified and no makefile found. Stop

Other apps compiles fine with it.

Original comment by codiak@gmail.com on 13 Feb 2010 at 10:07

GoogleCodeExporter commented 8 years ago
codiak, what are you compiling it with to make it work? Also, what 
environmental 
variables do you have installed? I would REALLY like to test this version and 
newer 
versions of this program. I play PSX games on my PSP and they run flawlessly. I 
really believe this program has the same potential. I like the idea of having 
wiimote support rather than using WiiSX with only Gamecude Pad support.

Original comment by RussStee...@aol.com on 13 Feb 2010 at 6:13

GoogleCodeExporter commented 8 years ago
When trying to compile I still get this error:

font.c
pad.c
PEOPSspu.c
dma.c
registers.c
linking ... pcsx.elf
drawGX.o: In function `DoClearScreenBuffer':
d:/pcsx/Gamecube/PeopsSoftGPU/drawGX.c:158: undefined reference to `DEBUG_print'

drawGX.o: In function `DoClearFrontBuffer':
d:/pcsx/Gamecube/PeopsSoftGPU/drawGX.c:173: undefined reference to `DEBUG_print'

d:/pcsx/Gamecube/PeopsSoftGPU/drawGX.c:183: undefined reference to `DEBUG_update
'
d:/pcsx/Gamecube/PeopsSoftGPU/drawGX.c:183: undefined reference to `text'
d:/pcsx/Gamecube/PeopsSoftGPU/drawGX.c:183: undefined reference to `text'
drawGX.o: In function `GX_Flip':
d:/pcsx/Gamecube/PeopsSoftGPU/drawGX.c:495: undefined reference to `DEBUG_update
'
d:/pcsx/Gamecube/PeopsSoftGPU/drawGX.c:495: undefined reference to `text'
d:/pcsx/Gamecube/PeopsSoftGPU/drawGX.c:495: undefined reference to `text'
PEOPSspu.o: In function `PEOPS_SPUregisterCallback':
d:/pcsx/Gamecube/PeopsSpu109/PEOPSspu.c:1357: undefined reference to `DEBUG_prin
t'
PEOPSspu.o: In function `PEOPS_SPUclose':
d:/pcsx/Gamecube/PeopsSpu109/PEOPSspu.c:1281: undefined reference to `DEBUG_prin
t'
PEOPSspu.o: In function `PEOPS_SPUplayADPCMchannel':
d:/pcsx/Gamecube/PeopsSpu109/PEOPSspu.c:1005: undefined reference to `DEBUG_prin
t'
collect2: ld returned 1 exit status
make[1]: *** [/d/pcsx/Gamecube/pcsx.elf] Error 1
make: *** [build] Error 2

What libraries do you have installed?

Original comment by RussStee...@aol.com on 28 Feb 2010 at 5:44

GoogleCodeExporter commented 8 years ago
Ok, now should be fixed.

Original comment by AndreyLegchilin on 28 Feb 2010 at 5:55

GoogleCodeExporter commented 8 years ago
Firnis I found these warnings recompiling the rev 78 is not whether they will 
be 
errors that cause the code dump. I'll leave it in the text document attached.

Original comment by pipo...@gmail.com on 9 Mar 2010 at 1:04

Attachments:

GoogleCodeExporter commented 8 years ago
I'm also having issues compiling this code. I've installed the latest Devkitpro 
and
used Tortoise SVN to download the source of this, And 4 other emulators that 
have
compiled perfectly. 

Every time i try to compile this one though I get:

> "make" 
"make": *** No targets specified and no makefile found.  Stop.

> Process Exit Code: 2
> Time Taken: 00:00

when i use Programmer's Notepad and when I use the command prompt using "make" 
-f
Makefile.gc I get this:

Plugin.cpp
c:/Projects/pcsx-revolution/Gamecube/Plugin.cpp:22:18: warning: zlib.h: No such 
file
or directory
In file included from 
c:/Projects/pcsx-revolution/Gamecube/../libpcsxcore/psxmem.h:22,
                 from c:/Projects/pcsx-revolution/Gamecube/Plugin.cpp:25:
c:/Projects/pcsx-revolution/Gamecube/../libpcsxcore/psxcommon.h:100: error:
'MAXPATHLEN' was not declared in this scope
c:/Projects/pcsx-revolution/Gamecube/../libpcsxcore/psxcommon.h:101: error:
'MAXPATHLEN' was not declared in this scope
c:/Projects/pcsx-revolution/Gamecube/../libpcsxcore/psxcommon.h:102: error:
'MAXPATHLEN' was not declared in this scope
c:/Projects/pcsx-revolution/Gamecube/../libpcsxcore/psxcommon.h:103: error:
'MAXPATHLEN' was not declared in this scope
c:/Projects/pcsx-revolution/Gamecube/../libpcsxcore/psxcommon.h:104: error:
'MAXPATHLEN' was not declared in this scope
c:/Projects/pcsx-revolution/Gamecube/../libpcsxcore/psxcommon.h:105: error:
'MAXPATHLEN' was not declared in this scope
c:/Projects/pcsx-revolution/Gamecube/../libpcsxcore/psxcommon.h:106: error:
'MAXPATHLEN' was not declared in this scope
c:/Projects/pcsx-revolution/Gamecube/../libpcsxcore/psxcommon.h:107: error:
'MAXPATHLEN' was not declared in this scope
c:/Projects/pcsx-revolution/Gamecube/../libpcsxcore/psxcommon.h:109: error:
'MAXPATHLEN' was not declared in this scope
c:/Projects/pcsx-revolution/Gamecube/../libpcsxcore/psxcommon.h:110: error:
'MAXPATHLEN' was not declared in this scope
c:/Projects/pcsx-revolution/Gamecube/../libpcsxcore/psxcommon.h:111: error:
'MAXPATHLEN' was not declared in this scope
In file included from c:/Projects/pcsx-revolution/Gamecube/Plugin.cpp:26:
c:/Projects/pcsx-revolution/Gamecube/../libpcsxcore/plugins.h:349: error:
'MAXPATHLEN' was not declared in this scope
c:/Projects/pcsx-revolution/Gamecube/Plugin.cpp: In function 'int 
_OpenPlugins()':
c:/Projects/pcsx-revolution/Gamecube/Plugin.cpp:182: warning: deprecated 
conversion
from string constant to 'char*'
c:/Projects/pcsx-revolution/Gamecube/Plugin.cpp:201: error: 'struct PcsxConfig' 
has
no member named 'BiosDir'
c:/Projects/pcsx-revolution/Gamecube/Plugin.cpp:201: error: 'struct PcsxConfig' 
has
no member named 'Bios'
c:/Projects/pcsx-revolution/Gamecube/Plugin.cpp:203: error: 'struct PcsxConfig' 
has
no member named 'Mcd1'
c:/Projects/pcsx-revolution/Gamecube/Plugin.cpp:204: error: 'struct PcsxConfig' 
has
no member named 'Mcd2'
c:/Projects/pcsx-revolution/Gamecube/Plugin.cpp:205: error: 'struct PcsxConfig' 
has
no member named 'PluginsDir'
c:/Projects/pcsx-revolution/Gamecube/Plugin.cpp:205: error: 'struct PcsxConfig' 
has
no member named 'Gpu'
c:/Projects/pcsx-revolution/Gamecube/Plugin.cpp:207: error: 'struct PcsxConfig' 
has
no member named 'PluginsDir'
c:/Projects/pcsx-revolution/Gamecube/Plugin.cpp:207: error: 'struct PcsxConfig' 
has
no member named 'Spu'
c:/Projects/pcsx-revolution/Gamecube/Plugin.cpp:209: error: 'struct PcsxConfig' 
has
no member named 'PluginsDir'
c:/Projects/pcsx-revolution/Gamecube/Plugin.cpp:209: error: 'struct PcsxConfig' 
has
no member named 'Cdr'
c:/Projects/pcsx-revolution/Gamecube/Plugin.cpp:220: error: 'struct PcsxConfig' 
has
no member named 'Bios'
c:/Projects/pcsx-revolution/Gamecube/Plugin.cpp:221: error: 'struct PcsxConfig' 
has
no member named 'Gpu'
c:/Projects/pcsx-revolution/Gamecube/Plugin.cpp:222: error: 'struct PcsxConfig' 
has
no member named 'Spu'
c:/Projects/pcsx-revolution/Gamecube/Plugin.cpp:223: error: 'struct PcsxConfig' 
has
no member named 'Cdr'
c:/Projects/pcsx-revolution/Gamecube/Plugin.cpp:225: error: 'struct PcsxConfig' 
has
no member named 'Mcd1'
c:/Projects/pcsx-revolution/Gamecube/Plugin.cpp:226: error: 'struct PcsxConfig' 
has
no member named 'Mcd2'
make[1]: *** [Plugin.o] Error 1
"make": *** [build] Error 2

I don't know if it's from my dev/compile environment not being right or some 
thing in
the source but any help or fix would be appreciated.

Original comment by Kiyo_O...@hotmail.com on 6 Apr 2010 at 2:45

GoogleCodeExporter commented 8 years ago
@Kiyo_Ohki@hotmail.com
You need to install zlib for devkitPPC. After that it should compile well.

Original comment by AndreyLegchilin on 6 Apr 2010 at 6:40