| View previous topic :: View next topic |
| Author |
Message |
Heimdall
Joined: 10 Nov 2005 Posts: 273 Location: Netherlands
|
|
| Back to top |
|
 |
autilio
Joined: 29 Sep 2009 Posts: 16
|
Posted: Wed Jan 12, 2011 7:00 am Post subject: |
|
|
weeee!
Mac support :P, guys if anyone find any bug in the Mac version please report :D
Nice work Heimdall, congratulations |
|
| Back to top |
|
 |
Chrighton
Joined: 15 Jun 2005 Posts: 60
|
Posted: Fri Jan 14, 2011 10:21 am Post subject: |
|
|
| Thanks for your continued efforts, Heimdall |
|
| Back to top |
|
 |
FOL
Joined: 26 Nov 2005 Posts: 2
|
Posted: Sun Jan 16, 2011 10:28 pm Post subject: |
|
|
I keep getting problems with Win32 Version.
error: 'png_infopp_NULL' undeclared
I also get an unistd and string error.
I had to edit both files in the toolchain to fix them, but the LIBPNG error, Im not sure on, as I can go back to 0.10.0 and its fine. |
|
| Back to top |
|
 |
Heimdall
Joined: 10 Nov 2005 Posts: 273 Location: Netherlands
|
Posted: Mon Jan 17, 2011 3:15 am Post subject: |
|
|
that error "png_infopp_NULL" is not from the SDK, the SDK was updated to the latest libpng, which requires you to update your code to: "(NULL) png_infopp". This was discussed on the libpng mailing list several years ago.
The decision to update the libpng was because svn reppo from ps2dev is down for so long that i ported most libs to the latest official releases.
And this version works, i use openTRI as one of my main engines which uses libpng and everything works as before.
About unistd and string you need to explain it better, maybe you' re just missing the includes? can you explain the error?
If you really want the old libs then you need to revert to the 0.9.6 release. in 2010 and 2011 releases i was busy with the upgrade of the libs, since they work quite ok (there are still some problems with OSlib but i am finalizing then soon) i am not planning to rollback unless a big regression is found, as it happened with the binutils 2.18 assembler. |
|
| Back to top |
|
 |
carl0sgs
Joined: 10 Dec 2009 Posts: 49
|
Posted: Wed Jan 19, 2011 1:12 am Post subject: |
|
|
Thank you very much for this!
I set up the SDK in less than 20 minutes!
Thank you thank you! :-D |
|
| Back to top |
|
 |
sauron_le_noir
Joined: 05 Jul 2008 Posts: 236
|
Posted: Mon Jan 24, 2011 4:30 am Post subject: |
|
|
Hello i'm on fedora 14 64 bits when i try to install the rpm version i've got a dependance error --> libmpfr.so.4()(64bit) est nécessaire pour minpspw-pspsdk-0.11.1-1.x86_64
libmpfr is installed --> rpm -qa give mpfr-2.4.2-1.fc13.x86_64
this rpm create under /urs/lib64/ a libmpfr.so.1 and libmpfr.so.1.2.2
is this the got path to the svn of minpspw
svn co https://minpspw.svn.sourceforge.net/svnroot/minpspw minpspw
Ok i respond by myself the rpm is a conversion from a debian package to a rpm not a natif rpm |
|
| Back to top |
|
 |
Heimdall
Joined: 10 Nov 2005 Posts: 273 Location: Netherlands
|
Posted: Mon Jan 24, 2011 9:58 pm Post subject: |
|
|
| Yes it was created from alien if anyone knows how to get fedora to run inside a schroot environment then i can build native rpms |
|
| Back to top |
|
 |
sauron_le_noir
Joined: 05 Jul 2008 Posts: 236
|
Posted: Tue Jan 25, 2011 3:07 am Post subject: |
|
|
why a chroot environement in fedora you don't need to be root anymore to create rpms
sudo yum install rpmdevtools
rpmdev-setuptree
rpmdev-setuptree create rpmbuild/SOURCE rpmbuild/RPMS rpmbuild/BUILD etc ...
for your user. You don't need to be root anymore
i'm currently making a natif spec file for your minpsw it is not finish
| Code: |
[f731@port39 trunk]$ cat create-rpm.sh
#!/bin/sh
set -e
VERSION=`grep PSPSDK_VERSION= toolchain.sh|cut -d= -f2`
MACHINE=$(uname -m)
if [ "$MACHINE" == "i386" ]; then
ARCH=i386
fi
if [ "$MACHINE" == "x86_64" ]; then
ARCH=amd64
fi
mkdir -p ~/rpmbuild/BUILD/minpspw-$VERSION/opt
cp -R ../pspsdk ~/rpmbuild/BUILD/minpspw-$VERSION/opt
# Put the pspsdk bin PATH in the PATH
mkdir -p ~/rpmbuild/BUILD/minpspw-$VERSION/etc/profile.d
cat > ~/rpmbuild/BUILD/minpspw-$VERSION/etc/profile.d/minpspw-$VERSION <<EOF
export PATH=/opt/pspsdk/bin:\$PATH
EOF
# create the source tgz file
cd ~/rpmbuild/BUILD/minpspw-$VERSION
tar -czf ~/rpmbuild/SOURCES/minpspw-$VERSION.tgz ./
# create spec file
cat > ~/rpmbuild/SPECS/minpspw.spec <<EOF
%define name minpspw
%define __os_install_post %{nil}
Summary: minpspw a development environment for the psp
Name: %{name}
Version: $VERSION
Release: .fc14
License: GPL
Group: PSP/system
BuildRoot: %{_tmppath}/%{name}-root
Packager: Serge Sterck <serge_sterck@hotmail.com>
Source1: minpspw-$VERSION.tgz
%description
The MinPSPW is a development environment for building applications,
games, and components targetting the Playstation Portable.
%install
rm -rf \$RPM_BUILD_ROOT
mkdir -p \$RPM_BUILD_ROOT
cd \$RPM_BUILD_ROOT
tar xvf %{SOURCE1}
%clean
rm -rf \$RPM_BUILD_ROOT
%files
#include all the files
%defattr(-,root,root)
%changelog
* Sun Jan 23 2011 Serge Sterck <serge_sterck@hotmail.com>
- initial release for Fedora 14
EOF
cd ~/rpmbuild/SPECS
rpmbuild -ba minpspw.spec
|
|
|
| Back to top |
|
 |
