I solved my issue by building twice, and copy the build products out of the way each time.
msbuild freetype.vcxproj /p:Configuration=Release xcopy "%TOP%\%SRC_DIR%\objs\vc2010\Win32" "%TOP%\%PRODUCT_DIR%\lib" /O /X /E /H /K move "%TOP%\%PRODUCT_DIR%\lib\freetype27.lib" "%TOP%\%PRODUCT_DIR%\lib\freetype.lib" msbuild freetype.vcxproj /p:Configuration=Release /t:clean msbuild freetype.vcxproj /p:Configuration=Release /p:ConfigurationType=DynamicLibrary xcopy "%TOP%\%SRC_DIR%\objs\vc2010\Win32" "%TOP%\%PRODUCT_DIR%\bin" /O /X /E /H /K move "%TOP%\%PRODUCT_DIR%\bin\freetype27.dll" "%TOP%\%PRODUCT_DIR%\bin\freetype.dll" xcopy /s /i "%TOP%\%SRC_DIR%\include" "%TOP%\%PRODUCT_DIR%\include" The build targets are not meant to build both at once. And in order to link against the products, I copy the sub directory in obj with the respective dll and lib. On 08/25/2017 12:18 PM, Vincent Torri wrote: > On Fri, Aug 25, 2017 at 7:17 PM, Hin-Tak Leung > <[email protected]> wrote: >>> Date: Thu, 24 Aug 2017 10:34:24 -0700 >>> From: "[email protected]" >>> <[email protected]> >>> To: [email protected] >>> Subject: [ft-devel] windows: why the >>> .lib file isn?t generated >> <snipped> >> >>> I expect to see both >>> %SRC%\objs\vc2010\Win32\freetype*.lib >>> %SRC%\objs\vc2010\Win32\freetype*.dll >>> But I only see the .dll >>> I am trying to use this with occt (Open >>> Cascade), which fails to >>> configure if the .lib is not present. >>> How do I fix my build? >> This is rather something you should consult your visual studio documentation >> for - I suspect it is a radio button option somewhere. The *.lib is called >> an "import library" - i.e. find that option in your visual studio menus.. >> Perhaps you can follow the mingw link below to fix it after the build too. >> >> When I am cross-compiling freetype for windows from linux (with the mingw >> cross gcc), the *.lib import libraries are created by an additional step >> with: >> dlltool : >> http://www.mingw.org/wiki/createimportlibraries > or maybe the file *.dll.a is created (import lib created by libtool > has usually the prefix .dll.a) > >> >> >> _______________________________________________ >> Freetype-devel mailing list >> [email protected] >> https://lists.nongnu.org/mailman/listinfo/freetype-devel > _______________________________________________ > Freetype-devel mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/freetype-devel _______________________________________________ Freetype-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/freetype-devel
