fgsfdsfgs / vitaXash3D

a port of Xash3D-FWGS to the PSVita

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compile error on engine

TheEnbyWitch opened this issue · comments

commented
ray@ray-Lenovo-IdeaPad-Y580:~/vitaXash3D$ make
make -C modselector
make[1]: Entering directory '/home/ray/vitaXash3D/modselector'
arm-vita-eabi-gcc -g -mtune=cortex-a9 -mfpu=neon -Ofast -Wl,-q -Wfatal-errors -fsigned-char -flto -fno-short-enums -DXASH_BUILD_COMMIT="\"bb62177\""   -c -o main.o main.c
main.c: In function 'die':
main.c:294:2: warning: implicit declaration of function 'sceKernelExitProcess'; did you mean 'sceKernelGetModel'? [-Wimplicit-function-declaration]
  sceKernelExitProcess( 0 );
  ^~~~~~~~~~~~~~~~~~~~
  sceKernelGetModel
arm-vita-eabi-gcc -g -mtune=cortex-a9 -mfpu=neon -Ofast -Wl,-q -Wfatal-errors -fsigned-char -flto -fno-short-enums -DXASH_BUILD_COMMIT="\"bb62177\""   -c -o utils.o utils.c
arm-vita-eabi-g++ -g -mtune=cortex-a9 -mfpu=neon -Ofast -Wl,-q -Wfatal-errors -fsigned-char -flto -fno-short-enums -DXASH_BUILD_COMMIT="\"bb62177\"" -fno-exceptions -std=c++11 -fpermissive main.o utils.o -lvita2d -lSceAppMgr_stub -lSceDisplay_stub -lSceGxm_stub -lSceSysmodule_stub -lSceCtrl_stub -lm -lScePgf_stub -ljpeg -lfreetype -lc -lSceCommonDialog_stub -lpng16 -lz -o launcher.elf
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/7.3.0/../../../../arm-vita-eabi/bin/ld: warning: /tmp/cciaae7a.ltrans0.ltrans.o uses 32-bit enums yet the output is to use variable-size enums; use of enum values across objects may fail
cp launcher.elf launcher.elf.unstripped.elf
arm-vita-eabi-strip -g launcher.elf
vita-elf-create launcher.elf launcher.velf
vita-make-fself -s launcher.velf ../launcher.bin
make[1]: Leaving directory '/home/ray/vitaXash3D/modselector'
arm-vita-eabi-gcc -g -mtune=cortex-a9 -mfpu=neon -Ofast -Wl,-q -Wfatal-errors -fsigned-char -flto -fno-short-enums -Iengine -Iengine/common -Icommon -Iengine/server -Iengine/client -Iengine/client/vgui -Ipm_shared -DXASH_STATIC -DXASH_SINGLE_BINARY -DXASH_BUILD_COMMIT="\"bb62177\""   -c -o engine/platform/vita/dll_vita.o engine/platform/vita/dll_vita.c
arm-vita-eabi-gcc -g -mtune=cortex-a9 -mfpu=neon -Ofast -Wl,-q -Wfatal-errors -fsigned-char -flto -fno-short-enums -Iengine -Iengine/common -Icommon -Iengine/server -Iengine/client -Iengine/client/vgui -Ipm_shared -DXASH_STATIC -DXASH_SINGLE_BINARY -DXASH_BUILD_COMMIT="\"bb62177\""   -c -o engine/platform/vita/snd_vita.o engine/platform/vita/snd_vita.c
arm-vita-eabi-gcc -g -mtune=cortex-a9 -mfpu=neon -Ofast -Wl,-q -Wfatal-errors -fsigned-char -flto -fno-short-enums -Iengine -Iengine/common -Icommon -Iengine/server -Iengine/client -Iengine/client/vgui -Ipm_shared -DXASH_STATIC -DXASH_SINGLE_BINARY -DXASH_BUILD_COMMIT="\"bb62177\""   -c -o engine/platform/vita/vid_vita.o engine/platform/vita/vid_vita.c
In file included from engine/client/../platform/vita/vid_vita.h:6:0,
                 from engine/client/gl_local.h:26,
                 from engine/platform/vita/vid_vita.c:19:
engine/common/../platform/vita/gl_stubs.h:184:20: error: static declaration of 'glPointSize' follows non-static declaration
 static inline void glPointSize( GLfloat size ) { }
                    ^~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
<builtin>: recipe for target 'engine/platform/vita/vid_vita.o' failed
make: *** [engine/platform/vita/vid_vita.o] Error 1

Don't have much to say about it, I've installed everything needed and compiled vitaGL.

commented

Figured it out, glPointSize and glLineSize were added in vitaGL and thus the definition in stubs of those functions was no longer necessary.

Thanks, fixed in 12f8f22. Had that commit lying around, but haven't pushed it for some reason.