OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Cannot use freetype for openscenegraph example


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins]
View previous topic :: View next topic  
Author Message
nghien_rbc
Newbie


Joined: 20 Jul 2016
Posts: 9

PostPosted: Wed Jul 20, 2016 4:19 pm    Post subject:
Cannot use freetype for openscenegraph example
Reply with quote

Hi,

First I build OpenSceneGraph from source and run the example_osgViewerIPhone and it works. Then I tried to integrate freetype plugin to this target.

I build osgdb_freetype target from source after config include and library paths of freetype I downloaded from openframeworks as the README.txt of OSG suggested. The result it make a lib file libOpenThreadsd.a in my lib folder. Then I add this lib to project from Build Phases and build again but many errors occur below.

I also try manual build FreeType for iOS Simulator from source but the result is same.

Addition Info: I build OSG for iphone Simulator so all config of Architectures is same i386. OSG Version 3.2.3. CMake ver 3.2.0. Xcode 6.1. MacOS 10.9.4. iOS 8.1

So how can I make freetype plugin use for OSG project correctly, or how to build freetype for iOS Simulator? Please give me some suggestions, many thanks.

This is my error log:

Code:
Undefined symbols for architecture i386:
  "_FT_Done_Face", referenced from:
      FreeTypeFont::~FreeTypeFont() in libosgdb_freetyped.a(FreeTypeFont.o)
  "_FT_Done_FreeType", referenced from:
      FreeTypeLibrary::~FreeTypeLibrary() in libosgdb_freetyped.a(FreeTypeLibrary.o)
  "_FT_Get_Char_Index", referenced from:
      FreeTypeFont::getKerning(unsigned int, unsigned int, osgText::KerningType) in libosgdb_freetyped.a(FreeTypeFont.o)
  "_FT_Get_Kerning", referenced from:
      FreeTypeFont::getKerning(unsigned int, unsigned int, osgText::KerningType) in libosgdb_freetyped.a(FreeTypeFont.o)
  "_FT_Init_FreeType", referenced from:
      FreeTypeLibrary::FreeTypeLibrary() in libosgdb_freetyped.a(FreeTypeLibrary.o)
  "_FT_Load_Char", referenced from:
      FreeTypeFont::getGlyph(std::pair<unsigned int, unsigned int> const&, unsigned int) in libosgdb_freetyped.a(FreeTypeFont.o)
      FreeTypeFont::getGlyph3D(unsigned int) in libosgdb_freetyped.a(FreeTypeFont.o)
  "_FT_New_Face", referenced from:
      FreeTypeLibrary::getFace(std::string const&, unsigned int, FT_FaceRec_*&) in libosgdb_freetyped.a(FreeTypeLibrary.o)
  "_FT_Open_Face", referenced from:
      FreeTypeLibrary::getFace(std::istream&, unsigned int, FT_FaceRec_*&) in libosgdb_freetyped.a(FreeTypeLibrary.o)
  "_FT_Outline_Decompose", referenced from:
      FreeTypeFont::getGlyph3D(unsigned int) in libosgdb_freetyped.a(FreeTypeFont.o)
  "_FT_Outline_Get_BBox", referenced from:
      FreeTypeFont::getGlyph3D(unsigned int) in libosgdb_freetyped.a(FreeTypeFont.o)
  "_FT_Set_Charmap", referenced from:
      FreeTypeLibrary::verifyCharacterMap(FT_FaceRec_*) in libosgdb_freetyped.a(FreeTypeLibrary.o)
  "_FT_Set_Pixel_Sizes", referenced from:
      FreeTypeFont::init() in libosgdb_freetyped.a(FreeTypeFont.o)
      FreeTypeFont::setFontResolution(std::pair<unsigned int, unsigned int> const&) in libosgdb_freetyped.a(FreeTypeFont.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Thank you!

Cheers,
duc
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts OpenSceneGraph static linking for And... tanshihaj Build system [build] 1 Thu Sep 21, 2017 12:56 pm View latest post
No new posts OpenSceneGraph-3.4.1 released! robertosfield General 3 Mon Aug 28, 2017 5:39 pm View latest post
No new posts OpenSceneGraph-3.4.1-rc3 tagged robertosfield General 2 Fri Aug 25, 2017 3:27 pm View latest post
No new posts OpenSceneGraph-3.4.1-rc2 tagged robertosfield General 3 Tue Aug 22, 2017 11:25 am View latest post
No new posts OpenSceneGraph static linking for And... tanshihaj Build system [build] 1 Sun Aug 13, 2017 10:09 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP