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 for Mac application #233

Closed
tomtaylor opened this issue Oct 3, 2012 · 2 comments
Closed

Building for Mac application #233

tomtaylor opened this issue Oct 3, 2012 · 2 comments

Comments

@tomtaylor
Copy link
Contributor

Thanks for such a brilliant project - I'm looking forward to replacing all the idiosyncrasies of NSAttributedString initWithHTML on Mac with something with much more control.

But I'm having a bit of trouble including DTCoreText in a Mac application. I've followed the build instructions as for iOS, pulling the project as a submodule, fetching the dependencies, setting the header search paths and including the Static Library.

I'm seeing the following error when I build.

    Undefined symbols for architecture x86_64:
      "_OBJC_CLASS_$_DTHTMLAttributedStringBuilder", referenced from:
          objc-class-ref in NPCHTMLContentItem.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

At the same time, I don't seem to be able to run the MacUnitTests as it complains that #import "DTHTMLParser.h" is not found in DTHTMLAttributedStringBuilder.h.

Am I missing something obvious here?

@odrobnik
Copy link
Collaborator

I guess that you are probably missing the valid architecture and supported platform for mac. Check the build log, it probably only builds for arm.

I'll fix the unit test, the header is now in a sub-module.

@odrobnik
Copy link
Collaborator

I fixed the unit test, the libDTHTMLParser from DTFoundation did not build for Mac. ed8f06e

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

No branches or pull requests

2 participants