I'm having a problem compiling the FunSlower demo...

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
LBGSHI
Posts: 136
Joined: Mon Aug 07, 2006 5:56 am
Contact:

I'm having a problem compiling the FunSlower demo...

Post by LBGSHI »

I'm able to compile quite a few other examples (everything in the Samples directory included with PS2SDK, all of DreamTime's tutorial source, all the various strains of the Hello World examples, all the source that whatisdot has been so gracious as to share, to name a few), but I'm having an issue compiling the FunSlower demo. If it's just outdated source based on an old SDK or library thereof, that's one thing, but I'd like to ensure I don't have a problem with my build of PS2SDK. Here is the error I get on attempted compilation:

$ make
../ee-bin/bin/mips64r5900-sce-elf-gcc.exe -fshort-double -O6 -c -Werror main.c
-o main.o
make: ../ee-bin/bin/mips64r5900-sce-elf-gcc.exe: Command not found
make: *** [main.o] Error 127

Could anyone point me in the right direction? Am I missing mips64r5900-sce-elf-gcc.exe, or is this executable no longer included in the PS2SDK?
I may be lazy, but I can...zzzZZZzzzZZZzzz...
User avatar
Lukasz
Posts: 248
Joined: Mon Jan 19, 2004 8:37 pm
Location: Denmark
Contact:

Post by Lukasz »

The makefile for the FunSlower is quite outdated, but this can be easily fixed by replacing the makefile with this one

Makefile

Code: Select all

EE_BIN = main.elf

OBJECTSEKS = eks1.o eks2.o eks3.o vutest.o eks4.o eks5.o eks5vu.o eks6.o eks7.o eks7vu.o
OBJECTSLIB = texture.o math.o dma.o matrix.o gif.o vu.o malloc.o
OBJECTSDATA = logo.o logo_alpha.o dot.o dot2.o font.o font_alpha.o mainbg1.o mainbg1_alpha.o mainbg2.o mainbg2_alpha.o fslogo.o kantlogo.o kantfade.o scroll.o druckluft.o druckluft_a.o gibson.o gibson_a.o

EE_OBJS = main.o initgs.o $(OBJECTSEKS) $(OBJECTSLIB) $(OBJECTSDATA)

EE_CFLAGS = -fshort-double

all: $(EE_BIN)
 
clean:
	rm -f *.elf *.o *.a

%.s: %.pcx
	./rawtoasm $< $@ $@

%.o&#58; %.vsm
	dvp-as $< -o $@

run&#58; all
	ps2client execee host&#58;$&#40;EE_BIN&#41;

reset&#58;
	ps2client reset

rawtoasm&#58; rawtoasm.c
	gcc $< -o $@

include $&#40;PS2SDK&#41;/samples/Makefile.pref
include $&#40;PS2SDK&#41;/samples/Makefile.eeglobal
It's necessary to replace the space indentation for the commands in the makefile with tabs, when copy-pasting to a file, because tabs are converted to spaces on phpBB.

Eg.

Code: Select all

clean&#58;
	rm -f *.elf *.o *.a
Should be

Code: Select all

clean&#58;
<tab>rm -f *.elf *.o *.a
Also add a file named initgs.s to the source code directory, with the following contents

initgs.s

Code: Select all

	.set noat
	.set noreorder
	.global _start

	.text

	.globl Init_GS
	.align 4

Init_GS&#58;
        lui     $2,0x1fc8
        lb      $2,-0xae&#40;$2&#41;
        li      $3,'E'
        li      $6,2                  # 2=NTSC, 3=PAL
        beql    $2,$3,pal_mode
        addiu   $6,1
