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 

Alot of errors cause by png

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



Joined: 31 Dec 2005
Posts: 288

PostPosted: Mon Jan 09, 2006 1:43 am    Post subject: Alot of errors cause by png Reply with quote

Hi folks,

i get these error when trying to only compile a file with an include <"png.h"> coded no code used from that library yet.

Code:
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall  -L. -L/usr/local/pspdev/psp/sdk/lib   framebuffer.c graphics.c main.c ball.o -lpspgu -lpng -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -l
pspnet_resolver -lpsputility -lpspuser -lpspkernel -o out.elf
graphics.c:5:17: error: png.h: No such file or directory


It states that png.h is missing but when i copy that into my directory it gives al sorts of duplicate errors

what can i do to get it to work in Visual C++ (microsoft)

P.S. i have posted a sortwise post already but i posted it into a wrong thread it was a thread which i said was solved allready so sorry for the kind of doublepost.
_________________
My PSP games:

Boxy II: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php
Back to top
View user's profile Send private message
JoshDB



Joined: 05 Oct 2005
Posts: 87

PostPosted: Mon Jan 09, 2006 2:38 am    Post subject: Reply with quote

Add -lpng to you makefile under LIBS.

i.e. LIBS = -lpspgu -lpng -lz -lm
Back to top
View user's profile Send private message Send e-mail AIM Address
sandberg



Joined: 05 Oct 2005
Posts: 90
Location: Denmark

PostPosted: Mon Jan 09, 2006 2:38 am    Post subject: Reply with quote

Your include path is set to look in the current directory and in /usr/local/pspdev/psp/sdk/include. If you have compiled and installed libpng the normal way, png.h will be installed in /usr/local/pspdev/psp/include.
So modify your makefile or however that is done in Visual Studio, to add that directory to your include path also.
_________________
Br, Sandberg
Back to top
View user's profile Send private message
Ghoti



Joined: 31 Dec 2005
Posts: 288

PostPosted: Mon Jan 09, 2006 2:52 am    Post subject: Reply with quote

Hi, well i have -lpng in my makefile:

Code:
TARGET = out
OBJS = $(wildcard *.c) ball.o

INCDIR =
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

LIBDIR =
LDFLAGS =
LIBS = -lpspgu -lpng -lz -lm

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak

ball.o: ball.raw
   bin2o -i ball.raw ball.o ball
<-- makefile

the makefile is run through a batch file :

Quote:

@REM Ne pas afficher les commandes
@ECHO OFF

ECHO Compilatie van het Project.

SET path=%path%;C:\cygwin\bin;C:\cygwin\usr/local/pspdev/bin
SET path=%path%;C:\cygwin\usr\include\libpng12
SET PSPSDK=C:\cygwin\usr/local/pspdev

make.exe

ECHO Effacer les fichiers inutiles
DEL *.o

ECHO Trouver le bon repertoire

SET DRIVE=.\



ECHO Création du PBP
MD %DRIVE%GAME2%%
Elf2pbpm -FILEOUT=%DRIVE%GAME2%%\EBOOT.PBP -TITLE="Game 2: 2D"

ECHO Renommer en EBOOT.PBP
MD %DRIVE%GAME2
MOVE out.elf %DRIVE%GAME2\EBOOT.PBP



which is now kind of a mess but i have put it there but don't know how to add the include path any sugestions
_________________
My PSP games:

Boxy II: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php
Back to top
View user's profile Send private message
johnmph



Joined: 23 Jul 2005
Posts: 119

PostPosted: Mon Jan 09, 2006 5:02 am    Post subject: Reply with quote

Ghoti wrote:
Hi, well i have -lpng in my makefile:

Code:
TARGET = out
OBJS = $(wildcard *.c) ball.o

INCDIR =
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

LIBDIR =
LDFLAGS =
LIBS = -lpspgu -lpng -lz -lm

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak

