Release test this game?


slenkar

Member
Joined
Jan 15, 2012
Messages
64
I made a test game with the cross compiler

here is the download

http://www.mediafire.com/?i2vzne4em73wuo8

To start it, put the .so files in your /lib folder

then click on 'main'

or go into a bash shell and type in ./main to see if there are any error messages

 

 

does anyone have tips on how to turn it into a PND
 
Last edited by a moderator:
Make a directory, put the binaries and the libs in it, make a start script that sets LD_LIBRARY_PATH=./:$LD_LIBRARY_PATH before calling the binary, add an icon, a screenshot, and a PXML file with the metadata, and then run /usr/pandora/scripts/pnd_make.sh to put it all in a PND.
 
ah yes i opened a PND with 7z so now I see how it goes,

did the executable work?
 
Just tested the main on root dir (not in bounce dir...i think this is the same)

Need 2 additional libs to start

libGL.so.1

libXxf86vm.so.1

i created this runme.sh file


#!/bin/bash

export LD_LIBRARY_PATH=.

./main

the main start but after create a window (640x480 i think) it give me an error on terminal

Monkey Runtime Error : Memory access violation
/root/Dropbox/Monkey/modules/mojo/app.monkey<35>

{{~~/root/Dropbox/Monkey/modules/mojo/app.monkey<35>~~}}
+GameDelegate.StartGame;/root/Dropbox/Monkey/modules/mojo/app.monkey<35>
Self:GameDelegate=@15e550
 
Oops sorry

i have used the libGL from lunixbochs experiments ...

with the libGL.so.1 from ptitSeb Codeblocks toolchain it didn't create a window

and on terminal i have

glfwCreateWindow failed
 
thanks for testin

not sure how to fix this
 
Last edited by a moderator:
Try to recompile with this modified makefile:

CC=/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gcc
CFLAGS=

CXX=/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-g++
CXXFLAGS=

CPPFLAGS=$(CCOPTS) -I../glfw/include -I../glfw/lib -I../glfw/lib/x11 -I../openal/include -I../stb -I ../

LD=/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-g++
LDFLAGS=
LDLIBS= -lGLES_CM -lglfw -lX11 -lXrandr -lXxf86vm -lEGL -lopenal



OBJS=../stb/stb_image.o ../stb/stb_vorbis.o ../main.o


main :$(OBJS)
    $(LD) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
i have erased the link with -lGL and the include -I../GL
 
I bet glfw is not compiled to support gles here...


Edit, also, he shouldn't have the right includes in the code to use gles libs and most probably no gles compatible code at all.
 
Last edited by a moderator:
You might want some


#ifdef PANDORA


#define GL/gl.h GLES/gl.h


#endif


in the files or headers.
 
Im using GLES commands in the source, cos Im using the GLES2 export in Monkey

www.monkeycoder.co.nz

I think its because someone compiled GLFW for me but I didnt tell them to enable GLES...

I cant compile it myself, it only compiles on pandora for some reason

Could someone compile it for me on a pandora please?

https://github.com/tluyben/GLFW-3-Monkey-target

scroll down to where it says

Download https://github.com/elmindreda/glfw

and follow the instructions to compile glfw
 
Last edited by a moderator:
Back
Top