pal_mode&#58;
		li	$5,1			# 0=NON, 1=INTERLACE
		li	$7,0			# 1=frame, 2=field


		addu	$17,$5,$0
		addu	$18,$6,$0
		addu	$19,$7,$0
		li	$3,0x12001000
		li	$2,0x00000200
		sd	$2,0&#40;$3&#41;	# write 0x200 to 0x12001000 &#40;=GS reset&#41;
		li	$4,0x0000FF00
		ld	$2,0&#40;$3&#41;
		dsrl	$2,16
		andi	$2,0xFF
		li	$3,0x71		# PutIMR&#40;kernel&#41;
		syscall
		nop
		andi	$4,$17,1
		andi	$5,$18,0xFF
		andi	$6,$19,1
		li	$3,2		# SetGsCrt&#40;kernel&#41;
		syscall
		jr	$31
		nop
The source will now compile with alot of warnings (most of them are missing newline), but the demo runs fine from beginning to end :-)

As a note, mips64r5900-sce-elf-gcc.exe is now called just ee-gcc.exe :-)
LBGSHI
Posts: 136
Joined: Mon Aug 07, 2006 5:56 am
Contact:

Post by LBGSHI »

The makefile for the FunSlower is quite outdated, but this can be easily fixed by replacing the makefile with this one
Thanks very much; I'll give that a shot. You'd think the FunSlower demo page on the main PS2Dev site would have an addendum noting that, for new PS2 developers...perhaps we can suggest that.

It's necessary to replace the space indentation for the commands in the makefile with tabs, when copy-pasting to a file, because tabs are converted to spaces on phpBB.
Yes, I'm aware of this (and I think Crimson Editor, using the settings you outlined in your MinGW guide, does this for me, though I could have simply forgotten having to do this manually each time I copy and paste some posted source).

As a note, mips64r5900-sce-elf-gcc.exe is now called just ee-gcc.exe
Ah, I thought that might be the case! Thanks again; I'll let you know if everything goes off without a hitch :)
I may be lazy, but I can...zzzZZZzzzZZZzzz...
LBGSHI
Posts: 136
Joined: Mon Aug 07, 2006 5:56 am
Contact:

Post by LBGSHI »

Unfortunately, that failed. There was too much output to even grab from msys (I can only scroll up so far before it cuts off), but here is what I could copy:

Code: Select all


In file included from eks1.c&#58;6&#58;
dma.h&#58;47&#58;7&#58; warning&#58; no newline at end of file
In file included from eks1.c&#58;7&#58;
texture.h&#58;28&#58;7&#58; warning&#58; no newline at end of file
In file included from eks1.c&#58;8&#58;
math.h&#58;113&#58;7&#58; warning&#58; no newline at end of file
eks1.c&#58; In function `puttexture'&#58;
eks1.c&#58;50&#58; warning&#58; implicit declaration of function `texture_TEX0'
eks1.c&#58; In function `eks1_frame3'&#58;
eks1.c&#58;240&#58; warning&#58; unused variable `y1'
eks1.c&#58;241&#58; warning&#58; unused variable `y2'
eks1.c&#58;288&#58;2&#58; warning&#58; no newline at end of file
math.h&#58; At top level&#58;
types.h&#58;30&#58; warning&#58; `new_fvec' defined but not used
math.h&#58;108&#58; warning&#58; `atan2' defined but not used
eks1.c&#58;26&#58; warning&#58; `list' defined but not used
ee-gcc -D_EE -O2 -G0 -Wall -fshort-double -I/usr/local/ps2dev/ps2sdk/ee/include
-I/usr/local/ps2dev/ps2sdk/common/include -I.  -c eks2.c -o eks2.o
In file included from eks2.c&#58;4&#58;
eks2.h&#58;10&#58;7&#58; warning&#58; no newline at end of file
In file included from hwreg.h&#58;4,
                 from gif.h&#58;4,
                 from eks2.c&#58;5&#58;
types.h&#58;41&#58;7&#58; warning&#58; no newline at end of file
In file included from gif.h&#58;4,
                 from eks2.c&#58;5&#58;