Heimdall
Joined: 10 Nov 2005 Posts: 273 Location: Netherlands
|
Posted: Tue Jan 25, 2011 5:11 am Post subject: |
|
|
| That is the problem, i don't use fedora :) I use a 64bit ubuntu, from there i have a chroot for the 32bit builds and a 64 schroot for ubuntu 64 LTS. So if i can make the same for fedora i can install the schroot to build with the exactly same packages as fedora, but i don't want the hassle of having to install fedora on my machine. |
|
| Back to top |
|
 |
sauron_le_noir
Joined: 05 Jul 2008 Posts: 236
|
Posted: Thu Jan 27, 2011 4:05 am Post subject: |
|
|
| Ok i saw the problem . I use virtualbox with a fedora 14 32 bits when i generated 32 bits rpm |
|
| Back to top |
|
 |
sauron_le_noir
Joined: 05 Jul 2008 Posts: 236
|
Posted: Fri Feb 04, 2011 12:21 am Post subject: |
|
|
Heimdall i've checkout the last minpsw from svn but i get stuck when compiling binutils
here is the error. any idea ?
| Code: |
cc -c -o flat_bl.o ../../../binutils-2.16.1/gprof/flat_bl.m
cc: error trying to exec 'cc1obj': execvp: Aucun fichier ou dossier de ce type
make[2]: *** [flat_bl.o] Erreur 1
make[2] : on quitte le répertoire « /home/f731/Devellopement/psp/minpspw/trunk/psp/build/binutils-2.16.1/gprof »
make[1]: *** [all-recursive] Erreur 1
make[1] : on quitte le répertoire « /home/f731/Devellopement/psp/minpspw/trunk/psp/build/binutils-2.16.1/gprof »
make: *** [all] Erreur 2
|
since svn of ps2dev is alway down i have replace the folowing in the toolchain.sh
| Code: |
function downloadPatches {
# svnGet psp "svn://svn.ps2dev.org/psp/trunk/psptoolchain" "patches"
svnGet psp "http://psp.jim.sh/svn/psp/trunk/psptoolchain" "patches"
}
function bootstrapSDK {
# svnGet psp "svn://svn.ps2dev.org/psp/trunk" "pspsdk"
svnGet psp "http://psp.jim.sh/svn/psp/trunk" "pspsdk"
function installPSPLinkUSB {
#svnGet psp "svn://svn.ps2dev.org/psp/trunk" "psplinkusb"
svnGet psp "http://psp.jim.sh/svn/psp/trunk" "psplinkusb"
|
i haven't had this error with binutils 2.8 the version present in jim svn is binutils 2.16.1 what is your version ? |
|
| Back to top |
|
 |
Heimdall
Joined: 10 Nov 2005 Posts: 273 Location: Netherlands
|
Posted: Fri Feb 04, 2011 6:56 am Post subject: |
|
|
The problem with 2.18 was that it was generating bad code, deadalus didn't build correctly for example. I rollback to 2.16.1 but the error you are reporting looks like a common error on the MAC, which OS are you using? Fedora i guess :) which version and platform?
I will install a VM :P and test it, Fedora 14 64bit?
I think you have a objective-C compiler in the system that is getting confused with the documentation files on binutils |
|
| Back to top |
|
 |
sauron_le_noir
Joined: 05 Jul 2008 Posts: 236
|
Posted: Sat Feb 12, 2011 10:41 pm Post subject: |
|
|
yes fedora 14 64 bits
[f731@port39 ~]$ uname -a
Linux port39.fmsb.be 2.6.35.11-83.fc14.x86_64 #1 SMP Mon Feb 7 07:06:44 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Sorry for this late reply i was busy with prof activities. I try to uninstall objectif c just to see |
|
| Back to top |
|
 |
Ats
Joined: 05 Dec 2005 Posts: 46 Location: Biarritz - France
|
Posted: Wed Apr 06, 2011 6:46 pm Post subject: |
|
|
Hi Heimdall,
First, thanks for your great program. As I'm working from time to time on my Frontier Elite 2 port, it is great to see that something simplier than cygwin +toolchain has come out.
I have a little question for you because my game compiles and works good under pspsdk 0.10.0 but not under 0.11.1, where it compiles but gives a black screen at the SDL screen initialization lines :
| Code: |
SDL_GL_SetAttribute (SDL_GL_DOUBLEBUFFER, 1);
if ((sdlscrn = SDL_SetVideoMode (screen_w, screen_h, 16, SDL_OPENGL | SDL_DOUBLEBUF)) == 0) {
fprintf (stderr, "Video mode set failed: %s\n", SDL_GetError ());
SDL_Quit ();
exit (-1);
} |
Do you have a clue where it could come from? Maybe the libs in the Makefile?
Many thanks! |
|
| Back to top |
|
 |
|