Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building on Windows #1

Open
GoogleCodeExporter opened this issue Mar 17, 2015 · 0 comments
Open

Building on Windows #1

GoogleCodeExporter opened this issue Mar 17, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant