[Clam-devel]Having MSVC tool chain causes problems while targets building in Windows
David García Garzón
dgarcia at iua.upf.edu
Wed May 7 04:56:26 PDT 2008
On Dimecres 07 Maig 2008, JunJun wrote:
> While trying install, meet problem as below:
> Creating library file: scons\libs\core\libclam_core.a
> Install file: "scons\libs\core\clam_core.dll" as
> Install file: "scons\libs\core\libclam_core.a" as
> Install file: "scons\libs\core\clam_core.exp" as
> scons: building terminated because of errors.
> scons/sconstools\versionInfo.py:14: DeprecationWarning: raising a string
> exception is deprecated
> raise "No svn revision found for "+ whatToCheck
> scons: *** [D:\mingw\local\lib\clam_core.exp]
> scons\libs\core\clam_core.exp: No such file or directory
> Finding the cause:
> When set to non-zero, suppresses creation of a corresponding Win32 static
> import lib by the SharedLibrary builder when used with MinGW or Microsoft
> Visual Studio. This also suppresses creation of an export (.exp) file when
> using Microsoft Visual Studio. Maybe, having the msvc tool chain is messing
> up things again"
> As a test, change the line in Sconstruct from:
> clam_env = Environment( ENV=os.environ, tools=['default'], CCFLAGS='')
> clam_env = Environment( ENV=os.environ, tools=['mingw'], CCFLAGS='')
> Then done building targets.
Does this means that that change finally solved the problem?
If so, i commited a hopefully multiplatform-save change to set the 'default'
tool to mingw just when sys.platform=='win32'. (rev 11361 for libs and 11363
for apps and plugins)
If this works, it might make the CCFLAGS='' parameter useless. So, once it is
working, try to remove it and see what happens.
The next step will be building the applications. Although your project is
centered on Annotator i recommend to build first the NetworkEditor. Being
simpler it will highlight faster any problem we could have.
To do so, use the scons lines at the end of the crosscompilation wiki:
but removing the 'crossmingw=1' option and pointing QTDIR and MINGWSANDBOX to
the proper path.
Did you installed Qt4 for windows? You will need it:
Qt version 4.4 has just been released but no mingw binaries yet :-( Anyway we
didn't tried the new Qt release even on linux and that would be too many
experiments at once. ;-)
David García Garzón
(Work) dgarcia at iua dot upf anotherdot es
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: This is a digitally signed message part.
More information about the clam-devel