Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » [MAC OS] Automated building PDE : executable doesn't work
[MAC OS] Automated building PDE : executable doesn't work [message #542540] Fri, 25 June 2010 09:25 Go to next message
Batistuta  is currently offline Batistuta Friend
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 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
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 #542802 is a reply to message #542742] Sat, 26 June 2010 07:12 Go to previous messageGo to next message
Batistuta  is currently offline Batistuta Friend
Messages: 4
Registered: June 2010
Junior Member
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?
Re: [MAC OS] Automated building PDE : executable doesn't work [message #543506 is a reply to message #542802] Tue, 29 June 2010 15:26 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
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?
Re: [MAC OS] Automated building PDE : executable doesn't work [message #543640 is a reply to message #542540] Wed, 30 June 2010 07:19 Go to previous message
Batistuta is currently offline BatistutaFriend
Messages: 6
Registered: January 2010
Junior Member
Great!

Many thanks!
Previous Topic:Bundle stay always in the state "RESOLVED"
Next Topic:Helios 3.6 Bug - "Support software installation in the launched application" not working
Goto Forum:
  


Current Time: Wed Apr 24 23:53:44 GMT 2024

Powered by FUDForum. Page generated in 0.03391 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top