[Scons-users] MS Visual Studio Install tries to find a not-existing file
Matthieu Brucher
matthieu.brucher at gmail.com
Sun Aug 19 08:53:24 EDT 2012
Hi Philip,
The .lib file is not only the name of the static library, for a shared
library it contains everything needed to link against the dll. It is built
only if you export something. If you don't export functions, it means that
you won't be able to link against it, only load it with something like
"LoadLibrary".
Cheers,
Matthieu
2012/8/19 Kraus Philipp <philipp.kraus at flashpixx.de>
> Hello,
>
> I compile under MS Visual Studio 2010 Express the LUA library.
>
> lib = envlua.Library(target="lua", source=libsrc)
> envlua.Install( "targetpath", lib )
>
> In this case, VS builds a *.lib file and installs it within the target
> directory.
> So if I switch to a shared library:
>
> lib = envlua.SharedLibrary(target="lua", source=libsrc)
> envlua.Install( "targetpath", lib )
>
> The Install command shows:
> scons: *** [library\build\LUA\5.2.1\lib\lua.lib] library\lua.lib: No such
> file or directory
>
> It is a correct error message, but no lua.lib is build (static build), so
> the Install command
> searches the static and the dynamic library. It seems, that the Install
> command searches
> on dynamic build also a static library.
>
> I would like to build only the DLL not the static version and would like
> to install the file
> in the target place
>
> How can I solve this problem?
>
> Thanks
>
> Phil
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> http://four.pairlist.net/mailman/listinfo/scons-users
>
--
Information System Engineer, Ph.D.
Blog: http://matt.eifelle.com
LinkedIn: http://www.linkedin.com/in/matthieubrucher
Music band: http://liliejay.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20120819/a237a30c/attachment.htm>
More information about the Scons-users
mailing list