![]() |
![]() | how to compile clamWin sources? | ![]() |
![]() |
![]() | ![]() |
alch
Site Admin
![]() |
![]() |
please follow the instructions and fullfill all requirements listed in the "install" file
|
|||||||||||
|
![]() |
![]() | ![]() |
alex001
![]() |
![]() |
OK, I did everything like install file says.
But I've got stuck here: C:\Temp\clamwin\Setup\py2exe>call c:\python23\python setup_all.py running py2exe *** generate typelib stubs *** Traceback (most recent call last): File "setup_all.py", line 134, in ? zipfile = "lib/clamwin.zip", File "c:\python23\lib\distutils\core.py", line 149, in setup dist.run_commands() File "c:\python23\lib\distutils\dist.py", line 907, in run_commands self.run_command(cmd) File "c:\python23\lib\distutils\dist.py", line 927, in run_command cmd_obj.run() File "C:\Python23\Lib\site-packages\py2exe\build_exe.py", line 218, in run self._run() File "C:\Python23\Lib\site-packages\py2exe\build_exe.py", line 249, in _run self.typelibs) File "C:\Python23\Lib\site-packages\py2exe\build_exe.py", line 1497, in collec t_win32com_genpy mod = gencache.GetModuleForTypelib(*info) File "C:\Python23\Lib\site-packages\win32com\client\gencache.py", line 258, in GetModuleForTypelib mod = _GetModule(modName) File "C:\Python23\Lib\site-packages\win32com\client\gencache.py", line 629, in _GetModule mod = __import__(mod_name) ImportError: No module named 00062FFF-0000-0000-C000-000000000046x0x9x0 C:\Temp\clamwin\Setup\py2exe>if not "1" == "0" goto ERROR an error occured Could you please help me... |
|||||||||||
|
![]() |
![]() | ![]() |
alex001
![]() |
![]() |
I have downloaded and installed everything.
I one thing I didn't do is "applying of the patch": clamav-0.88.1-native.patch. how could I apply it? TIA. |
|||||||||||
|
![]() |
![]() | ![]() |
alch
Site Admin
![]() |
![]() |
|
|||||||||||||||
|
![]() |
![]() | ![]() |
alch
Site Admin
![]() |
![]() |
1. download clamav source and unpack it 1 folder level above clamwin 2. cd clamav-release 3. patch -p1 <../clamwin/patches/clamav-0.88.2.3-native.patch 4. patch -p1 <../clamwin/patches/clamav-0.88.2.3-contrib-msvc.patch |
|||||||||||||
|
![]() |
![]() | ![]() |
alex001
![]() |
![]() |
[quote="alch"][quote="alex001"]
ImportError: No module named 00062FFF-0000-0000-C000-000000000046x0x9x0 [/quote]
Thanks alch! This compiles now ok.
Successfully patched! Thanks a lot. One last questions: 1) When I compile clamscan solution under VS2005 I'm getting these errors: Error 1 fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory c:\program files\clamav-0.88.1\libclamav\cvd.c 31 Error 2 fatal error C1083: Cannot open include file: 'gmp.h': No such file or directory c:\program files\clamav-0.88.1\libclamav\dsig.c 31 2) How to combine clamav and clamwin? When I run compiled clamwin and press "scan for viruses" button -- it doesn't work -- no scan report dialog appears. Thank you very much. :-] |
|||||||||||||||
|
![]() |
![]() | ![]() |
alex001
![]() |
![]() |
[quote="alex001"]
1) When I compile clamscan solution under VS2005 I'm getting these errors: Error 1 fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory c:\program files\clamav-0.88.1\libclamav\cvd.c 31 Error 2 fatal error C1083: Cannot open include file: 'gmp.h': No such file or directory c:\program files\clamav-0.88.1\libclamav\dsig.c 31[/quote] OK, found these in cygwin include folder. Sorry for flood. |
|||||||||||
|
![]() |
![]() | ![]() |
alex001
![]() |
![]() |
[quote="alex001"][quote="alex001"]
OK, found these in cygwin include folder. Sorry for flood. [/quote] No there're still errors: Error 1 fatal error LNK1104: cannot open file 'zlibd.lib' libclamav Error 2 fatal error LNK1104: cannot open file '.\debug\libclamavd.lib' clamscan Error 3 fatal error LNK1104: cannot open file '.\debug\libclamavd.lib' freshclam Error 4 fatal error LNK1104: cannot open file '.\debug\libclamavd.lib' sigtool I don't have "zlibd.lib" file! Whre's it?! Thanks. |
|||||||||||
|
![]() |
![]() | ![]() |
alex001
![]() |
![]() |
Actually I don't need to compile clamav -- I can get binaries from clamwin folder.
But this question is still active: "2) How to combine clamav and clamwin? When I run compiled clamwin and press "scan for viruses" button -- it doesn't work -- no scan report dialog appears." What should I change to have this run ok. Thanks a lot! |
|||||||||||
|
![]() |
![]() | ![]() |
alch
Site Admin
![]() |
![]() |
most likely it's a python problem, not clamav. Did you install pywin32 extensions as mentioned in instal file? Also check your clamwin preferences dialog if the file paths are configured correctly. Also check clamwin1-4.log files in your temp folder it'll tell you what the error is. To build clamav-win32 from source see this page: https://oss.netfarm.it/clamav/ |
|||||||||||||
|
![]() |
![]() | ![]() |
alex001
![]() |
![]() |
[quote="alch"]
most likely it's a python problem, not clamav. Did you install pywin32 extensions as mentioned in instal file? Also check your clamwin preferences dialog if the file paths are configured correctly. Also check clamwin1-4.log files in your temp folder it'll tell you what the error is. To build clamav-win32 from source see this page: https://oss.netfarm.it/clamav/[/quote] Thanks. I did install pywin32. Preferences are ok. Log file contains this: Scanning: "C:/" Traceback (most recent call last): File "wxFrameMain.pyo", line 361, in OnScanButton File "wxDialogUtils.pyo", line 132, in wxScan File "wxDialogStatus.pyo", line 112, in create File "wxDialogStatus.pyo", line 192, in __init__ TypeError: __init__() got an unexpected keyword argument 'useParentBackground' WTF?! ![]() After copying Libs from original install -- works great. Thank you alch. |
|||||||||||
|
![]() |
![]() | ![]() |
alch
Site Admin
![]() |
![]() |
most likely wxwindows dll was missing. refer to setup.iss for more info on what files need to be copied.
You need to be able to debug python code if you want to modify source. |
|||||||||||
|
![]() |
![]() | ![]() |
sherpya
![]() |
![]() |
I hope to have soon time to add zlib gmp & co. lib files with their includes, zlib and bzlib are not easy to compile
since they need some hacks in the makefile and they don't have a vs proj |
|||||||||||
|
![]() |
![]() | ![]() |
Mark.Fortescue
![]() |
![]() |
[quote="alex001"][quote="alch"][quote="alex001"]
ImportError: No module named 00062FFF-0000-0000-C000-000000000046x0x9x0 [/quote] [quote] [b]from install file:[/b] To build Outlook Addin you need to have msoutl9.tlb (version 9.0.0) regsitered. This is part of Microsoft Office 2000. This version is used for compatibility reasons. [/quote][/quote] Thanks alch! This compiles now ok. [quote] 1. download clamav source and unpack it 1 folder level above clamwin 2. cd clamav-release 3. patch -p1 <../clamwin/patches/clamav-0.88.2.3-native.patch 4. patch -p1 <../clamwin/patches/clamav-0.88.2.3-contrib-msvc.patch [/quote] Successfully patched! Thanks a lot. One last questions: 1) When I compile clamscan solution under VS2005 I'm getting these errors: Error 1 fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory c:\program files\clamav-0.88.1\libclamav\cvd.c 31 Error 2 fatal error C1083: Cannot open include file: 'gmp.h': No such file or directory c:\program files\clamav-0.88.1\libclamav\dsig.c 31 2) How to combine clamav and clamwin? When I run compiled clamwin and press "scan for viruses" button -- it doesn't work -- no scan report dialog appears. Thank you very much. :-][/quote] Hi, To build clamav from source, I had to build bzip2, zlib and gmp libraries and place the relevent files (libbz2.lib, zlib.lib, gmp.lib, bzlib.h, gmp.h, zconf.h and zlib.h) into my MSVC++ Express 2005 lib and include directories. The source used for these was: bzip2-1.0.3.tar.gz, gmp-4.1.4.tar.bz2, gnump-msvc.zip and zlib-1.2.3.tar.bz2. The bzip2, gmp and zlib builds were done from within the IDE, not the commandline. Some additional changes has to be made to the clamav project files in clamav-0.88.2 to deal with dll/libclamav dependencies: diff -ru clamwin.release/clamav-0.88.2/contrib/msvc/clamscan.vcproj clamwin/clamav-0.88.2/contrib/msvc/clamscan.vcproj --- clamwin.release/clamav-0.88.2/contrib/msvc/clamscan.vcproj 2006-06-07 03:46:02.968750000 +0100 +++ clamwin/clamav-0.88.2/contrib/msvc/clamscan.vcproj 2006-06-09 01:03:05.921875000 +0100 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" - Version="8,00" + Version="8.00" Name="clamscan" ProjectGUID="{6F92200A-5A5A-43E5-9DC4-34BE604F7CF7}" RootNamespace="clamav" @@ -68,6 +68,7 @@ /> <Tool Name="VCLinkerTool" + AdditionalOptions="$(TargetDir)\libclamavd.lib AdvAPI32.lib" LinkIncremental="2" GenerateDebugInformation="true" SubSystem="1" @@ -149,6 +150,7 @@ /> <Tool Name="VCLinkerTool" + AdditionalOptions="$(TargetDir)\libclamavd.lib AdvAPI32.lib" LinkIncremental="2" GenerateDebugInformation="true" SubSystem="1" @@ -225,6 +227,7 @@ /> <Tool Name="VCLinkerTool" + AdditionalOptions="$(TargetDir)\libclamav.lib AdvAPI32.lib" LinkIncremental="1" GenerateDebugInformation="false" SubSystem="1" @@ -304,6 +307,7 @@ /> <Tool Name="VCLinkerTool" + AdditionalOptions="$(TargetDir)\libclamav.lib AdvAPI32.lib" LinkIncremental="1" GenerateDebugInformation="false" SubSystem="1" diff -ru clamwin.release/clamav-0.88.2/contrib/msvc/freshclam.vcproj clamwin/clamav-0.88.2/contrib/msvc/freshclam.vcproj --- clamwin.release/clamav-0.88.2/contrib/msvc/freshclam.vcproj 2006-06-07 03:46:03.046875000 +0100 +++ clamwin/clamav-0.88.2/contrib/msvc/freshclam.vcproj 2006-06-09 01:03:05.953125000 +0100 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" - Version="8,00" + Version="8.00" Name="freshclam" ProjectGUID="{F88905DF-1BED-4C69-9F48-1B20FF7B084E}" RootNamespace="freshclam" @@ -64,6 +64,7 @@ /> <Tool Name="VCLinkerTool" + AdditionalOptions="$(TargetDir)\libclamavd.lib AdvAPI32.lib" AdditionalDependencies="ws2_32.lib iphlpapi.lib" LinkIncremental="2" GenerateDebugInformation="true" @@ -142,6 +143,7 @@ /> <Tool Name="VCLinkerTool" + AdditionalOptions="$(TargetDir)\libclamavd.lib AdvAPI32.lib" AdditionalDependencies="ws2_32.lib iphlpapi.lib" LinkIncremental="2" GenerateDebugInformation="true" @@ -217,6 +219,7 @@ /> <Tool Name="VCLinkerTool" + AdditionalOptions="$(TargetDir)\libclamav.lib AdvAPI32.lib" AdditionalDependencies="ws2_32.lib iphlpapi.lib" LinkIncremental="1" GenerateDebugInformation="false" @@ -295,6 +298,7 @@ /> <Tool Name="VCLinkerTool" + AdditionalOptions="$(TargetDir)\libclamav.lib AdvAPI32.lib" AdditionalDependencies="ws2_32.lib iphlpapi.lib" LinkIncremental="1" GenerateDebugInformation="false" diff -ru clamwin.release/clamav-0.88.2/contrib/msvc/libclamav.vcproj clamwin/clamav-0.88.2/contrib/msvc/libclamav.vcproj --- clamwin.release/clamav-0.88.2/contrib/msvc/libclamav.vcproj 2006-06-07 03:46:03.390625000 +0100 +++ clamwin/clamav-0.88.2/contrib/msvc/libclamav.vcproj 2006-06-09 01:03:05.984375000 +0100 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" - Version="8,00" + Version="8.00" Name="libclamav" ProjectGUID="{0E45E0DC-F9DB-4F31-A58C-1515EDE2A95B}" RootNamespace="clamav" @@ -67,6 +67,7 @@ /> <Tool Name="VCLinkerTool" + AdditionalOptions="AdvAPI32.lib" OutputFile="$(OutDir)\$(ProjectName)d.dll" LinkIncremental="2" IgnoreDefaultLibraryNames="" @@ -152,6 +153,7 @@ /> <Tool Name="VCLinkerTool" + AdditionalOptions="AdvAPI32.lib" OutputFile="$(OutDir)\$(ProjectName)d.dll" LinkIncremental="2" IgnoreDefaultLibraryNames="" @@ -234,6 +236,7 @@ /> <Tool Name="VCLinkerTool" + AdditionalOptions="AdvAPI32.lib" ShowProgress="0" LinkIncremental="1" IgnoreDefaultLibraryNames="libcmt.lib" @@ -317,6 +320,7 @@ /> <Tool Name="VCLinkerTool" + AdditionalOptions="AdvAPI32.lib" ShowProgress="0" LinkIncremental="1" IgnoreDefaultLibraryNames="libcmt.lib" diff -ru clamwin.release/clamav-0.88.2/contrib/msvc/sigtool.vcproj clamwin/clamav-0.88.2/contrib/msvc/sigtool.vcproj --- clamwin.release/clamav-0.88.2/contrib/msvc/sigtool.vcproj 2006-06-07 03:46:03.468750000 +0100 +++ clamwin/clamav-0.88.2/contrib/msvc/sigtool.vcproj 2006-06-09 01:03:06.015625000 +0100 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" - Version="8,00" + Version="8.00" Name="sigtool" ProjectGUID="{5163901E-4C74-421E-A053-7599C3A9D9B8}" RootNamespace="clamav" @@ -68,6 +68,7 @@ /> <Tool Name="VCLinkerTool" + AdditionalOptions="$(TargetDir)\libclamavd.lib AdvAPI32.lib" AdditionalDependencies="ws2_32.lib" LinkIncremental="2" GenerateDebugInformation="true" @@ -150,6 +151,7 @@ /> <Tool Name="VCLinkerTool" + AdditionalOptions="$(TargetDir)\libclamavd.lib AdvAPI32.lib" AdditionalDependencies="ws2_32.lib" LinkIncremental="2" GenerateDebugInformation="true" @@ -227,6 +229,7 @@ /> <Tool Name="VCLinkerTool" + AdditionalOptions="$(TargetDir)\libclamav.lib AdvAPI32.lib" AdditionalDependencies="ws2_32.lib" LinkIncremental="1" IgnoreDefaultLibraryNames="libcmt.lib" @@ -308,6 +311,7 @@ /> <Tool Name="VCLinkerTool" + AdditionalOptions="$(TargetDir)\libclamav.lib AdvAPI32.lib" AdditionalDependencies="ws2_32.lib" LinkIncremental="1" IgnoreDefaultLibraryNames="libcmt.lib" Hope this helps. |
|||||||||||
|
![]() |
![]() | how to compile clamWin sources? | ![]() |
|
||
![]() |
![]() |
Powered by phpBB © phpBB Group
Design by phpBBStyles.com | Styles Database.
Content © ClamWin Free Antivirus GNU GPL Free Software Open Source Virus Scanner. Free Windows Antivirus. Stay Virus Free with Free Software.
Design by phpBBStyles.com | Styles Database.
Content © ClamWin Free Antivirus GNU GPL Free Software Open Source Virus Scanner. Free Windows Antivirus. Stay Virus Free with Free Software.