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 

build.mak file not found

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



Joined: 03 May 2007
Posts: 11

PostPosted: Mon Jul 02, 2007 3:18 am    Post subject: build.mak file not found Reply with quote

every time i go to compile something i get this error /lib/build.mak file not found. I'm running ubuntu linux if that helps.

Makefile:21: /lib/build.mak: No such file or directory
Back to top
View user's profile Send private message
tabularasa



Joined: 22 Nov 2006
Posts: 13

PostPosted: Mon Jul 02, 2007 4:46 am    Post subject: Reply with quote

probably installation of the psptoolchain failed
Back to top
View user's profile Send private message
cotyrothery



Joined: 03 May 2007
Posts: 11

PostPosted: Mon Jul 02, 2007 4:52 am    Post subject: Reply with quote

why would it fail?
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Mon Jul 02, 2007 4:58 am    Post subject: Reply with quote

It could fail for a lot of reasons... a missing dependency for example. Another consideration - make sure your environment variables are set. Double-check the path in particular.
Back to top
View user's profile Send private message AIM Address
cotyrothery



Joined: 03 May 2007
Posts: 11

PostPosted: Mon Jul 02, 2007 5:04 am    Post subject: Reply with quote

Well im new the programming and a was just using a src from the sample cube programe to see if it worked i really have no idea what i need to do to get this to work.
Back to top
View user's profile Send private message
cotyrothery



Joined: 03 May 2007
Posts: 11

PostPosted: Mon Jul 02, 2007 8:12 am    Post subject: Reply with quote

I think i know what went wrong with the install instead of me doing ./toolchain.sh i did ./toolchain-sudo.sh . So now i did that and i got this error;

ERROR: Set $PSPDEV before continuing.
../depends/check-pspdev.sh: Failed.

oh nevermind i found the problem i forgot to put in the toolchain.sh file

## Set up the environment.
export PSPDEV=/usr/local/pspdev
export PATH=$PATH:$PSPDEV/bin

and now it is installing hope this works.


This is a little bit of what i get while doing this
Code:

gcc -DHAVE_CONFIG_H -I. -I../../binutils -I. -D_GNU_SOURCE -I. -I../../binutils -I../bfd -I../../binutils/../bfd -I../../binutils/../include -I../../binutils/../intl -I../intl -DLOCALEDIR="\"/usr/local/pspdev/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation  -D_LARGEFILE64_SOURCE -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2  -c ../../binutils/addr2line.c
gcc -DHAVE_CONFIG_H -I. -I../../binutils -I. -D_GNU_SOURCE -I. -I../../binutils -I../bfd -I../../binutils/../bfd -I../../binutils/../include -I../../binutils/../intl -I../intl -DLOCALEDIR="\"/usr/local/pspdev/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation  -D_LARGEFILE64_SOURCE -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2  -c ../../binutils/readelf.c
Back to top
View user's profile Send private message
tabularasa



Joined: 22 Nov 2006
Posts: 13

PostPosted: Mon Jul 02, 2007 9:34 pm    Post subject: Reply with quote

yeah looks fine, don't forget to set the environment variable after installation for your user.
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Tue Jul 03, 2007 8:32 am    Post subject: Reply with quote

I don't remember any part of the readme.txt that tells you to put that into toolchain.sh.
Back to top
View user's profile Send private message Visit poster's website
cotyrothery



Joined: 03 May 2007
Posts: 11

PostPosted: Tue Jul 03, 2007 12:41 pm    Post subject: Reply with quote

tabularasa wrote:
yeah looks fine, don't forget to set the environment variable after installation for your user.


How would i go about doing that?
Back to top
View user's profile Send private message
cotyrothery



Joined: 03 May 2007
Posts: 11

PostPosted: Tue Jul 03, 2007 4:02 pm    Post subject: Reply with quote

I tried to compile the 3.50 downgrader to see if i could get it to work and i still get this.

cotyrothery@cotyrothery-desktop:~/Desktop/src/Downgrader350$ make
make -C decryptprx decryptprx.prx
make[1]: psp-config: Command not found
make[1]: Entering directory `/home/cotyrothery/Desktop/src/Downgrader350/decryptprx'
Makefile:21: /lib/build.mak: No such file or directory
make[1]: *** No rule to make target `/lib/build.mak'. Stop.
make[1]: Leaving directory `/home/cotyrothery/Desktop/src/Downgrader350/decryptprx'
make: *** [decryptprx/decryptprx.prx] Error 2
cotyrothery@cotyrothery-desktop:~/Desktop/src/Downgrader350$
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Wed Jul 04, 2007 1:23 am    Post subject: Reply with quote

It can't find psp-config because you don't have your environment set up properly. Add those two lines to your startup script and it should work.
Back to top
View user's profile Send private message Visit poster's website
cotyrothery



Joined: 03 May 2007
Posts: 11

PostPosted: Wed Jul 04, 2007 1:53 am    Post subject: Reply with quote

can you tell me what and were the start up script is.
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Wed Jul 04, 2007 2:18 am    Post subject: Reply with quote

Here's a post on setting up the ps3toolchain under cygwin, but the process is very similar for the psptoolchain:

http://forums.ps2dev.org/viewtopic.php?p=55107#55107

Quote:
14. edit .bash_profile and add the following lines to the bottom.

Enjoy.
Back to top
View user's profile Send private message Visit poster's website
cotyrothery



Joined: 03 May 2007
Posts: 11

PostPosted: Wed Jul 04, 2007 2:25 am    Post subject: Reply with quote

I cant find .bash_profile but i found .profile is that the same thing.

and once i do this do i need to restart the computer or do i need to reinstall psptoolchain.
Back to top
View user's profile Send private message
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