Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Xcode and dylib problem
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ponggr" data-source="post: 807347" data-attributes="member: 88118"><p>Hi</p><p></p><p>After spending several hours trying to solve this problem I can't get it to work.</p><p></p><p>There is an Xcode project called FaceTracker in here: <a href="http://www.ient.rwth-aachen.de/~asbach/OpenCV-Private-Framework-1.2.dmg" target="_blank">http://www.ient.rwth-aachen.de/~asbach/OpenCV-Private-Framework-1.2.dmg</a> its pretty cool you should check it out.</p><p></p><p>Which is made so when build it creates an .app and works fine. What I want to do, is turn this into a dylib so I can interact with it through JNI.</p><p></p><p>So, my first attempt was to start putting code in a Dynamic C++ Library test project I made and communicated fine with Java. The problem I faced was the following:</p><p></p><p>error: 'CFIndex' does not name a type </p><p></p><p>From this statement: const CFIndex CASCADE_NAME_LEN = 2048;</p><p></p><p>And in general it can't see any of the CFxxx classes, which I don't even know what they really do but from Googling a bit I think they are Apple's.</p><p></p><p>So, I decided to go the other way round. I tried to convert the FaceTracker project included in the dmg link above, into a project that would generate a dylib library instead of an .app</p><p></p><p>Again no success. It won't generate a dylib although I used the same settings as the ones I found in the new Dynamic C++ Library project.</p><p></p><p></p><p>Any relevant help will be reaaaaaaaally appreciated as I am very stuck here and really need to get this to work soon.</p><p></p><p>Thanks!</p></blockquote><p></p>
[QUOTE="ponggr, post: 807347, member: 88118"] Hi After spending several hours trying to solve this problem I can't get it to work. There is an Xcode project called FaceTracker in here: [URL="http://www.ient.rwth-aachen.de/~asbach/OpenCV-Private-Framework-1.2.dmg"]http://www.ient.rwth-aachen.de/~asbach/OpenCV-Private-Framework-1.2.dmg[/URL] its pretty cool you should check it out. Which is made so when build it creates an .app and works fine. What I want to do, is turn this into a dylib so I can interact with it through JNI. So, my first attempt was to start putting code in a Dynamic C++ Library test project I made and communicated fine with Java. The problem I faced was the following: error: 'CFIndex' does not name a type From this statement: const CFIndex CASCADE_NAME_LEN = 2048; And in general it can't see any of the CFxxx classes, which I don't even know what they really do but from Googling a bit I think they are Apple's. So, I decided to go the other way round. I tried to convert the FaceTracker project included in the dmg link above, into a project that would generate a dylib library instead of an .app Again no success. It won't generate a dylib although I used the same settings as the ones I found in the new Dynamic C++ Library project. Any relevant help will be reaaaaaaaally appreciated as I am very stuck here and really need to get this to work soon. Thanks! [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Xcode and dylib problem
Top