Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315014

Summary: PDE Product Export produces broken OSX app
Product: [Eclipse Project] PDE Reporter: Martin Lippert <mlippert>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: aniefer, javier.barreiro
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Martin Lippert CLA 2010-05-30 14:59:18 EDT
I am using the PDE product export wizard from the product definition editor to produce builds of an Eclipse-based app. Unfortunately the final build for mac os x cocoa-64 doesn't look very good. The product zip file is produced nicely, but the app fails to open when clicking on the generated native launcher. This works nicely in 3.6m6, but fails from 3.6m7 until 3.6rc3. Interestingly the app icon for the native launcher is missing as well.
Comment 1 Martin Lippert CLA 2010-05-30 15:03:38 EDT
To be more exact on this: The generated app is missing the pinfo file and the unix executable.
Comment 2 Andrew Niefer CLA 2010-05-31 11:31:01 EDT
Do you have the deltapack in your target? (or more specifically, org.eclipse.equinox.executable?)

Are you exporting with "Generate metadata repository" turned on?

My first thought is that perhaps the director install which happens at the end of a p2 export is encountering a problem and the error is not getting reported in the UI.  This would result in a incomplete product (ie missing the executable).

If you are exporting with metadata, one way to check this would be to do a manual install using the resulting repository. This can be done using the p2 director application on the command line:
eclipse
   -application org.eclipse.equinox.p2.director
   -repository file:/exported/repository
   -installIU com.your.product.id
   -profile Profile
   -profileProperties org.eclipse.update.install.features=true
   -destination /tmp/eclipse/
   -bundlepool /tmp/eclipse/
   -p2.os macosx
   -p2.ws cocoa
   -p2.arch x86_64
   -roaming
Comment 3 Martin Lippert CLA 2010-05-31 11:39:07 EDT
I have the delta pack installed, including the feature org.eclipse.equinox.executable. And I am *not* generating a metadata repository (don't need a repo at the moment).
Comment 4 Andrew Niefer CLA 2010-05-31 12:20:09 EDT
I have not been able to reproduce this on macosx.cocoa.x86
Would it be possible to attach a sample project that causes this?

I tried the hello world rcp app, based on both plugins and features.  Export works for the default platform (x86, not selecting multiple platforms).  When I select Export for multiple platforms and include x86_64, that seems to work as well (though I can run it because this isn't a 64 bit machine, all the files are there as expected).

I added the deltapack to my target by editing the "Running Platform (Active)" and adding the folder where I extracted the deltapack (separate from my install).
Comment 5 Martin Lippert CLA 2010-05-31 16:40:44 EDT
Och, seems to be the typical "stupid-user" problem ;-)

I need to check "include native launcher artifacts" at the product configuration editor. Seems like this is new or Eclipse lost this setting when switching between the different versions. Nevertheless, works now fine! Sorry for the trouble!!!
Comment 6 Andrew Niefer CLA 2010-05-31 17:40:06 EDT
See bug 291507, that option never actually worked before.  That bug is now fixed, so it could be you've had the box unchecked and it just never actually affected anything before?
Comment 7 Martin Lippert CLA 2010-06-01 15:29:34 EDT
Yepp, sounds exactly what I experienced. Thanks a lot for your help and time!!!
Comment 8 javier.barreiro CLA 2010-09-03 20:47:18 EDT
(In reply to comment #6)
> See bug 291507, that option never actually worked before.  That bug is now
> fixed, so it could be you've had the box unchecked and it just never actually
> affected anything before?

I was experiencing this problem, after reading this tkt I checked the box and it started working fine from the IDE.  
However, when I run a headless build using the same product file and the scripts in org.eclipse.pde.build, I still get the same problem (no executable). 
My headless build worked fine with 3.5.2 and now I'm trying to update to 3.6. Is there anything else that needs to be set for a headless build?

thanks!