floe / tisch-core

TISCH - Tangible Interactive Surfaces for Collaboration between Humans
GNU Lesser General Public License v3.0
16 stars 6 forks source link

Cannot make on Mac 64bit #19

Closed floe closed 11 years ago

floe commented 11 years ago

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

floe commented 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

floe commented 11 years ago

Submitted by vavivavi on 2010-12-12 12:33:03

Thanks for your response.

$ echo | cpp -dM -

define DBL_MIN_EXP (-1021)

define FLT_MIN 1.17549435e-38F

define DEC64_DEN 0.000000000000001E-383DD

define CHAR_BIT 8

define WCHAR_MAX 2147483647

define DBL_DENORM_MIN 4.9406564584124654e-324

define FLT_EVAL_METHOD 0

define DBL_MIN_10_EXP (-307)

define FINITE_MATH_ONLY 0

define DEC64_MAX_EXP 384

define SHRT_MAX 32767

define LDBL_MAX 1.18973149535723176502e+4932L

define APPLE_CC 5664

define UINTMAX_TYPE long unsigned int

define DEC32_EPSILON 1E-6DF

define block __attribute((blocks(byref)))

define SCHAR_MAX 127

define USER_LABEL_PREFIX _

define STDC_HOSTED 1

define DEC64_MIN_EXP (-383)

define DBL_DIG 15

define FLT_EPSILON 1.19209290e-7F

define LDBL_MIN 3.36210314311209350626e-4932L

define DEC32_MAX 9.999999E96DF

define **strong

define __APPLE** 1

define DECIMAL_DIG 21

define LDBL_HAS_QUIET_NAN 1

define DYNAMIC 1

define GNUC 4

define MMX 1

define FLT_HAS_DENORM 1

define DBL_MAX 1.7976931348623157e+308

define DBL_HAS_INFINITY 1

define DEC32_MIN_EXP (-95)

define OBJC_NEW_PROPERTIES 1

define LDBL_HAS_DENORM 1

define DEC32_MIN 1E-95DF

define weak __attribute((objc_gc(weak)))

define DBL_MAX_EXP 1024

define DEC128_EPSILON 1E-33DL

define SSE2_MATH 1

define **amd64 1

define __tune_core2** 1

define LONG_LONG_MAX 9223372036854775807LL

define **GXX_ABI_VERSION 1002

define __FLT_MIN_EXP** (-125)

define **x86_64 1

define __DBL_MIN** 2.2250738585072014e-308

define LP64 1

define DBL_HAS_QUIET_NAN 1

define DEC128_MIN 1E-6143DL

define REGISTER_PREFIX

define DBL_HAS_DENORM 1

define NO_INLINE 1

define DEC_EVAL_METHOD 2

define DEC128_MAX 9.999999999999999999999999999999999E6144DL

define FLT_MANT_DIG 24

define VERSION "4.2.1 (Apple Inc. build 5664)"

define DEC64_EPSILON 1E-15DD

define DEC128_MIN_EXP (-6143)

define ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED 1065

define SIZE_TYPE long unsigned int

define DEC32_DEN 0.000001E-95DF

define FLT_RADIX 2

define LDBL_EPSILON 1.08420217248550443401e-19L

define SSE_MATH 1

define **k8 1

define __LDBL_DIG** 18

define x86_64 1

define FLT_HAS_QUIET_NAN 1

define FLT_MAX_10_EXP 38

define LONG_MAX 9223372036854775807L

define FLT_HAS_INFINITY 1

define DEC64_MAX 9.999999999999999E384DD

define DEC64_MANT_DIG 16

define DEC32_MAX_EXP 96

define DEC128_DEN 0.000000000000000000000000000000001E-6143DL

define LITTLE_ENDIAN 1

define LDBL_MANT_DIG 64

define CONSTANT_CFSTRINGS 1

define DEC32_MANT_DIG 7

define k8 1

define WCHAR_TYPE int

define pic 2

define FLT_DIG 6

define INT_MAX 2147483647

define FLT_MAX_EXP 128

define BLOCKS 1

define DBL_MANT_DIG 53

define DEC64_MIN 1E-383DD

define WINT_TYPE int

define SSE 1

define LDBL_MIN_EXP (-16381)

define MACH 1

define amd64 1

define LDBL_MAX_EXP 16384

define SSP 1

define LDBL_MAX_10_EXP 4932

define DBL_EPSILON 2.2204460492503131e-16

define _LP64 1

define __GNUC_PATCHLEVEL__ 1

define LDBL_HAS_INFINITY 1

define INTMAX_MAX 9223372036854775807L

define FLT_DENORM_MIN 1.40129846e-45F

define PIC 2

define FLT_MAX 3.40282347e+38F

define SSE2 1

define FLT_MIN_10_EXP (-37)

define INTMAX_TYPE long int

define DEC128_MAX_EXP 6144

define GNUC_MINOR 2

define DBL_MAX_10_EXP 308

define LDBL_DENORM_MIN 3.64519953188247460253e-4951L

define PTRDIFF_TYPE long int

define DEC128_MANT_DIG 34

define LDBL_MIN_10_EXP (-4931)

define GNUC_GNU_INLINE 1

define SSE3 1

define DBL_MIN_EXP (-1021)

define FLT_MIN 1.17549435e-38F

define DEC64_DEN 0.000000000000001E-383DD

