To clarify the clarification: I know how to create libraries in Xcode using either obj-c or swift. I know how to use them in projects. I know how to compile these projects so that everything works. I don't know how to use open source (hehe) source code and build / make / compile it into a library.
Just to clarify everything below: I'm looking for a way to use c libraries in a Swift application, this means using Xcode. C libraries do not need to be built with / in Xcode, I am well versed in other tools.
I usually write all the code that I use myself, and, unfortunately, I only write Swift in Xcode. Therefore, I am a little behind the use of frameworks / libraries. Now I really want to learn Tesseract OCR, and I'm having trouble creating the necessary libraries. Itโs better for me to understand how it works and be able to do it myself, rather than just look at Github and find pre-compiled sources.
The projects below are handled differently. The iOS version uses precompiled libraries. (.a file) The OSX version uses projects that contain library files (not yet compiled).
Compiled iOS Version
Compiled OSX Version
libjpeg is an example of a library that you cannot just drag and drop.
Using brew will only install it as a command line tool, not generate lib.
install Tesseract with homebrew
The problem is that I know too little about these c libraries and how to effectively create them even for Google.
My question is:
- How do you compile / create c-code in a .a file?
- How do you create an xcode project that creates a structure based on c code? (Not necessary)
- What is the right dictionary for all this?
I am not looking for a specific Tesseract answer. I want to learn how to do it myself.
about static libraries
This article does not mention how to actually add the c program and let xcode do this. Interestingly, part of the work areas is interesting.
Article on creating a c project in Xcode
This is really true. However, for example, I cannot find the executable in Tesseract. In step 5, all parameters are grayed out.
It looks beautiful: simple C ++ procect Why can't tesseract look like this? :)
c ++ frameworks xcode static-libraries
R menke
source share