Installing toolchain with cygwin

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

Moderators: cheriff, TyRaNiD

Post Reply
Sully
Posts: 3
Joined: Thu Jan 18, 2007 2:26 am

Installing toolchain with cygwin

Post by Sully »

Hi,

I'm currently following the following tutorial (http://www.psp-programming.com/tutorials/c/lesson01.htm) but have encountered problems whilst trying to svn update the psptoolchain.

I'm using cygwin but everytime I try and do svn update, cygwin complains and says "svn: working copy '.' locked". It then asks me to try running svn cleanup... doing that results in further errors - "Can't parse '.svn/dir-prop-base'. "Malformed file".

Does anyone have a solution to this problem? I've tried just running toolchain.sh but sadly that doesn't work.
Sully
Posts: 3
Joined: Thu Jan 18, 2007 2:26 am

Post by Sully »

*Update*

I've done some internet searching and discovered a different way to setup the psptoolchain. It now appears to be downloading the files after running toolchain.sh

Phew!
Sully
Posts: 3
Joined: Thu Jan 18, 2007 2:26 am

Post by Sully »

I think it all installed fine and I've altered the various settings as shown in the tutorial - however, it is still complaining when I try and run make.

make: psp-config: Command not found
makefile:10: /lib/build.mak: No such file or directory
make: *** No rule to make target '/lib/build.mak'. Stop.

Anyone got any idea whats up?
Cy-4AH
Posts: 44
Joined: Wed Jan 31, 2007 9:58 pm
Location: Belarus

Post by Cy-4AH »

Are you added
set path=%path%;C:/cygwin/usr/local/pspdev/bin
set PSPSDK=C:/cygwin/usr/local/pspdev
like it shown on http://www.psp-programming.com/tutorial ... on01-3.htm?
charafe
Posts: 12
Joined: Tue Feb 06, 2007 7:32 pm

Installing PSPSDK on linux

Post by charafe »

Hi I am triyng to install PSPSDK on my Ubuntu. Installation of psptool chain has been done successfuly, but when I launch the install of pspsdk I get this error:

Code: Select all

charafe@charafe-laptop:~/CometProject/pspsdk_1.0-beta2$ sudo ./configure
checking for pspsdk version... 1.0+beta2
checking for pspdev... configure: error: can't find the pspdev toolchain.  Use --with-pspdev or set PSPDEV
 
so i try using the --with-pspdev and get:

Code: Select all

charafe@charafe-laptop:~/CometProject/pspsdk_1.0-beta2$ sudo ./configure --with-pspdev
checking for pspsdk version... 1.0+beta2
checking for pspdev... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for psp-gcc... psp-gcc
checking for psp-g++... psp-g++
checking for psp-as... psp-as
checking for psp-ld... psp-ld
checking for psp-ar... psp-ar
checking for psp-nm... psp-nm
checking for psp-ranlib... psp-ranlib
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for getcwd... yes
checking for strchr... yes
checking for doxygen... /usr/local/bin/doxygen
checking for perl... /usr/bin/perl
checking for dot... no
configure: WARNING: dot not found - will not generate graphics for doxygen documentation
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/audio/Makefile
config.status: creating src/base/Makefile
config.status: creating src/ctrl/Makefile
config.status: creating src/debug/Makefile
config.status: creating src/display/Makefile
config.status: creating src/ge/Makefile
config.status: creating src/gu/Makefile
config.status: creating src/gum/Makefile
config.status: creating src/hprm/Makefile
config.status: creating src/kernel/Makefile
config.status: creating src/libc/Makefile
config.status: creating src/nand/Makefile
config.status: creating src/net/Makefile
config.status: creating src/power/Makefile
config.status: creating src/rtc/Makefile
config.status: creating src/sircs/Makefile
config.status: creating src/sdk/Makefile
config.status: creating src/startup/Makefile
config.status: creating src/user/Makefile
config.status: creating src/umd/Makefile
config.status: creating src/usb/Makefile
config.status: creating src/usbstor/Makefile
config.status: creating src/utility/Makefile
config.status: creating src/wlan/Makefile
config.status: creating src/vsh/Makefile
config.status: creating src/samples/Makefile
config.status: creating tools/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
charafe@charafe-laptop:~/CometProject/pspsdk_1.0-beta2$ sudo ./configure --with-pspdev
checking for pspsdk version... 1.0+beta2
checking for pspdev... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for psp-gcc... psp-gcc
checking for psp-g++... psp-g++
checking for psp-as... psp-as
checking for psp-ld... psp-ld
checking for psp-ar... psp-ar
checking for psp-nm... psp-nm
checking for psp-ranlib... psp-ranlib
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for getcwd... yes
checking for strchr... yes
checking for doxygen... /usr/local/bin/doxygen
checking for perl... /usr/bin/perl
checking for dot... no
configure: WARNING: dot not found - will not generate graphics for doxygen documentation
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/audio/Makefile
config.status: creating src/base/Makefile
config.status: creating src/ctrl/Makefile
config.status: creating src/debug/Makefile
config.status: creating src/display/Makefile
config.status: creating src/ge/Makefile
config.status: creating src/gu/Makefile
config.status: creating src/gum/Makefile
config.status: creating src/hprm/Makefile
config.status: creating src/kernel/Makefile
config.status: creating src/libc/Makefile
config.status: creating src/nand/Makefile
config.status: creating src/net/Makefile
config.status: creating src/power/Makefile
config.status: creating src/rtc/Makefile
config.status: creating src/sircs/Makefile
config.status: creating src/sdk/Makefile
config.status: creating src/startup/Makefile
config.status: creating src/user/Makefile
config.status: creating src/umd/Makefile
config.status: creating src/usb/Makefile
config.status: creating src/usbstor/Makefile
config.status: creating src/utility/Makefile
config.status: creating src/wlan/Makefile
config.status: creating src/vsh/Makefile
config.status: creating src/samples/Makefile
config.status: creating tools/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
Then i continue with next step "make" and get the an error saying that psp-gcc command is unfound. Do you have an idea? I am suspecting the environment variable: I added them, but could you specify exactly where to put them?

