[zeromq-dev] zeromq on windows patch

Michael Greene michael.greene at gmail.com
Tue Dec 9 22:00:46 CET 2008


A unified diff follows that corrects two problems building on Windows:
1. A developer's user path had been hardcoded; this has changed to a
relative path.
2. The Python extension could only be built in Debug mode, and with
Python debug libraries; the relevant Python include directories have
been added to the release build as well, and only the Python binary
distribution is required to build in release mode.

The issue mentioned in (1) also occurs in the Jzmq .project file, but
I do not need the Java extension and am not positive about how to fix
it.

I would also like to suggest that svn:ignore properties be added to
prevent the many build artifacts from showing up in svn.  This isn't
done in the non-Windows path either, so maybe it is not as much of an
issue for other developers - but it's a nice feature of subversion.

Regards,
Michael Greene

Index: libczmq/libczmq.vcproj
===================================================================
--- libczmq/libczmq.vcproj	(revision 761)
+++ libczmq/libczmq.vcproj	(working copy)
@@ -61,7 +61,7 @@
 			<Tool
 				Name="VCLinkerTool"
 				AdditionalDependencies="libzmq.lib ws2_32.lib"
-				AdditionalLibraryDirectories=""C:\Documents and
Settings\Kustarova\trunk\windows\Debug""
+				AdditionalLibraryDirectories="../Debug"
 				GenerateDebugInformation="true"
 				TargetMachine="1"
 			/>
Index: libpyzmq/libpyzmq.vcproj
===================================================================
--- libpyzmq/libpyzmq.vcproj	(revision 761)
+++ libpyzmq/libpyzmq.vcproj	(working copy)
@@ -113,7 +113,7 @@
 				Name="VCCLCompilerTool"
 				Optimization="2"
 				EnableIntrinsicFunctions="true"
-				AdditionalIncludeDirectories="../../libzmq"
+				AdditionalIncludeDirectories="../../libzmq;C:\Python26\include"
 				RuntimeLibrary="2"
 				EnableFunctionLevelLinking="true"
 				WarningLevel="3"
@@ -132,7 +132,7 @@
 				Name="VCLinkerTool"
 				AdditionalDependencies="ws2_32.lib python26.lib libzmq.lib"
 				OutputFile="$(ProjectName).pyd"
-				AdditionalLibraryDirectories="../../windows/Debug"
+				AdditionalLibraryDirectories="../../windows/Debug;C:\Python26\libs"
 				GenerateDebugInformation="true"
 				OptimizeReferences="2"
 				EnableCOMDATFolding="2"



More information about the zeromq-dev mailing list