Updated the readme regarding the newer visual studio versions and the 'VC runtime dependency hell'
This commit is contained in:
parent
7d28dd559e
commit
e570b7943d
12
README
12
README
@ -266,12 +266,24 @@ In order to build libupnp under Windows the pthreads-w32 package is required.
|
|||||||
You can download a self-extracting ZIP file from the following location:
|
You can download a self-extracting ZIP file from the following location:
|
||||||
|
|
||||||
ftp://sources.redhat.com/pub/pthreads-win32/pthreads-w32-2-7-0-release.exe
|
ftp://sources.redhat.com/pub/pthreads-win32/pthreads-w32-2-7-0-release.exe
|
||||||
|
or possibly newer versions if available.
|
||||||
|
|
||||||
Execute the self-extracting archive and copy the Pre-build.2 folder to the
|
Execute the self-extracting archive and copy the Pre-build.2 folder to the
|
||||||
top level source folder.
|
top level source folder.
|
||||||
Rename Pre-build.2 to pthreads.
|
Rename Pre-build.2 to pthreads.
|
||||||
Open the provided workspace build\libupnp.dsw with Visual C++ 6.0 and select
|
Open the provided workspace build\libupnp.dsw with Visual C++ 6.0 and select
|
||||||
Build->Build libupnp.dll (F7)
|
Build->Build libupnp.dll (F7)
|
||||||
|
In the build directory there are also VC8, VC9 and VC10 folders containing
|
||||||
|
solution files for Visual Studio 2005/2008/2010 respectively.
|
||||||
|
|
||||||
|
If you use newer versions to build libupnp, eg Visual Studio 2003 or later,
|
||||||
|
then you need to rebuild the pthreads package so it uses the same VC runtime
|
||||||
|
as libupnp to prevent cross boundary runtime problems
|
||||||
|
(see http://msdn.microsoft.com/en-us/library/ms235460%28v=VS.100%29.aspx).
|
||||||
|
Just replace the files in the Pre-build.2 folder (renamed to pthreads as
|
||||||
|
mentioned above) with the newly build versions.
|
||||||
|
If you also use a newer version of pthreads-win32 then you should also
|
||||||
|
replace the header files in that directory structure (obviously).
|
||||||
|
|
||||||
For building a static library instead of a DLL and for using the static
|
For building a static library instead of a DLL and for using the static
|
||||||
pthreads-w32 library following switches need to be defined additionally:
|
pthreads-w32 library following switches need to be defined additionally:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user