Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Several questions about Momentics v4.6: (13 Items)
   
Several questions about Momentics v4.6  
Hi all,

we are about switching to development under Windows with Momentics 4.6


1)
I have figured out that it isn't possible to store a project on a drive != the drive where the Momentics is stored (i.e.
 QNX on drive c: and the project-source son drive d:).

The Application builder dies with "command approto [...] died".

A similar problem occurs when trying to build the project: 
The makefile says "C:\QNX641\host\win32\x86\usr\bin\ntox86-ld: warning: libimg.so.1, needed by C:/QNX641/target/qnx6/x86
/usr/lib/libphexlib.so, not found (try using -rpath or -rpath-link)
C:\QNX641\host\win32\x86\usr\bin\ntox86-ld: warning: libfont.so.1, needed by C:/QNX641/target/qnx6/x86/usr/lib/libph.so,
 not found (try using -rpath or -rpath-link)
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfSetRenderingDPICx'
C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfDetachCx'
[...]".

When the same project is stored on c:, it can be built.

Is this a (known) bug or just something wrong with my installation? (I am pretty sure it isn't the installation because 
I have re-installed it several times).

2)
In every source-file the inclusions of the header files can't be resolved ("Unresolved inclusion"). I have read that a "
Full Indexer" run might solve this, but it doesn't.

3)
How do I generate Doxygen documentation? I have installed eclox and have set up a doxyfile, but the entry "Build 
documentation" in the context-menu (no matter if I right-click on the project or the doxyfile within the project) is 
disabled.


Thanks for helping with the first steps (I am nearly sure that will be more questions later on ;),

Christian

