Re: svn commit: r420823 - in /incubator/harmony/enhanced/classlib/trunk/depends/libs/build: ./ README.txt fetch-awt-depends.sh

2006-07-14 Thread Alexey Petrenko

I've finally finished building awt with the jpeg and png binaries from
the GnuWin32.
Everything seems fine.  Tests are loading and draw png and jpeg images
whithout any problem.

But we face 3 problems here:
1. lcms version in GnuWin32 is not compatible with Harmony.
2. png libary from GnuWin32 requires zlib1.dll which is known as
hyzlib.dll in Harmony.
3. Potential license problem mentioned by Geir.

2006/7/13, Geir Magnusson Jr [EMAIL PROTECTED]:



Alexey Petrenko wrote:
 2006/7/12, Mark Hindess [EMAIL PROTECTED]:

 On 12 July 2006 at 12:50, Alexey Petrenko
 [EMAIL PROTECTED] wrote:
 
  I've just returned from the vacation.  And I have planned to work
  on trying to run awt with GnuWin32 libraries today. But we have few
  predicatble issues with them.
 Excellent.  Thanks Alexey.
 But as I said we got few predictable problems here:
 1. Not all the libraries in GnuWin32 have needed versions.
 2. Libraries form GnuWin32 are looking for zlib1.dll which is renamed
 in Harmony class lib.
Let me ask the obvious question.  Does using GNUWin32 add any code from
GNUWin32 to our artifacts?

No we do not need any source code from GnuWin32 except of binaries.
I've used headers, lib and dll files.


If so, we can't use it because of the odd and somewhat confusing
restrictions in the license here :

http://gnuwin32.sourceforge.net/license.html

Thanks for pointing on this license.

I'm not really sure can we use binaries or not according this license.
It seems that we can if the GnuWin32 binaries will be downloaded by
the user...

But if we can't we still got 3 more options:
1. Build jpeg, png and lcms libraries, put them into Harmony (or
other) site and download it from build script.
2. Integrate jpeg, png and lcms sources into Harmony
3. Download jpeg, png and lcms source from their sites and build them
from Harmony build script.

SY, Alexey

--
Alexey A. Petrenko
Intel Middleware Products Division

-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: svn commit: r420823 - in /incubator/harmony/enhanced/classlib/trunk/depends/libs/build: ./ README.txt fetch-awt-depends.sh

2006-07-12 Thread Alexey Petrenko

Mark,

I've just returned from the vacation. And I have planned to work on
trying to run awt with GnuWin32 libraries today. But we have few
predicatble issues with them.

We also did not finish the talks about integrating the needed sources
into Harmony class library since the licenses seems to be Apache
authorized. As we did with zlib.

And we also have possibility to update Harmony build script to
download and build this libraries...

SY, Alexey

2006/7/11, Mark Hindess [EMAIL PROTECTED]:


I've checked in a script so that:

  svn co ... classlib
  cd classlib
  ant fetch-depends
  sh depends/libs/build/fetch-awt-depends.sh
  ant -Dwith.awt.swing=true rebuild

should work on Debian Linux.  Updates for other distributions would be
very welcome.

Any update on what to do on Windows?

I'm hoping to get the misc natives from the awt contribution integrated
today (or maybe tomorrow) then I'll start on the awt natives so it would
be good to resolve this issue.

Regards,
 Mark.

On 11 July 2006 at 12:43, [EMAIL PROTECTED] wrote:
 Author: hindessm
 Date: Tue Jul 11 05:43:09 2006
 New Revision: 420823

 URL: http://svn.apache.org/viewvc?rev=420823view=rev
 Log:
 Added README.txt for AWT dependencies - mostly taken from contribution README
 .
 Added helper script for Linux - Debian/Ubuntu only but could be updated for
 other common distros.


 Added:
 incubator/harmony/enhanced/classlib/trunk/depends/libs/build/   (with pro
 ps)
 incubator/harmony/enhanced/classlib/trunk/depends/libs/build/README.txt
  (with props)
 incubator/harmony/enhanced/classlib/trunk/depends/libs/build/fetch-awt-de
 pends.sh   (with props)

 Propchange: incubator/harmony/enhanced/classlib/trunk/depends/libs/build/
 -
 -
 --- svn:ignore (added)
 +++ svn:ignore Tue Jul 11 05:43:09 2006
 @@ -0,0 +1,3 @@
 +jpeg
 +lcms
 +png

 Added: incubator/harmony/enhanced/classlib/trunk/depends/libs/build/README.tx
 t
 URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/d
 epends/libs/build/README.txt?rev=420823view=auto
 =
 =
 --- incubator/harmony/enhanced/classlib/trunk/depends/libs/build/README.txt (
 added)
 +++ incubator/harmony/enhanced/classlib/trunk/depends/libs/build/README.txt T
 ue Jul 11 05:43:09 2006
 @@ -0,0 +1,175 @@
 +Dependencies for AWT
 +
 +
 +For Debian/Ubuntu, it should be possible to run:
 +
 +  sh depends/libs/build/fetch-awt-depends.sh
 +
 +to construct the dependency tree.
 +
 +On other platforms the dependencies must be build using the following
 +instructions.
 +
 +
 +1. Building the external libraries
 +--
 +
 +To enable image decoding (JPEG and PNG images) and color management
 +with awt, build the IJG JPEG, Libpng and the Little CMS libraries.
 +
 +After performing the instructions below, you create the following
 +directory tree structure:
 +
 +EXTRACT_DIR/depends/libs/build
 +   |
 +   \---jpeg
 +   ||
 +   |+--- cderror.h
 +   |+--- jinclude.h
 +   |+--- jpeglib.h
 +   |+--- cdjpeg.h
 +   |+--- jdct.h
 +   |+--- jmemsys.h
 +   |+--- jversion.h
 +   |+--- jchuff.h
 +   |+--- jdhuff.h
 +   |+--- jmorecfg.h
 +   |+--- jerror.h
 +   |+--- jpegint.h
 +   |+--- jconfig.lnx and/or jconfig.vc
 +   |+--- libjpeg.lib and/or libjpeg.ia32 and/or libjpeg.ipf
 +   \---png
 +   ||
 +   |+--- png.h
 +   |+--- pngconf.h
 +   |+--- libpng.lib and/or libpng.ia32 and/or libpng.ipf
 +   \---lcms
 +   ||
 +   |+--- icc34.h
 +   |+--- lcms.h
 +   |+--- lcms114.lib and/or liblcms.ia32 and/or liblcms.ipf
 +   ...
 +
 +NOTE: The tree above indicates the files required for this contribution,
 +  not all the files distributed with each library.
 +
 +Further in the document, EXTERNAL_LIBS_DIR denotes the directory
 +EXTRACT_DIR/depends/libs/build.
 +
 +1.1 Building the IJG IPEG library
 +
 +System: Windows* IA-32
 +
 +1. Change the directory to the IJG JPEG library source directory;
 +   normally, jpeg-6b.
 +2. Copy the file jconfig.vc to jconfig.h.
 +3. Copy the jconfig.vc file to the EXTERNAL_LIBS_DIR/jpeg/ directory.
 +4. Start the Microsoft* Windows* SDK build environment or
 +   the Visual Studio .NET* 2003 Command Prompt.
 +5. Build the library by running:
 +
 + For the release version: nmake nodebug=1 /f makefile.vc
 + For the debug version: nmake /f makefile.vc
 +
 +6. Copy the file libjpeg.lib to the EXTERNAL_LIBS_DIR/jpeg directory.
 +7. Copy the required header files to the EXTERNAL_LIBS_DIR/jpeg
 +   directory.  For a list of required files, see the tree view above.
 +
 +System: Linux* IA-32
 +
 +1. Change the directory to the IJG 

Re: svn commit: r420823 - in /incubator/harmony/enhanced/classlib/trunk/depends/libs/build: ./ README.txt fetch-awt-depends.sh

2006-07-12 Thread Mark Hindess

On 12 July 2006 at 12:50, Alexey Petrenko [EMAIL PROTECTED] wrote:

 I've just returned from the vacation.  And I have planned to work
 on trying to run awt with GnuWin32 libraries today. But we have few
 predicatble issues with them.

Excellent.  Thanks Alexey.

 We also did not finish the talks about integrating the needed sources
 into Harmony class library since the licenses seems to be Apache
 authorized. As we did with zlib.

