[MAC OS] Automated building PDE : executable doesn't work [message #542540] |
Fri, 25 June 2010 09:25 |
Batistuta Messages: 4 Registered: June 2010 |
Junior Member |
|
|
Hello everybody,
I created an OSGi project in which one I've 2 projects :
- one plugin project : that contains my source files, my product configuration that uses my feature project and the feature org.eclipse.equinox.p2.ui.user. It means that my program is able to install new software or to update the program.
- one feature project that contains my plugin project.
I can run my program into eclipse, It works. I can export my product configuration from eclipse and then launching my program : it works.
After that, I'd like to build automaticaly my program with the framework PDE of eclipse. I followed this tutorial : http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. pde.doc.user/guide/tasks/pde_product_build.htm . I'm able to generate my program for Windows,Linux and Mac os. The executables of windows and linux work. However, the executable of mac os doesn't work.
When I click on the icon, nothing happens and I've no error. To be able to launch on mac os, I've to replace the file myExecutable.app/Contents/MacOS/eclipse by the one of Eclipse.app/Contents/MacOS/eclipse. It seams that the file "eclipse" of my generated executable is not in the right format.
Do you know what is the reason of this problem? Or maybe if you have a clue for me to solve that.
Thank you very much,
Bat
|
|
|
Re: [MAC OS] Automated building PDE : executable doesn't work [message #542742 is a reply to message #542540] |
Fri, 25 June 2010 18:29 |
Andrew Niefer Messages: 990 Registered: July 2009 |
Senior Member |
|
|
What exactly do you mean by wrong format?
What do you see if you do "file eclipse"?
> file eclipse
eclipse: Mach-O universal binary with 2 architectures
eclipse (for architecture i386): Mach-O executable i386
eclipse (for architecture ppc): Mach-O executable ppc
Could this just be a permissions problem? Does "chmod 755 eclipse" fix it?
There was a bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=282260, fixed
in Helios where the execute permissions weren't getting set properly.
-Andrew
Batistuta wrote:
> Hello everybody,
>
> I created an OSGi project in which one I've 2 projects :
> - one plugin project : that contains my source files, my product
> configuration that uses my feature project and the feature
> org.eclipse.equinox.p2.ui.user. It means that my program is able to
> install new software or to update the program. - one feature project that
> contains my plugin project.
>
> I can run my program into eclipse, It works. I can export my product
> configuration from eclipse and then launching my program : it works.
>
> After that, I'd like to build automaticaly my program with the framework
> PDE of eclipse. I followed this tutorial :
>
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. pde.doc.user/guide/tasks/pde_product_build.htm
> . I'm able to generate my program for Windows,Linux and Mac os. The
> executables of windows and linux work. However, the executable of mac os
> doesn't work.
>
> When I click on the icon, nothing happens and I've no error. To be able to
> launch on mac os, I've to replace the file
> myExecutable.app/Contents/MacOS/eclipse by the one of
> Eclipse.app/Contents/MacOS/eclipse. It seams that the file "eclipse" of my
> generated executable is not in the right format.
>
> Do you know what is the reason of this problem? Or maybe if you have a
> clue for me to solve that.
>
> Thank you very much,
>
> Bat
|
|
|
|
Re: [MAC OS] Automated building PDE : executable doesn't work [message #543506 is a reply to message #542802] |
Tue, 29 June 2010 15:26 |
Andrew Niefer Messages: 990 Registered: July 2009 |
Senior Member |
|
|
This should be fixed in Helios.
For earlier versions, if you have a headless build and are building from mac
or linux, you can change the "archivesFormat" property. The default format
is antZip which loses the permissions. You can change this to use the
native "zip" format which will keep them.
The property would look something like this:
archivesFormat=win32,win32,x86 - zip &\
linux,gtk,x86 - zip &\
macosx,cocoa,x86 - zip
-Andrew
Batistuta wrote:
> Great, it works!
>
> It was the problem of permission.
>
> Do you know how it's possible to solve this while the generation of the
> executable?
|
|
|
|
Powered by
FUDForum. Page generated in 0.03391 seconds