-
Notifications
You must be signed in to change notification settings - Fork 85
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
Build Failed on Xcode8.3.3 , macOS 10.13, cocos2d-x 3.16 #32
Comments
I can test this today
…On Mon, Oct 16, 2017 at 5:38 AM, drelaptop ***@***.***> wrote:
Env: Xcode8.3.3 , macOS 10.13, cocos2d-x 3.16
this is the step, I did
1. use cocos command make out IOS library
2. copy libs
3. fllow this
$ git clone https://github.com/chukong/programmers-guide-samples.git
$ cd programmers-guide-samples/cpp
$ open proj.ios_mac/Programmers\ Guide.xcodeproj/
1. run on Xcode, failed
It seems like much framework find failed, for many of them is RED clolor
will you test this demo using cocos2d-x v3.16 on Xcode8.3.3 ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#32>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHJQrnrc8YzmFQENGiGoojTZFBlW314fks5ssyP6gaJpZM4P6V-P>
.
--
Community Evangelist
Cocos2d-x
Like us on Facebook!: https://www.facebook.com/cocos2dx/
Follow us on Twitter: https://twitter.com/cocos2dx
Our Blog: http://blog.cocos2d-x.org/
Our Programmers Guide: http://cocos2d-x.org/programmersguide/
Our Forums: http://discuss.cocos2d-x.org/
I am: @slackmoehrle
|
So there are issues. I have most of them worked out except this: Undefined symbols for architecture x86_64:
"_CTFramesetterCreateWithAttributedString", referenced from:
_calculateShrinkedSizeForString(NSAttributedString**, objc_object*, CGSize, bool, int&) in libcocos2d iOS.a(CCDevice-ios.o)
"_CTFramesetterSuggestFrameSizeWithConstraints", referenced from:
_calculateShrinkedSizeForString(NSAttributedString**, objc_object*, CGSize, bool, int&) in libcocos2d iOS.a(CCDevice-ios.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation) |
BTW. These samples need some updating. We were going to automate the building process better and make each chapter run-able. |
ok, I fixed this. Not it builds and runs, but I noticed I still have hard coded paths in a few places in the build settings. I can work on making this generic. |
BTW, I am doing this in branch v3.16. |
@drelaptop were you able to get this to build at least? I know it looks funny and needs to be fixed. I can put this on my list. |
@slackmoehrle I will try it today, and then get the result |
Build Failed on Xcode8.3.3 , macOS 10.13 Again
I can't find this file in my PC, but find |
BTW, I build on branch v3.16, code at least |
Sorry. Are you using v3.16 branch and getting this error? Did you change your include paths? |
yes, I get the error on v3.16 branch. I didn't change anything, should I change include paths? how |
Build Success on Xcode8.3.3 , macOS 10.13, Using v3.16 Solve Error Steps:
|
Just add the right frameworks, no need to remove x86_64 at all.
…On Tue, Oct 24, 2017 at 3:46 AM, drelaptop ***@***.***> wrote:
Build Success on Xcode8.3.3 , macOS 10.13, Using v3.16
Solve Error Steps:
1. modify library paths one by one
2. change include paths, follow Creating And Using Prebuilt Libraries
chapter
3. modify Linking paths
4. remove x86_64 on config Valid Architecture to fix error like
missing required architecture x86_64 in file...
Undefined symbols for architecture x86_64:
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHJQrjcABmV0XkjIf4CW2cIigW4er0G_ks5svZXcgaJpZM4P6V-P>
.
--
Community Evangelist
Cocos2d-x
Like us on Facebook!: https://www.facebook.com/cocos2dx/
Follow us on Twitter: https://twitter.com/cocos2dx
Our Blog: http://blog.cocos2d-x.org/
Our Programmers Guide: http://cocos2d-x.org/programmersguide/
Our Forums: http://discuss.cocos2d-x.org/
I am: @slackmoehrle
|
how to find which is wrong, and add right frameworks
mean |
You must not have build the libraries the same way I did or something because I have this: $ lipo -info libcocos2d\ iOS.a
Architectures in the fat file: libcocos2d iOS.a are: i386 armv7 x86_64 arm64 |
Command I used is |
@drelaptop would you like me to fix this to run in XCode 8, 9 and Android Studio? |
@slackmoehrle oh! I hope so, but I think it's not a urgent things, and I prefer you finish the unfinished 4 items of docs first. |
@drelaptop agreed. I just didn't want to lose track of this. I think I may re-write this a bit too at the same time. I will get this fixed in a few weeks. I a writing a Cocos Creator demo that is more important. I will write the docs too. |
Env: Xcode8.3.3 , macOS 10.13, cocos2d-x 3.16
this is the step, I did
It seems like much framework find failed, for many of them is RED clolor
will you test this demo using cocos2d-x v3.16 on Xcode8.3.3 ?
The text was updated successfully, but these errors were encountered: