Build OpenNX on OS X 10.9 (Mavericks)
by cs
Update 14th Nov 2013: Keyboard mapping works fine when NoMachine’s NX server is used instead of FreeNX.
Update 10th Nov 2013: Turns out that the OpenNX 0.16.725 dmg works on Mavericks after a re-install – no reason to go through these instructions unless you want to build a 64-bit version. They keyboard mapping bug is still present though.
Update 9th Jun 2014: Use x2go instead. Works on Mavericks without any problems.
The OpenNX dmg that you can get from the downloads section doesn’t work on OSX 10.9. Here are some instructions to get it to run on OS X with MacPorts. It’s still very buggy and the incredibly annoying keyboard issue is still present so that these notes are more of a starting point to fix OpenNX in future revisions.
- Install MacPorts (don’t forget to install XCode and the Command Line Tools – these prerequisites are somewhat hidden on MacPorts’ installation page).
- Install some dependencies:
sudo port install wxWidgets-3.0 curl libidn openssl zlib nxcomp libpng jpeg svn2cl cctools libtool autoconf automake pulseaudio
- Get the OpenNX source code:
cd ~
svn checkout -r 724 svn://svn.code.sf.net/p/opennx/code/trunk opennx-svn - Get and apply a patch to build with MacPorts:
cd opennx-svn
wget https://gist.github.com/neurodroid/7388754/raw/b1d9837388f0650047930c6a010714f3c3305b36/opennx-osx.patch
patch -p0 < opennx-osx.patch - Get and build nxssh:
cd ~/opennx-svn/opennx
wget http://64.34.173.142/download/3.5.0/sources/nxssh-3.5.0-2.tar.gz
tar -xzf nxssh-3.5.0-2.tar.gz
cd ~/opennx-svn/opennx/nxssh
CPPFLAGS="-I/opt/local/include -I/opt/local/include/nx" LDFLAGS="-L/opt/local/lib -L/opt/local/lib/nx -lresolv" ./configure --prefix=/opt/local
make -j4
cd ..
mkdir -p bin
ln -s nxssh/nxssh ./bin/nxssh - Build OpenNX:
cd ~/opennx-svn/opennx
make -f Makefile.am
./configure
make -j4 - The application should end up in
~/opennx-svn/opennx/OpenNX.app
. If you get a lengthy error message that boils down to an issue with nxssh, make sure that your system NX path points to ~/opennx-svn/opennx in OpenNX’ configuration settings
There are a few problems here:
“ls nxssh/nxssh ./bin/nxssh” I guess should be a link? as in
ln -s nxssh ./bin/
The long and short of this: It falls over at make -f Makefile.am
p.s. that was a bit brief: Everything seems OK until “make”.
This is for OpenNX on Mavericks as you’d expect – Everything up to date: OS X, XCode, and so on.
What exactly happens when you try
make -f Makefile.am
?I’ve fixed the link bit – thanks for the report.
At any rate, I’d recommend using x2go instead of OpenNX. Works without any problems on Mavericks.
Hello – thanks for the swift response !
There’s something missing:
“macro ‘AM_OPTIONS_WXCONFIG’ not found in library”
I rooted around a little, and found some solutions, yet gave up because I want to keep it simple. I don’t like tinkering too much because it makes keeping things consistent across different machines hairy.
I’ve looked at x2go in the past and couldn\t get it past
” failed sh: x2golistsessions”
Given your recommendation, and the system manager at the other end (the machine I’m connecting to is far away) saying the same thing some time back, I think I’ll try and sort this out now.
If you have an instant solution, I’ll be delighted ! – James