0

I have installed qnx660 in Ubuntu 14.04.

1-I have created a test project hello world for application.In Build variant option i have selected x86 variant. While building the project there is no error message in the console. After building the project in side the work space for x86 its creating both o and o-g folder. But when trying to run project as C/C++ QNX Application some error like "must select a target". So please suggest me how to resolve this issue.

2- I have created two project one for application and second for shared library. From application i want to access API which have to define in the library. But i am not able to write anything because there is no .c file to write. In library project only Makefile and comman.mk is available. So please help me to solve the issue.

Deepak Singh
  • 1,079
  • 2
  • 11
  • 15

1 Answers1

1

Right click on your project.....then Properties -> Qnx c/c++ project -> Build variants TAB. You must check platform and build variant (release or debug) . Please, see imageenter image description here

then open Debug Dialog and choose Qnx target. Press bug image and choose "Open Debug Dialog"enter image description here

In the Debug dialog choose Main tab and in the bottom you must choose Qnx Target. I attach screenshot. enter image description here

For your second question.....simply Right click on your progect , then New->Header File (or Source File) enter image description here

Oleg Gopkolov
  • 1,684
  • 10
  • 17
  • Hi Oleg, I have selected build variant and its building without any error. And work space for x86 its creating both o and o-g folder. But when trying to run some error like "must select a target" is coming. S o please help me to resolve the error. – Deepak Singh Oct 02 '15 at 07:04
  • 1
    @DeepakSingh See images. You must choose qnx target. – Oleg Gopkolov Oct 02 '15 at 07:07
  • Hi, Thank you for your reply. In the debug dialog, the main menu below add new target option is there. Its asking host name or IP. But my doubt is i don't have any target board now. So is it possible to run application in the Ubuntu host or its mandatory to provide external target. – Deepak Singh Oct 02 '15 at 07:23
  • 1
    @DeepakSingh In order to run application you must have two machines. One - with Qnx Momentics (your ubuntu machine), second - with installed OS Qnx (Qnx Target). This machines must be in same LAN. – Oleg Gopkolov Oct 02 '15 at 07:33
  • ok. Thank you so much for replying. I will try to get a Qnx target. – Deepak Singh Oct 02 '15 at 07:37
  • Hi thank you for replying second question. Now i am able to create header and source file. But how it will get linked to the application. Because i have created separate project for application and library. – Deepak Singh Oct 02 '15 at 07:37
  • 1
    @DeepakSingh See at my first image............ But instead of "Build Variants" you must go to "Linker" tab, in the Category drop-down list choose "Extra libraries" (if name of your library libfoo.a , then write simply "foo") and in the "Extra library paths" point to proper folder..........................................Choose my answer as most helpful ( push at the checkmark under the score of the answer ) – Oleg Gopkolov Oct 02 '15 at 07:48
  • Thank you for your reply. I will try to make it. – Deepak Singh Oct 02 '15 at 08:09
  • @DeepakSingh `Choose my answer as most helpful ( push at the checkmark under the score of the answer )`.................You know how do it???? – Oleg Gopkolov Oct 02 '15 at 08:49
  • @DeepakSingh When you have upvoted my answer you have pushed "Arrow Up". Moreover you can see "Arrow down"........And just below the "Arrow Down" you can see "V" sign (checkmark). You have to push this sign. – Oleg Gopkolov Oct 02 '15 at 09:40
  • @DeepakSingh Thanks. I've helped to you and in turn you've helped to me. – Oleg Gopkolov Oct 02 '15 at 09:43
  • Because of your help i am able to solve my problem.Thank you so much. – Deepak Singh Oct 02 '15 at 10:06