Re: Work to release Abiword 3.0

"Per Larsson" <[email protected]>
Newsgroups gmane.editors.abiword.devel
Message-ID <[email protected]>
Well, I wrote in bug 13389 that I had made no source changes.
There were a few small tweaks done.
After having partial success with getting a minw build of echant to work
 (it needed the files libgcc_s_dw2-1.dll and libstdc++-6.dll to work, and usually crashed on 
exit) I decided to revisit building with msvc, this time with 2008 unlike last time, so that we 
already have the right runtime installed.
This time, I also used the precompiled glib from abiword-msvc2008/Prefix instead of 
following the recipe in enchant/msvc/Build.win32.readme

Steps for compiling a version of enchant that works with msvc-compiled abi without any extra 
deps:

* replace the gcc-only version of 
<pathtoabisrc>\abiword\msvc2008\Prefix\lib\glib-2.0\include\glibconfig.h
 with the gcc/msvc one found at 
http://code.google.com/p/libpurple-msvc-
win32/downloads/detail?name=glibconfig.h&can=2&q=
 (the MICRO version is wrong in this file tho, edit)

* if you're working with svn as of 2013-01-12, you may need to add replist.cxx to the source 
files in the myenchant project

* Adding ENCHANT_VERSION_STRING=\"1.6.0\" to preprocessor definitions
  (libenchant project properties, Configuration Properties, c/c++, preprocessor)

* adding something like these 2 lines to all project includes
<pathtoabisrc>\abiword\msvc2008\Prefix\lib\glib-2.0\include
<pathtoabisrc>\abiword\msvc2008\Prefix\include\glib-2.0
  (project properties, Configuration Properties, c/c++, general, additional include dirs)

* adjusting path to glib lib files to read something like 
<pathtoabisrc>\abiword\msvc2008\Prefix\lib\
  (project properties, Configuration Properties, linker, general, additional library dirs)

* adjusting name of glib lib files to read libglib-2.0.lib libgmodule-2.0.lib
  (skipping the gmodule one if it isn't already mentioned in the project you're editing)
  (project properties, Configuration Properties, linker, input, additional deps)

* copy enchant.rc.in to enchant.rc, and adjust the macro variables within.

* adjusting path of libenchant post-build event to match where the libraries live
<pathtoabisrc>\abiword\msvc2008\Prefix\bin\g*.dll
  (project properties, Configuration Properties, build events, post-build event)

Finally, one should follow the steps in http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs 
to create a .a file for use with mingw, but I haven't tested that yet.
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.