ball.o: ball.raw
   bin2o -i ball.raw ball.o ball
<-- makefile

the makefile is run through a batch file :

Quote:

@REM Ne pas afficher les commandes
@ECHO OFF

ECHO Compilatie van het Project.

SET path=%path%;C:\cygwin\bin;C:\cygwin\usr/local/pspdev/bin
SET path=%path%;C:\cygwin\usr\include\libpng12
SET PSPSDK=C:\cygwin\usr/local/pspdev

make.exe

ECHO Effacer les fichiers inutiles
DEL *.o

ECHO Trouver le bon repertoire

SET DRIVE=.\



ECHO Création du PBP
MD %DRIVE%GAME2%%
Elf2pbpm -FILEOUT=%DRIVE%GAME2%%\EBOOT.PBP -TITLE="Game 2: 2D"

ECHO Renommer en EBOOT.PBP
MD %DRIVE%GAME2
MOVE out.elf %DRIVE%GAME2\EBOOT.PBP



which is now kind of a mess but i have put it there but don't know how to add the include path any sugestions


No need to add include path if you have install correctly zlib and png (make and make install), remove :

SET path=%path%;C:\cygwin\usr\include\libpng12

in your make.bat

Ghoti wrote:
Hi folks,

i get these error when trying to only compile a file with an include <"png.h"> coded no code used from that library yet.


Use #include <png.h>
Back to top
View user's profile Send private message
Ghoti



Joined: 31 Dec 2005
Posts: 288

PostPosted: Mon Jan 09, 2006 6:30 am    Post subject: Reply with quote

Hi, I have installed it correctly with the tutorial and it didn't gave an error

i use <png.h> and i have pasted the graphics.c and .h and the framebuffer.c an .h into the directory of my game and then press F7 i get these errors:
Code:

