[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:
> ..........
> -Wl,--out-implib,scons\libs\core\libclam_core.a
> -Wl,--output-def,scons\libs\core\clam_core.def
>
> Creating library file: scons\libs\core\libclam_core.a
>
> Install file: "scons\libs\core\clam_core.dll" as
> "D:\mingw\local\lib\clam_core.dll"
>
> Install file: "scons\libs\core\libclam_core.a" as
> "D:\mingw\local\lib\libclam_core.a"
>
> Install file: "scons\libs\core\clam_core.exp" as
> "D:\mingw\local\lib\clam_core.exp"
>
> 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:
>
>
> "no_import_lib
>  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='')
> to:
> 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:
http://iua-share.upf.edu/wikis/clam/index.php/Devel/Windows_MinGW_cross_compile

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:
ftp://ftp.trolltech.com/qt/source/qt-win-opensource-4.3.4-mingw.exe

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
http://www.iua.upf.edu/~dgarcia
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20080507/a87ab0c7/attachment-0001.sig>


More information about the clam-devel mailing list