Help Creating a library file!

Discussion in 'Mac Programming' started by wargamechampion, Jun 4, 2012.

  1. wargamechampion macrumors newbie

    Jun 4, 2012
    I need to create a library file which provides a c wrapper over the built in speech synthesis API. The reason is, I need to be able to access this functionality from a Qt project, and Qt is only compatible with C & C++.

    I spend hours trying to figure out how to create a library file in XCode. I have experimented, and tried loading it in Qt, but to no avail. I know this is possible, because I am loading a .dylib file in Qt that was created by another company, and that works, I just don't know how to create my own.

    Any of the following help would be greatly appreciated:
    - A simple, complete tutorial showing how to build a library in XCode. The tutorial need only show a single function. However, If you want to build the entire wrapper for me, I will let you know what functionality is required :p.
    - Help loading .dylib files in Qt
    - Code snippets that would be usefull
    - Any other help

    Notes: I am currently porting a project, and I am not really an Apple developer, so I apologize for my low knowledge of Apple programming.



Share This Page