[SOLVED] Blackberry GamePlay Sample games

Problems building or running the engine, queries about how to use features etc.

[SOLVED] Blackberry GamePlay Sample games

Postby blubee » Wed Dec 12, 2012 10:18 am

Hi guys

I downloaded the blackberry GamePlay SDK with :
git clone https://github.com/blackberry/GamePlay.git

Then I imported all the samples into my QNX IDE, the gold version. I didn't try this with the previous versions.
I highlight all the projects and right click and build.

I get this result: Image
the actual url if the image link is broken is : http://screencloud.net/v/2lw

if I try to deploy the apps that don't have errors I get no binaries error.

I hope that you guys can help me building these building errors.
Last edited by blubee on Thu Dec 13, 2012 2:47 pm, edited 1 time in total.
blubee
 
Posts: 19
Joined: Wed Dec 12, 2012 10:17 am

Re: Blackberry GamePlay Sample games

Postby dgough » Wed Dec 12, 2012 5:14 pm

Which OS are you using?

I tried the latest gold version of the QNX IDE for PlayBook (BlackBerry Native SDK 2.1) on Windows 7. I didn't have any problems running the samples.
User avatar
dgough
 
Posts: 214
Joined: Fri Jul 27, 2012 2:11 pm

Re: Blackberry GamePlay Sample games

Postby blubee » Wed Dec 12, 2012 9:59 pm

hi dgough

Edit:
I am running xubuntu linux 12.04

It's not running the samples but just getting them to build properly. I cloned the git repository to a drive /home/blubee/GamePlay

Then I opened up QNX Ide and imported all the sample apps to my workspace. (I checked copy projects to workspace)

Then I highlight all the project and press build.
I get these errors :

Code: Select all
Description   Resource   Path   Location   Type
make: *** [src/Audio3DTest.o] Error 1   gameplay-tests          C/C++ Problem
make: *** [src/LuaGame.o] Error 1   sample05-lua          C/C++ Problem
make: *** [src/ParticlesGame.o] Error 1   sample04-particles          C/C++ Problem
make: *** [src/RacerGame.o] Error 1   sample06-racer          C/C++ Problem


about 100 warnings about "Attribute id is depreciated please remove"
and 58 infos that says "I Derived asset "gameplay-tests" is not yet built.

I also tried to import the projects into my QNX workspace *without copying the files to my workspace but I get the same errors.

The projects gameplay-tests, sample04-particles, sample05-lua, sample06-racer all have a little red (x) on their project name.

What are the steps that I should take to properly build the projects.
blubee
 
Posts: 19
Joined: Wed Dec 12, 2012 10:17 am

Re: Blackberry GamePlay Sample games

Postby blubee » Wed Dec 12, 2012 10:26 pm

blubee wrote:hi dgough

Edit:
I am running xubuntu linux 12.04
gold bbndk is installed in /home/blubee/bbndk

It's not running the samples but just getting them to build properly. I cloned the git repository to a drive /home/blubee/GamePlay

Then I opened up QNX Ide and imported all the sample apps to my workspace. (I checked copy projects to workspace)

Then I highlight all the project and press build.
I get these errors :

Code: Select all
Description   Resource   Path   Location   Type
make: *** [src/Audio3DTest.o] Error 1   gameplay-tests          C/C++ Problem
make: *** [src/LuaGame.o] Error 1   sample05-lua          C/C++ Problem
make: *** [src/ParticlesGame.o] Error 1   sample04-particles          C/C++ Problem
make: *** [src/RacerGame.o] Error 1   sample06-racer          C/C++ Problem


about 100 warnings about "Attribute id is depreciated please remove"
and 58 infos that says "I Derived asset "gameplay-tests" is not yet built.

I also tried to import the projects into my QNX workspace *without copying the files to my workspace but I get the same errors.

The projects gameplay-tests, sample04-particles, sample05-lua, sample06-racer all have a little red (x) on their project name.

What are the steps that I should take to properly build the projects.
blubee
 
Posts: 19
Joined: Wed Dec 12, 2012 10:17 am

Re: Blackberry GamePlay Sample games

Postby blubee » Thu Dec 13, 2012 2:33 am

I'm sorry for posting so many times but I have made an update but still unable to run the projects.

I went into the GamePlay folder, went to GamePlay/cmake/
Then I ran cmake ..
Then make