Compilatie van het Project.
bin2o -i ball.raw ball.o ball
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall  -L. -L/usr/local/pspdev/psp/sdk/lib   framebuffer.c graphics.c main.c ball.o -lpspgu -lpng -lz -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_
apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o out.elf
graphics.c:5:17: error: png.h: No such file or directory
graphics.c:51: error: syntax error before 'png_ptr'
graphics.c: In function 'loadImage':
graphics.c:57: error: 'png_structp' undeclared (first use in this function)
graphics.c:57: error: (Each undeclared identifier is reported only once
graphics.c:57: error: for each function it appears in.)
graphics.c:57: error: syntax error before 'png_ptr'
graphics.c:58: error: 'png_infop' undeclared (first use in this function)
graphics.c:60: error: 'png_uint_32' undeclared (first use in this function)
graphics.c:60: error: syntax error before 'width'
graphics.c:63: error: 'FILE' undeclared (first use in this function)
graphics.c:63: error: 'fp' undeclared (first use in this function)
graphics.c:67: warning: implicit declaration of function 'fopen'
graphics.c:68: error: 'png_ptr' undeclared (first use in this function)
graphics.c:68: warning: implicit declaration of function 'png_create_read_struct'
graphics.c:68: error: 'PNG_LIBPNG_VER_STRING' undeclared (first use in this function)
graphics.c:71: warning: implicit declaration of function 'fclose'
graphics.c:74: warning: implicit declaration of function 'png_set_error_fn'
graphics.c:74: error: 'png_voidp' undeclared (first use in this function)
graphics.c:74: error: 'png_error_ptr' undeclared (first use in this function)
graphics.c:75: error: 'info_ptr' undeclared (first use in this function)
graphics.c:75: warning: implicit declaration of function 'png_create_info_struct'
graphics.c:79: warning: implicit declaration of function 'png_destroy_read_struct'
graphics.c:79: error: 'png_infopp_NULL' undeclared (first use in this function)
graphics.c:82: warning: implicit declaration of function 'png_init_io'
graphics.c:83: warning: implicit declaration of function 'png_set_sig_bytes'
graphics.c:84: warning: implicit declaration of function 'png_read_info'
graphics.c:85: warning: implicit declaration of function 'png_get_IHDR'
graphics.c:85: error: 'width' undeclared (first use in this function)
graphics.c:85: error: 'height' undeclared (first use in this function)
graphics.c:85: error: 'int_p_NULL' undeclared (first use in this function)
graphics.c:96: warning: implicit declaration of function 'png_set_strip_16'
graphics.c:97: warning: implicit declaration of function 'png_set_packing'
graphics.c:98: error: 'PNG_COLOR_TYPE_PALETTE' undeclared (first use in this function)
graphics.c:98: warning: implicit declaration of function 'png_set_palette_to_rgb'
graphics.c:99: error: 'PNG_COLOR_TYPE_GRAY' undeclared (first use in this function)
graphics.c:99: warning: implicit declaration of function 'png_set_gray_1_2_4_to_8'
graphics.c:100: warning: implicit declaration of function 'png_get_valid'
graphics.c:100: error: 'PNG_INFO_tRNS' undeclared (first use in this function)
graphics.c:100: warning: implicit declaration of function 'png_set_tRNS_to_alpha'
graphics.c:101: warning: implicit declaration of function 'png_set_filler'
graphics.c:101: error: 'PNG_FILLER_AFTER' undeclared (first use in this function)
graphics.c:118: warning: implicit declaration of function 'png_read_row'
graphics.c:118: error: 'png_bytep_NULL' undeclared (first use in this function)
graphics.c:125: warning: implicit declaration of function 'png_read_end'
graphics.c: In function 'createImage':
graphics.c:216: warning: implicit declaration of function 'memset'
graphics.c:216: warning: incompatible implicit declaration of built-in function 'memset'
graphics.c: In function 'printTextScreen':
graphics.c:296: warning: implicit declaration of function 'strlen'
graphics.c:296: warning: incompatible implicit declaration of built-in function 'strlen'
graphics.c: In function 'printTextImage':
graphics.c:323: warning: incompatible implicit declaration of built-in function 'strlen'
graphics.c: In function 'saveImage':
graphics.c:343: error: 'png_structp' undeclared (first use in this function)
graphics.c:343: error: syntax error before 'png_ptr'
graphics.c:344: error: 'png_infop' undeclared (first use in this function)
graphics.c:345: error: 'FILE' undeclared (first use in this function)
graphics.c:345: error: 'fp' undeclared (first use in this function)
graphics.c:350: error: 'png_ptr' undeclared (first use in this function)
graphics.c:350: warning: implicit declaration of function 'png_create_write_struct'
graphics.c:350: error: 'PNG_LIBPNG_VER_STRING' undeclared (first use in this function)
graphics.c:352: error: 'info_ptr' undeclared (first use in this function)
graphics.c:354: warning: implicit declaration of function 'png_destroy_write_struct'
graphics.c:354: error: 'png_infopp' undeclared (first use in this function)
graphics.c:358: warning: implicit declaration of function 'png_set_IHDR'
graphics.c:359: error: 'PNG_COLOR_TYPE_RGBA' undeclared (first use in this function)
graphics.c:359: error: 'PNG_COLOR_TYPE_RGB' undeclared (first use in this function)
graphics.c:360: error: 'PNG_INTERLACE_NONE' undeclared (first use in this function)
graphics.c:360: error: 'PNG_COMPRESSION_TYPE_DEFAULT' undeclared (first use in this function)
graphics.c:360: error: 'PNG_FILTER_TYPE_DEFAULT' undeclared (first use in this function)
graphics.c:361: warning: implicit declaration of function 'png_write_info'
graphics.c:375: warning: implicit declaration of function 'png_write_row'
graphics.c:378: warning: implicit declaration of function 'png_write_end'
main.c:30:17: error: png.h: No such file or directory
main.c: In function 'CallbackThread':
main.c:86: warning: passing argument 2 of 'sceKernelCreateCallback' from incompatible pointer type
main.c: In function 'SetupCallbacks':
main.c:99: warning: passing argument 2 of 'sceKernelCreateThread' from incompatible pointer type
make: *** [out.elf] Error 1
Effacer les fichiers inutiles
Trouver le bon repertoire
Création du PBP
Er bestaat al een submap of bestand .\GAME2%.
Creation du PBP terminée -> filesize : 00015345
Renommer en EBOOT.PBP
Er bestaat al een submap of bestand .\GAME2.
Het systeem kan het opgegeven bestand niet vinden.
Error executing c:\windows\system32\cmd.exe.

