turbulenz / turbulenz_engine

Turbulenz is a modular 3D and 2D game framework for making HTML5 powered games for browsers, desktops and mobile devices.

Home Page:http://turbulenz.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building tools from manage.py failing on OSX

SenshiSentou opened this issue · comments

Hey there!

I figured I'd give your engine a try (it looks great!), but got stuck at building the tools nescesary for the first 3D example. From the turbulenz_engine root and in my env I run "$ python2.7 manage.py tools" and get the following output:

Creating: /Applications/XAMPP/xamppfiles/htdocs/SpaceVoxels/turbulenz_engine/tools/bin/macosx
Executing: make
make -C NvTriStrip/
make -C NvTriStrip
make[2]: Nothing to be done for all'. make -C NvTriStripper make[2]: Nothing to be done forall'.
make -C cgfx2json/
g++ -c -I../common -I../../external/boost/1.43/include -O2 -c cgfx2json.cpp -o obj/release/cgfx2json.o
In file included from cgfx2json.cpp:3:
stdafx.h:40:19: error: Cg/cg.h: No such file or directory
stdafx.h:41:21: error: Cg/cgGL.h: No such file or directory
cgfx2json.cpp:46: error: ‘CGcontext’ does not name a type
cgfx2json.cpp:52: error: variable or field ‘CgErrorHandler’ declared void
cgfx2json.cpp:52: error: ‘CGcontext’ was not declared in this scope
cgfx2json.cpp:52: error: ‘CGerror’ was not declared in this scope
cgfx2json.cpp:52: error: expected primary-expression before ‘void’
make[1]: *** [obj/release/cgfx2json.o] Error 1
make: *** [cgfx2json/] Error 2

[ERROR] - Command 'make' returned non-zero exit status 2

Any help would be much appreciated!

Cheers,
Patrick

Just quickly check two common errors:

  1. Have you activated the environment using 'source env\bin\activate' (You should see an '(env)' at the start of your prompt)?

  2. Have you installed the Cg toolkit as part of the prerequisites? https://github.com/turbulenz/turbulenz_engine#pre-requisites

Note: once you have the env activated you should be able to call 'python' instead of 'python27' and it should use the one you setup with the environment. To check your env has the correct python you should run 'python' and type:

import sys
sys.executable

This should be something like: /Applications/XAMPP/xamppfiles/htdocs/SpaceVoxels/turbulenz_engine/env/bin/python

D'ow, now I feel stupid, I had missed the CgToolkit prerequisite. In my defense though, the wording seems to imply it's included with the download: "NVIDIA CgToolkit version 3.1 or higher. This is included in the repository for Windows, for Mac OSX and Linux please download and install it."

Anyway, thanks for your help!

We've updated the docs to try and be a bit clearer that linux and osx require the download so I'll close this issue.