Hacking Problem with libvita2d setup

LaGaipaG

Member
OP
Newcomer
Joined
Aug 19, 2016
Messages
10
Trophies
0
Age
29
XP
62
Country
Italy
Hi guys, I have a huge problem.I follow this tutorial: https://gbatemp.net/threads/tutoria...rt-compiling-vita-homebrew-w-pictures.414812/ . Everything goes fine: I can compile the libvita2d sample without errors, but when I transfer the vpk to my vita and run it: black screen and immediately crash. I also try to update the libvita2d, but when I run make from windows cmd it give me this error:
Code:
C:\devkitPro\devkitARM\arm-vita-eabi>make
arm-vita-eabi-gcc -Wl,-q -Wall -O3 -Iinclude -I/arm-vita-eabi/include/freetype2
-ffat-lto-objects -flto   -c -o source/vita2d_image_png.o source/vita2d_image_pn
g.c
In file included from source/vita2d_image_png.c:5:0:
c:\devkitpro\devkitarm\arm-vita-eabi\include\png.h:1:9: error: expected '=', ','
, ';', 'asm' or '__attribute__' before '/' token
 libpng16/png.h
         ^
In file included from c:\devkitpro\devkitarm\arm-vita-eabi\include\vita2d.h:6:0,

                 from source/vita2d_image_png.c:6:
c:\devkitpro\devkitarm\arm-vita-eabi\include\psp2\kernel\sysmem.h:56:49: error:
unknown type name 'SceKernelMemBlockType'
 SceUID sceKernelAllocMemBlock(const char *name, SceKernelMemBlockType type, int
 size, SceKernelAllocMemBlockOpt *optp);
                                                 ^
c:\devkitpro\devkitarm\arm-vita-eabi\include\psp2\kernel\sysmem.h:83:2: error: u
nknown type name 'SceKernelMemBlockType'
  SceKernelMemBlockType type;
  ^
In file included from source/vita2d_image_png.c:6:0:
c:\devkitpro\devkitarm\arm-vita-eabi\include\vita2d.h:78:45: error: unknown type
 name 'SceKernelMemBlockType'
 void vita2d_texture_set_alloc_memblock_type(SceKernelMemBlockType type);
                                             ^
c:\devkitpro\devkitarm\arm-vita-eabi\include\vita2d.h:79:1: error: unknown type
name 'SceKernelMemBlockType'
 SceKernelMemBlockType vita2d_texture_get_alloc_memblock_type();
 ^
source/vita2d_image_png.c:10:38: error: unknown type name 'png_structp'
 static void _vita2d_read_png_file_fn(png_structp png_ptr, png_bytep data, png_s
ize_t length)
                                      ^
source/vita2d_image_png.c:10:59: error: unknown type name 'png_bytep'
 static void _vita2d_read_png_file_fn(png_structp png_ptr, png_bytep data, png_s
ize_t length)
                                                           ^
source/vita2d_image_png.c:10:75: error: unknown type name 'png_size_t'
 static void _vita2d_read_png_file_fn(png_structp png_ptr, png_bytep data, png_s
ize_t length)
                                                                           ^
source/vita2d_image_png.c:16:40: error: unknown type name 'png_structp'
 static void _vita2d_read_png_buffer_fn(png_structp png_ptr, png_bytep data, png
_size_t length)
                                        ^
source/vita2d_image_png.c:16:61: error: unknown type name 'png_bytep'
 static void _vita2d_read_png_buffer_fn(png_structp png_ptr, png_bytep data, png
_size_t length)
                                                             ^
source/vita2d_image_png.c:16:77: error: unknown type name 'png_size_t'
 static void _vita2d_read_png_buffer_fn(png_structp png_ptr, png_bytep data, png
_size_t length)
                                                                             ^
source/vita2d_image_png.c:23:69: error: unknown type name 'png_rw_ptr'
 static vita2d_texture *_vita2d_load_PNG_generic(const void *io_ptr, png_rw_ptr
read_data_fn)
                                                                     ^
source/vita2d_image_png.c: In function 'vita2d_load_PNG_file':
source/vita2d_image_png.c:123:2: error: unknown type name 'png_byte'
  png_byte pngsig[PNG_SIGSIZE];
  ^
source/vita2d_image_png.c:134:2: warning: implicit declaration of function 'png_
sig_cmp' [-Wimplicit-function-declaration]
  if (png_sig_cmp(pngsig, 0, PNG_SIGSIZE) != 0) {
  ^
source/vita2d_image_png.c:138:2: warning: implicit declaration of function '_vit
a2d_load_PNG_generic' [-Wimplicit-function-declaration]
  vita2d_texture *texture = _vita2d_load_PNG_generic((void *)&fd, _vita2d_read_p
ng_file_fn);
  ^
source/vita2d_image_png.c:138:66: error: '_vita2d_read_png_file_fn' undeclared (
first use in this function)
  vita2d_texture *texture = _vita2d_load_PNG_generic((void *)&fd, _vita2d_read_p
ng_file_fn);
                                                                  ^
source/vita2d_image_png.c:138:66: note: each undeclared identifier is reported o
nly once for each function it appears in
source/vita2d_image_png.c: In function 'vita2d_load_PNG_buffer':
source/vita2d_image_png.c:150:19: error: 'png_byte' undeclared (first use in thi
s function)
  if (png_sig_cmp((png_byte *) buffer, 0, PNG_SIGSIZE) != 0) {
                   ^
source/vita2d_image_png.c:150:29: error: expected expression before ')' token
  if (png_sig_cmp((png_byte *) buffer, 0, PNG_SIGSIZE) != 0) {
                             ^
source/vita2d_image_png.c:156:59: error: '_vita2d_read_png_buffer_fn' undeclared
 (first use in this function)
  return _vita2d_load_PNG_generic((void *)&buffer_address, _vita2d_read_png_buff
er_fn);
                                                           ^
source/vita2d_image_png.c:157:1: warning: control reaches end of non-void functi
on [-Wreturn-type]
 }
 ^
make: *** [source/vita2d_image_png.o] Error 1

C:\devkitPro\devkitARM\arm-vita-eabi>
[/spoiler]
Please help me, I'll be very grateful.
Thanks in advance.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    BakerMan @ BakerMan: @salazarcosplay yeah cod's still up