EBOOT.PBP - 41 error(s), 32 warning(s)
[/quote] I have installed the zlib and the libpng in Cygwin BTW do i have to install them also in Visual C++ ?

_________________
My PSP games:

Boxy II: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php
Back to top
View user's profile Send private message
Dr. Vegetable



Joined: 14 Nov 2005
Posts: 171
Location: Boston, Massachusetts

PostPosted: Mon Jan 09, 2006 6:55 am    Post subject: Reply with quote

Code:
graphics.c:5:17: error: png.h: No such file or directory

In a C or C++ program, always look at the first error. The compiler still isn't finding the png.h header file. You can set a path to search for include files right in your batch file. Just add something like the following to set an include path before you run make.exe:

set include=c:\pspdev\include;c:\pspdev\psp\include;c:\pspdev\psp\sdk\include;

You must change this line to match the configuration of your machine, just use semicolons ';' between directory names.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Ghoti



Joined: 31 Dec 2005
Posts: 288

PostPosted: Mon Jan 09, 2006 7:54 am    Post subject: Reply with quote

i'm sorry but i still can't get it to work. I searched the png.h and added that as include in the batch:

Code:

@REM Ne pas afficher les commandes
@ECHO OFF

ECHO Compilatie van het Project.

SET path=%path%;C:\cygwin\bin;C:\cygwin\usr/local/pspdev/bin
SET PSPSDK=C:\cygwin\usr/local/pspdev
set include=C:\cygwin\usr\include;C:\cygwin\usr\include\libpng12

make.exe

ECHO Effacer les fichiers inutiles
DEL *.o

ECHO Trouver le bon repertoire

SET DRIVE=.\



ECHO Création du PBP
MD %DRIVE%GAME2%%
Elf2pbpm -FILEOUT=%DRIVE%GAME2%%\EBOOT.PBP -TITLE="Game 2: 2D"

ECHO Renommer en EBOOT.PBP
MD %DRIVE%GAME2
MOVE out.elf %DRIVE%GAME2\EBOOT.PBP



C:\cygwin\usr\include\libpng12 <--- in here the png.h exists
C:\cygwin\usr\include <--- in here a shortcut exists to png.h

i still get the same errors

I tried just copying the png.h and the pngconf.h to my sourcecode folder but then i get these errors:

