Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save thunfischbrot/69ebf35bdc5b0f6dc1b0 to your computer and use it in GitHub Desktop.

Select an option

Save thunfischbrot/69ebf35bdc5b0f6dc1b0 to your computer and use it in GitHub Desktop.

Revisions

  1. thunfischbrot revised this gist Nov 4, 2014. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion Building Blink on OS X.md
    Original 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!
    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/
    ```
  2. thunfischbrot revised this gist Nov 4, 2014. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions Building Blink on OS X.md
    Original 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. However the
    project is GPLed, so you can build it yourself. Here is how:
    [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

  3. thunfischbrot revised this gist Nov 4, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Building Blink on OS X.md
    Original 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. Yaye to free software!
    That's it, hit run and after a few seconds the project should launch. Yay to free software!
  4. thunfischbrot revised this gist Nov 4, 2014. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions Building Blink on OS X.md
    Original 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.

    Hit run, in case you receive the errors
    If you're talking about the two errors
    ## 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!
  5. thunfischbrot revised this gist Nov 4, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Building Blink on OS X.md
    Original 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```.
    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:

  6. thunfischbrot revised this gist Nov 4, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Building Blink on OS X.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # 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
    [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
  7. thunfischbrot revised this gist Nov 4, 2014. 1 changed file with 27 additions and 6 deletions.
    33 changes: 27 additions & 6 deletions Building Blink on OS X.md
    Original 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).
    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.

    ## Depdencies
    ## Dependencies

    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.
    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.9)
    * Architectures -> Base SDK -> Latest OS X (10.10)

    Also disable code signing:
    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

    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.
    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!
  8. @lucaspiller lucaspiller revised this gist Dec 31, 2013. 1 changed file with 7 additions and 5 deletions.
    12 changes: 7 additions & 5 deletions Building Blink on OS X.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,9 @@
    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:
    # Building Blink on OS X

    # Download the source
    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
    ## 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/
    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
    ## 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*:

  9. @lucaspiller lucaspiller revised this gist Dec 31, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Building Blink on OS X.md
    Original 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 [http://download.sip2sip.info/](Blink for SIP2SIP), which contains what we need.
    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:

  10. @lucaspiller lucaspiller created this gist Dec 31, 2013.
    41 changes: 41 additions & 0 deletions Building Blink on OS X.md
    Original 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!