ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
Compiling Clamav Library
flaviu2


Joined: 04 May 2017
Posts: 0
Reply with quote
Hi all of you. I am struggling for days to compile clamav library, with no success. Could you provide me the clamav library in order to use it in a simple test application ?
 
I have tried to compile the clamav library, and I respected whole steps, versions, etc.
 
The source code I have taken from here: https://github.com/vrtadmin/clamav-devel
 
The instructions I have taken from here; https://blog.clamav.net/2014/07/compiling-openssl-for-windows.html

I have compiled the library on Win10, with VS2017, and I get following errors:



Code:

1>d:\tempx\clamav-devel-master\libclamav\libmspack.c(12): fatal error C1083: Cannot open include file: 'mspack.h': No such file or directory
1>Done building project "libclamav.vcxproj" -- FAILED.

2>"D:\Tempx\clamav-devel-master\win32\Win32\Debug\libclamav.lib"
3>LINK : fatal error LNK1104: cannot open file 'D:\Tempx\clamav-devel-master\win32\Win32\Debug\libclamav.lib'
3>Done building project "clamscan.vcxproj" -- FAILED.

5>LINK : fatal error LNK1104: cannot open file 'D:\Tempx\clamav-devel-master\win32\Win32\Debug\libclamav.lib'

4>"D:\Tempx\clamav-devel-master\win32\Win32\Debug\libclamav.lib"
5>Done building project "clamdscan.vcxproj" -- FAILED.
6>------ Build started: Project: clamd, Configuration: Debug Win32 ------
4>LINK : fatal error LNK1104: cannot open file 'libcrypto.lib'
4>Done building project "freshclam.vcxproj" -- FAILED.
7>------ Build started: Project: clamconf, Configuration: Debug Win32 ------
6>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\link.exe /ERRORREPORT:PROMPT /OUT:"D:\Tempx\clamav-devel-master\win32\Win32\Debug\clamd.exe" /INCREMENTAL /NOLOGO /LIBPATH:C:\clamdeps\win32\openssl\lib ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG:FASTLINK /PDB:"D:\Tempx\clamav-devel-master\win32\Win32\Debug\clamd.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:\Tempx\clamav-devel-master\win32\Win32\Debug\clamd.lib" /MACHINE:X86 "D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\clamd.res"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\onaccess_fan.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\clamd.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\localserver.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\others.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\scanner.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\server-th.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\session.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\tcpserver.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\thrmgr.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\idmef_logging.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\misc.obj"
6>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamd\Debug\output.obj"
6>"D:\Tempx\clamav-devel-master\win32\Win32\Debug\libclamav.lib"
6>LINK : fatal error LNK1104: cannot open file 'D:\Tempx\clamav-devel-master\win32\Win32\Debug\libclamav.lib'
6>Done building project "clamd.vcxproj" -- FAILED.
7>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\link.exe /ERRORREPORT:PROMPT /OUT:"D:\Tempx\clamav-devel-master\win32\Win32\Debug\clamconf.exe" /INCREMENTAL /NOLOGO /LIBPATH:C:\clamdeps\win32\openssl\lib ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG:FASTLINK /PDB:"D:\Tempx\clamav-devel-master\win32\Win32\Debug\clamconf.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:\Tempx\clamav-devel-master\win32\Win32\Debug\clamconf.lib" /MACHINE:X86 "D:\Tempx\clamav-devel-master\win32\build\Win32\clamconf\Debug\clamconf.res"
7>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamconf\Debug\clamconf.obj"
7>"D:\Tempx\clamav-devel-master\win32\build\Win32\clamconf\Debug\misc.obj"
7>"D:\Tempx\clamav-devel-master\win32\Win32\Debug\libclamav.lib"
7>LINK : fatal error LNK1104: cannot open file 'D:\Tempx\clamav-devel-master\win32\Win32\Debug\libclamav.lib'
7>Done building project "clamconf.vcxproj" -- FAILED.

8>"D:\Tempx\clamav-devel-master\win32\Win32\Debug\libclamav.lib"
8>LINK : fatal error LNK1104: cannot open file 'D:\Tempx\clamav-devel-master\win32\Win32\Debug\libclamav.lib'
8>Done building project "clambc.vcxproj" -- FAILED.


Could you provide me the clamav library in order to use in a test app, just like in the test example ? Thank you for any support/hint !
View user's profileSend private message
MSPack problem ...
flaviu2


Joined: 04 May 2017
Posts: 0
Reply with quote
I have noticed that I am missing
 
C:\clamdeps\win32\mspack\include
 
how can I get this "mspack" folder, and what it is that ?
View user's profileSend private message
GuitarBob


Joined: 09 Jul 2006
Posts: 9
Location: USA
Reply with quote
ClamWin ports the Linux Clam AV scan engine over to Windows, but we can not provide any help with Clam AV here on the ClamWin forums. I suggest you contact the Clam AV team. There is also lots of information about Clam AV on the web--do some searching. You might try to contact Sherpya, who prepares the Windows port for ClamWin.

Regards,
View user's profileSend private message
ROCKNROLLKID


Joined: 23 Sep 2013
Posts: 0
Location: **UNKNOWN**
Reply with quote
The current source code, you need to use VS2015. I don't think it will work with 2017. Everything you need should be in the links you provided.
View user's profileSend private message
flaviu2


Joined: 04 May 2017
Posts: 0
Reply with quote
Kindly thank you for your answer.
Yes, Indeed, I have compiled the library with VS2015 and I get only one error:
Code:

fatal error C1083: Cannot open include file: 'mspack.h': No such file or directory


Seem to miss the following path in C:

Code:

C:\clamdeps\win32\mspack\include

What should in put in C in order to have this folder ? And what is contain this ?

Thank you for any help ![/code]
View user's profileSend private message
ROCKNROLLKID


Joined: 23 Sep 2013
Posts: 0
Location: **UNKNOWN**
Reply with quote
I am not sure why that is happening. Please contact the ClamAV team here: https://www.clamav.net/contact
View user's profileSend private message
GuitarBob


Joined: 09 Jul 2006
Posts: 9
Location: USA
Reply with quote
Like I said, we can not provide much help here with Clam AV. The ClamWin Windows port is merely a subset of the original Clam AV code that is ported over to Windows. The intended user base here is Windows user PCs, not Linux email servers.

Regards,
View user's profileSend private message
MSPack problem ...
flaviu2


Joined: 04 May 2017
Posts: 0
Reply with quote
I am struggling to compile Clamav library in order to use it as Windows PC ... I have noticed that libclamav project has the following additional include directories:
Code:

D:\Temp\eW\clamav-devel-master\win32\
D:\Temp\eW\clamav-devel-master\win32\..\libclamav
D:\Temp\eW\clamav-devel-master\win32\compat
D:\Temp\eW\clamav-devel-master\win32\3rdparty\zlib
D:\Temp\eW\clamav-devel-master\win32\3rdparty\pthreads
D:\Temp\eW\clamav-devel-master\win32\3rdparty\bzip2
D:\Temp\eW\clamav-devel-master\win32\3rdparty\libxml2
D:\Temp\eW\clamav-devel-master\win32\3rdparty\libxml2\include
D:\Temp\eW\clamav-devel-master\win32\3rdparty\pcre
D:\Temp\eW\clamav-devel-master\win32\..
C:\clamdeps\win32\openssl\include
C:\clamdeps\win32\mspack\include

everything it's there, except the last row:

Code:

C:\clamdeps\win32\mspack\include


I have seek it on google what could be "MSPack", no clue ... strange ... and I really need this library !
View user's profileSend private message
Compiling Clamav Library
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic