fbartolom Posted October 31, 2015 Share Posted October 31, 2015 I inserted Mumble in my project successfully by inserting the MumbleKit project into my own projects. Yet this force a recompilation of everything including the lengthy openSSL each time I rebuild from scratch or archive. Is there a way to create a FrameWork for MumbleKit once for all and insert it in the project without the need of recompiling it each time? And how to do it? I am weary of experimenting with MumbleKit as I passed through several problems in its installation. Quote Link to comment Share on other sites More sharing options...
Administrators mkrautz Posted October 31, 2015 Administrators Share Posted October 31, 2015 It should be possible to:1. Clone the git repo of MumbleKit2. Open the MumbleKit.xcodeproj project3. Change the schemes to build it in Release mode.4. Build it.5. Look in your build log for a the final, universal libMumbleKit.a and copy it to a folder of your choosing.6. Copy the src/MumbleKit directory (which contains the headers) to the same directory that you copied libMmubleKit.a to, such that the directory includes libMumbleKit.a and the MumbleKit directory with headers in it.Now you have a standalone MumbleKit.a) Add the libMumbleKit.a to your project.b) Add the directory that contains libMumbleKit.a to your header search path, such that includes such as #import work.That should be it. Quote Link to comment Share on other sites More sharing options...
fbartolom Posted October 31, 2015 Author Share Posted October 31, 2015 Thanks, I will try that soon. Quote Link to comment Share on other sites More sharing options...
fbartolom Posted October 31, 2015 Author Share Posted October 31, 2015 When installing PLCrashReporter I created a FrameWork including the headers instead of a library. Is that also possible for MumbleKit? Quote Link to comment Share on other sites More sharing options...
Administrators mkrautz Posted October 31, 2015 Administrators Share Posted October 31, 2015 It is not something the current xcodeproj can do for you, but you should be able to do it yourself. Quote Link to comment Share on other sites More sharing options...
fbartolom Posted October 31, 2015 Author Share Posted October 31, 2015 Anyway for the time being I am trying to follow the route you suggested. First of all I have no idea about how to compile in release mode but archiving, so I went that way. Secondly I was not able to locate the generated libMumbleKit.a library. Quote Link to comment Share on other sites More sharing options...
fbartolom Posted October 31, 2015 Author Share Posted October 31, 2015 When I execute your suggested operations I get an error on: #import "Mumble.pb.h"where it cannot find the file. When directly compiling the framework the file is apparently automatically created as in the other project with the old configuration it exists but has header:// Generated by the protocol buffer compiler. DO NOT EDIT!whatever that might mean. In the project where I just inserted the library and sources the file does not exist, nor is dynamically created.How do I make up for it? Quote Link to comment Share on other sites More sharing options...
fbartolom Posted November 2, 2015 Author Share Posted November 2, 2015 Found, as a matter of fact the src folder alo included the .m files. There is instead a subdirectory called MumbleKit, continuing just the headers. So I just included this latter and it works. Quote Link to comment Share on other sites More sharing options...
fbartolom Posted November 2, 2015 Author Share Posted November 2, 2015 I have a residual problem at linking: when I do it I get:ld: warning: ignoring file /Users/fbartolom/Documents/cocoa applications/inArrivoHD/MumbleKit/libMumbleKit.a, missing required architecture x86_64 in file /Users/fbartolom/Documents/cocoa applications/inArrivoHD/MumbleKit/libMumbleKit.a (3 slices)notwithstanding the supported versions of the MumbleKit library generation seem to include it:arm64 armv7 armv7s armv7k arm7s x86_64 i386Moreover I am not that clear about why that architecture is needed, as it does not take part to any configuration. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.