Closed floe closed 11 years ago
Submitted by echtler on 2010-12-12 12:19:07
Thanks for your bug report - I think I have an idea what the reason for this bug is, but I don't have a 64 bit MacOS to try it. Could you please post the output of "echo | cpp -dM -"?
Thanks, Florian
Submitted by vavivavi on 2010-12-12 12:33:03
Thanks for your response.
$ echo | cpp -dM -
Submitted by echtler on 2010-12-12 21:02:58
I think this should be fixed in rev. 117 - please report back if not.
Florian
Submitted by vavivavi on 2010-12-13 16:50:41
same error occurred.
$ svn info : Revision: 123 :
$ CFLAGS="-DHAS_FREENECT -I/usr/local/include/libusb-1.0 -I/opt/local/include -I/usr/local/include" LDFLAGS="-L/opt/local/lib -lfreenect -ldc1394 -lusb-1.0" DESTDIR=/usr/local make all
:
g++ -Wall -ggdb -fPIC -L/usr/local/lib/ -dynamiclib -L/opt/local/lib -lfreenect -ldc1394 -lusb-1.0 -Wall -ggdb -L/usr/local/lib/ -L/opt/local/lib -ldc1394 -framework OpenGL -framework GLUT -lpthread -losc -L../..//libs/osc Socket.o BasicBlob.o Thread.o WebSocket.o TUIOStream.o -o libtools.dylib
Undefined symbols:
"osc::OutboundPacketStream::operator<<(int)", referenced from:
TUIOStream::start() in TUIOStream.o
TUIOStream::send() in TUIOStream.o
TUIOStream& operator<<
$ uname -a Darwin xxx.local 10.5.0 Darwin Kernel Version 10.5.0: Fri Nov 5 23:19:13 PDT 2010; root:xnu-1504.9.17~1/RELEASE_X86_64 x86_64 i386 MacBookPro5,1 Darwin
$ g++ --version i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Submitted by echtler on 2010-12-14 11:38:35
Hm, I will check this on my 32-bit MacOS later today - it works on 64-bit Linux. Please try the following: in libs/osc/osc/OscOutboundPacketStream.h, remove the #ifdefs in line 99 and rebuild.
Thanks, Florian
Submitted by vavivavi on 2010-12-16 07:16:24
finally, the compilation was successful.
$ svn info : Revision: 138 :
and my patch for mac osx is follows,
$ svn diff
--- libs/simplecv/Image.h (revision 138) +++ libs/simplecv/Image.h (working copy) @@ -66,7 +66,7 @@
}
#if !defined(_MSC_VER) && !defined(__APPLE__)
else if (shm == 0) {
@@ -111,7 +111,7 @@ inline void timestamp( unsigned long long int val ) { imgtime = val; } inline unsigned long long int timestamp() { return imgtime; }
#if !defined(_MSC_VER) && !defined(__APPLE__)
inline int acquire() { return do_sem( -1 ); }
inline int release() { return do_sem( +1 ); }
@@ -155,7 +155,7 @@
}
#ifndef _MSC_VER
#if !defined(_MSC_VER) && !defined(__APPLE__)
else if (fcntl( key, F_GETFL ) != -1) {
@@ -186,7 +186,7 @@
}
#if !defined(_MSC_VER) && !defined(__APPLE__)
// wrapper for semaphore access
inline int do_sem( int val ) {
--- drivers/touchd/Camera.cc (revision 138) +++ drivers/touchd/Camera.cc (working copy) @@ -52,7 +52,11 @@
// generic low-end default settings width = 640; height = 480; fps = 30; +#ifdef linux sourcetype = linux ? CAMERA_TYPE_V4L : CAMERA_TYPE_DIRECTSHOW; +#else
sourcetype = CAMERA_TYPE_DC1394; +#endif sourcepath = "/dev/video0";
// try to read settings from XML
my patch for drivers/touchd/Camera.cc is very poor, please rewrite.
thanks a lot!
Submitted by echtler on 2010-12-16 16:55:16
I've integrated your patches - thanks a lot! Did you also have to patch libs/osc/osc/OscOutboundPacketStream.h now?
Florian
Submitted by vavivavi on 2010-12-17 04:43:09
Did you also have to patch libs/osc/osc/OscOutboundPacketStream.h now?
no, i didn't touch ibs/osc/osc/OscOutboundPacketStream.h (rev 138)
Submitted by vavivavi on 2010-12-12 09:37:09
$ svn info Path: .URL: https://tisch.svn.sourceforge.net/svnroot/tisch/libtisch : Revision: 116 :
$ CFLAGS="-DHAS_FREENECT -I/usr/local/include/libusb-1.0 -I/opt/local/include -I/usr/local/include" LDFLAGS="-L/opt/local/lib -lfreenect -ldc1394 -lusb-1.0" DESTDIR=/usr/local make all make -C libs/osc make[1]: Nothing to be done for `build'. make -C libs/tools g++ -Wall -ggdb -fPIC -L/usr/local/lib/ -dynamiclib -L/opt/local/lib -lfreenect -ldc1394 -lusb-1.0 -Wall -ggdb -L/usr/local/lib/ -L/opt/local/lib -ldc1394 -framework OpenGL -framework GLUT -lpthread -losc -L../..//libs/osc Socket.o BasicBlob.o Thread.o WebSocket.o TUIOStream.o -o libtools.dylib Undefined symbols: "osc::OutboundPacketStream::operator<<(int)", referenced from: TUIOStream::start() in TUIOStream.o TUIOStream::send() in TUIOStream.o TUIOStream& operator<<(TUIOStream&, BasicBlob const&)in TUIOStream.o
TUIOStream& operator<< (TUIOStream&, BasicBlob const&)in TUIOStream.o
TUIOStream& operator<< (TUIOStream&, BasicBlob const&)in TUIOStream.o
TUIOStream& operator<< (TUIOStream&, BasicBlob const&)in TUIOStream.o
TUIOStream& operator<< (TUIOStream&, BasicBlob const&)in TUIOStream.o
TUIOStream& operator<< (TUIOStream&, BasicBlob const&)in TUIOStream.o
TUIOStream& operator<< (TUIOStream&, BasicBlob const&)in TUIOStream.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: * [libtools.dylib] Error 1
make: * [libs/tools] Error 2