armadillu / ofxFontStash

Easy (and fast) unicode string rendering addon for OpenFrameworks. FontStash is made by Andreas Krinke and Mikko Mononen
http://uri.cat/
91 stars 42 forks source link

"ofUTF8.h" and "ofTextConverter.h" was no founded! #21

Closed logic1988 closed 8 years ago

logic1988 commented 8 years ago

I used ofx0.9.0 in osx10.11. I downloaded ofxUnicode in https://github.com/bakercp/ofxUnicode. But, There are no "ofUTF8.h" and "ofTextConverter.h" files in it. I searched it by github and founded it in some old probject, They look like the old version of ofxUnicode. It will result in the following error when using them: Typedef redefinition with different types ('utf8::iterator<ofUTF8Ptr>' (aka 'iterator<const char *>') vs 'ofUTF8Iterator') It looks like the name conflict with ofUTF8Iterator class in ofx0.9.0. So I renamed the ofUTF8Iterator in ofxUnicode, but another error occurred:

Ld bin/exampleDebug.app/Contents/MacOS/exampleDebug normal x86_64
    cd /Users/logic/Desktop/of_v0.9.0_osx_release/addons/ofxFontStash/example
    export MACOSX_DEPLOYMENT_TARGET=10.7
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -L/Users/logic/Desktop/of_v0.9.0_osx_release/addons/ofxFontStash/example/bin -F/Users/logic/Desktop/of_v0.9.0_osx_release/addons/ofxFontStash/example/bin -F/Users/logic/Desktop/of_v0.9.0_osx_release/addons/ofxFontStash/example/../../../libs/glut/lib/osx -filelist /Users/logic/Library/Developer/Xcode/DerivedData/example-dkmpjslqdcgehffrnevnjkihrdcm/Build/Intermediates/example.build/Debug/example.build/Objects-normal/x86_64/exampleDebug.LinkFileList -mmacosx-version-min=10.7 -dead_strip -Xlinker -no_deduplicate ../../../libs/poco/lib/osx/PocoCrypto.a ../../../libs/poco/lib/osx/PocoData.a ../../../libs/poco/lib/osx/PocoDataSQLite.a ../../../libs/poco/lib/osx/PocoJSON.a ../../../libs/poco/lib/osx/PocoUtil.a ../../../libs/poco/lib/osx/PocoXML.a ../../../libs/poco/lib/osx/PocoNet.a ../../../libs/poco/lib/osx/PocoNetSSL.a ../../../libs/poco/lib/osx/PocoZip.a ../../../libs/poco/lib/osx/PocoFoundation.a ../../../libs/tess2/lib/osx/tess2.a ../../../libs/glew/lib/osx/glew.a ../../../libs/cairo/lib/osx/cairo-script-interpreter.a ../../../libs/cairo/lib/osx/cairo.a ../../../libs/cairo/lib/osx/pixman-1.a ../../../libs/fmodex/lib/osx/libfmodex.dylib ../../../libs/rtAudio/lib/osx/rtAudio.a ../../../libs/openssl/lib/osx/crypto.a ../../../libs/openssl/lib/osx/ssl.a ../../../libs/glfw/lib/osx/glfw3.a ../../../libs/FreeImage/lib/osx/freeimage.a ../../../libs/freetype/lib/osx/freetype.a ../../../libs/boost/lib/osx/boost_filesystem.a ../../../libs/boost/lib/osx/boost_system.a -framework Accelerate -framework AGL -framework AppKit -framework ApplicationServices -framework AudioToolbox -framework AVFoundation -framework Cocoa -framework CoreAudio -framework CoreFoundation -framework CoreMedia -framework CoreServices -framework CoreVideo -framework IOKit -framework OpenGL -framework QuartzCore -framework QuickTime -framework QTKit -framework GLUT -stdlib=libc++ /Users/logic/Desktop/of_v0.9.0_osx_release/libs/openFrameworksCompiled/lib/osx/openFrameworksDebug.a -Xlinker -dependency_info -Xlinker /Users/logic/Library/Developer/Xcode/DerivedData/example-dkmpjslqdcgehffrnevnjkihrdcm/Build/Intermediates/example.build/Debug/example.build/Objects-normal/x86_64/exampleDebug_dependency_info.dat -o /Users/logic/Desktop/of_v0.9.0_osx_release/addons/ofxFontStash/example/bin/exampleDebug.app/Contents/MacOS/exampleDebug

ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks//QuickTime.framework/QuickTime.tbd, missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks//QuickTime.framework/QuickTime.tbd
duplicate symbol _main in:
    /Users/logic/Library/Developer/Xcode/DerivedData/example-dkmpjslqdcgehffrnevnjkihrdcm/Build/Intermediates/example.build/Debug/example.build/Objects-normal/x86_64/main-82227D70F1DD098B.o
    /Users/logic/Library/Developer/Xcode/DerivedData/example-dkmpjslqdcgehffrnevnjkihrdcm/Build/Intermediates/example.build/Debug/example.build/Objects-normal/x86_64/main-2C14B234EC984B7C.o
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Is there any simple way to solve these problems?

logic1988 commented 8 years ago

I solved above problem by delete the example folder in ofxUnicode which is located in ofxFontStash folder.