There was a lot of building objects, the copying, example
Code: Select all
[ 93%] Building CXX object gameplay-tests/CMakeFiles/gameplay-tests.dir/src/MeshPrimitiveTest.cpp.o
[ 93%] Building CXX object gameplay-tests/CMakeFiles/gameplay-tests.dir/src/PhysicsSceneTest.cpp.o
[ 93%] Building CXX object gameplay-tests/CMakeFiles/gameplay-tests.dir/src/SpriteBatchTest.cpp.o
[ 93%] Building CXX object gameplay-tests/CMakeFiles/gameplay-tests.dir/src/TextTest.cpp.o
[ 93%] Building CXX object gameplay-tests/CMakeFiles/gameplay-tests.dir/src/TextureTest.cpp.o
[ 93%] Building CXX object gameplay-tests/CMakeFiles/gameplay-tests.dir/src/TriangleTest.cpp.o
Linking CXX executable gameplay-tests
[ 93%] Built target gameplay-tests
Scanning dependencies of target gameplay-tests_EXTRA_RES
[ 93%] Copy res/logo_powered_white.png
[ 93%] Copy res/shaders/colored.frag
[ 93%] Copy res/shaders/textured-bumped.frag
[ 93%] Copy res/shaders/textured-unlit.vert


After that I though I was successful but I imported the projects once again into QNX Ide (without selecting copy files to workspace)

I tried to build the projects but the same errors show up again.

Code: Select all
Description   Resource   Path   Location   Type
make: *** [src/RacerGame.o] Error 1   sample06-racer          C/C++ Problem
make: *** [src/ParticlesGame.o] Error 1   sample04-particles          C/C++ Problem
make: *** [src/LuaGame.o] Error 1   sample05-lua          C/C++ Problem
make: *** [src/Audio3DTest.o] Error 1   gameplay-tests          C/C++ Problem

//example of some of the warnings, i have 94 in total
Description   Resource   Path   Location   Type
Invalid project path: Include path not found (external-deps/oggvorbis/include).   gameplay-tests      pathentry   Path Entry Problem
Invalid project path: Include path not found (external-deps/oggvorbis/include).   sample00-mesh      pathentry   Path Entry Problem

//example of some of the info's, i have 58 in total
Description   Resource   Path   Location   Type
Invalid project path: Include path not found (external-deps/oggvorbis/include).   gameplay-tests      pathentry   Path Entry Problem
Invalid project path: Include path not found (external-deps/oggvorbis/include).   sample00-mesh      pathentry   Path Entry Problem


I am on xubuntu 12.10
I have the gold version of QNX Ide installed in
/home/blubee/bbndk

here's a screenshot : http://screencloud.net/v/wvls

!Edit
I was reading around this forum and it seems that I need linux 64 but, even though this machine only has 1GB I will download the new 64 bit, reinstall and try again. I really hope this works.
blubee
 
Posts: 19
Joined: Wed Dec 12, 2012 10:17 am

Re: [SOLVED] Blackberry GamePlay Sample games

Postby blubee » Thu Dec 13, 2012 2:57 pm

OK, so it seems the problem was that I was using xubuntu 32 bit while the project is built for 64 bit linux.

If your having build issues on linux make sure your using a 64 bit version of your linux disto.

A quick tutorial, Make sure you install "git", also make sure you have the ubuntu dev tools, type : sudo apt-get install build-essential gcc cmake libglu1-mesa-dev libogg-dev libopenal-dev

then on your terminal type:

git clone https://github.com/blackberry/GamePlay.git
cd GamePlay
cmake .
make

wait a bit
Open up QNX then
click file, import (under general->existing projects into workspace)
press next, browse to the "GamePlay" folder
make sure (Copy projects into workspace is NOT checked)
click finish.

Right click on gamplay, build project.
It will take a bit to build but then you can go through and build the projects and test them.

***you might run into a security error to make your builds fail, if you do. Right click on the project or press (alt + enter) on linux.

under C/C++ build -> Settings
look for output control, uncheck Enhanced security check (-fstack-protector-strong)
===== I'd like some feedback on that above statement what exactly is -fstack-protector-strong, can disabling it have negative consequences?

build and launch.
blubee
 
Posts: 19
Joined: Wed Dec 12, 2012 10:17 am


Return to Help

Who is online

Users browsing this forum: No registered users and 2 guests