You are not logged in Log in Join
You are here: Home » Members » isalsberg » Documentos relacionados con PTK » How to compile/link DynPersist on win32 using MS VC 6.0

Log in
Name

Password

 

How to compile/link DynPersist on win32 using MS VC 6.0

How to compile/link DynPersist on win32 using MS VC 6.0

Created by isalsberg

If You just need the extension (DLL) DynPersist for Zpatterns043b2, You will find it inside the file: DynPersist for ZPatterns043b2 VC6.zip.

If You are looking the latest DynPersist.dll for ActivePython211/Zpatterns043b2 You can get it from DynPersist_for_AP211_Zpatterns043b2.zip. This file was compiled by Reini Urban.

If You want to compile under Win NT the extension DynPersist used with ZPatterns, which also is used by the new PTK Product, this How-To may help.

  1. You have to download the following packages:
  2. You need to:
    • Decompress the "DynPersistVC6onNT" in temporary area. This will generate the src directory which has the C and include files needed to compile the module. The "DynPersist.c" file and The two ".h" files under the src directory were got from the ZPatterns-0-4-3b2.tgz and Zope-2.3.0-src.tgz files respectively, so if You are using a different ZPatterns or Zope version, You'd better get them (the "src" files) from the soruce tar ball corresponding to that version.
    • Install the python package.
  3. Go to the DynPersist directory and Open DynPersist.dsw with VC 6.0.
  4. Open the Options window (Tools\Options menu) and on the Directories tab, add the next paths to the list:
    • Select In the drop down list "Show directories for" Include Files and add:
      -path to the Python include files (the Include directory beneath You have installed python152 for Win32).
    • Select now Library files and add:
      -path to python15.lib
  5. Build it. This will create the library "DynPersist.dll" under the release directory. Then Copy it to somewhere in your path!
  6. Now install the ZPatterns product. To do so:
    • Untar the ZPatterns-0-4-3b2.tgz under the Zope's HOME directory. This will generate ZPatterns under <Zope_HOME>\lib\python\Products.
    • Go to <Zope_HOME>\lib\python\Products\ZPatterns directory and copy there the extension file: DynPersist.dll
  7. Restart Zope.

If You need the DLL for Zpatterns version 0-3-0, You can get it from DynPersist for ZPatterns030 on win32 using MS VC 6.0

That's it