JLinX – Blog

Weblog von Jan Linxweiler

Problems running nant on OS X

Filed under: .NET,Apple & Mac OS X,Development — Jannis at 6:23 pm on Saturday, November 14, 2009

In oder to compile Monobjc I had to use nant.
Though I had installed all mono packages I got the following error:

BUILD FAILED

Failed to initialize the ‘Mono 3.5 Profile’ (mono-3.5) target framework.

Function call failed.
Expression: ${not pkg-config::exists(‘mono’)}
^^^^^^^^^^^^^^^^^^^^^^^^^^

‘pkg-config’ failed to start.

I could fix it by adding the path of ‘pkg-config’ to the PATH viariable.
In order to to this add the following line to your .bashrc:
export PATH=$PATH:/Library/Frameworks/Mono.framework/Commands/

How to Install boost on OS X

Filed under: Apple & Mac OS X,Development — Jannis at 11:19 pm on Friday, December 12, 2008

Get boost source files from boost.org.

  • cd path/to/boost_1_37_0
  • ./configure
  • sudo make install

Boost libraries and header files will be installed to /usr/local/lib and /usr/local/include.

OS X Run Shell Scripts From Finder

Filed under: Apple & Mac OS X,Linux — Jannis at 9:40 pm on Sunday, November 23, 2008
  1. Rename the shell script extension from .sh to .command
  2. Make the file executable: chmod +x file.command
  3. Wherever you put the file, it will run with your home directory as the current working directory. To get around this, use the following line:
    cd “`dirname “$0″`”

How to Make MacBook and MacBook Pro Hibernate

Filed under: Apple & Mac OS X,Software — Jannis at 7:42 pm on Sunday, November 23, 2008

See Make my MacBook Pro Hibernate for details.

Use SmartSleep to configure your MB.

How to Search for File Contend in Specific Files

Filed under: Apple & Mac OS X,Linux — Jannis at 9:16 pm on Thursday, November 20, 2008

find . -iname “*.cpp” -print | xargs grep “main(” -s

-s = silent – no error messages

Mac Tricks And Tips

Filed under: Apple & Mac OS X,Blogs & Links,Internet — Jannis at 8:23 pm on Wednesday, November 19, 2008

Find Mac Tricks And Tips here

SSH Tunnel

Filed under: Apple & Mac OS X,Linux — Jannis at 9:26 pm on Tuesday, November 11, 2008

ssh -N -L 4001:destination.machine.de:3389 user@gateway.machine.de

Forward local port 4001 to gateway.machine.de, and tell him to send this to destination.machine.de, on port 3389

-N tells ssh to only handle tunnel, we do not want a shell on this host
-L specifies the kind of tunnel (Local port forwarding)
4001 is the local port to use
destination.machine.de is a host hidden by the firewall
3389 is the port you want to reach.
user is the user you want to connect as.
gateway.machine.de is the public server you will jump by.

How to Get GeForce 7300 to Work on Leopard

Filed under: Apple & Mac OS X — Jannis at 9:24 pm on Sunday, June 22, 2008

Video For Intro to Cocoa at CocoaHeads

Filed under: Apple & Mac OS X,Cocoa,Development — Jannis at 9:21 pm on Sunday, May 25, 2008

Scott Stevenson has posted the video of his Introduction to Cocoa talk (entitled “Best of Both Worlds”) aimed at those who want to learn a bit about Apple’s preferred API for building OS X applications. The talk runs to over 90 minutes and includes “an introduction to Xcode, Interface Builder, Objective-C, Mac UI standards and more.”

How to Build Xcode Projects With CMake

Filed under: Apple & Mac OS X,Development — Jannis at 12:40 pm on Saturday, May 24, 2008

use option “-G Xcode”

Next Page »