I suspect this would be a difficult path.

 And we also have possibility to update Harmony build script to
 download and build this libraries...

I think this might be the best option if we don't have a usable source
of binary downloads.

Regards,
 Mark.



-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: svn commit: r420823 - in /incubator/harmony/enhanced/classlib/trunk/depends/libs/build: ./ README.txt fetch-awt-depends.sh

2006-07-12 Thread Alexey Petrenko

2006/7/12, Mark Hindess [EMAIL PROTECTED]:


On 12 July 2006 at 12:50, Alexey Petrenko [EMAIL PROTECTED] wrote:

 I've just returned from the vacation.  And I have planned to work
 on trying to run awt with GnuWin32 libraries today. But we have few
 predicatble issues with them.
Excellent.  Thanks Alexey.

But as I said we got few predictable problems here:
1. Not all the libraries in GnuWin32 have needed versions.
2. Libraries form GnuWin32 are looking for zlib1.dll which is renamed
in Harmony class lib.


 We also did not finish the talks about integrating the needed sources
 into Harmony class library since the licenses seems to be Apache
 authorized. As we did with zlib.
I suspect this would be a difficult path.

Why we could include zlib and could not include others? ;)
The only problem I see is synchronization with the libraries main tree...


 And we also have possibility to update Harmony build script to
 download and build this libraries...
I think this might be the best option if we don't have a usable source
of binary downloads.

Probably so...

SY, Alexey

--
Alexey A. Petrenko
Intel Middleware Products Division

-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: svn commit: r420823 - in /incubator/harmony/enhanced/classlib/trunk/depends/libs/build: ./ README.txt fetch-awt-depends.sh

2006-07-12 Thread Geir Magnusson Jr


Alexey Petrenko wrote:
 2006/7/12, Mark Hindess [EMAIL PROTECTED]:

 On 12 July 2006 at 12:50, Alexey Petrenko
 [EMAIL PROTECTED] wrote:
 
  I've just returned from the vacation.  And I have planned to work
  on trying to run awt with GnuWin32 libraries today. But we have few
  predicatble issues with them.
 Excellent.  Thanks Alexey.
 But as I said we got few predictable problems here:
 1. Not all the libraries in GnuWin32 have needed versions.
 2. Libraries form GnuWin32 are looking for zlib1.dll which is renamed
 in Harmony class lib.

Let me ask the obvious question.  Does using GNUWin32 add any code from
GNUWin32 to our artifacts?

If so, we can't use it because of the odd and somewhat confusing
restrictions in the license here :

http://gnuwin32.sourceforge.net/license.html

geir

-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: svn commit: r420823 - in /incubator/harmony/enhanced/classlib/trunk/depends/libs/build: ./ README.txt fetch-awt-depends.sh

2006-07-11 Thread Mark Hindess

I've checked in a script so that:

  svn co ... classlib
  cd classlib
  ant fetch-depends
  sh depends/libs/build/fetch-awt-depends.sh
  ant -Dwith.awt.swing=true rebuild

should work on Debian Linux.  Updates for other distributions would be
very welcome.

Any update on what to do on Windows?

I'm hoping to get the misc natives from the awt contribution integrated
today (or maybe tomorrow) then I'll start on the awt natives so it would
be good to resolve this issue.

Regards,
 Mark.