hwreg.h&#58;29&#58;7&#58; warning&#58; no newline at end of file
In file included from eks2.c&#58;5&#58;
gif.h&#58;87&#58;7&#58; warning&#58; no newline at end of file
In file included from eks2.c&#58;6&#58;
dma.h&#58;11&#58; warning&#58; return type defaults to `int'
dma.h&#58;36&#58; warning&#58; return type defaults to `int'
In file included from eks2.c&#58;6&#58;
dma.h&#58;47&#58;7&#58; warning&#58; no newline at end of file
In file included from eks2.c&#58;7&#58;
texture.h&#58;28&#58;7&#58; warning&#58; no newline at end of file
In file included from eks2.c&#58;8&#58;
math.h&#58;113&#58;7&#58; warning&#58; no newline at end of file
In file included from eks2.c&#58;9&#58;
matrix.h&#58;34&#58;7&#58; warning&#58; no newline at end of file
eks2.c&#58; In function `puttexture2'&#58;
eks2.c&#58;57&#58; warning&#58; implicit declaration of function `texture_TEX0'
eks2.c&#58; In function `eks2_frame'&#58;
eks2.c&#58;111&#58; warning&#58; unused variable `thorsten'
math.h&#58; At top level&#58;
types.h&#58;30&#58; warning&#58; `new_fvec' defined but not used
math.h&#58;48&#58; warning&#58; `cos' defined but not used
math.h&#58;78&#58; warning&#58; `sin' defined but not used
math.h&#58;108&#58; warning&#58; `atan2' defined but not used
eks2.c&#58;14&#58; warning&#58; `list' defined but not used
ee-gcc -D_EE -O2 -G0 -Wall -fshort-double -I/usr/local/ps2dev/ps2sdk/ee/include
-I/usr/local/ps2dev/ps2sdk/common/include -I.  -c eks3.c -o eks3.o
In file included from eks3.c&#58;4&#58;
eks3.h&#58;9&#58;7&#58; warning&#58; no newline at end of file
In file included from hwreg.h&#58;4,
                 from gif.h&#58;4,
                 from eks3.c&#58;5&#58;
types.h&#58;41&#58;7&#58; warning&#58; no newline at end of file
In file included from gif.h&#58;4,
                 from eks3.c&#58;5&#58;
hwreg.h&#58;29&#58;7&#58; warning&#58; no newline at end of file
In file included from eks3.c&#58;5&#58;
gif.h&#58;87&#58;7&#58; warning&#58; no newline at end of file
In file included from eks3.c&#58;6&#58;
dma.h&#58;11&#58; warning&#58; return type defaults to `int'
dma.h&#58;36&#58; warning&#58; return type defaults to `int'
In file included from eks3.c&#58;6&#58;
dma.h&#58;47&#58;7&#58; warning&#58; no newline at end of file
In file included from eks3.c&#58;7&#58;
texture.h&#58;28&#58;7&#58; warning&#58; no newline at end of file
In file included from eks3.c&#58;8&#58;
math.h&#58;113&#58;7&#58; warning&#58; no newline at end of file
In file included from eks3.c&#58;9&#58;
vu.h&#58;11&#58;7&#58; warning&#58; no newline at end of file
In file included from eks3.c&#58;10&#58;
matrix.h&#58;34&#58;7&#58; warning&#58; no newline at end of file
eks3.c&#58; In function `vutest'&#58;
eks3.c&#58;67&#58; warning&#58; unused variable `GIF_i'
eks3.c&#58;67&#58; warning&#58; unused variable `GIF_p'
eks3.c&#58;67&#58; warning&#58; unused variable `GIF_beg'
eks3.c&#58;67&#58; warning&#58; unused variable `GIF_nreg'
eks3.c&#58;67&#58; warning&#58; unused variable `GIF_flg'
eks3.c&#58;67&#58; warning&#58; unused variable `GIF_prim'
eks3.c&#58;67&#58; warning&#58; unused variable `GIF_pre'
math.h&#58; At top level&#58;
types.h&#58;30&#58; warning&#58; `new_fvec' defined but not used
math.h&#58;108&#58; warning&#58; `atan2' defined but not used
eks3.c&#58;12&#58; warning&#58; `list' defined but not used
dvp-as vutest.vsm -o vutest.o
ee-gcc -D_EE -O2 -G0 -Wall -fshort-double -I/usr/local/ps2dev/ps2sdk/ee/include
-I/usr/local/ps2dev/ps2sdk/common/include -I.  -c eks4.c -o eks4.o
In file included from eks4.c&#58;4&#58;
eks4.h&#58;9&#58;7&#58; warning&#58; no newline at end of file
In file included from hwreg.h&#58;4,
                 from gif.h&#58;4,
                 from eks4.c&#58;5&#58;
