freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] windows: why the .lib file isn?t generated (Re: Freetype-


From: address@hidden
Subject: Re: [ft-devel] windows: why the .lib file isn?t generated (Re: Freetype-devel Digest, Vol 151, Issue 38)
Date: Tue, 29 Aug 2017 10:08:14 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0

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
> <address@hidden> wrote:
>>> Date: Thu, 24 Aug 2017 10:34:24 -0700
>>> From: "address@hidden"
>>> <address@hidden>
>>> To: address@hidden
>>> 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
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/freetype-devel
> _______________________________________________
> Freetype-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/freetype-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]