On 11 July 2006 at 12:43, [EMAIL PROTECTED] wrote:
 Author: hindessm
 Date: Tue Jul 11 05:43:09 2006
 New Revision: 420823
 
 URL: http://svn.apache.org/viewvc?rev=420823view=rev
 Log:
 Added README.txt for AWT dependencies - mostly taken from contribution README
 .
 Added helper script for Linux - Debian/Ubuntu only but could be updated for
 other common distros.
 
 
 Added:
 incubator/harmony/enhanced/classlib/trunk/depends/libs/build/   (with pro
 ps)
 incubator/harmony/enhanced/classlib/trunk/depends/libs/build/README.txt  
  (with props)
 incubator/harmony/enhanced/classlib/trunk/depends/libs/build/fetch-awt-de
 pends.sh   (with props)
 
 Propchange: incubator/harmony/enhanced/classlib/trunk/depends/libs/build/
 -
 -
 --- svn:ignore (added)
 +++ svn:ignore Tue Jul 11 05:43:09 2006
 @@ -0,0 +1,3 @@
 +jpeg
 +lcms
 +png
 
 Added: incubator/harmony/enhanced/classlib/trunk/depends/libs/build/README.tx
 t
 URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/d
 epends/libs/build/README.txt?rev=420823view=auto
 =
 =
 --- incubator/harmony/enhanced/classlib/trunk/depends/libs/build/README.txt (
 added)
 +++ incubator/harmony/enhanced/classlib/trunk/depends/libs/build/README.txt T
 ue Jul 11 05:43:09 2006
 @@ -0,0 +1,175 @@
 +Dependencies for AWT
 +
 +
 +For Debian/Ubuntu, it should be possible to run:
 +
 +  sh depends/libs/build/fetch-awt-depends.sh
 +
 +to construct the dependency tree.
 +
 +On other platforms the dependencies must be build using the following
 +instructions.
 +
 +
 +1. Building the external libraries
 +--
 +
 +To enable image decoding (JPEG and PNG images) and color management
 +with awt, build the IJG JPEG, Libpng and the Little CMS libraries.
 +
 +After performing the instructions below, you create the following
 +directory tree structure:
 +
 +EXTRACT_DIR/depends/libs/build
 +   |
 +   \---jpeg
 +   ||
 +   |+--- cderror.h
 +   |+--- jinclude.h
 +   |+--- jpeglib.h
 +   |+--- cdjpeg.h
 +   |+--- jdct.h
 +   |+--- jmemsys.h
 +   |+--- jversion.h
 +   |+--- jchuff.h
 +   |+--- jdhuff.h
 +   |+--- jmorecfg.h
 +   |+--- jerror.h
 +   |+--- jpegint.h
 +   |+--- jconfig.lnx and/or jconfig.vc
 +   |+--- libjpeg.lib and/or libjpeg.ia32 and/or libjpeg.ipf
 +   \---png
 +   ||
 +   |+--- png.h
 +   |+--- pngconf.h
 +   |+--- libpng.lib and/or libpng.ia32 and/or libpng.ipf
 +   \---lcms
 +   ||
 +   |+--- icc34.h
 +   |+--- lcms.h
 +   |+--- lcms114.lib and/or liblcms.ia32 and/or liblcms.ipf
 +   ...
 +
 +NOTE: The tree above indicates the files required for this contribution,
 +  not all the files distributed with each library.
 +
 +Further in the document, EXTERNAL_LIBS_DIR denotes the directory
 +EXTRACT_DIR/depends/libs/build.
 +
 +1.1 Building the IJG IPEG library
 +
 +System: Windows* IA-32
 +
 +1. Change the directory to the IJG JPEG library source directory;
 +   normally, jpeg-6b.
 +2. Copy the file jconfig.vc to jconfig.h.
 +3. Copy the jconfig.vc file to the EXTERNAL_LIBS_DIR/jpeg/ directory.
 +4. Start the Microsoft* Windows* SDK build environment or
 +   the Visual Studio .NET* 2003 Command Prompt.
 +5. Build the library by running:
 +
 + For the release version: nmake nodebug=1 /f makefile.vc
 + For the debug version: nmake /f makefile.vc
 +
 +6. Copy the file libjpeg.lib to the EXTERNAL_LIBS_DIR/jpeg directory.
 +7. Copy the required header files to the EXTERNAL_LIBS_DIR/jpeg
 +   directory.  For a list of required files, see the tree view above.
 +
 +System: Linux* IA-32
 +
 +1. Change the directory to the IJG JPEG library source directory;
 +   normally, jpeg-6b.
 +2. Configure the build by running:
 +
 + For the release version: ./configure CFLAGS=’-O2 -fpic’
 + For the debug version: ./configure CFLAGS=’-g -fpic’
 +
 +3. Copy the file jconfig.h created during the previous step to
 +   the EXTERNAL_LIBS_DIR/jpeg/jconfig.lnx directory.
 +4. To build the library, run:
 +
 + make
 +
 +5. Copy the resulting libjpeg.a file to the file
 +