types.h&#58;41&#58;7&#58; warning&#58; no newline at end of file
In file included from gif.h&#58;4,
                 from eks4.c&#58;5&#58;
hwreg.h&#58;29&#58;7&#58; warning&#58; no newline at end of file
In file included from eks4.c&#58;5&#58;
gif.h&#58;87&#58;7&#58; warning&#58; no newline at end of file
In file included from eks4.c&#58;6&#58;
dma.h&#58;11&#58; warning&#58; return type defaults to `int'
dma.h&#58;36&#58; warning&#58; return type defaults to `int'
In file included from eks4.c&#58;6&#58;
dma.h&#58;47&#58;7&#58; warning&#58; no newline at end of file
In file included from eks4.c&#58;7&#58;
texture.h&#58;28&#58;7&#58; warning&#58; no newline at end of file
In file included from eks4.c&#58;8&#58;
math.h&#58;113&#58;7&#58; warning&#58; no newline at end of file
eks4.c&#58; In function `findletters'&#58;
eks4.c&#58;99&#58; warning&#58; array subscript has type `char'
eks4.c&#58;100&#58; warning&#58; array subscript has type `char'
eks4.c&#58;101&#58; warning&#58; array subscript has type `char'
eks4.c&#58;102&#58; warning&#58; array subscript has type `char'
eks4.c&#58; In function `putletter2'&#58;
eks4.c&#58;131&#58; warning&#58; implicit declaration of function `texture_TEX0'
math.h&#58; At top level&#58;
types.h&#58;30&#58; warning&#58; `new_fvec' defined but not used
math.h&#58;48&#58; warning&#58; `cos' defined but not used
math.h&#58;78&#58; warning&#58; `sin' defined but not used
math.h&#58;108&#58; warning&#58; `atan2' defined but not used
eks4.c&#58;22&#58; warning&#58; `list' defined but not used
ee-gcc -D_EE -O2 -G0 -Wall -fshort-double -I/usr/local/ps2dev/ps2sdk/ee/include
-I/usr/local/ps2dev/ps2sdk/common/include -I.  -c eks5.c -o eks5.o
In file included from eks5.c&#58;4&#58;
eks3.h&#58;9&#58;7&#58; warning&#58; no newline at end of file
In file included from hwreg.h&#58;4,
                 from gif.h&#58;4,
                 from eks5.c&#58;5&#58;
types.h&#58;41&#58;7&#58; warning&#58; no newline at end of file
In file included from gif.h&#58;4,
                 from eks5.c&#58;5&#58;
