forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[Help] Problem in compiler

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
dark_hex



Joined: 02 Dec 2009
Posts: 18

PostPosted: Sun Jan 03, 2010 1:23 am    Post subject: [Help] Problem in compiler Reply with quote

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

Code:
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?
Back to top
View user's profile Send private message Send e-mail
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Sun Jan 03, 2010 1:47 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
dark_hex



Joined: 02 Dec 2009
Posts: 18

PostPosted: Sun Jan 03, 2010 2:01 am    Post subject: Reply with quote

I'am tring compile an hello world.

Make:
[code]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'
Back to top
View user's profile Send private message Send e-mail
sauron_le_noir



Joined: 05 Jul 2008
Posts: 229

PostPosted: Mon Jan 04, 2010 12:25 am    Post subject: Reply with quote

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:

TARGET = main
OBJS = main.o
#
CFLAGS = -O2 -G2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
#
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Hello World
PSP_LARGE_MEMORY = 1
BUILD_PRX = 1
#
PSPSDK=$(shell psp-config --pspsdk-path)
#
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group