I'm trying to install the SDL, SDL_Mixer & SDL_Image, but when i do "make install" it gets to a certain point and won't do it because of a perm error,
it may be because i have a user name call "Every One" but if thats the prob how do i change it to a different one so it'll work,
But i've changed it to EveryOne in the Control panel a while ago but it didn't do a thing...
Here's the error,
Every One@waste-of-tin ~
$ cd "D:\cygwin\SDL_mixer"
Every One@waste-of-tin /SDL_mixer
$ make install
Making install in mikmod
make[1]: Entering directory `/SDL_mixer/mikmod'
make[2]: Entering directory `/SDL_mixer/mikmod'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/SDL_mixer/mikmod'
make[1]: Leaving directory `/SDL_mixer/mikmod'
Making install in timidity
make[1]: Entering directory `/SDL_mixer/timidity'
make[2]: Entering directory `/SDL_mixer/timidity'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/SDL_mixer/timidity'
make[1]: Leaving directory `/SDL_mixer/timidity'
Making install in native_midi
make[1]: Entering directory `/SDL_mixer/native_midi'
make[2]: Entering directory `/SDL_mixer/native_midi'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/SDL_mixer/native_midi'
make[1]: Leaving directory `/SDL_mixer/native_midi'
make[1]: Entering directory `/SDL_mixer'
make[2]: Entering directory `/SDL_mixer'
test -z "/usr/local/lib" || /usr/bin/mkdir -p "/usr/local/lib"
/bin/sh ./libtool --mode=install /usr/bin/install -c 'libSDL_mixer.la' '/usr/local/lib/libSDL_mixe
r.la'
/usr/bin/install -c .libs/libSDL_mixer.dll.a /usr/local/lib/libSDL_mixer.dll.a
base_file=`basename ${file}`
dlpath=`/bin/sh 2>&1 -c '. .libs/'${base_file}'i;echo $dlname'`
dldir=/usr/local/lib/`dirname $dlpath`
test -d $dldir || mkdir -p $dldir
/usr/bin/install -c .libs/SDL_mixer.dll $dldir/SDL_mixer.dll
/usr/bin/install -c .libs/libSDL_mixer.lai /usr/local/lib/libSDL_mixer.la
/usr/bin/install -c .libs/libSDL_mixer.a /usr/local/lib/libSDL_mixer.a
ranlib /usr/local/lib/libSDL_mixer.a
chmod 644 /usr/local/lib/libSDL_mixer.a
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/include/SDL" || /usr/bin/mkdir -p "/usr/local/include/SDL"
/usr/bin/install -c -m 644 'SDL_mixer.h' '/usr/local/include/SDL/SDL_mixer.h'
/usr/bin/install: cannot create regular file `/usr/local/include/SDL/SDL_mixer.h': Permission denied
I've tried installing from my desktop (drive C:) and ive tried installing from many other locations on my D drive, mostly in the cygwin paths and some at D's root. still they all don't work.....perm error :( i'll give sudo a go in a min. :)
Edit: im using cygwin btw if you may not have noticed :s lol
You don't appear to have the environment variables for PSPDEV, PSPSDK, and PATH set correctly. It's covered in all tutorials on installing the toolchain and libs. Without the envvars set correctly, nothing will install or work correctly.
Uhmm..don't know, but if JF is right, there's a simple way to test:
Win version of pspsdk rely on "psp-config" executable to find out where it is installed from makefiles. So "psp-config" executable has to be in PATH. Don't really remember how thing work on cygwin but i think it's the same, so try setting current dir to somewhere far from your install directory, then issue the "psp-config" command. If it doesn't work, greetings: you found the problem. Otherwise, the problem is somewhere else: if it keep not working after having read and implemented the ten zillions tutorials all around, then consider hiring an exorcist. (BTW: who the hell with a working brain could choose a username with spaces into it???? :)
PS: now i see..it seems to be installed correctly but the installation cannot be accessed again in test phase... does the file "/usr/local/include/SDL/SDL_mixer.h" exist??
Does nobody pay attention?
This has nothing to do with sudo.
This has nothing to do with environment variables.
This has nothing to do with cygwin.
Read the README.PSP!
The PSP cross compiled SDL, SDL_mixer, SDL_image should NOT get installed into /usr/local/include, and if they are, that means (without a doubt) that you did not enter the ./configure parameters correctly.
The SDL libs are part of psplibraries. Just make sure you have the toolchain working, have the environment variables set, then just run libraries.sh to get them and a bunch of other libs. Don't bother trying to do them individually.
jimparis wrote:Does nobody pay attention?
This has nothing to do with sudo.
This has nothing to do with environment variables.
This has nothing to do with cygwin.
Read the README.PSP!
The PSP cross compiled SDL, SDL_mixer, SDL_image should NOT get installed into /usr/local/include, and if they are, that means (without a doubt) that you did not enter the ./configure parameters correctly.
J.F. wrote:The SDL libs are part of psplibraries. Just make sure you have the toolchain working, have the environment variables set, then just run libraries.sh to get them and a bunch of other libs. Don't bother trying to do them individually.
idk were the "libraries.sh" is :S lol. i know my toolchain and environment works because it can compile a EBOOT.PBP correctly and runs fine on the PSP. :)