Compiling Amaya on Windows

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling Amaya on Windows

chengpan-2




In 9.54 and 9.55-pre tar files, there is no subdirectory libwww\modules\idn\, but file libwww.dsp looks for source code under this directory name.  This caused the compilation to fail.

Did I miss something or do things in a wrong way?

Thanks,   --Cheng




Reply | Threaded
Open this post in threaded view
|

Re: Compiling Amaya on Windows

Irene Vatton

On Wednesday 20 June 2007 07:42, [hidden email] wrote:
> In 9.54 and 9.55-pre tar files, there is no subdirectory
> libwww\modules\idn\, but file libwww.dsp looks for source code under this
> directory name.  This caused the compilation to fail.
>
> Did I miss something or do things in a wrong way?
>
> Thanks,   --Cheng

You're right this idn module is not included in tar files.
It'll be fixed in next release
     Irène.
-----
Irène Vatton                     INRIA Rhône-Alpes
INRIA                               ZIRST
e-mail: [hidden email]       655 avenue de l'Europe
Tel.: +33 4 76 61 53 61             Montbonnot
Fax:  +33 4 76 61 52 07             38334 Saint Ismier Cedex - France


Reply | Threaded
Open this post in threaded view
|

Re: Compiling Amaya on Windows

chengpan-2
In reply to this post by chengpan-2




Thank Irene for the quick response!

I have read more messages posted to this list and got 9.55-pre3 to compile. (My environment is Windows 2000 Professional, VC++ 6.0 with SP6 applied.) I  had to do a few things to go through the compilation.

1. For freetype, by default I also got freetype/objs/feetype2110ST_D.lib instead of freetype2110_D.lib, as mentioned in http://lists.w3.org/Archives/Public/www-amaya-dev/2006Nov/0000.html
I found that I could get freetype2110_D.lib by clicking Build->Batch Build, checking "Win32 Debug", and clicking Build on the dialog.

2. Line 105 in WindowsWX/amaya.dsp is
SOURCE=../amaya/wxdialog/amaya.rc
and causes a problem.  Following the discussion in
http://lists.w3.org/Archives/Public/www-amaya-dev/2006Nov/0000.html
I deleted this line the copy of the file I used.

3. There was a problem compiling Amaya/thotlib/image/jpeghandler.c, as mentioned in
http://lists.w3.org/Archives/Public/www-amaya-dev/2006Oct/0045.html
I had to change line 24 of file wxWidgets/src/jpeg/jpeglib.h from
#include "../src/jpeg/jconfig.h"
into
#include "jconfig.h"

4. For idn, two relatively simple ways seemed to make libwww compile.
(A) Changing file WindowsWX/libwww/libwww.dsp by deleting from lines 44 and 67 '/D "LIBWWW_USEIDN"' and all the lines with 'SOURCE=......libwwwmodulesidn'
(B) Downloading idnkit-1.0-src from
http://www.nic.ad.jp/ja/idn/idnkit
and copying the 32 '.h' files from 'include' and the 32 '.c' files from 'lib' into libwww/modules/idn.  Similar to the way discussed in
http://lists.w3.org/Archives/Public/www-amaya-dev/2006Nov/0002.html
from file idn/util.c, if I comment out most of the implementation of idn__util_getregistrystring so that it just returns 0 and remove line
#include <windows.h>
then libwww compiles fine.  I have not tested if the functionality provided by idn works.

I am using the binary I compiled to browse this list now.

--Cheng

---- Irene Vatton <[hidden email]> wrote:

> On Wednesday 20 June 2007 07:42, [hidden email] wrote:
> > In 9.54 and 9.55-pre tar files, there is no subdirectory
> > libwwwmodulesidn, but file libwww.dsp looks for source code under this
> > directory name.  This caused the compilation to fail.
> >
> > Did I miss something or do things in a wrong way?
> >
> > Thanks,   --Cheng
>
> You're right this idn module is not included in tar files.
> It'll be fixed in next release
>      Irène.
> -----
> Irène Vatton                     INRIA Rhône-Alpes
> INRIA                               ZIRST
> e-mail: [hidden email]       655 avenue de l'Europe
> Tel.: +33 4 76 61 53 61             Montbonnot
> Fax:  +33 4 76 61 52 07             38334 Saint Ismier Cedex - France
>




Reply | Threaded
Open this post in threaded view
|

Re: Compiling Amaya on Windows

Martin J. Dürst
In reply to this post by Irene Vatton

Hello Cheng,

If you are in a hurry, you can get the idn files from idnkit-1.0
http://www.nic.ad.jp/ja/idn/idnkit/download/.

Regards,   Martin.


At 22:33 07/06/20, Irene Vatton wrote:

>
>On Wednesday 20 June 2007 07:42, [hidden email] wrote:
>> In 9.54 and 9.55-pre tar files, there is no subdirectory
>> libwww\modules\idn\, but file libwww.dsp looks for source code under this
>> directory name.  This caused the compilation to fail.
>>
>> Did I miss something or do things in a wrong way?
>>
>> Thanks,   --Cheng
>
>You're right this idn module is not included in tar files.
>It'll be fixed in next release
>     Irティne.
>-----
>Irティne Vatton                     INRIA Rhテエne-Alpes
>INRIA                               ZIRST
>e-mail: [hidden email]       655 avenue de l'Europe
>Tel.: +33 4 76 61 53 61             Montbonnot
>Fax:  +33 4 76 61 52 07             38334 Saint Ismier Cedex - France


#-#-#  Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University
#-#-#  http://www.sw.it.aoyama.ac.jp       mailto:[hidden email]