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 cmark for iOS #15

Closed
RuiAAPeres opened this issue Mar 17, 2015 · 5 comments
Closed

Building cmark for iOS #15

RuiAAPeres opened this issue Mar 17, 2015 · 5 comments

Comments

@RuiAAPeres
Copy link

I followed the steps to create a libcmark.0.18.1.dylib, but when added to the project I get a:

building for iOS Simulator, but linking against dylib built for MacOSX file

How can I make the dylib to iOS?

@jgm
Copy link
Member

jgm commented Mar 17, 2015

This might require some cmake tweaks.

Did you tell cmake you wanted to build an XCode project?

There's an ios toolchain here which you could try:
https://code.google.com/p/ios-cmake/wiki/HowTo

@RuiAAPeres
Copy link
Author

@jgm would it be possible to simply import the c files + headers and work with that?

@jgm
Copy link
Member

jgm commented Mar 17, 2015

Sure. Note, though, that you'll need a few generated headers
which you can find in build/src after a regular build.

+++ Rui Peres [Mar 17 15 12:31 ]:

@jgm would it be possible to simply import the c files + headers and work with that?


Reply to this email directly or view it on GitHub:
#15 (comment)

@RuiAAPeres
Copy link
Author

@jgm one quick question (I wasn't able to find an example), how would you go about to generate the AST from the markdown using your lib?

@jgm
Copy link
Member

jgm commented Mar 18, 2015

parse_document is the function that does that. See the man page cmark.3.

+++ Rui Peres [Mar 18 15 03:31 ]:

@jgm one quick question (I wasn't able to find an example), how would you go about to generate the AST from the markdown using your lib?


Reply to this email directly or view it on GitHub:
#15 (comment)

@jgm jgm closed this as completed Apr 18, 2015
mbernson pushed a commit to mbernson/cmark that referenced this issue Jul 6, 2020
Revert "[CMake] Export the CMark targets"
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