Code: Select all

charafe@charafe-laptop:~/CometProject/pspsdk_1.0-beta2$ sudo make
make  all-recursive
make[1]: entrant dans le répertoire « /home/charafe/CometProject/pspsdk_1.0-beta2 »
Making all in src
make[2]: entrant dans le répertoire « /home/charafe/CometProject/pspsdk_1.0-beta2/src »
Making all in audio
make[3]: entrant dans le répertoire « /home/charafe/CometProject/pspsdk_1.0-beta2/src/audio »
if psp-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/base -I../../src/user -I../../src/debug    -g -O2 -G0 -Wall -MT pspaudiolib.o -MD -MP -MF ".deps/pspaudiolib.Tpo" -c -o pspaudiolib.o pspaudiolib.c; \
        then mv -f ".deps/pspaudiolib.Tpo" ".deps/pspaudiolib.Po"; else rm -f ".deps/pspaudiolib.Tpo"; exit 1; fi
/bin/sh: psp-gcc : commande introuvable
make[3]: *** [pspaudiolib.o] Erreur 1
make[3]: quittant le répertoire « /home/charafe/CometProject/pspsdk_1.0-beta2/src/audio »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /home/charafe/CometProject/pspsdk_1.0-beta2/src »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/charafe/CometProject/pspsdk_1.0-beta2 »
make: *** [all] Erreur 2
Thank you for your help.
Rad
Cy-4AH
Posts: 44
Joined: Wed Jan 31, 2007 9:58 pm
Location: Belarus

Re: Installing PSPSDK on linux

Post by Cy-4AH »

charafe wrote:Installation of psptool chain has been done successfuly, but when I launch the install of pspsdk ...
I don't know why you trying install pspsdk when toolchain already installed successfuly, because if you have internet connection toolchain setup also downloading and instaling it.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Run "psp-gcc --version". If it doesn't work, you didn't properly install the toolchain.
Cy-4AH
Posts: 44
Joined: Wed Jan 31, 2007 9:58 pm
Location: Belarus

Post by Cy-4AH »

I'd like to say you can add to PATH in system variables: ";c:\cygwin\bin;c:\cygwin\usr\local\pspdev\bin"
instead writing to cygwin.bat "set path... set PSPSDK...".
charafe
Posts: 12
Joined: Tue Feb 06, 2007 7:32 pm

Post by charafe »

PSP-GCC is well installed. What I would like to know if PSPSDK provide a framework development for PSP?
Another question, why PS2DEV.ORG/PSP is not working? i have blank pages...
Rad
Post Reply