I want to use FreeType in a c# project. I found this binding, but I still need a freetype.dll. I usually use a static library in my c++ projects, so I never compiled one. Opening the freetype-solution (VS2010) I noticed that there is no configuration for a dynamic library - just static ones. I tried to make my own configuration and got it to generate a freetype.dll. If I use it with the c#-binding I get an exception, that the FT_Init_FreeType-entry point was not found. Any idea how I must adjust the freetype-project in order to export those functions?
相关问题
- How to know full paths to DLL's from .csproj f
- Visual Studio 2010 randomly says the command line
- Angular: ngc or tsc?
- (ASP.NET) Project file must include 'WindowsBa
- Partial Form Class C# - Only display code view for
相关文章
- vs2017wpf项目引用dll的路径不正确的问题
- How to show location of errors, references to memb
- Log4Net Multiple Projects
- Compiling error in C++ project with C and C++ code
- How to use Mercurial from Visual Studio 2010?
- VSIX: execute code on VS startup
- Copy different file to output directory for releas
- How do we alias a Sql Server instance name used in
I'm going to bet that the problem is that your DLL project does not export any symbols, so while all the code is in there the addresses of the symbols are not in the exports table so nobody can get to them from the outside.
This question has a nice solution to export all the symbols in a .dll without having to manually list them.
If you're ok with an old version (march 2008), you can go to FreeType for Windows page, download the latest Binaries package, open the .ZIP, and extract FreeType6.dll from the bin directory. Just rename it appropriately.
If you need a more recent version, here is how you can compile the latest:
download the latest source (2.4.6 as of today) from http://sourceforge.net/projects/freetype/files/freetype2/
open Visual Studio 2010, and load
freetype.sln
from thebuilds\win32\vc2010
directory.open the project config, and in the
General
tab, changeConfiguration Type
toDynamic Library (.dll)
open the
ftoption.h
file, and add these lines (near the "DLL export compilation" remarks section for example):change the project compilation configuration to "Release".
compile the project. You should now have a
freetype246.dll
in theobjs\win32\vc2010
directory.