Code:
Compilatie van het Project.
bin2o -i ball.raw ball.o ball
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall   -c -o graphics.o graphics.c
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall   -c -o framebuffer.o framebuffer.c
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall  -L. -L/usr/local/pspdev/psp/sdk/lib   framebuffer.c graphics.c main.c ball.o graphics.o framebuffer.o -lpspgu -lpng -lz -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspne
t -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o out.elf
main.c: In function 'CallbackThread':
main.c:86: warning: passing argument 2 of 'sceKernelCreateCallback' from incompatible pointer type
main.c: In function 'SetupCallbacks':
main.c:99: warning: passing argument 2 of 'sceKernelCreateThread' from incompatible pointer type
graphics.o: In function `getVramDrawBuffer':
graphics.c:(.text+0x4c): multiple definition of `getVramDrawBuffer'
/cygdrive/c/DOCUME~1/Reinier/LOCALS~1/Temp/ccqCS65H.o:graphics.c:(.text+0x4c): first defined here
graphics.o: In function `getVramDisplayBuffer':


I just don't get it... (BTW thanks for the many replies everybody.)
_________________
My PSP games:

Boxy II: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php
Back to top
View user's profile Send private message
johnmph



Joined: 23 Jul 2005
Posts: 119

PostPosted: Mon Jan 09, 2006 3:33 pm    Post subject: Reply with quote

Ghoti wrote:
i'm sorry but i still can't get it to work. I searched the png.h and added that as include in the batch:

Code:

@REM Ne pas afficher les commandes
@ECHO OFF

ECHO Compilatie van het Project.

SET path=%path%;C:\cygwin\bin;C:\cygwin\usr/local/pspdev/bin
SET PSPSDK=C:\cygwin\usr/local/pspdev
set include=C:\cygwin\usr\include;C:\cygwin\usr\include\libpng12

make.exe

ECHO Effacer les fichiers inutiles
DEL *.o

ECHO Trouver le bon repertoire

SET DRIVE=.\



ECHO Création du PBP
MD %DRIVE%GAME2%%
Elf2pbpm -FILEOUT=%DRIVE%GAME2%%\EBOOT.PBP -TITLE="Game 2: 2D"

ECHO Renommer en EBOOT.PBP
MD %DRIVE%GAME2
MOVE out.elf %DRIVE%GAME2\EBOOT.PBP



C:\cygwin\usr\include\libpng12 <--- in here the png.h exists
C:\cygwin\usr\include <--- in here a shortcut exists to png.h

i still get the same errors

I tried just copying the png.h and the pngconf.h to my sourcecode folder but then i get these errors:

Code:
Compilatie van het Project.
bin2o -i ball.raw ball.o ball
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall   -c -o graphics.o graphics.c
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall   -c -o framebuffer.o framebuffer.c
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall  -L. -L/usr/local/pspdev/psp/sdk/lib   framebuffer.c graphics.c main.c ball.o graphics.o framebuffer.o -lpspgu -lpng -lz -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspne
t -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o out.elf
main.c: In function 'CallbackThread':
main.c:86: warning: passing argument 2 of 'sceKernelCreateCallback' from incompatible pointer type
main.c: In function 'SetupCallbacks':
main.c:99: warning: passing argument 2 of 'sceKernelCreateThread' from incompatible pointer type
graphics.o: In function `getVramDrawBuffer':
graphics.c:(.text+0x4c): multiple definition of `getVramDrawBuffer'
/cygdrive/c/DOCUME~1/Reinier/LOCALS~1/Temp/ccqCS65H.o:graphics.c:(.text+0x4c): first defined here
graphics.o: In function `getVramDisplayBuffer':


I just don't get it... (BTW thanks for the many replies everybody.)


If you install correctly libpng, the png.h will be in cygwin\usr\local\pspdev\psp\include and not in C:\cygwin\usr\include\libpng12.

