Re: [platform-dev] Preparing SWT native code for building from a shell?

2019-07-09 Thread Lakshmi P Shanmugam
Hi,
 
Please note that the Jenkins jobs build the libraries for all platforms. Also, the jobs include steps to move the source code and libraries as the machine where the ant scripts run and the machine where the native libraries are built are different. If you are working on a single machine, the steps can be simplified in your setup.
 
This Wiki page gives you an overview of the jobs:https://wiki.eclipse.org/SWT/Native_Builds_on_Foundation
 
Thanks & Regards,Lakshmi P Shanmugam,Eclipse Platform Co-lead,India Software Lab, Bangalore
 
 
- Original message -From: "Torkild U. Resheim" Sent by: platform-dev-boun...@eclipse.orgTo: "Eclipse platform general developers list." Cc:Subject: [EXTERNAL] Re: [platform-dev] Preparing SWT native code for building from a shell?Date: Tue, Jul 9, 2019 1:39 PM 
Thanks all,I think the Jenkins build job is exactly what I need to replicate the process. I'll let you know how it turned out :)Best regards,Torkild 
 
___platform-dev mailing listplatform-dev@eclipse.orgTo change your delivery options, retrieve your password, or unsubscribe from this list, visithttps://www.eclipse.org/mailman/listinfo/platform-dev
 

___
platform-dev mailing list
platform-dev@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/platform-dev

Re: [platform-dev] Preparing SWT native code for building from a shell?

2019-07-09 Thread Torkild U. Resheim
Thanks all,

I think the Jenkins build job is exactly what I need to replicate the process. 
I'll let you know how it turned out :)

Best regards,
Torkild



signature.asc
Description: Message signed with OpenPGP
___
platform-dev mailing list
platform-dev@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/platform-dev

Re: [platform-dev] Preparing SWT native code for building from a shell?

2019-07-08 Thread Lakshmi P Shanmugam
Hi Torklid,
 
Are you looking at building the SWT libraries and source?
You can do that using the existing ant scripts in the SWT repository. You need to call the specific target depending on the required output.
 
Go into the swt-gtk fragment
cd eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.x86_64
 
To build the native libraries and swt-gtk java source, run the ant script build.xml which is there at the location.
1. Build swt-gtk native libraries 
ant -f  build.xml build_libraries
 
2. Build the jar 
ant -f  build.xml build.jars
 
To create a zip with native libraries and source
1. Build swt-gtk native libraries 
ant -f  build.xml build_libraries
 
2. Build source and create zip with everything included
ant -f  build.xml swtdownload
 
If you are not interested in the building the native libraries and use the existing libraries from the fragment, please skip the build_libraries step.
 
Please let me know if I missed something.
 
Thanks & Regards,Lakshmi P Shanmugam,Eclipse Platform Co-lead,India Software Lab, Bangalore
 
 
- Original message -From: "Torkild U. Resheim" Sent by: platform-dev-boun...@eclipse.orgTo: platform-dev@eclipse.orgCc:Subject: [EXTERNAL] [platform-dev] Preparing SWT native code for building from a shell?Date: Mon, Jul 8, 2019 4:55 AM 
Hi Platform developers,I'm picking up an old project of mine again, building the Eclipse Platform for the Raspberry Pi[1].The new Raspberry Pi 4 should be able to cope with the Eclipse IDE much better than the previous versions, although I'm mostly interested in using PiPlug as one can see in the screenshot[2] in a home automation project.I wanted to write a script that did most of the job and came over an issue. In order to build the SWT binaries I first have to import the "eclipse.platform.swt" project into eclipse, rename the ".classpath_gtk" file then do a build in order to prepare the code into the "bin" folder. So I am wondering whether you are aware of a way of doing this step without having to start Eclipse and invoke a build. I would prefer to be able to do everything from a bash script, including copying the files to an actual Raspberry Pi and do the compilation there.I've looked at the "SWT Classpath Builder.launch" code, but I see no way of running that outside of Eclipse. Also replicating what these Ant scripts does, may be a bit of a hassle.Best regards,Torkild U. Resheim[1] https://resheim.net/2013/05/running-eclipse-rcp-applications-on.html[2] https://resheim.net/2014/07/building-eclipse-target-platform-raspberry-pi.html
 
___platform-dev mailing listplatform-dev@eclipse.orgTo change your delivery options, retrieve your password, or unsubscribe from this list, visithttps://www.eclipse.org/mailman/listinfo/platform-dev
 

___
platform-dev mailing list
platform-dev@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/platform-dev

Re: [platform-dev] Preparing SWT native code for building from a shell?

2019-07-08 Thread Jonah Graham
PS If the gerrit job for SWT binaries does compile the binaries as part of
that check it may be useful too:
https://ci.eclipse.org/platform/job/eclipse.platform.swt.binaries-Gerrit/
~~~
Jonah Graham
Kichwa Coders
www.kichwacoders.com


On Mon, 8 Jul 2019 at 11:57, Jonah Graham  wrote:

