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 

cpplibs

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



Joined: 31 Oct 2007
Posts: 10

PostPosted: Fri Nov 02, 2007 10:34 am    Post subject: cpplibs Reply with quote

Hi

when I tried to install this library it shows a compilation error:

Code:
fran@fran-desktop:~/trunk/cpplibs$ make
cd libpsp2d && make
make[1]: se ingresa al directorio `/home/fran/trunk/cpplibs/libpsp2d'
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include  -O2 -G0 -Wall -D_PSP_FW_VERSION=150 -I..  -c -o framebuffer.o framebuffer.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include  -O2 -G0 -Wall -D_PSP_FW_VERSION=150 -I..  -c -o Exception.o Exception.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include  -O2 -G0 -Wall -D_PSP_FW_VERSION=150 -I..  -c -o Drawable.o Drawable.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include  -O2 -G0 -Wall -D_PSP_FW_VERSION=150 -I..  -c -o Screen.o Screen.cpp
Screen.cpp: In static member function ‘static u32* PSP2D::Screen::getList()’:
Screen.cpp:229: error: conversión inválida de ‘unsigned int*’ a ‘u32*’
Screen.cpp: In member function ‘void PSP2D::Screen::_saveToPNG(const std::string&)’:
Screen.cpp:298: aviso: la dereferencia de punteros de tipo castigado romperá las reglas de alias estricto
Screen.cpp:298: error: conversión inválida de ‘int*’ a ‘int’
Screen.cpp:298: error:   argumento de inicialización 4 de ‘int sceDisplayGetFrameBuf(void**, int*, int*, int)’
make[1]: *** [Screen.o] Error 1
make[1]: se sale del directorio `/home/fran/trunk/cpplibs/libpsp2d'
make: *** [libs] Error 2
fran@fran-desktop:~/trunk/cpplibs$


The errors are in Spanish, but I think they are easy to understand. There are any way to solve a invalid conversion without modifying the source code?

I don't know what can I do...
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Fri Nov 02, 2007 10:44 am    Post subject: Re: cpplibs Reply with quote

Neizan wrote:

The errors are in Spanish, but I think they are easy to understand. There are any way to solve a invalid conversion without modifying the source code?

I don't know what can I do...


You mean like magic spells or sacrificing a chicken? :)

If there are problems with the code, you have to change it. That's what being a programmer is all about.
Back to top
View user's profile Send private message AIM Address
Neizan



Joined: 31 Oct 2007
Posts: 10

PostPosted: Fri Nov 02, 2007 11:02 am    Post subject: Reply with quote

I mean like compiler options, I don't so much about compiler, but may be it would exists any option that allows to "ignore" some invalid conversions...

I repeat, I don't know so much about compilers, but neither about the u32 variable type shown by the error :S
Back to top
View user's profile Send private message
Neizan



Joined: 31 Oct 2007
Posts: 10

PostPosted: Fri Nov 02, 2007 11:48 am    Post subject: Reply with quote

Well.. it seems to have worked:

Code:
Screen.cpp:229: error: conversión inválida de ‘unsigned int*’ a ‘u32*’


For repair this, i have changed

Code:
u32* Screen::getList()
{
  return list;
}


for this:

Code:
u32* Screen::getList()
{
  return (u32*)list;
}


I hope this won't end in a explosion on my computer or something similar... but at least it compile.

The other error was easier.


Bye
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