For a good install, download libpng and zlib folders (svn://svn.ps2dev.org/psp/) and copy it in c:/cygwin/home/{your login}/

After open a cygwin shell and go into the c:/cygwin/home/{your login}/zlib and tape :

make

and after :

make install

Proceed the same with c:/cygwin/home/{your login}/libpng

After you can erase c:/cygwin/home/{your login}/zlib and c:/cygwin/home/{your login}/libpng folders.

No forget to add library in makefile : -lpng -lz -lm
Back to top
View user's profile Send private message
Ghoti



Joined: 31 Dec 2005
Posts: 288

PostPosted: Tue Jan 10, 2006 9:30 am    Post subject: Reply with quote

Still not working.

I reinstalled it didn't work, then rereinstalled it and now i don't get any errors anymore about the png.h BUT now i get duplicate errors??? (i also changed the includepath you gave me)

Code:
bin2o -i ball.raw ball.o ball
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall   -c -o graphics.o graphics.c
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall   -c -o framebuffer.o framebuffer.c
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall  -L. -L/usr/local/pspdev/psp/sdk/lib   framebuffer.c graphics.c main.c ball.o graphics.o framebuffer.o -lpspgu -lpng -lz -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspne
t -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o out.elf
main.c: In function 'CallbackThread':
main.c:85: warning: passing argument 2 of 'sceKernelCreateCallback' from incompatible pointer type
main.c: In function 'SetupCallbacks':
main.c:98: warning: passing argument 2 of 'sceKernelCreateThread' from incompatible pointer type
graphics.o: In function `getVramDrawBuffer':
graphics.c:(.text+0x4c): multiple definition of `getVramDrawBuffer'
/cygdrive/c/DOCUME~1/Reinier/LOCALS~1/Temp/ccqiBpCF.o:graphics.c:(.text+0x4c): first defined here
graphics.o: In function `getVramDisplayBuffer':
graphics.c:(.text+0x74): multiple definition of `getVramDisplayBuffer'
/cygdrive/c/DOCUME~1/Reinier/LOCALS~1/Temp/ccqiBpCF.o:graphics.c:(.text+0x74): first defined here
graphics.o: In function `user_warning_fn':
graphics.c:(.text+0xa8): multiple definition of `user_warning_fn'
/cygdrive/c/DOCUME~1/Reinier/LOCALS~1/Temp/ccqiBpCF.o:graphics.c:(.text+0xa8): first defined here
graphics.o: In function `loadImage':
graphics.c:(.text+0xb0): multiple definition of `loadImage'


Is there something wrong with my computer?
_________________
My PSP games:

Boxy II: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php
Back to top
View user's profile Send private message
johnmph



Joined: 23 Jul 2005
Posts: 119

PostPosted: Tue Jan 10, 2006 3:27 pm    Post subject: Reply with quote

Ghoti wrote:
Still not working.

I reinstalled it didn't work, then rereinstalled it and now i don't get any errors anymore about the png.h BUT now i get duplicate errors??? (i also changed the includepath you gave me)

Code:
bin2o -i ball.raw ball.o ball
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall   -c -o graphics.o graphics.c
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall   -c -o framebuffer.o framebuffer.c
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall  -L. -L/usr/local/pspdev/psp/sdk/lib   framebuffer.c graphics.c main.c ball.o graphics.o framebuffer.o -lpspgu -lpng -lz -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspne
t -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o out.elf
main.c: In function 'CallbackThread':
main.c:85: warning: passing argument 2 of 'sceKernelCreateCallback' from incompatible pointer type
main.c: In function 'SetupCallbacks':
main.c:98: warning: passing argument 2 of 'sceKernelCreateThread' from incompatible pointer type
graphics.o: In function `getVramDrawBuffer':
graphics.c:(.text+0x4c): multiple definition of `getVramDrawBuffer'
/cygdrive/c/DOCUME~1/Reinier/LOCALS~1/Temp/ccqiBpCF.o:graphics.c:(.text+0x4c): first defined here
graphics.o: In function `getVramDisplayBuffer':
graphics.c:(.text+0x74): multiple definition of `getVramDisplayBuffer'
/cygdrive/c/DOCUME~1/Reinier/LOCALS~1/Temp/ccqiBpCF.o:graphics.c:(.text+0x74): first defined here
graphics.o: In function `user_warning_fn':
graphics.c:(.text+0xa8): multiple definition of `user_warning_fn'
/cygdrive/c/DOCUME~1/Reinier/LOCALS~1/Temp/ccqiBpCF.o:graphics.c:(.text+0xa8): first defined here
graphics.o: In function `loadImage':
graphics.c:(.text+0xb0): multiple definition of `loadImage'


Is there something wrong with my computer?


Now the zlib and libpng are installed fine.

For the multiple definition, check your makefile and source if you compile same file several times or if you declare several times the same function.
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