hwreg.h&#58;29&#58;7&#58; warning&#58; no newline at end of file
In file included from eks5.c&#58;5&#58;
gif.h&#58;87&#58;7&#58; warning&#58; no newline at end of file
In file included from eks5.c&#58;6&#58;
dma.h&#58;11&#58; warning&#58; return type defaults to `int'
dma.h&#58;36&#58; warning&#58; return type defaults to `int'
In file included from eks5.c&#58;6&#58;
dma.h&#58;47&#58;7&#58; warning&#58; no newline at end of file
In file included from eks5.c&#58;7&#58;
texture.h&#58;28&#58;7&#58; warning&#58; no newline at end of file
In file included from eks5.c&#58;8&#58;
math.h&#58;113&#58;7&#58; warning&#58; no newline at end of file
In file included from eks5.c&#58;9&#58;
vu.h&#58;11&#58;7&#58; warning&#58; no newline at end of file
In file included from eks5.c&#58;10&#58;
matrix.h&#58;34&#58;7&#58; warning&#58; no newline at end of file
eks5.c&#58; In function `vutest'&#58;
eks5.c&#58;57&#58; warning&#58; unused variable `GIF_i'
eks5.c&#58;57&#58; warning&#58; unused variable `GIF_p'
eks5.c&#58;57&#58; warning&#58; unused variable `GIF_beg'
eks5.c&#58;57&#58; warning&#58; unused variable `GIF_nreg'
eks5.c&#58;57&#58; warning&#58; unused variable `GIF_flg'
eks5.c&#58;57&#58; warning&#58; unused variable `GIF_prim'
eks5.c&#58;57&#58; warning&#58; unused variable `GIF_pre'
math.h&#58; At top level&#58;
types.h&#58;30&#58; warning&#58; `new_fvec' defined but not used
math.h&#58;108&#58; warning&#58; `atan2' defined but not used
dvp-as eks5vu.vsm -o eks5vu.o
ee-gcc -D_EE -O2 -G0 -Wall -fshort-double -I/usr/local/ps2dev/ps2sdk/ee/include
-I/usr/local/ps2dev/ps2sdk/common/include -I.  -c eks6.c -o eks6.o
eks6.c&#58;3&#58;16&#58; warning&#58; no newline at end of file
ee-gcc -D_EE -O2 -G0 -Wall -fshort-double -I/usr/local/ps2dev/ps2sdk/ee/include
-I/usr/local/ps2dev/ps2sdk/common/include -I.  -c eks7.c -o eks7.o
In file included from eks7.c&#58;4&#58;
eks7.h&#58;9&#58;7&#58; warning&#58; no newline at end of file
In file included from hwreg.h&#58;4,
                 from gif.h&#58;4,
                 from eks7.c&#58;5&#58;
types.h&#58;41&#58;7&#58; warning&#58; no newline at end of file
In file included from gif.h&#58;4,
                 from eks7.c&#58;5&#58;
hwreg.h&#58;29&#58;7&#58; warning&#58; no newline at end of file
In file included from eks7.c&#58;5&#58;
gif.h&#58;87&#58;7&#58; warning&#58; no newline at end of file
In file included from eks7.c&#58;6&#58;
dma.h&#58;11&#58; warning&#58; return type defaults to `int'
dma.h&#58;36&#58; warning&#58; return type defaults to `int'
In file included from eks7.c&#58;6&#58;
dma.h&#58;47&#58;7&#58; warning&#58; no newline at end of file
In file included from eks7.c&#58;7&#58;
texture.h&#58;28&#58;7&#58; warning&#58; no newline at end of file
In file included from eks7.c&#58;8&#58;
math.h&#58;113&#58;7&#58; warning&#58; no newline at end of file
In file included from eks7.c&#58;9&#58;
vu.h&#58;11&#58;7&#58; warning&#58; no newline at end of file
In file included from eks7.c&#58;10&#58;
matrix.h&#58;34&#58;7&#58; warning&#58; no newline at end of file
eks7.c&#58; In function `vutest'&#58;
eks7.c&#58;68&#58; warning&#58; unused variable `GIF_i'
eks7.c&#58;68&#58; warning&#58; unused variable `GIF_p'
eks7.c&#58;68&#58; warning&#58; unused variable `GIF_beg'
eks7.c&#58;68&#58; warning&#58; unused variable `GIF_nreg'
eks7.c&#58;68&#58; warning&#58; unused variable `GIF_flg'
eks7.c&#58;68&#58; warning&#58; unused variable `GIF_prim'
eks7.c&#58;68&#58; warning&#58; unused variable `GIF_pre'
math.h&#58; At top level&#58;
math.h&#58;108&#58; warning&#58; `atan2' defined but not used
dvp-as eks7vu.vsm -o eks7vu.o
ee-gcc -D_EE -O2 -G0 -Wall -fshort-double -I/usr/local/ps2dev/ps2sdk/ee/include
-I/usr/local/ps2dev/ps2sdk/common/include -I.  -c texture.c -o texture.o
In file included from texture.h&#58;4,
                 from texture.c&#58;4&#58;
