Welcome!

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

Reply
Contributor
A7omic
Posts: 48
Registered: ‎11-03-2011
My Device: Playbook
My Carrier: None

Need help with compile error: 1/platform.h: No such file or directory

I am working on a new project and I am getting the following error when I compile:

 

In file included from C:/bbndk-1.0/target/qnx6/usr/include/stdio.h:30,
 from ..\src\/common.h:30,
from ..\src\pad.cpp:21:
C:/bbndk-1.0/target/qnx6/usr/include/sys/platform.h:93:39: error: 1/platform.h: No such file or directory

cc: C:/bbndk-1.0/host/win32/x86/usr/lib/gcc/arm-unknown-nto-qnx6.5.0eabi/4.4.2/cc1plus caught signal 1

Build error occurred, build is stopped

 

This comes from line 93 in platform.h which is the #include line below:

 

#if defined(__QNXNTO__)
#include _NTO_CPU_HDR_(platform.h)

 

Does anyone know why I might be getting this and even better know how I can resolve it?

 

Thx. 

Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Need help with compile error: 1/platform.h: No such file or directory

Try to define __ARM__ (if you are compiling for PB not for Simulator) in Project's properties->C/C++ Build->Settings->QCC Compiler->Defines (-D) section.

Please use plain text.
Contributor
A7omic
Posts: 48
Registered: ‎11-03-2011
My Device: Playbook
My Carrier: None

Re: Need help with compile error: 1/platform.h: No such file or directory

No this makes no difference.

Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Need help with compile error: 1/platform.h: No such file or directory

can you post what you have in "All options" in Project's properties->C/C++ Build->Settings->QCC Compiler

Please use plain text.
Contributor
A7omic
Posts: 48
Registered: ‎11-03-2011
My Device: Playbook
My Carrier: None

Re: Need help with compile error: 1/platform.h: No such file or directory

-V4.4.2,gcc_ntoarmv7le_cpp -w1 -IC:/bbndk-1.0/target/qnx6/usr/include/freetype2 -IC:/bbndk-1.0/target/qnx6/../target-override/usr/include -D_FORTIFY_SOURCE=2 -D__PLAYBOOK__=1 -DINLINE=inline -Dspu_franxis -Darm -Dgte_new -Dgpu_unai -Dinterpreter_new -D__QNXNTO__ -DPSXREC -D__ARM__ -c -g

 

 

Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Need help with compile error: 1/platform.h: No such file or directory

Where does this definition __QNXNTO__ come from? Did you specifically put that or your project came with it? How did you create your project? I don't have this for my test projects. Anyway try to remove it (and __ARM__ proposed earlier) and don't forget to put it back if it does not help -)

Please use plain text.
Contributor
A7omic
Posts: 48
Registered: ‎11-03-2011
My Device: Playbook
My Carrier: None

Re: Need help with compile error: 1/platform.h: No such file or directory

Ya that was added to try and resolve the issue, it is not the cause.

Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Need help with compile error: 1/platform.h: No such file or directory

It looks like it caused the issue -)

Anyway I don't have simple answer for you but looks like something is wrong with you environment set up for this project. 

Please use plain text.