在Windows上如何构建64位的gettext dll。

3

我成功地在Windows上构建了gettext 32位dll。

我安装了以下软件。 gettext-0.18.11 mingw(包括msys)

./configure --prefix=/mingw --enable-threads=win32 --enable-relocatable
cd gettext-runtime
make

但是我不知道如何构建64位的dll。

有人说我应该使用mingw64。然后我安装了mingw64和msys。

但是我不知道如何设置mingw64和msys来构建64位的dll。 而且我也不知道gettext配置选项来构建64位的dll。

谢谢。

2个回答

5
  1. Download latest MinGW-w64 targeting 64-bit (there are also targeting 32-bit, so be careful) here.

    NOTE: As you added --enable-threads=win32, then probably you would be interested in the distribution with Win32 threading support, rather than POSIX, so be cautious when you choose which one to download.

  2. Configure in almost the same way, but with addition of one option:

    ./configure --build=x86_64-w64-mingw32 --prefix=/mingw --enable-threads=win32 --enable-relocatable
    
  3. Lean back. :)


个人而言,我总是加上 --host=x86_64-w64-mingw32 选项。对于大多数 configure 脚本来说这可能是多余的,因为 --build 已经包含了这个信息,但是对于某些脚本来说是必须的... 乾杯! - Gauthier Boaglio

0

首先从这里下载gettex: https://mlocati.github.io/articles/gettext-iconv-windows.html

然后添加系统变量PATH: C:\Program Files\gettext-iconv\bin 之后 在您的项目中创建一个名为 locale/的文件夹 之后 在settings.py中添加变量: LOCALE_PATHS = (BASE_DIR + 'locale/', ) 最后尝试运行 python manage.py makemessages -l fr


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接