build.mak file not found

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

Moderators: cheriff, TyRaNiD

Post Reply
cotyrothery
Posts: 11
Joined: Thu May 03, 2007 7:50 am

build.mak file not found

Post by cotyrothery »

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
tabularasa
Posts: 13
Joined: Wed Nov 22, 2006 12:28 am

Post by tabularasa »

probably installation of the psptoolchain failed
cotyrothery
Posts: 11
Joined: Thu May 03, 2007 7:50 am

Post by cotyrothery »

why would it fail?
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

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.
cotyrothery
Posts: 11
Joined: Thu May 03, 2007 7:50 am

Post by cotyrothery »

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.
cotyrothery
Posts: 11
Joined: Thu May 03, 2007 7:50 am

Post by cotyrothery »

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: Select all

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
tabularasa
Posts: 13
Joined: Wed Nov 22, 2006 12:28 am

Post by tabularasa »

yeah looks fine, don't forget to set the environment variable after installation for your user.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

I don't remember any part of the readme.txt that tells you to put that into toolchain.sh.
cotyrothery
Posts: 11
Joined: Thu May 03, 2007 7:50 am

Post by cotyrothery »

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?
cotyrothery
Posts: 11
Joined: Thu May 03, 2007 7:50 am

Post by cotyrothery »

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$
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

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.
cotyrothery
Posts: 11
Joined: Thu May 03, 2007 7:50 am

Post by cotyrothery »

can you tell me what and were the start up script is.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

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
14. edit .bash_profile and add the following lines to the bottom.
Enjoy.
cotyrothery
Posts: 11
Joined: Thu May 03, 2007 7:50 am

Post by cotyrothery »

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.
Post Reply