types.h&#58;41&#58;7&#58; warning&#58; no newline at end of file
In file included from texture.c&#58;4&#58;
texture.h&#58;28&#58;7&#58; warning&#58; no newline at end of file
In file included from texture.c&#58;5&#58;
malloc.h&#58;8&#58;7&#58; warning&#58; no newline at end of file
In file included from gif.h&#58;4,
                 from texture.c&#58;6&#58;
hwreg.h&#58;29&#58;7&#58; warning&#58; no newline at end of file
In file included from texture.c&#58;6&#58;
gif.h&#58;87&#58;7&#58; warning&#58; no newline at end of file
In file included from texture.c&#58;7&#58;
dma.h&#58;11&#58; warning&#58; return type defaults to `int'
dma.h&#58;36&#58; warning&#58; return type defaults to `int'
In file included from texture.c&#58;7&#58;
dma.h&#58;47&#58;7&#58; warning&#58; no newline at end of file
texture.c&#58; In function `texture_allocinit'&#58;
texture.c&#58;397&#58; warning&#58; control reaches end of non-void function
texture.c&#58;410&#58;2&#58; warning&#58; no newline at end of file
dma.h&#58; At top level&#58;
types.h&#58;30&#58; warning&#58; `new_fvec' defined but not used
ee-gcc -D_EE -O2 -G0 -Wall -fshort-double -I/usr/local/ps2dev/ps2sdk/ee/include
-I/usr/local/ps2dev/ps2sdk/common/include -I.  -c math.c -o math.o
In file included from math.c&#58;1&#58;
math.h&#58;113&#58;7&#58; warning&#58; no newline at end of file
math.h&#58;108&#58; warning&#58; `atan2' defined but not used
ee-gcc -D_EE -O2 -G0 -Wall -fshort-double -I/usr/local/ps2dev/ps2sdk/ee/include
-I/usr/local/ps2dev/ps2sdk/common/include -I.  -c dma.c -o dma.o
In file included from hwreg.h&#58;4,
                 from dma.h&#58;4,
                 from dma.c&#58;1&#58;
types.h&#58;41&#58;7&#58; warning&#58; no newline at end of file
In file included from dma.h&#58;4,
                 from dma.c&#58;1&#58;
hwreg.h&#58;29&#58;7&#58; warning&#58; no newline at end of file
In file included from dma.c&#58;1&#58;
dma.h&#58;11&#58; warning&#58; return type defaults to `int'
dma.h&#58;36&#58; warning&#58; return type defaults to `int'
In file included from dma.c&#58;1&#58;
dma.h&#58;47&#58;7&#58; warning&#58; no newline at end of file
types.h&#58;30&#58; warning&#58; `new_fvec' defined but not used
ee-gcc -D_EE -O2 -G0 -Wall -fshort-double -I/usr/local/ps2dev/ps2sdk/ee/include
-I/usr/local/ps2dev/ps2sdk/common/include -I.  -c matrix.c -o matrix.o
In file included from matrix.c&#58;1&#58;
math.h&#58;113&#58;7&#58; warning&#58; no newline at end of file
In file included from matrix.h&#58;4,
                 from matrix.c&#58;2&#58;
types.h&#58;41&#58;7&#58; warning&#58; no newline at end of file
In file included from matrix.c&#58;2&#58;
matrix.h&#58;34&#58;7&#58; warning&#58; no newline at end of file
matrix.c&#58;274&#58;24&#58; warning&#58; multi-line string literals are deprecated
matrix.c&#58;285&#58;24&#58; warning&#58; multi-line string literals are deprecated
matrix.c&#58; In function `transformf2'&#58;
matrix.c&#58;272&#58; warning&#58; `t' might be used uninitialized in this function
math.h&#58; At top level&#58;
math.h&#58;48&#58; warning&#58; `cos' defined but not used
math.h&#58;78&#58; warning&#58; `sin' defined but not used
types.h&#58;30&#58; warning&#58; `new_fvec' defined but not used
ee-gcc -D_EE -O2 -G0 -Wall -fshort-double -I/usr/local/ps2dev/ps2sdk/ee/include
-I/usr/local/ps2dev/ps2sdk/common/include -I.  -c gif.c -o gif.o
In file included from hwreg.h&#58;4,
                 from gif.h&#58;4,
                 from gif.c&#58;1&#58;
