help compiling GCMtool

Release threads for homebrew & utilities only
Post Reply
avrano1
Posts: 4
Joined: Tue Sep 01, 2015 1:31 pm

help compiling GCMtool

Post by avrano1 » Mon Sep 21, 2015 12:22 pm

I get errors running "make" for any GCMtool version.

Code: Select all

user@user-SATELLITE:~/Downloads/gcmtool-0.3.2/src$ make
make  all-am
make[1]: Entering directory '/home/user/Downloads/gcmtool-0.3.2/src'
source='GCMDiskHeader.c' object='GCMDiskHeader.o' libtool=no \
depfile='.deps/GCMDiskHeader.Po' tmpdepfile='.deps/GCMDiskHeader.TPo' \
depmode=gcc3 /bin/bash ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c `test -f 'GCMDiskHeader.c' || echo './'`GCMDiskHeader.c
GCMDiskHeader.c: In function ‘GCMRawDiskHeaderToStruct’:
GCMDiskHeader.c:160:34: error: lvalue required as increment operand
  h->unknown1 = *((u32*)rawHeader)++;
                                  ^
GCMDiskHeader.c:168:44: error: lvalue required as increment operand
  h->debugMonitorOffset = *((u32*)rawHeader)++;
                                            ^
GCMDiskHeader.c:171:45: error: lvalue required as increment operand
  h->debugMonitorAddress = *((u32*)rawHeader)++;
                                             ^
GCMDiskHeader.c:176:35: error: lvalue required as increment operand
  h->dolOffset = *((u32*)rawHeader)++;
                                   ^
GCMDiskHeader.c:179:35: error: lvalue required as increment operand
  h->fstOffset = *((u32*)rawHeader)++;
                                   ^
GCMDiskHeader.c:182:34: error: lvalue required as increment operand
  h->fstSize  = *((u32*)rawHeader)++;
                                  ^
GCMDiskHeader.c:185:38: error: lvalue required as increment operand
  h->fstSizeMax   = *((u32*)rawHeader)++;
                                      ^
GCMDiskHeader.c:188:38: error: lvalue required as increment operand
  h->userPosition = *((u32*)rawHeader)++;
                                      ^
GCMDiskHeader.c:191:38: error: lvalue required as increment operand
  h->userLength   = *((u32*)rawHeader)++;
                                      ^
GCMDiskHeader.c:194:35: error: lvalue required as increment operand
  h->unknown2  = *((u32*)rawHeader)++;
                                   ^
Makefile:256: recipe for target 'GCMDiskHeader.o' failed
make[1]: *** [GCMDiskHeader.o] Error 1
make[1]: Leaving directory '/home/user/Downloads/gcmtool-0.3.2/src'
Makefile:163: recipe for target 'all' failed
make: *** [all] Error 2

What other options are there for linux?
User avatar
megalomaniac
Posts: 2480
Joined: Sun Aug 21, 2011 5:33 am
Location: Drunk in Texas
Contact:

Re: help compiling GCMtool

Post by megalomaniac » Mon Sep 21, 2015 10:57 pm

try gcc 3.2.3 or gcc 3.3
emu_kidid wrote: beer is like WD40 for megalomaniac's brain, gets the gears moving
>>> BadAssConsoles.com <<<

Image Image Image
novenary
Posts: 1754
Joined: Mon Dec 30, 2013 7:50 am

Re: help compiling GCMtool

Post by novenary » Tue Sep 22, 2015 7:45 am

Try the attached source files with version 0.3.2. Compiles with GCC 5.2, untested though.
Attachments
gcmtool.zip
(2.55 KiB) Downloaded 400 times
User avatar
capzlk
Posts: 76
Joined: Tue Sep 15, 2015 9:18 pm

Re: help compiling GCMtool

Post by capzlk » Wed Sep 30, 2015 5:07 pm

i forked the original source code because i had the same issues. my fork seems to work, so might be worth a look.
https://github.com/capz/gcmtools-osx

I'm a mac guy so i've only tested it on that, but the changes I've made should compile on any platform and any compiler
Post Reply