“You’re going to just hate Eclipse.”

Nick Farina wrote a great piece on how it feels to start programming Android apps if you’ve previously breathed XCode and Interface Builder air and learned the hard way to play the strings of Apple´s stringent certificate management.

I agree with every single word. And its all but black and white.

Nick Farina: An iOS Developer Takes on Android

Compiling My Traceroute (MTR) on Mac OS X Mountain Lion

My Traceroute (MTR) is a very nice tool to get an impression of your network neighborhood. When trying to compile the most recent version of the tool (mtr-0.82) on my Mac (OS X 10.8.1) i ran into this problem:

gcc -g -O2 -Wall -Wno-pointer-sign curses.o -o mtr mtr.o net.o dns.o raw.o split.o display.o report.o getopt.o getopt1.o select.o -lm -ltermcap
Undefined symbols for architecture x86_64:
 "_res_9_dn_expand", referenced from:
 _parserespacket in dns.o
 "_res_9_ninit", referenced from:
 _dns_open in dns.o
 "_res_9_nmkquery", referenced from:
 _dorequest in dns.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [mtr] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Turns out its missing libresolv. The solution is simple:

Europa:mtr-0.82 justusbeyer$ export LDFLAGS="-lresolv"
Europa:mtr-0.82 justusbeyer$ ./configure --prefix=/usr --without-gtk
<lots of configure output> 
Europa:mtr-0.82 justusbeyer$ make

 

After Xcode-Update to 4.3 xcodebuild fails

The recent update to Xcode 4.3 marks a change in how Apple sets up developer systems. Until now all development-specific stuff (libraries, headers, Xcode itself, …) resided in /Developer. With 4.3 that directory is obsolete. The new directory is:

/Applications/Xcode.app/Contents/Developer

So if you use command line build tools like xcodebuild and see errors like this:

Error: No developer directory found at /Developer. Run /usr/bin/xcode-select to update the developer directory path.

… you might need to tell the system about the new path:

sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer

Mac OS X Lion 10.7.3 doesn’t sync Mobile Documents (SOLVED)

Before 10.7.3 the somewhat hidden iCloud Documents folder …

~/Library/Mobile Documents

… was a nice DropBox alternative to keep personal data on several Macs in sync. GoodReader on iOS also used that mechanism to synchronize files between GoodReader installations on different iOS devices and the Mac(s) of the user. The latest Mac OS X update 10.7.3 seems to have broken that feature. The folder on the Mac remains empty.

Update 14.02.2011: It looks like Apple has solved the problem. Sync is working again for me.

Update 21.02.2011: If you read the comments you’ll see the problem is not really solved. What can be said so far is that the sync problems are rather related to a bug in Mac OS X 10.7.3 than Apple wanting to keep us from using this nice DropBox-like feature. Workaround after the break… Weiterlesen

SSH X11-Forwarding auf VServer funktioniert nicht

Mit SSH kann man die X11-Bildschirmausgabe eines entfernt gestarteten Programms problemlos auf sein lokales Display umleiten. Dabei tunnelt und verschlüsselt SSH die übertragenen Bildinhalte und Eingaben. Beim Zugriff auf einen virtuellen Linux-Server kann das jedoch daran scheitern, dass dort das Erstellen bestimmter Socket-Typen nicht gestattet ist. Weiterlesen