Re: Compiling Amaya on Windows (AmayaWX version)

Irene Vatton <[email protected]>
Newsgroups gmane.comp.web.amaya.devel
Organization INRIA
Message-ID <[email protected]>
On Thursday 28 September 2006 11:06, Martin Duerst wrote:
> At 16:36 06/09/25, Irene Vatton wrote:

> >Win-Compiling.html is now updated.
>
> One more little detail: everything is alphabetically ordered,
> which makes checking easy, except for str\str.dsp, which should
> be moved up two places.

Okay. It's done now

>
> >> When working on compiling Amaya:
> >> - For several .dsp files, MS C++ 6.0 says something like
> >>   "This makefile hasn't been made with Developer Studio,..."
> >>   The files affected were app.dsp, cpp.dsp, prs.dsp, str.dsp,
> >>   tra.dsp, and zlib.dsp. These were all saved as e.g. app1.dsp,
> >>   and so on.
>
> This problem is still there. Saving the files as app1.dsp, and
> so on, seems to work.

I know why this occurs. I'll fix that in the incoming release.

>
> I have been progressing quite a bit, but some problems remain.
> First, there are several warnings, which in good Amaya tradition
> it would be great to eliminate:
> (again, all of the text translated back from Japanese)
>
> D:\Amaya-compile\Amaya\thotlib\dialogue\AmayaWindow.cpp(62) : warning
> C4273: 'wxEVT_AMAYA_ACTION_EVENT' : Contradiction in DLL linkeage. Assuming
> this is exported by the DLL.
>
> D:\Amaya-compile\Amaya\thotlib\view\changeabsbox.c(3249) : warning C4101:
> 'pMainAb' : Local variable not used at all.
>
> D:\Amaya-compile\Amaya\thotlib\image\picture.c(503) : warning C4305: '=' :
> Conversion from 'const double' to 'float' reduced precision.
>
> D:\Amaya-compile\Amaya\thotlib\image\picture.c(505) : warning C4305: '=' :
> Conversion from 'const double' to 'float' reduced precision.
>
> D:\Amaya-compile\Amaya\thotlib\base\wxAmayaSocketEvent.cpp(155) : warning
> C4018: '==' : Trying to compare signed and unsigned value.
> D:\Amaya-compile\Amaya\thotlib\base\wxAmayaSocketEvent.cpp(158) : warning
> C4018: '==' : Trying to compare signed and unsigned value.
> D:\Amaya-compile\Amaya\thotlib\base\wxAmayaSocketEvent.cpp(161) : warning
> C4018: '==' : Trying to compare signed and unsigned value.
> d:\amaya-compile\libwww\library\src\htansi.c(215) : warning C4018: '!=' :
> Trying to compare signed and unsigned value.
>
> d:\amaya-compile\libwww\library\src\htcache.c(2090) : warning C4018: '!=' :
> Trying to compare signed and unsigned value.
>
> d:\amaya-compile\libwww\library\src\htevtlst.c(780) : warning C4018: '<=' :
> Trying to compare signed and unsigned value.
>
> d:\amaya-compile\libwww\library\src\htdemux.c(88) : warning C4761: Formal
> parameter and actual argument base types differ. Adjusting the actual
> argument to the parameter type.
>
> d:\amaya-compile\libwww\library\src\htfwrite.c(56) : warning C4018: '!=' :
> Trying to compare signed and unsigned value.
>
>
> The next problem is the following:
> A long list of errors was related to the fact that a bunch of files
> (actually the whole folder) were missing in the idn module of libwww
> (libwww/modules/idn). These files all are from idnkit
> (http://www.nic.ad.jp/ja/idn/idnkit/download/). I only knew because
> it was me who added IDN (Internationalized Domain Name) support to
> Amaya a few years ago. Apparently, the Windows makefiles still keep
> that information (great!), but the actual files got lost. It would
> be great if this functionality could be fully integrated into Amaya;
> if you need some help, please tell me.

I'm not able to update any libwww source file today.
As I remember, there is no makefile for IDN.

> The next problem I got into was when compiling libwww/modules/idn/util.c,
> the compiler reported a lot of errors in various .h files (starting
> with winnt.h) that were part of the compiler's installation
> (among them a fatal error that it can't handle a certain level
> of union nesting). I got around this by #undef WIN32 at the start
> of libwww/modules/idn/util.c. I don not remember such problems
> the last time I used idnkit some years ago.

Distributed .h files are those generated on a linux platform. That probably 
explains why you have problems.

>
> After that, there were a few more warnings:
> d:\amaya-compile\amaya\thotlib\view\changeabsbox.c(3249) : warning C4101:
> local variable 'pMainAb' never used
> d:\amaya-compile\amaya\thotlib\dialogue\fontconfig.c(403) : warning C4101:
> local variable 'fname1' never used
> d:\amaya-compile\amaya\thotlib\dialogue\fontconfig.c(404) : warning C4101:
> local variable 'word1' never used
>
> And then one fatal error:
> d:\amaya-compile\wxwidgets\src\jpeg\jpeglib.h(24) : fatal error C1083:
> cannot open include file '../src/jpeg/jconfig.h': No such file or directory
> (this is when compiling jpeghandler.c in printlib)

My printlib.dsp looks for ../../../wxWidgets/src/jpeg/
and the jconfig.h is there.

> I found two versions of jconfig.h, namely Amaya/libjpeg/jconfig.h
> and wxWidgets/src/jpeg/jconfig.h. The two differ somewhat. Which
> one is the right one? I assume I have to fix an include path setting
> to get rid of the error.
>
> Any help appreciated.       With kind regards,    Martin.
>
>
>
> #-#-#  Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University
> #-#-#  http://www.sw.it.aoyama.ac.jp       mailto:[email protected]

-- 
     Irène.
-----
Irène Vatton                     INRIA Rhône-Alpes
INRIA                               ZIRST
e-mail: [email protected]       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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.