Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] Building native bits

----- Original Message -----
> From: "Andrey Loskutov" <loskutov@xxxxxx>
> To: cbi-dev@xxxxxxxxxxx
> Sent: Sunday, January 18, 2015 3:30:13 PM
> Subject: [cbi-dev] Building native bits
> 
> Hi,

Hi Andrey,

> 
> I'm trying to build platform as described in CBI wiki [1] and want also build
> native bits. According to bugzilla [2], native SWT build should be possible.

It's easily doable. In releng.aggregator repo calling `mvn clean verify -Dnative=gtk.linux.%{eclipse_arch}` should do the trick if you have all devel packages properly installed and JAVA_HOME properly set.


> 
> The first naive attempt failed for me because I haven't some header files
> installed.
> 
> I found that I can build SWT native bits (I'm one Fedora 21 64 bit and would
> like to build for that platform only) after installing those packages (with
> all their dependencies):
> 
> libgnome
> libgnomeui
> gtk+
> gtk2
> gtk3
> mesa-libGLU
> libXtst
> 
> But is there any *official* summary available which packages are required to
> build native platform bits? The CBI FAQ has no info about that, and the SWT
> FAQ page [3] seems to be out of date anyway.

The problem is that different distributions have different names for packages and differ even more when we speak about devel packages.
As you said you want to build for Fedora only - doing `yum-builddep eclipse` will do the trick. We tried to keep this information in the wiki prior to CBI. But the only viable way we found was recommending installing the build requirements for the package in the distribution. Note that the natives shipped with eclipse.org downloads are built on hand crafted machines so they are everything else but not standard.

> 
> Shouldn't we add this info in the wiki somewhere?

It's probably worth migrating some part of the now-dead eclipse-build to cbi if we have an agreement that best way forward is depending on people knowing their distribution for defining the dependencies.
There is a very old bug about adding autotools build to swt [1] but it's not like it gets a lot of interest. Building the natives is an effort we spend significant amount of time on improving so I would dare to recommend looking at Fedora eclipse.spec [2] for patches applied, build requires and etc.
If you're interested in working on this area let us know and we can setup a call with interested parties to see how to proceed. Up to now there wasn't much interest so it evolved around IBM's internal build system (used for eclipse.org builds) and Fedora/RHEL RPM builds needs.

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=71636
[2] http://pkgs.fedoraproject.org/cgit/eclipse.git/tree/eclipse.spec


Alexander Kurtakov
Red Hat Eclipse team

> 
> [1] https://wiki.eclipse.org/Platform-releng/Platform_Build#Building_natives
> [2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=372794
> [3] https://www.eclipse.org/swt/faq.php#howbuilddll
> 
> --
> Kind regards,
> google.com/+AndreyLoskutov
> _______________________________________________
> cbi-dev mailing list
> cbi-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/cbi-dev
> 


Back to the top