Forum OpenACS Development: Re: Windows-OpenACS / Visual Studio 2022

Posted by Andrew Piskorski on
If you want Zlib, the official Zlib on Github looks as if it includes compiled binaries, but AFAICT it actually does not; its contains only source code, no executables. Zlib is easy to build from source, but doesn't include any automated way to install it, so I did that by hand.

Note that I happen to use a Z: drive which is a Samba share running on Linux. Obviously you can just do everything on your C: native Windows drive, but you'll need to tweak my instructions.

  1. Build zlib from source:
    "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
    z: & cd Z:\src\web\zlib-1.2.13
    nmake -f win32/Makefile.msc
  2. Fix permissions on the Linux disk side:
    cd /usr/local/src/web/zlib-1.2.13/
    find . -type f \( -name "*.exe" -o -name "*.dll" \) -print | sudo xargs chmod 775
  3. Install the compiled library files:
    (The xcopy /l option can be helpful to list the copies to be done without actually doing them.)
    mkdir C:\P\include
    mkdir C:\P\lib
    xcopy Z:\src\web\zlib-1.2.13   C:\P\zlib-1.2.13  /s /e /i /k /f
    xcopy C:\P\zlib-1.2.13\*.h     C:\P\include\  /k
    xcopy C:\P\zlib-1.2.13\z*.dll  C:\P\lib\      /k
    xcopy C:\P\zlib-1.2.13\z*.lib  C:\P\lib\      /k
    xcopy C:\P\zlib-1.2.13\z*.pdb  C:\P\lib\      /k