Making oscpack work on linux/x86_64
Posted: 06 July 2008 02:59 PM   [ Ignore ]
New Member
Rank
Total Posts:  2
Joined  2008-07-06

Hi,

I spent all afternoon trying to get the osc demo running. Kept crashing right at the beginning on my linux x86_64 machine with a segfault. I finally tracked the problem in the oscpack library. It’s prepared for x86_64 support, however the support is not properly enabled. The oscpack sources depend on an “x86_64” compiler switch. The GNU compiler’s switch for this platforms is named “__x86_64__” however. Great…

So, after downloading and unpacking the oscpack library just change:

in “osc/OscTypes.h” (line 52):

#ifdef x86_64

to

#ifdef __x86_64__

And in “osc/OscOutboundPacketStream.h” (line 99)

#ifndef x86_64

to

#ifndef __x86_64__

Then recompile and re-install the oscpack library, recompile your touchlib (make clean && make) - and there you go…
That’s been a whole afternoon’s work. So I thought I share this at least…

KenTouch

Profile
 
 
Posted: 06 July 2008 04:48 PM   [ Ignore ]   [ # 1 ]
New Member
Avatar
Rank
Total Posts:  24
Joined  2008-06-16

Hello,
you can also simply add"-Dx86_64" to your CFLAGS in the Makefile.
best, Martin.K

 Signature 

reacTIVision framework: http://reactivision.sf.net/
TUIO protocol specification: http://reactable.iua.upf.edu/?tuio
reacTIVision & TUIO CVS: http://sourceforge.net/projects/reacTIVision

Profile
 
 
Posted: 07 July 2008 04:14 AM   [ Ignore ]   [ # 2 ]
New Member
Rank
Total Posts:  2
Joined  2008-07-06
Martin Kaltenbrunner - 06 July 2008 04:48 PM

Hello,
you can also simply add"-Dx86_64" to your CFLAGS in the Makefile.
best, Martin.K

Hi,
yes, but then you need to modify the oscpack and also touchlib Makefiles accordingly.
And you can’t use your Makefiles for compiling on non-x86_64 platforms any longer.
KenTouch

Profile