ClamAV is an open source (GPLv2) anti-virus toolkit.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
clamav/win32
Török Edvin 5dfa6ec8cf Update win32 proj files. 15 years ago
..
3rdparty win32/3rdparty: upgrade bzip2 to 1.0.6 15 years ago
clamav-for-windows sigui: fix objfile conflicts 15 years ago
compat win32 - gai strerror 15 years ago
llvmbuild preliominary support fot x64 target - untested! 15 years ago
res bump winver 15 years ago
.gitignore Add missing build/ 15 years ago
ClamAV.sln fix win32 proj files 15 years ago
LLVMcodegen.vcxproj Update win32 proj files. 15 years ago
LLVMcodegen.vcxproj.filters win32: project files updated to vs10; 64bit stuff will be restored soon 15 years ago
LLVMjit.vcxproj Update win32 proj files. 15 years ago
LLVMjit.vcxproj.filters win32: project files updated to vs10; 64bit stuff will be restored soon 15 years ago
LLVMsystem.vcxproj Update win32 proj files. 15 years ago
LLVMsystem.vcxproj.filters win32: project files updated to vs10; 64bit stuff will be restored soon 15 years ago
LLVMx86codegen.vcxproj Update win32 proj files. 15 years ago
LLVMx86codegen.vcxproj.filters win32: vs10 done 15 years ago
README win32 fixes: bb#2152 and bb#2153 15 years ago
clamav-config.h Update win32 proj files. 15 years ago
clambc.vcxproj win32: vs10 done 15 years ago
clambc.vcxproj.filters win32: project files updated to vs10; 64bit stuff will be restored soon 15 years ago
clamconf.vcxproj win32: vs10 done 15 years ago
clamconf.vcxproj.filters win32: project files updated to vs10; 64bit stuff will be restored soon 15 years ago
clamd.vcxproj win32: vs10 done 15 years ago
clamd.vcxproj.filters win32: project files updated to vs10; 64bit stuff will be restored soon 15 years ago
clamdscan.vcxproj Run update-win32.pl for new file. 15 years ago
clamdscan.vcxproj.filters win32: project files updated to vs10; 64bit stuff will be restored soon 15 years ago
clamscan.vcxproj win32: vs10 done 15 years ago
clamscan.vcxproj.filters win32: project files updated to vs10; 64bit stuff will be restored soon 15 years ago
configure.bat win32: configure.js 16 years ago
configure.js do version.h in js, not in perl 16 years ago
freshclam.vcxproj Run update-win32.pl for new file. 15 years ago
freshclam.vcxproj.filters win32: project files updated to vs10; 64bit stuff will be restored soon 15 years ago
libclamav.def Default off, you can turn on via 'DevLiblog'. 15 years ago
libclamav.vcxproj Regenerate Makefile after new file added. 15 years ago
libclamav.vcxproj.filters win32: upgrade zlib to v. 1.2.5 15 years ago
libclamavcxx.vcxproj update win32 projs 15 years ago
libclamavcxx.vcxproj.filters win32: project files updated to vs10; 64bit stuff will be restored soon 15 years ago
libclamunrar.def win32: add unrar s'port 16 years ago
libclamunrar.vcxproj win32: vs10 done 15 years ago
libclamunrar.vcxproj.filters win32: project files updated to vs10; 64bit stuff will be restored soon 15 years ago
libclamunrar_iface.def win32: add unrar s'port 16 years ago
libclamunrar_iface.vcxproj win32: vs10 done 15 years ago
libclamunrar_iface.vcxproj.filters win32: project files updated to vs10; 64bit stuff will be restored soon 15 years ago
platform.h clamav-for-windows draft 15 years ago
sigtool.vcxproj win32: vs10 done 15 years ago
sigtool.vcxproj.filters win32: project files updated to vs10; 64bit stuff will be restored soon 15 years ago
target.h win32 fixes: bb#2152 and bb#2153 15 years ago
update-win32.pl update win32 projs 15 years ago

README

ClamAV for Win32
----------------

0- Requirements

To build the source code you will need:
- Git for windows with a git "shell"
- Microsoft Visual Studio 2010: the express version builds the 32bit target
just fine but it requires a decent amount of fiddling in order to compile
the 64bit target; this configuration is therefore not supported.

To run the binaries at least Windows 2000 is required.

1- Getting the code

The win32 source code is merged in the ClamAV repository and is available
via git.
Clone the repository with: git clone git://git.clamav.net/git/clamav-devel
See http://www.clamav.net/download/sources for more info.


2- Code configuration

After downloading the source code, minimal configuration is required:
just run the win32/configure.bat script *from within the git shell*.
Skip this step if you are building from an official release tarball.


3- Compilation

Open win32/ClamAV.sln in Visual Studio and build all.
The output directory for the binaries is either /win32/(Win32|x64)/Debug or
/win32/(Win32|x64)/Release depending on the configuration you pick.

Note: at the time of writing Batch Build is broken in VS10:
https://connect.microsoft.com/VisualStudio/feedback/details/556158
Use MSBuild instead


4- Special notes

The ClamAV tools in win32 are the same as in unix, so refer to their respective
manpage for general usage.
The major differences are listed below:
- Config files path search order:
1- The content of the registry key "HKEY_LOCAL_MACHINE/Software/ClamAV/ConfDir"
2- The directory where libclamav.dll is located
3- "C:\ClamAV"

- Database files path search order:
1- The content of the registry key "HKEY_LOCAL_MACHINE/Software/ClamAV/DataDir"
2- The directory "database" inside the directory where libclamav.dll is located
3- "C:\ClamAV\db"

- Globbing
Since the windows command prompt doesn't take care of wildcard expansion, minimal
emulation of unix glob() is performed internally. It supports "*" and "?" only.

- File paths
Please always use the backslash as the path separator.
SMB Network shares and UNC paths are supported.

- Debug builds
Malloc in debug (as opposed to release) mode fails after allocating some 90k
chunks; such builds won't be able to handle large databases.
Just do yourself a favour and always build in release mode.


5- Special thanks

Special thanks to Gianluigi Tiesi and Mark Pizzolato for their valuable help in
coding and testing.