[Gtkradiant] Suggestion: libxml2 update for win32
Shaderman
Shaderman at gmx.net
Wed Jun 14 13:42:37 CDT 2006
Why an update?
Current (win32) version: 2.6.2 (Nov 4 2003), new version: 2.6.24 (Apr 28
2006). The current version is a bit
outdated - 2 1/2 years of development passed by :) Lots of bugs were
fixed, and tons of improvments
were made (list of public releases: http://xmlsoft.org/news.html).
What about Linux users?
I think most Linux users already have a libxml2 package installed. If
not, it shouldn't be a problem
to get a recent installation package for any distribution :)
How was it tested?
It was tested on Windows XP. Revision 84 compiles fine with VS2003.
There were no problems found
with game:ET in the entity and preferences functions which should use
libxml2.
What's needed?
The latest binary port of libxml2 and iconv (only iconv.h from that
package is needed).
http://www.zlatkovic.com/pub/libxml/libxml2-2.6.24.win32.zip
http://www.zlatkovic.com/pub/libxml/iconv-1.9.2.win32.zip
Which steps are required for the update?
1. Download the two archieves.
2. Extract the libxml archieve and rename it to libxml2-2.6.
3. Extract the iconv archieve and rename it to iconv-1.9.
4. Apply the patch (some paths in vc project files and install.py need
to be updated)
5. Recompile
The libxml2 package at
http://zerowing.idsoftware.com/files/radiant/developer/1.5/ should be
replaced
by the two archievs listed above.
Links:
The libxml site: http://xmlsoft.org/
The windows port: http://www.zlatkovic.com/libxml.en.html
Thanks to namespace for helping!
Shaderman
-------------- next part --------------
Index: install.py
===================================================================
--- install.py (revision 84)
+++ install.py (working copy)
@@ -105,7 +105,7 @@
if os.path.exists(gtk2Root):
copySvn(os.path.join(gtk2Root, "install"), installRoot)
-libxml2 = os.path.normpath(os.path.join(thisDir, "../libxml2-2.6/win32/install/libxml2.dll"))
+libxml2 = os.path.normpath(os.path.join(thisDir, "../libxml2-2.6/bin/libxml2.dll"))
copyFileIfExists(libxml2, installRoot)
libpng = os.path.normpath(os.path.join(thisDir, "../libpng-1.2/lib/libpng13.dll"))
Index: libs/libs.vcproj
===================================================================
--- libs/libs.vcproj (revision 84)
+++ libs/libs.vcproj (working copy)
@@ -19,7 +19,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- AdditionalIncludeDirectories="".";"../include";"../../STLport-4.6/stlport";"../../libxml2-2.6/include";"../../gtk2-2.4/lib/glib-2.0/include";"../../gtk2-2.4/include/glib-2.0""
+ AdditionalIncludeDirectories=".;../include;"../../STLport-4.6/stlport";"../../libxml2-2.6/include";"../../gtk2-2.4/lib/glib-2.0/include";"../../gtk2-2.4/include/glib-2.0";"../../iconv-1.9/include""
PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
StringPooling="TRUE"
MinimalRebuild="TRUE"
Index: plugins/mapxml/mapxml.vcproj
===================================================================
--- plugins/mapxml/mapxml.vcproj (revision 84)
+++ plugins/mapxml/mapxml.vcproj (working copy)
@@ -19,7 +19,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- AdditionalIncludeDirectories="../../include;../../libs;"../../../STLPort-4.6/stlport";"../../../libxml2-2.6/include";"../../../gtk2-2.4/include/glib-2.0";"../../../gtk2-2.4/lib/glib-2.0/include""
+ AdditionalIncludeDirectories="../../include;../../libs;"../../../STLPort-4.6/stlport";"../../../libxml2-2.6/include";"../../../gtk2-2.4/include/glib-2.0";"../../../gtk2-2.4/lib/glib-2.0/include";"../../../iconv-1.9/include""
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;MAPXML_EXPORTS"
StringPooling="TRUE"
MinimalRebuild="TRUE"
@@ -42,7 +42,7 @@
OutputFile="$(OutDir)/mapxml.dll"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
- AdditionalLibraryDirectories=""../../../libxml2-2.6/win32/lib";"../../../gtk2-2.4/lib""
+ AdditionalLibraryDirectories=""../../../libxml2-2.6/lib";"../../../gtk2-2.4/lib""
IgnoreDefaultLibraryNames="msvcprtd.lib"
ModuleDefinitionFile="$(ProjectName).def"
GenerateDebugInformation="TRUE"
Index: radiant/GtkRadiant.vcproj
===================================================================
--- radiant/GtkRadiant.vcproj (revision 84)
+++ radiant/GtkRadiant.vcproj (working copy)
@@ -20,7 +20,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- AdditionalIncludeDirectories="../include;../libs;"../../STLPort-4.6/stlport";"../../libxml2-2.6/include";"../../gtk2-2.4/lib/glib-2.0/include";"../../gtk2-2.4/include/glib-2.0";"../../gtk2-2.4/lib/gtk-2.0/include";"../../gtk2-2.4/include/gtk-2.0";"../../gtk2-2.4/include/gtk-2.0/gdk";"../../gtk2-2.4/include/pango-1.0";"../../gtk2-2.4/include/atk-1.0";"../../gtk2-2.4/lib/gtkglext-1.0/include";"../../gtk2-2.4/include/gtkglext-1.0""
+ AdditionalIncludeDirectories="../include;../libs;"../../STLPort-4.6/stlport";"../../libxml2-2.6/include";"../../gtk2-2.4/lib/glib-2.0/include";"../../gtk2-2.4/include/glib-2.0";"../../gtk2-2.4/lib/gtk-2.0/include";"../../gtk2-2.4/include/gtk-2.0";"../../gtk2-2.4/include/gtk-2.0/gdk";"../../gtk2-2.4/include/pango-1.0";"../../gtk2-2.4/include/atk-1.0";"../../gtk2-2.4/lib/gtkglext-1.0/include";"../../gtk2-2.4/include/gtkglext-1.0";"../../iconv-1.9/include""
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
StringPooling="TRUE"
MinimalRebuild="TRUE"
@@ -43,7 +43,7 @@
OutputFile="$(OutDir)/$(ProjectName).exe"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
- AdditionalLibraryDirectories=""../../gtk2-2.4/lib";"../../libxml2-2.6/win32/lib";"../libs/profile/debug/""
+ AdditionalLibraryDirectories=""../../gtk2-2.4/lib";"../../libxml2-2.6/lib";../libs/profile/debug/"
IgnoreAllDefaultLibraries="TRUE"
IgnoreDefaultLibraryNames="msvcprtd.lib"
GenerateDebugInformation="TRUE"
Index: tools/quake2/q2map/q2map.vcproj
===================================================================
--- tools/quake2/q2map/q2map.vcproj (revision 84)
+++ tools/quake2/q2map/q2map.vcproj (working copy)
@@ -21,7 +21,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- AdditionalIncludeDirectories="..\..\..\include;..\common;..\..\..\libs;"..\..\..\..\libxml2-2.6\include""
+ AdditionalIncludeDirectories="..\..\..\include;..\common;..\..\..\libs;"..\..\..\..\libxml2-2.6\include";"..\..\..\..\iconv-1.9\include""
PreprocessorDefinitions="_DEBUG,WIN32,_CONSOLE"
ExceptionHandling="FALSE"
BasicRuntimeChecks="0"
@@ -45,7 +45,7 @@
OutputFile=".\Debug/q2map.exe"
LinkIncremental="2"
SuppressStartupBanner="TRUE"
- AdditionalLibraryDirectories=""..\..\..\..\libxml2-2.6\win32\lib""
+ AdditionalLibraryDirectories=""..\..\..\..\libxml2-2.6\lib""
IgnoreDefaultLibraryNames="libcd"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile=".\Debug/q2map.pdb"
Index: tools/quake3/q3map2/q3map2.vcproj
===================================================================
--- tools/quake3/q3map2/q3map2.vcproj (revision 84)
+++ tools/quake3/q3map2/q3map2.vcproj (working copy)
@@ -21,7 +21,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- AdditionalIncludeDirectories=""..\..\..\..\mhash-0.9\lib";..\..\..\include;..\common;..\..\..\libs;"..\..\..\..\libxml2-2.6\include";"..\..\..\..\libpng-1.2";"..\..\..\..\zlib1-1.2\include";"..\..\..\..\gtk2-2.4\include\glib-2.0";"..\..\..\..\gtk2-2.4\lib\glib-2.0\include""
+ AdditionalIncludeDirectories=""..\..\..\..\mhash-0.9\lib";..\..\..\include;..\common;..\..\..\libs;"..\..\..\..\libxml2-2.6\include";"..\..\..\..\libpng-1.2";"..\..\..\..\zlib1-1.2\include";"..\..\..\..\gtk2-2.4\include\glib-2.0";"..\..\..\..\gtk2-2.4\lib\glib-2.0\include";"..\..\..\..\iconv-1.9\include""
PreprocessorDefinitions="_DEBUG,WIN32,_CONSOLE"
ExceptionHandling="FALSE"
BasicRuntimeChecks="0"
@@ -45,7 +45,7 @@
OutputFile=".\Debug/q3map2.exe"
LinkIncremental="2"
SuppressStartupBanner="TRUE"
- AdditionalLibraryDirectories=""..\..\..\..\mhash-0.9\win32\libmhash\Debug";"..\..\..\..\libxml2-2.6\win32\lib";"..\..\..\..\zlib1-1.2\lib";"..\..\..\..\libpng-1.2\lib";"..\..\..\..\gtk2-2.4\lib""
+ AdditionalLibraryDirectories=""..\..\..\..\mhash-0.9\win32\libmhash\Debug";"..\..\..\..\libxml2-2.6\lib";"..\..\..\..\zlib1-1.2\lib";"..\..\..\..\libpng-1.2\lib";"..\..\..\..\gtk2-2.4\lib""
IgnoreDefaultLibraryNames="libcd"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile=".\Debug/q3map2.pdb"
More information about the Gtkradiant
mailing list