[Help] Problem in compiler

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
dark_hex
Posts: 18
Joined: Wed Dec 02, 2009 3:00 am

[Help] Problem in compiler

Post by dark_hex »

Good, is this where I go to compile it asks me this error:

Code: Select all

psp-gcc.exe: _spawnvp: No such file or directory
MAKE: *** [main.o] Error 1
The environment variables are correct and I tried to reinstall but it is the same.
Someone knows how to solve this problem?
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

Create the file or directory '_spawnvp' where ever it is supposed to be.

Without more information (what do you try to compile, what is your makefile...), there's nothing anyone here can do other than that.
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
dark_hex
Posts: 18
Joined: Wed Dec 02, 2009 3:00 am

Post by dark_hex »

I'am tring compile an hello world.

Make:

Code: Select all

TARGET = Hello World
OBJS = crt0.o main.o

INCDIR = ../../include
CFLAGS = -O2 -G0 -Wall -fshort-wchar -fno-pic -mno-check-zero-division 
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS) -c

LIBDIR = ../../lib
LDFLAGS = -mno-crt0 -nostdlib -nodefaultlibs
LIBS = -lpsprtc -lvlfgui -lvlfgu -lvlflibc -lpspsystemctrl_user

PSP_FW_VERSION = 150

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Hello World

BUILD_PRX = 1
PSP_LARGE_MEMORY = 1

PSPSDK = $(shell psp-config --pspsdk-path)
include ./build.mak
[code]

But what do I put that file?  '_spawnvp'
sauron_le_noir
Posts: 203
Joined: Sat Jul 05, 2008 8:03 am

Post by sauron_le_noir »

Just another makefile to compile your program it use the default c runtime of
libc so you are not obliged to provided a crt0.c

Code: Select all

TARGET = main
OBJS = main.o
#
CFLAGS = -O2 -G2 -Wall 
CXXFLAGS = $&#40;CFLAGS&#41; -fno-exceptions -fno-rtti
ASFLAGS = $&#40;CFLAGS&#41;
#
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Hello World
PSP_LARGE_MEMORY = 1
BUILD_PRX = 1
#
PSPSDK=$&#40;shell psp-config --pspsdk-path&#41;
#
Post Reply