Forked from lucaspiller/Building Blink on OS X.md
Last active
April 26, 2018 13:24
-
-
Save thunfischbrot/69ebf35bdc5b0f6dc1b0 to your computer and use it in GitHub Desktop.
Revisions
-
thunfischbrot revised this gist
Nov 4, 2014 . 1 changed file with 6 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -61,4 +61,9 @@ aRect.origin = [aView.window convertRectFromScreen:aRect].origin; ``` ## Run That's it, hit run and after a few seconds the project should launch. Yay to free software! If you're being bugged about allowing incoming connections and access to your contacts at each launch, simply ``` sudo codesign --force --sign - /Applications/Blink\ Pro.app/ ``` -
thunfischbrot revised this gist
Nov 4, 2014 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,6 @@ # Building Blink on OS X [Blink](http://icanblink.com) is a SIP client for various platforms. On OS X they only officially distribute the app in the [Mac App Store](http://icanblink.com/blink-pro.phtml). However the project is GPLed, so you can build it yourself. Here is how: ## Download the source -
thunfischbrot revised this gist
Nov 4, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -62,4 +62,4 @@ aRect.origin = [aView.window convertRectFromScreen:aRect].origin; ``` ## Run That's it, hit run and after a few seconds the project should launch. Yay to free software! -
thunfischbrot revised this gist
Nov 4, 2014 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -44,9 +44,9 @@ Also [disable code signing](http://stackoverflow.com/questions/21298232/no-match After these changes you might have to close and re-open Xcode. ## Code changes Hit run, in case you receive the errors ``` convertBaseToScreen is deprecated, use -convertRectToScreen instead convertScreenToBase is deprecated, use -convertRectFromScreen instead @@ -61,4 +61,5 @@ becomes aRect.origin = [aView.window convertRectFromScreen:aRect].origin; ``` ## Run That's it, hit run and after a few seconds the project should launch. Yaye to free software! -
thunfischbrot revised this gist
Nov 4, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ project is GPLed, so you can build it yourself. Here is how: ## Download the source Blink uses the `darcs` version control system. [Download link](http://darcs.net/binaries/macosx/darcs-2.8.4-OSX-10.8.4-x86_64.tar.bz2) or ```brew install darcs``` using [brew package manager](http://brew.sh). Open the terminal, and clone the source: -
thunfischbrot revised this gist
Nov 4, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # Building Blink on OS X [Blink](http://icanblink.com) is a SIP client for various platforms. On OS X they only officially distribute the app in the Mac App Store. However the project is GPLed, so you can build it yourself. Here is how: ## Download the source -
thunfischbrot revised this gist
Nov 4, 2014 . 1 changed file with 27 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ project is GPLed, so you can build it yourself. Here is how: ## Download the source Blink uses the `darcs` version control system. [Download link](http://darcs.net/binaries/macosx/darcs-2.8.4-OSX-10.8.4-x86_64.tar.bz2) or ```brew install darcs```. Open the terminal, and clone the source: @@ -15,9 +15,9 @@ darcs get http://devel.ag-projects.com/repositories/public/blink-cocoa You can then open the project in Xcode. ## Dependencies The probject comes with a number of GPLed dependencies which I couldn't find an easy way to build, but you don't need to. There is a special version of [Blink for SIP2SIP](http://download.sip2sip.info/), which contains what we need. Download that then run these commands to copy them to the right location in the source tree: @@ -31,13 +31,34 @@ cp -R /Volumes/Blink\ for\ SIP2SIP/SIP2SIP.app/Contents/Frameworks Distribution/ The Xcode project was made on Snow Leopard and targets those frameworks. So if you don't have those, you'll need to tweak *Build Settings*: * Architectures -> Base SDK -> Latest OS X (10.10) Since some of the libraries we just copied from SIP2SIP are x86-only we will get errors if we try to build & run the 64-bit version. Instead we will simply build in x86: * Architectures -> Architectures -> 32-bit Intel (i386) Also [disable code signing](http://stackoverflow.com/questions/21298232/no-matching-signing-identity-found-mac-developer): * Code Signing -> Code Signing Identity -> Don't Code Sign * Code Signing -> Provisioning Profile -> None After these changes you might have to close and re-open Xcode. Hit run, in case you receive the errors If you're talking about the two errors ``` convertBaseToScreen is deprecated, use -convertRectToScreen instead convertScreenToBase is deprecated, use -convertRectFromScreen instead ``` then that means that you must change the input parameter of type CGPoint to CGRect and then take only the CGPoint you need from the result, e.g. try moving the .origin outside of the the brackets. Example: ``` aRect.origin = [aView.window convertScreenToBase:aRect.origin]; ``` becomes ``` aRect.origin = [aView.window convertRectFromScreen:aRect].origin; ``` That's it, hit run and after a few seconds the project should launch. Yaye to free software! -
lucaspiller revised this gist
Dec 31, 2013 . 1 changed file with 7 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,9 @@ # Building Blink on OS X Blink is a SIP client for various platforms. On OS X they only officially distribute the app in the Mac App Store. However the project is GPLed, so you can build it yourself. Here is how: ## Download the source Blink uses the `darcs` version control system. [Download link](http://darcs.net/binaries/macosx/darcs-2.8.4-OSX-10.8.4-x86_64.tar.bz2). @@ -12,20 +15,19 @@ darcs get http://devel.ag-projects.com/repositories/public/blink-cocoa You can then open the project in Xcode. ## Depdencies The probject comes with a number of GPLed depdencies which I couldn't find an easy way to build, but you don't need to. There is a special version of [Blink for SIP2SIP](http://download.sip2sip.info/), which contains what we need. Download that then run these commands to copy them to the right location in the source tree: ``` mkdir -p Distribution/Resources/ cp -R /Volumes/Blink\ for\ SIP2SIP/SIP2SIP.app/Contents/Resources/lib Distribution/Resources cp -R /Volumes/Blink\ for\ SIP2SIP/SIP2SIP.app/Contents/Frameworks Distribution/ ``` ## Change build settings The Xcode project was made on Snow Leopard and targets those frameworks. So if you don't have those, you'll need to tweak *Build Settings*: -
lucaspiller revised this gist
Dec 31, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,7 +14,7 @@ You can then open the project in Xcode. # Depdencies The probject comes with a number of GPLed depdencies which I couldn't find an easy way to build, but you don't need to. There is a special version of [Blink for SIP2SIP](http://download.sip2sip.info/), which contains what we need. Download that then run these commands to copy them to the right location in the source tree: -
lucaspiller created this gist
Dec 31, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,41 @@ Blink is a SIP client for various platforms. On OS X they only officially distribute the app in the Mac App Store. However the project is GPLed, so you can build it yourself. Here is how: # Download the source Blink uses the `darcs` version control system. [Download link](http://darcs.net/binaries/macosx/darcs-2.8.4-OSX-10.8.4-x86_64.tar.bz2). Open the terminal, and clone the source: ``` darcs get http://devel.ag-projects.com/repositories/public/blink-cocoa ``` You can then open the project in Xcode. # Depdencies The probject comes with a number of GPLed depdencies which I couldn't find an easy way to build, but you don't need to. There is a special version of [http://download.sip2sip.info/](Blink for SIP2SIP), which contains what we need. Download that then run these commands to copy them to the right location in the source tree: ``` mkdir -p Distribution/Resources/ mkdir -p Distribution/Frameworks/ cp -R /Volumes/Blink\ for\ SIP2SIP/SIP2SIP.app/Contents/Resources/lib Distribution/Resources cp -R /Volumes/Blink\ for\ SIP2SIP/SIP2SIP.app/Contents/Frameworks Distribution/ ``` # Change build settings The Xcode project was made on Snow Leopard and targets those frameworks. So if you don't have those, you'll need to tweak *Build Settings*: * Architectures -> Base SDK -> Latest OS X (10.9) Also disable code signing: * Code Signing -> Code Signing Identity -> Don't Code Sign * Code Signing -> Provisioning Profile -> None Under *Build Phases* you need to fix a dependency which has a relative directory. Select *CallTransferWindow.xib* in *Copy Bundle Resources* (you may find it easier to use the search), then click the remove (minus sign) button at the bottom. Then click add, and *CallTransferWindow.xib* from the list. That's it, hit run and after a few seconds the project should launch. Yaye to free software!