Re: Several questions about Momentics v4.6  
Christian Reinecke wrote:
> Hi all,
> 
> we are about switching to development under Windows with Momentics 4.6
> 
> 
> 1)
> I have figured out that it isn't possible to store a project on a drive != the drive where the Momentics is stored (i.
e. QNX on drive c: and the project-source son drive d:).
> 
> The Application builder dies with "command approto [...] died".
> 
> A similar problem occurs when trying to build the project: 
> The makefile says "C:\QNX641\host\win32\x86\usr\bin\ntox86-ld: warning: libimg.so.1, needed by C:/QNX641/target/qnx6/
x86/usr/lib/libphexlib.so, not found (try using -rpath or -rpath-link)
> C:\QNX641\host\win32\x86\usr\bin\ntox86-ld: warning: libfont.so.1, needed by C:/QNX641/target/qnx6/x86/usr/lib/libph.
so, not found (try using -rpath or -rpath-link)
> C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfSetRenderingDPICx'
> C:/QNX641/target/qnx6/x86/usr/lib/libph.so: undefined reference to `PfDetachCx'
> [...]".
> 
> When the same project is stored on c:, it can be built.
> 
> Is this a (known) bug or just something wrong with my installation? (I am pretty sure it isn't the installation 
because I have re-installed it several times).

This looks like a known linker issue. Please try the attached 
ntox86-ld.exe by copying it into C:\QNX641\host\win32\x86\usr\bin

Regards,

Ryan Mansfield
Attachment: Compressed file ntox86-ld.zip 345.65 KB
Re: Several questions about Momentics v4.6  
For your No.2 issue:
2)
In every source-file the inclusions of the header files can't be resolved ("Unresolved inclusion"). I have read that a "
Full Indexer" run might solve this, but it doesn't.

You need to make sure you have defined the include paths correctly to where your header files are.

Under the "Project Explorer" view or "C/C++ Projects" view, you should see a meta-folder called "includes". Under this 
meta-folder there are paths to the headers files. Usually when your create your project, you have one pre-define include
 path to your "${QNX_TARGET}/usr/include" where the QNX system header files are. If you don't see this path then there 
is something wrong in your Momentics installation.

For your user-level header files, you need to add them to the include paths:

- For QNX project, go to Project Properties -> QNX C/C++ Project -> Compiler -> Extra Include Paths
- For Managed C/C++ project, go to Project Properties -> C/C++ General -> Path and Symbols -> Includes.
Re: Several questions about Momentics v4.6  
On Tue, Jan 12, 2010 at 11:50 PM, Christian Reinecke <community-noreply@qnx.com> wrote:

    Hi all,

    we are about switching to development under Windows with Momentics 4.6


    1)
    I have figured out that it isn't possible to store a project on a drive != the drive where the Momentics is stored 
(i.e. QNX on drive c: and the project-source son drive d:).

    The Application builder dies with "command approto [...] died".


Never been a fan of that utility.  When we moved to Windows based building we created our own command to create 
prototypes (wrapped the gcc ability).

    3)
    How do I generate Doxygen documentation? I have installed eclox and have set up a doxyfile, but the entry "Build 
documentation" in the context-menu (no matter if I right-click on the project or the doxyfile within the project) is 
disabled.


We use this all the time with Momentics.  Make sure you have doxygen installed and the Windows->Preferences->Doxygen 
settings are correct (select the doxygen install you are using).  If that doesn't help, let me know and I can see if we 
have anything else "interesting" in our setup.

Rick.. 
Re: Several questions about Momentics v4.6  
Thanks Ryan, your linker solves the problem when compiling a binary, but it doesn't affected the AppBuilder thing. So I 
still need to store my projects (because they contain AppBuilder files) on drive c:.

I still get the "unresolved inclusion" warning. In my QNX C project, I added the additional header files to the "extra 
include paths" in the project properties ( I think otherwise I wouldn't be able to compile). But the Index still isn't 
able to resolve the inclusions. 


Doxygen issue: I didn't know that the doxyfile MUST be named "Doxyfile". After renaming it works fine.


Christian
Re: Several questions about Momentics v4.6  
Hi, Christian,    :-)

Are you saying that with your include path settings the project now
compiles but the editor shows unresolved inclusions?

Are the includes located in the Momentics SDP target, in another project
in your workspace, or somewhere else in the file system?  Are there any
unusual characters in this include path?  (for example, spaces, commas,
quotation marks)

Do you have other includes that work as expected?  How do they compare?

Cheers,

Christian



On Thu, 2010-01-14 at 01:59 -0500, Christian Reinecke wrote:

> Thanks Ryan, your linker solves the problem when compiling a binary, but it doesn't affected the AppBuilder thing. So 
I still need to store my projects (because they contain AppBuilder files) on drive c:.
> 
> I still get the "unresolved inclusion" warning. In my QNX C project, I added the additional header files to the "extra
 include paths" in the project properties ( I think otherwise I wouldn't be able to compile). But the Index still isn't 
able to resolve the inclusions. 
> 
> 
> Doxygen issue: I didn't know that the doxyfile MUST be named "Doxyfile". After renaming it works fine.
> 
> 
> Christian
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post45217
> 


Re: Several questions about Momentics v4.6  
> Hi, Christian,    :-)
> 
> Are you saying that with your include path settings the project now
> compiles but the editor shows unresolved inclusions?

That is what I meant :)

> 
> Are the includes located in the Momentics SDP target, in another project
> in your workspace, or somewhere else in the file system?  Are there any
> unusual characters in this include path?  (for example, spaces, commas,
> quotation marks)

The includes are in the same workspace (but another project!) , "../../ipc/include". They don't contain any unusual 
characters.

> 
> Do you have other includes that work as expected?  How do they compare?
> 

I have also been trying to include other files; but it is the same there. I can compile without problems, but the 
Indexer/resolver fails. The whole workspace is stored on the same drive (c:) as the qnx sdp (I don't know if that is 
important).


I figured out yesterday that the Indexer works fine if I also check the "Debug Variant" and set the "This variants 
symbol will be used"-Setting in the Build-Variants-Tab to Debug-Variant.

That is a bit strange, because it doesn't work when I uncheck the Debug-Variant.
Does that mean I always need to build the Debug-Variant too?

Christian
RE: Several questions about Momentics v4.6  
Christian R, would you be able to export your project with sample source files having this include issue? Please export 
to a zip file and attach to this post. We have to see what the project setup looks like to debug the problem.

No, you don't need to build the debug variant in order to have indexer resolve include paths.


Thanks,
Andy

-----Original Message-----
From: Christian Reinecke [mailto:community-noreply@qnx.com]
Sent: Tue 19/01/2010 4:28 AM
To: general-ide
Subject: Re: Several questions about Momentics v4.6
 
> Hi, Christian,    :-)
> 
> Are you saying that with your include path settings the project now
> compiles but the editor shows unresolved inclusions?

That is what I meant :)

> 
> Are the includes located in the Momentics SDP target, in another project
> in your workspace, or somewhere else in the file system?  Are there any
> unusual characters in this include path?  (for example, spaces, commas,
> quotation marks)

The includes are in the same workspace (but another project!) , "../../ipc/include". They don't contain any unusual 
characters.

> 
> Do you have other includes that work as expected?  How do they compare?
> 

I have also been trying to include other files; but it is the same there. I can compile without problems, but the 
Indexer/resolver fails. The whole workspace is stored on the same drive (c:) as the qnx sdp (I don't know if that is 
important).


I figured out yesterday that the Indexer works fine if I also check the "Debug Variant" and set the "This variants 
symbol will be used"-Setting in the Build-Variants-Tab to Debug-Variant.

That is a bit strange, because it doesn't work when I uncheck the Debug-Variant.
Does that mean I always need to build the Debug-Variant too?

Christian



_______________________________________________

General
http://community.qnx.com/sf/go/post45450


Attachment: Text winmail.dat 3.38 KB
Re: RE: Several questions about Momentics v4.6  
Hi,

I have created a small sample project.
While creating I realized that not only in include_test the Inclusions couldn't be resolved but already in the lib_test.


That is quite strange, because in a real project (which I can't share of course) only the Includes from the Library 
(which is another project) fail.

So when (un)checking Debug variant (and changing the Indexer-option for the Buidl-Variants)  in lib_test, you should be 
able to see my problem. If not, maybe something with my IDE (a global parameter maybe) is wrong, but I tried the Indexer
 settings under Under->Preferences which didn't help me.

I am using IDE 4.6.0 (if I didn't tell already).

Thanks for support,
Christian
Attachment: Compressed file include_issue.zip 12.99 KB
Re: RE: Several questions about Momentics v4.6  
Edit:

I have played around a little further and found out:

Coming back to the lib_test example, if the header file lay in the same directory as the source, the Indexer works 
correctly.
But when the header to be included is stored in a subdirectory, the Indexer fails. Using the Debug Variant avoids this.
Re: RE: Several questions about Momentics v4.6  
Edit No.2:

I've tested this in the IDE 4.0.1 now too, and it works fine there.
Re: RE: Several questions about Momentics v4.6  
Hi, Christian,

A few of us here have tried to reproduce your problem, but without
success.  We see no include resolution problems in the projects that you
supplied.

Probably this is because importing them into a new workspace starts from
a clean slate.  I suspect that some project meta-data in your workspace
has gotten confused.

You can clean out the workspace meta-data by deleting your projects in
your workspace (don't accept the option to delete the contents from
disk!) and then using the "Existing Projects into Workspace" import
wizard to restore the projects from their on-disk state.  Be aware,
though, that many project options (dependency checking, build variant
selection, etc.) are stored by default in the project meta-data, so you
may lose those settings.  I see that your exported example projects used
the "Share all project properties" option, so if your original projects
do that, then you should be OK.

Of course, you might want to make a back-up before attempting any of
this!  :-)

HTH,

Christian


On Tue, 2010-01-19 at 09:14 -0500, Christian Reinecke wrote:

> Hi,
> 
> I have created a small sample project.
> While creating I realized that not only in include_test the Inclusions couldn't be resolved but already in the 
lib_test.
> 
> That is quite strange, because in a real project (which I can't share of course) only the Includes from the Library 
(which is another project) fail.
> 
> So when (un)checking Debug variant (and changing the Indexer-option for the Buidl-Variants)  in lib_test, you should 
be able to see my problem. If not, maybe something with my IDE (a global parameter maybe) is wrong, but I tried the 
Indexer settings under Under->Preferences which didn't help me.
> 
> I am using IDE 4.6.0 (if I didn't tell already).
> 
> Thanks for support,
> Christian
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post45473


________________________________________________________________________

Christian W. Damus
Software Developer, IDE Team
QNX Software Systems
Re: Several questions about Momentics v4.6  
i meet same question, if the Photon project's source code  is not same as the IDE installed driver partition,  When i do
 generate UI in Phab development environment , the error report "command approto -p *.c *.cc  *.cpp >proto.h  died(127)"
, so why happened  this and how to solve it?  thanks.