[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freewnn:00975] Re: Fwd: FreeWnn-1.1.1-a019 のコンパイル



On  7 May, Kow K wrote:
> こんにちは、
> "-wnn" オプションが通らず、四苦八苦しています。これは、
> kinput2 に適切な設定をあたえて rebuild しないといけないというこ
> となのでしょうか?

ついで、ですからこれも。
これらUseWnn から USE_WNNを
生かすためFreeWnnをinstallした後で
Kinput.conf,wnn4やKinput.conf.canna-wnn4を
Kinput.confにリネームして
ソーストップのImakefileでコンパイルしてみて下さい。

Kaoru 

---------------kinput2.c より------------------
#ifdef USE_WNN
	"-wnn",			"use Wnn as the conversion engine",
	"-jserver <hostname>",	"specify jserver host",
	"-ccdef <ccdeffile>",	"specify character conversion def. file",
	"-wnnenvname <name>",	"specify Wnn environment name",
	"-wnnenvrc4 <wnnenvrcfile>", "specify Wnn environment file for Wnn4",
	"-wnnenvrc6 <wnnenvrcfile>", "specify Wnn environment file for Wnn6",
	"-wnnenvrc <wnnenvrcfile>", "specify Wnn environment file",
#endif
-------------------------------
-----------そしてKinput2.conf.wnn4などwnnのつくものに-------------------
/**
 ** Conversion system configuration:
 **	Kinput2 supports 3 conversion systems, Wnn, Canna and Sj3.
 **	In order to install and use kinput2, you have to compile and
 **	install at least one of them.  If you select more than one
 **	conversion system, you can choose one at run time with a
 **	command line option.
 **/

#define UseWnn		/* define if you are going to use Wnn (v4 or v6) */
/* #define UseWnn6 */	/* define if you are going to use Wnn6 */
/* #define UseCanna */	/* define if you are going to use Canna */
/* #define UseSj3 */	/* define if you are going to use Sj3 */
-------------------cmd/Imakefile---------------------------------------------------
#include "../Kinput2.conf"

         INCLUDES = -I../include -I..
           KI2LIB = ../lib/libKi2.a
            IMLIB = ../lib/imlib/libim.a

#ifdef UseWnn
#ifdef UseWnn6
#ifdef StrlenNeeded
             DEFW = -DUSE_WNN -DUSE_WNN6 -DNEED_Strlen
#else
             DEFW = -DUSE_WNN -DUSE_WNN6
#endif
#else
#ifdef StrlenNeeded
             DEFW = -DUSE_WNN -DNEED_Strlen
#else
             DEFW = -DUSE_WNN
#endif
#endif
---------------------------------------------------------------