types.h&#58;41&#58;7&#58; warning&#58; no newline at end of file
In file included from gif.h&#58;4,
                 from gif.c&#58;1&#58;
hwreg.h&#58;29&#58;7&#58; warning&#58; no newline at end of file
In file included from gif.c&#58;1&#58;
gif.h&#58;87&#58;7&#58; warning&#58; no newline at end of file
types.h&#58;30&#58; warning&#58; `new_fvec' defined but not used
ee-gcc -D_EE -O2 -G0 -Wall -fshort-double -I/usr/local/ps2dev/ps2sdk/ee/include
-I/usr/local/ps2dev/ps2sdk/common/include -I.  -c vu.c -o vu.o
In file included from vu.c&#58;1&#58;
vu.h&#58;11&#58;7&#58; warning&#58; no newline at end of file
In file included from hwreg.h&#58;4,
                 from vu.c&#58;2&#58;
types.h&#58;41&#58;7&#58; warning&#58; no newline at end of file
In file included from vu.c&#58;2&#58;
hwreg.h&#58;29&#58;7&#58; warning&#58; no newline at end of file
vu.c&#58;62&#58;9&#58; warning&#58; multi-line string literals are deprecated
types.h&#58;30&#58; warning&#58; `new_fvec' defined but not used
ee-gcc -D_EE -O2 -G0 -Wall -fshort-double -I/usr/local/ps2dev/ps2sdk/ee/include
-I/usr/local/ps2dev/ps2sdk/common/include -I.  -c malloc.c -o malloc.o
In file included from malloc.h&#58;4,
                 from malloc.c&#58;1&#58;
types.h&#58;41&#58;7&#58; warning&#58; no newline at end of file
In file included from malloc.c&#58;1&#58;
malloc.h&#58;8&#58;7&#58; warning&#58; no newline at end of file
types.h&#58;30&#58; warning&#58; `new_fvec' defined but not used
./rawtoasm logo.pcx logo.s logo.s
make&#58; ./rawtoasm&#58; Command not found
make&#58; *** &#91;logo.s&#93; Error 127

I'm guessing the last two lines are the only ones that matter, but have you any idea what's going wrong here? Again, thanks very much for your efforts.
I may be lazy, but I can...zzzZZZzzzZZZzzz...
User avatar
Lukasz
Posts: 248
Joined: Mon Jan 19, 2004 8:37 pm
Location: Denmark
Contact:

Post by Lukasz »

Just type

Code: Select all

make rawtoasm


to compile the rawtoasm program and then run make again.
LBGSHI
Posts: 136
Joined: Mon Aug 07, 2006 5:56 am
Contact:

Post by LBGSHI »

That yields the error,

Code: Select all


make&#58; *** No rule to make target `rawtoasm'.  Stop.

However, apologies for not reading the ReadMe, and knowing that I needed to compile the rawtoasm source before compiling the rest of the source. Might the issue have something to do with the makefile's reference to "./rawtoasm"?
I may be lazy, but I can...zzzZZZzzzZZZzzz...
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

If you're using the makefile he posted above, there is a rule.

Code: Select all

rawtoasm&#58; rawtoasm.c
   gcc $< -o $@ 
See? Right there. Just "make rawtoasm" - be sure to spell it correctly.
LBGSHI
Posts: 136
Joined: Mon Aug 07, 2006 5:56 am
Contact:

Post by LBGSHI »

Actually, I think I must have made a simple typo, though I can't imagine how. I tried again, and everything compiled fine :)

Thanks quite a bit.
I may be lazy, but I can...zzzZZZzzzZZZzzz...
Post Reply