Mac Build instructions?

12 views
Skip to first unread message

Greg Akins

unread,
Jan 19, 2014, 8:11:47 PM1/19/14
to wah...@googlegroups.com
Can anyone give me, or point me to, instructions for building and creating the DMG on Mac OSX?

I'm looking over the site and haven't found anything specific.   I'll start figuring it out on my own, but if anyone can help point me in the right direction I'd appreciate it.

Stefan Hajnoczi

unread,
Jan 21, 2014, 6:17:21 AM1/21/14
to wah...@googlegroups.com
Hi Greg,
I use http://brew.sh/ on Mac to set up the necessary build environment
with PortAudio, Qt 4.8+, libogg, and libvorbis.

Once your brew environment is set up, something along the following
lines should work:
$ cd wahjam
$ qmake -spec macx-g++
$ make

You can find the build output in qtclient/qtclient.app.

Stefan

Greg Akins

unread,
Jan 21, 2014, 8:22:01 AM1/21/14
to wah...@googlegroups.com
Thanks.

The output I get from that - I haven't done any research on the error messages - is is here (https://gist.github.com/akinsgre/8539846)

I am running on Mountain Lion(10.8.5 ) and used Homebrew to install libvorbis 1.3.3, libogg 1.3.0, portaudio 19.20111121 and qt 4.8.3

--
You received this message because you are subscribed to the Google Groups "Wahjam" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wahjam+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Greg Akins

unread,
Jan 21, 2014, 8:24:49 AM1/21/14
to wah...@googlegroups.com
Also... I have XCode 5.0.2

Stefan Hajnoczi

unread,
Jan 21, 2014, 12:56:26 PM1/21/14
to wah...@googlegroups.com
On Tue, Jan 21, 2014 at 7:22 AM, Greg Akins <angr...@gmail.com> wrote:
> The output I get from that - I haven't done any research on the error
> messages - is is here (https://gist.github.com/akinsgre/8539846)
>
> I am running on Mountain Lion(10.8.5 ) and used Homebrew to install
> libvorbis 1.3.3, libogg 1.3.0, portaudio 19.20111121 and qt 4.8.3

g++ -c -pipe -Wno-write-strings -O2 -arch x86_64 -Xarch_x86_64
-mmacosx-version-min=10.5 -fPIC -Wall -W -DQT_NO_DEBUG
-DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/local/Cellar/qt/4.8.3/mkspecs/macx-g++ -I.
-I/usr/local/Cellar/qt/4.8.3/lib/QtCore.framework/Versions/4/Headers
-I/usr/local/Cellar/qt/4.8.3/lib/QtCore.framework/Versions/4/Headers
-I/usr/local/Cellar/qt/4.8.3/lib/QtNetwork.framework/Versions/4/Headers
-I/usr/local/Cellar/qt/4.8.3/lib/QtNetwork.framework/Versions/4/Headers
-I/usr/local/Cellar/qt/4.8.3/include -I.
-F/usr/local/Cellar/qt/4.8.3/lib -o njclient.o njclient.cpp
In file included from njclient.cpp:33:
njclient.h:55:22: error: portmidi.h: No such file or directory

You are missing PortMidi.

Stefan

Greg Akins

unread,
Jan 21, 2014, 2:00:47 PM1/21/14
to wah...@googlegroups.com
Thanks Stefan.

So that works..  I don't get a qtclient/qtclient.app, but I do get a qtclient/wahjam.app

When I start that, I'm prompted for my IO settings and then given a list of ninjam servers.  When I try to connect to one, the application fails and I get a Apple trace (https://gist.github.com/akinsgre/8545844)

I'm not sure if I'm reading this correctly, but it looks like Thread 9 Crashed:: com.apple.audio.IOThread.client is the problem?

I tried again, packing the app in a dmg ( though it doesn't look like any magic is happening there)  Same results after selecting a server.

Stefan

Stefan Hajnoczi

unread,
Jan 21, 2014, 4:02:33 PM1/21/14
to wah...@googlegroups.com
On Tue, Jan 21, 2014 at 1:00 PM, Greg Akins <angr...@gmail.com> wrote:
> When I start that, I'm prompted for my IO settings and then given a list of
> ninjam servers. When I try to connect to one, the application fails and I
> get a Apple trace (https://gist.github.com/akinsgre/8545844)
>
> I'm not sure if I'm reading this correctly, but it looks like Thread 9
> Crashed:: com.apple.audio.IOThread.client is the problem?

Looks like Thread 9 (a CoreAudio thread) jumped to NULL: rip is 0.
There's little to go by in the crash report.

Please try jammr for Mac:
http://jammr.net/download.html

That's a "known good" build of Wahjam that I test. It is very close
to vanilla Wahjam except the jammr protocol is configured instead of
NINJAM.

It's designed to run against the jammr servers but you can force the
NINJAM protocol by editing the settings file like this:
[jammr]
apiUrl=

(Sorry, I don't remember the location of the settings and don't have
access to a Mac right now. It's a standard Qt QSettings file for the
application.)

If jammr works but your own build doesn't, then the issue is something
in your build environment. For example, library versions.

Stefan

Greg Akins

unread,
Jan 21, 2014, 8:48:58 PM1/21/14
to wah...@googlegroups.com
On Tue, Jan 21, 2014 at 4:02 PM, Stefan Hajnoczi <stef...@gmail.com> wrote:
On Tue, Jan 21, 2014 at 1:00 PM, Greg Akins <angr...@gmail.com> wrote:
> When I start that, I'm prompted for my IO settings and then given a list of
> ninjam servers.  When I try to connect to one, the application fails and I
> get a Apple trace (https://gist.github.com/akinsgre/8545844)
>
> I'm not sure if I'm reading this correctly, but it looks like Thread 9
> Crashed:: com.apple.audio.IOThread.client is the problem?

Looks like Thread 9 (a CoreAudio thread) jumped to NULL: rip is 0.
There's little to go by in the crash report.

Please try jammr for Mac:
http://jammr.net/download.html

<snip/>
 
If jammr works but your own build doesn't, then the issue is something
in your build environment.  For example, library versions.


Jammr worked

Since the crash occurred in CoreAudio, maybe one of my library versions are off.

Can you tell me what versions you're using when you build on Mac?

Stefan Hajnoczi

unread,
Jan 22, 2014, 8:33:15 AM1/22/14
to wah...@googlegroups.com
I'm currently on a trip and do not have access to the Mac. All I know
at the moment is that it's Mac OS X 10.5.

Next week I can get you detailed information.

Stefan
Reply all
Reply to author
Forward
0 new messages