define CHAR_BIT 8

define WCHAR_MAX 2147483647

define DBL_DENORM_MIN 4.9406564584124654e-324

define FLT_EVAL_METHOD 0

define DBL_MIN_10_EXP (-307)

define FINITE_MATH_ONLY 0

define DEC64_MAX_EXP 384

define SHRT_MAX 32767

define LDBL_MAX 1.18973149535723176502e+4932L

define APPLE_CC 5664

define UINTMAX_TYPE long unsigned int

define DEC32_EPSILON 1E-6DF

define block __attribute((blocks(byref)))

define SCHAR_MAX 127

define USER_LABEL_PREFIX _

define STDC_HOSTED 1

define DEC64_MIN_EXP (-383)

define DBL_DIG 15

define FLT_EPSILON 1.19209290e-7F

define LDBL_MIN 3.36210314311209350626e-4932L

define DEC32_MAX 9.999999E96DF

define **strong

define __APPLE** 1

define DECIMAL_DIG 21

define LDBL_HAS_QUIET_NAN 1

define DYNAMIC 1

define GNUC 4

define MMX 1

define FLT_HAS_DENORM 1

define DBL_MAX 1.7976931348623157e+308

define DBL_HAS_INFINITY 1

define DEC32_MIN_EXP (-95)

define OBJC_NEW_PROPERTIES 1

define LDBL_HAS_DENORM 1

define DEC32_MIN 1E-95DF

define weak __attribute((objc_gc(weak)))

define DBL_MAX_EXP 1024

define DEC128_EPSILON 1E-33DL

define SSE2_MATH 1

define **amd64 1

define __tune_core2** 1

define LONG_LONG_MAX 9223372036854775807LL

define **GXX_ABI_VERSION 1002

define __FLT_MIN_EXP** (-125)

define **x86_64 1

define __DBL_MIN** 2.2250738585072014e-308

define LP64 1

define DBL_HAS_QUIET_NAN 1

define DEC128_MIN 1E-6143DL

define REGISTER_PREFIX

define DBL_HAS_DENORM 1

define NO_INLINE 1

define DEC_EVAL_METHOD 2

define DEC128_MAX 9.999999999999999999999999999999999E6144DL

define FLT_MANT_DIG 24

define VERSION "4.2.1 (Apple Inc. build 5664)"

define DEC64_EPSILON 1E-15DD

define DEC128_MIN_EXP (-6143)

define ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED 1065

define SIZE_TYPE long unsigned int

define DEC32_DEN 0.000001E-95DF

define FLT_RADIX 2

define LDBL_EPSILON 1.08420217248550443401e-19L

define SSE_MATH 1

define **k8 1

define __LDBL_DIG** 18

define x86_64 1

define FLT_HAS_QUIET_NAN 1

define FLT_MAX_10_EXP 38

define LONG_MAX 9223372036854775807L

define FLT_HAS_INFINITY 1

define DEC64_MAX 9.999999999999999E384DD

define DEC64_MANT_DIG 16

define DEC32_MAX_EXP 96

define DEC128_DEN 0.000000000000000000000000000000001E-6143DL

define LITTLE_ENDIAN 1

define LDBL_MANT_DIG 64

define CONSTANT_CFSTRINGS 1

define DEC32_MANT_DIG 7

define k8 1

define WCHAR_TYPE int

define pic 2

define FLT_DIG 6

define INT_MAX 2147483647

define FLT_MAX_EXP 128

define BLOCKS 1

define DBL_MANT_DIG 53

define DEC64_MIN 1E-383DD

define WINT_TYPE int

define SSE 1

define LDBL_MIN_EXP (-16381)

define MACH 1

define amd64 1

define LDBL_MAX_EXP 16384

define SSP 1

define LDBL_MAX_10_EXP 4932

define DBL_EPSILON 2.2204460492503131e-16

define _LP64 1

define __GNUC_PATCHLEVEL__ 1

define LDBL_HAS_INFINITY 1

define INTMAX_MAX 9223372036854775807L

define FLT_DENORM_MIN 1.40129846e-45F

define PIC 2

define FLT_MAX 3.40282347e+38F

define SSE2 1

define FLT_MIN_10_EXP (-37)

define INTMAX_TYPE long int

define DEC128_MAX_EXP 6144

define GNUC_MINOR 2

define DBL_MAX_10_EXP 308

define LDBL_DENORM_MIN 3.64519953188247460253e-4951L

define PTRDIFF_TYPE long int

define DEC128_MANT_DIG 34

define LDBL_MIN_10_EXP (-4931)

define GNUC_GNU_INLINE 1

define SSE3 1

floe commented 11 years ago

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

floe commented 11 years ago

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<< (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

$ 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.

floe commented 11 years ago

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

floe commented 11 years ago

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

Index: libs/simplecv/Image.h

--- libs/simplecv/Image.h (revision 138) +++ libs/simplecv/Image.h (working copy) @@ -66,7 +66,7 @@

        }

@@ -111,7 +111,7 @@ inline void timestamp( unsigned long long int val ) { imgtime = val; } inline unsigned long long int timestamp() { return imgtime; }

@@ -186,7 +186,7 @@

endif

    }

my patch for drivers/touchd/Camera.cc is very poor, please rewrite.

thanks a lot!

floe commented 11 years ago

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

floe commented 11 years ago

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)