> Hi Torkild,
>
> I hope you get some more concrete answers than this, but in the past when
> I have been stuck resolving such issues I have found the build scripts on
> Jenkins used to build very useful. Can you replicate the build machine's
> process? (https://ci.eclipse.org/releng/job/SWT-native-build/):
>
> I think it goes roughly like this (for x86_64):
> ant -f
> eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.x86_64/build.xml
> copy_library_src_and_create_zip
> mkdir buildnatives
> cd buildnatives
> unzip
> ../eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.x86_64/tmpdir/org.eclipse.swt.gtk.linux.x86_64.master.zip
> export MODEL=x86_64
> export OUTPUT_DIR=$PWD/libs
> sh build.sh clean install
> # delete existing libs if present
>
> cp $PWD/libs/* 
> ../eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.x86_64
> # then build the bundles with maven
>
> HTH,
> Jonah
>
> On Sun., Jul. 7, 2019, 19:25 Torkild U. Resheim, 
> wrote:
>
>> Hi Platform developers,
>>
>> I'm picking up an old project of mine again, building the Eclipse
>> Platform for the Raspberry Pi[1].
>>
>> The new Raspberry Pi 4 should be able to cope with the Eclipse IDE much
>> better than the previous versions, although I'm mostly interested in using
>> PiPlug as one can see in the screenshot[2] in a home automation project.
>>
>> I wanted to write a script that did most of the job and came over an
>> issue. In order to build the SWT binaries I first have to import the
>> "eclipse.platform.swt" project into eclipse, rename the ".classpath_gtk"
>> file then do a build in order to prepare the code into the "bin" folder. So
>> I am wondering whether you are aware of a way of doing this step without
>> having to start Eclipse and invoke a build. I would prefer to be able to do
>> everything from a bash script, including copying the files to an actual
>> Raspberry Pi and do the compilation there.
>>
>> I've looked at the "SWT Classpath Builder.launch" code, but I see no way
>> of running that outside of Eclipse. Also replicating what these Ant scripts
>> does, may be a bit of a hassle.
>>
>> Best regards,
>> Torkild U. Resheim
>>
>> [1] https://resheim.net/2013/05/running-eclipse-rcp-applications-on.html
>> [2]
>> https://resheim.net/2014/07/building-eclipse-target-platform-raspberry-pi.html
>> ___
>> platform-dev mailing list
>> platform-dev@eclipse.org
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://www.eclipse.org/mailman/listinfo/platform-dev
>
>
___
platform-dev mailing list
platform-dev@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/platform-dev

Re: [platform-dev] Preparing SWT native code for building from a shell?

2019-07-08 Thread Jonah Graham
Hi Torkild,

I hope you get some more concrete answers than this, but in the past when I
have been stuck resolving such issues I have found the build scripts on
Jenkins used to build very useful. Can you replicate the build machine's
process? (https://ci.eclipse.org/releng/job/SWT-native-build/):

I think it goes roughly like this (for x86_64):
ant -f
eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.x86_64/build.xml
copy_library_src_and_create_zip
mkdir buildnatives
cd buildnatives
unzip
../eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.x86_64/tmpdir/org.eclipse.swt.gtk.linux.x86_64.master.zip
export MODEL=x86_64
export OUTPUT_DIR=$PWD/libs
sh build.sh clean install
# delete existing libs if present
cp $PWD/libs/* 
../eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.x86_64
# then build the bundles with maven

HTH,
Jonah

On Sun., Jul. 7, 2019, 19:25 Torkild U. Resheim,  wrote:

> Hi Platform developers,
>
> I'm picking up an old project of mine again, building the Eclipse Platform
> for the Raspberry Pi[1].
>
> The new Raspberry Pi 4 should be able to cope with the Eclipse IDE much
> better than the previous versions, although I'm mostly interested in using
> PiPlug as one can see in the screenshot[2] in a home automation project.
>
> I wanted to write a script that did most of the job and came over an
> issue. In order to build the SWT binaries I first have to import the
> "eclipse.platform.swt" project into eclipse, rename the ".classpath_gtk"
> file then do a build in order to prepare the code into the "bin" folder. So
> I am wondering whether you are aware of a way of doing this step without
> having to start Eclipse and invoke a build. I would prefer to be able to do
> everything from a bash script, including copying the files to an actual
> Raspberry Pi and do the compilation there.
>
> I've looked at the "SWT Classpath Builder.launch" code, but I see no way
> of running that outside of Eclipse. Also replicating what these Ant scripts
> does, may be a bit of a hassle.
>
> Best regards,
> Torkild U. Resheim
>
> [1] https://resheim.net/2013/05/running-eclipse-rcp-applications-on.html
> [2]
> https://resheim.net/2014/07/building-eclipse-target-platform-raspberry-pi.html
> ___
> platform-dev mailing list
> platform-dev@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://www.eclipse.org/mailman/listinfo/platform-dev
___
platform-dev mailing list
platform-dev@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/platform-dev

Re: [platform-dev] Preparing SWT native code for building from a shell?

2019-07-08 Thread Eric Williams

On 7/7/19 7:25 PM, Torkild U. Resheim wrote:

Hi Platform developers,

I'm picking up an old project of mine again, building the Eclipse Platform for 
the Raspberry Pi[1].

The new Raspberry Pi 4 should be able to cope with the Eclipse IDE much better 
than the previous versions, although I'm mostly interested in using PiPlug as 
one can see in the screenshot[2] in a home automation project.

I wanted to write a script that did most of the job and came over an issue. In order to build the SWT 
binaries I first have to import the "eclipse.platform.swt" project into eclipse, rename the 
".classpath_gtk" file then do a build in order to prepare the code into the "bin" folder. 
So I am wondering whether you are aware of a way of doing this step without having to start Eclipse and 
invoke a build. I would prefer to be able to do everything from a bash script, including copying the files to 
an actual Raspberry Pi and do the compilation there.

I've looked at the "SWT Classpath Builder.launch" code, but I see no way of 
running that outside of Eclipse. Also replicating what these Ant scripts does, may be a 
bit of a hassle.

Best regards,
Torkild U. Resheim
Sadly I don't have an answer for you -- a colleague of mine looked into 
it awhile ago and wasn't able to find an answer. If you do find out, 
please post to the list as it would greatly improve my workflow as well!



Thanks,

--
Eric Williams
Software Engineer - Eclipse/SWT Team
Red Hat
___
platform-dev mailing list
platform-dev@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/platform-dev