mjpan / sippy-ftgl Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/sippy-ftgl
License: BSD 3-Clause "New" or "Revised" License
Automatically exported from code.google.com/p/sippy-ftgl
License: BSD 3-Clause "New" or "Revised" License
This is a Python binding for the FTGL library. It requires the following: * FTGL v2.1.3~rc5 * Freetype v2.3.9 Once installed (see INSTALL for instructions), your Python application can use FTGL as follows. First, import the module: import FTGL Usage is the same as the C++ API, with the following caveats: * font.BBox method * Instead of font.BBox(...), one first creates a BBox bbox = FTGL.BBox() * now pass in the font and string value bbox.setValuesUsingFont(font, str)
I'm trying to make a Windows 64-bit build, since PyFTGL was giving me fits with
linking against Boost. Unfortunately I'm running into problems with sippy-ftgl
too.
I had to hand-hack the generated Makefile because Visual Studio's nmake doesn't
recognize the /L parameter and thus wasn't finding the FTGL .lib file to link
against. Thus the lines defining LFLAGS and LIBS are now this:
LFLAGS = /NOLOGO /DLL /MANIFEST /MANIFESTFILE:$(TARGET).manifest
/SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32'
name='Microsoft.Windows.Common-Controls' version='6.0.0.0'
publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'"
/INCREMENTAL:NO
LIBS = /LIBPATH:C:\Python27x64\libs python27.lib
/LIBPATH:C:\omxBuildDependencies\ftgl-2.1.3~rc5\msvc\Build ftgl.lib
.SUFFIXES: .c .cpp .cc .cxx .C
When I build, I get a bunch of link errors (pasted at the end). If I try to
build again after these errors, then I get this error:
fatal error LNK1149: output filename matches input filename
'C:\omxBuildDependencies\sippy-ftgl-0.1\FTGL.lib'
It appears that the build process is generating an "FTGL.lib" in the sippy
directory as a prelude (or replacement?) for generating the .pyd file, which is
causing confusion on repeat builds. "make clean" doesn't remove these files
either, though I can of course delete them by hand. If I change the TARGET
variable from "FTGL.pyd" to "FTGLpy.pyd" to remove the naming conflict, then I
consistently get the link errors.
I've attached my hand-hacked makefile for your perusal. Please let me know if
you can see what's going wrong.
Here's the link errors:
link /NOLOGO /DLL /MANIFEST /MANIFESTFILE:FTGL.pyd.manifest /SUBSYSTEM:WINDOWS
"/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls'
version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*'
processorArchitecture='*'" /INCREMENTAL:NO /OUT:FTGL.pyd
@C:\Users\admin\AppData\Local\Temp\nm5BC1.tmp
Creating library FTGL.lib and object FTGL.exp
sipFTGLFTGLPolygonFont.obj : error LNK2001: unresolved external symbol "public:
virtual class FTBBox __cdecl FTFont::BBox(unsigned short const *,int,class
FTPoint,class FTPoint)" (?BBox@FTFont@@UEAA?AVFTBBox@@PEBGHVFTPoint@@1@Z)
sipFTGLFTGLOutlineFont.obj : error LNK2001: unresolved external symbol "public:
virtual class FTBBox __cdecl FTFont::BBox(unsigned short const *,int,class
FTPoint,class FTPoint)" (?BBox@FTFont@@UEAA?AVFTBBox@@PEBGHVFTPoint@@1@Z)
sipFTGLFTGLPixmapFont.obj : error LNK2001: unresolved external symbol "public:
virtual class FTBBox __cdecl FTFont::BBox(unsigned short const *,int,class
FTPoint,class FTPoint)" (?BBox@FTFont@@UEAA?AVFTBBox@@PEBGHVFTPoint@@1@Z)
sipFTGLFTGLTextureFont.obj : error LNK2001: unresolved external symbol "public:
virtual class FTBBox __cdecl FTFont::BBox(unsigned short const *,int,class
FTPoint,class FTPoint)" (?BBox@FTFont@@UEAA?AVFTBBox@@PEBGHVFTPoint@@1@Z)
sipFTGLFTGLBitmapFont.obj : error LNK2001: unresolved external symbol "public:
virtual class FTBBox __cdecl FTFont::BBox(unsigned short const *,int,class
FTPoint,class FTPoint)" (?BBox@FTFont@@UEAA?AVFTBBox@@PEBGHVFTPoint@@1@Z)
sipFTGLFTGLExtrdFont.obj : error LNK2001: unresolved external symbol "public:
virtual class FTBBox __cdecl FTFont::BBox(unsigned short const *,int,class
FTPoint,class FTPoint)" (?BBox@FTFont@@UEAA?AVFTBBox@@PEBGHVFTPoint@@1@Z)
sipFTGLFTGLPolygonFont.obj : error LNK2001: unresolved external symbol "public:
virtual float __cdecl FTFont::Advance(unsigned short const *,int,class
FTPoint)" (?Advance@FTFont@@UEAAMPEBGHVFTPoint@@@Z)
sipFTGLFTGLOutlineFont.obj : error LNK2001: unresolved external symbol "public:
virtual float __cdecl FTFont::Advance(unsigned short const *,int,class
FTPoint)" (?Advance@FTFont@@UEAAMPEBGHVFTPoint@@@Z)
sipFTGLFTGLPixmapFont.obj : error LNK2001: unresolved external symbol "public:
virtual float __cdecl FTFont::Advance(unsigned short const *,int,class
FTPoint)" (?Advance@FTFont@@UEAAMPEBGHVFTPoint@@@Z)
sipFTGLFTGLTextureFont.obj : error LNK2001: unresolved external symbol "public:
virtual float __cdecl FTFont::Advance(unsigned short const *,int,class
FTPoint)" (?Advance@FTFont@@UEAAMPEBGHVFTPoint@@@Z)
sipFTGLFTGLBitmapFont.obj : error LNK2001: unresolved external symbol "public:
virtual float __cdecl FTFont::Advance(unsigned short const *,int,class
FTPoint)" (?Advance@FTFont@@UEAAMPEBGHVFTPoint@@@Z)
sipFTGLFTGLExtrdFont.obj : error LNK2001: unresolved external symbol "public:
virtual float __cdecl FTFont::Advance(unsigned short const *,int,class
FTPoint)" (?Advance@FTFont@@UEAAMPEBGHVFTPoint@@@Z)
sipFTGLFTGLPolygonFont.obj : error LNK2001: unresolved external symbol "public:
virtual class FTPoint __cdecl FTFont::Render(unsigned short const *,int,class
FTPoint,class FTPoint,int)" (?Render@FTFont@@UEAA?AVFTPoint@@PEBGHV2@1H@Z)
sipFTGLFTGLOutlineFont.obj : error LNK2001: unresolved external symbol "public:
virtual class FTPoint __cdecl FTFont::Render(unsigned short const *,int,class
FTPoint,class FTPoint,int)" (?Render@FTFont@@UEAA?AVFTPoint@@PEBGHV2@1H@Z)
sipFTGLFTGLPixmapFont.obj : error LNK2001: unresolved external symbol "public:
virtual class FTPoint __cdecl FTFont::Render(unsigned short const *,int,class
FTPoint,class FTPoint,int)" (?Render@FTFont@@UEAA?AVFTPoint@@PEBGHV2@1H@Z)
sipFTGLFTGLTextureFont.obj : error LNK2001: unresolved external symbol "public:
virtual class FTPoint __cdecl FTFont::Render(unsigned short const *,int,class
FTPoint,class FTPoint,int)" (?Render@FTFont@@UEAA?AVFTPoint@@PEBGHV2@1H@Z)
sipFTGLFTGLBitmapFont.obj : error LNK2001: unresolved external symbol "public:
virtual class FTPoint __cdecl FTFont::Render(unsigned short const *,int,class
FTPoint,class FTPoint,int)" (?Render@FTFont@@UEAA?AVFTPoint@@PEBGHV2@1H@Z)
sipFTGLFTGLExtrdFont.obj : error LNK2001: unresolved external symbol "public:
virtual class FTPoint __cdecl FTFont::Render(unsigned short const *,int,class
FTPoint,class FTPoint,int)" (?Render@FTFont@@UEAA?AVFTPoint@@PEBGHV2@1H@Z)
FTGL.pyd : fatal error LNK1120: 3 unresolved externals
Original issue reported on code.google.com by [email protected]
on 16 May 2011 at 4:39
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.