Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 16
Registered: ‎04-28-2013
My Device: PlayBook
My Carrier: none

Why can't the NDK find my include path?

[ Edited ]

On my Windows PC, I created a directory where I keep all my 3rd party libaries (C:\Program Files (x86)\programming libraries)


I'd like to use GLM in my native project so I have an environment variable (GLM_SDK) set to the following path "C:\Program Files (x86)\programming libraries\glm-"


In my Project properties > C/C++ General > Paths and Symbols > Includes > GNU C

I've added: ${GLM_SDK}


When I try to build my project I get the following error:

qcc -o src\Logger.o ..\src\Logger.cpp -V4.6.3,gcc_ntox86_cpp -w1 -IC:/bbndk/target_10_1_0_1020/qnx6/usr/include/freetype2 -IC:/bbndk/target_10_1_0_1020/qnx6/../target-override/usr/include -IC:/Program Files (x86)/programming libraries/glm- -D_FORTIFY_SOURCE=2 -DBLACKBERRY -c -O0 -g
cc1plus: fatal error: "-IC:/Program Files (x86)/programming libraries/glm-": Invalid argument
compilation terminated.
cc: C:/bbndk/host_10_1_0_132/win32/x86/usr/lib/gcc/i486-pc-nto-qnx8.0.0/4.6.3/cc1plus caught signal 1
Build error occurred, build is stopped
Time consumed: 110  ms.  

 How do I fix this problem?


C++, 3D OpenGL and Game Programming video tutorials:
Play my free games:
Zing: http://appworld.blackberry.com/webstore/content/27406036
Jewel Thief: http://appworld.blackberry.com/webstore/content/29105889
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Why can't the NDK find my include path?

Include quotas in your $GLM_SDK