Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Launching binaries of converted QNX C++ project fails: (8 Items)
   
Launching binaries of converted QNX C++ project fails  
Using the same set of .project, .cproject and .cdtproject does work with this version of the IDE 4.5:

!SESSION 2008-10-07 10:55:46.152 -----------------------------------------------
eclipse.buildId=I20080717
java.version=1.6.0_07
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Command-line arguments:  -os win32 -ws win32 -arch x86


whereas the newer build fails:

!SESSION 2008-10-07 10:44:47.741 -----------------------------------------------
eclipse.buildId=I20080915
java.version=1.6.0_07
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Command-line arguments:  -os win32 -ws win32 -arch x86 -data D:\workspace-tau


I've tried to ways to start the binary. The first try is to start it from the context menu of the Binary in the C++ 
project view. This lead to this error message in the .log:

!ENTRY com.qnx.tools.ide.qde.debug.core 4 102 2008-10-07 10:46:51.130
!MESSAGE C Project not specified
!SUBENTRY 1 com.qnx.tools.ide.qde.debug.core 4 102 2008-10-07 10:46:51.130
!MESSAGE 

Using the Run dialog I get these log messages:

!ENTRY org.eclipse.core.jobs 4 2 2008-10-07 10:48:13.205
!MESSAGE An internal error occurred during: "Launching binname targetname".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.cdt.launch.AbstractCLaunchDelegate.setBuildConfiguration(AbstractCLaunchDelegate.java:565)
	at org.eclipse.cdt.launch.AbstractCLaunchDelegate.buildForLaunch(AbstractCLaunchDelegate.java:541)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:732)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:608)
	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:899)
	at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:1102)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)



I'll attach the project files as a ZIP, because I'm not able to attach more than a single file. (The C++ program itself 
does only call crypt() and print the result to cout.)



Attachment: Compressed file project_files.zip 1.84 KB
Re: Launching binaries of converted QNX C++ project fails  
We had recently fixed a bug regarding the "C Project not specified" error when you run using the binary shortcut. This 
will be in the upcoming Momentics SDP 6.4.0 release.

The workaround is to open the Run dialog, manually specify the C project and the binary to run. I try and it works for 
me.
Re: Launching binaries of converted QNX C++ project fails  
Thank you for your answer.

> We had recently fixed a bug regarding the "C Project not specified" error when
>  you run using the binary shortcut. This will be in the upcoming Momentics SDP
>  6.4.0 release.
>
> The workaround is to open the Run dialog, manually specify the C project and 
> the binary to run. I try and it works for me.

But this workaround does not help in my case. I have already read the thread mentioning the way using the Run dialog. 
But this does not help in my case 8-(

I have written in my initial post that I have already tried using the Run dialog. This leads only to another error 
message.

Re: Launching binaries of converted QNX C++ project fails  
Can you use your new version of the IDE, create a brand new QNX CPP project, copy your original source code to the new 
project, build it and launch it using the dialog?

I suspect your original project might be corrupted.
Re: Launching binaries of converted QNX C++ project fails  
yes, you are right. It does work using the Run dialog with a fresh set of the files .project and .cproject.

This behavior is not related to a single project on my system. The project files are converted automatically from the 
IDE. I suppose that other customers migrating from the old IDE 4.0 to the new IDE 4.5 may suffer from the same problems,
 too.

It seems to me that the problematic change was introduced between the eclipse.buildId=I20080717 
and the 
eclipse.buildId=I20080915

I have attached the new working project files, too. The set of differences looks rather small to me.

I'm willing to do further tests to track the problem down.

Attachment: Compressed file new_project_files.zip 1.17 KB
Re: Launching binaries of converted QNX C++ project fails  
It is enough to replace the .cproject file und let the .project file untouched.
Re: Launching binaries of converted QNX C++ project fails  
Thank you. We will do testing here to confirm if this is a bug and will fix it asap.
Re: Launching binaries of converted QNX C++ project fails  
I can't re-produce your problem. I create a clean QNX CPP project in IDE 401 and use it in the IDE4.5 0915 build. It 
converted, built and launched fine for me.

Can you attach your original non-converted project? I have to try using your original project.