calftrail / Touch

(Multitouch actually) My reverse engineering work of OS X gesture and multitouch events that led to Sesamouse (GPL v2.0 license)
http://calftrail.com/blog/
136 stars 19 forks source link

"Undefined symbol" error when trying to compile TouchExtractor #2

Open noah-nuebling opened 4 years ago

noah-nuebling commented 4 years ago

It seems that the external CGEventRecordPointer function cannot be found.

Here's the error:

Undefined symbols for architecture x86_64:
  "_CGEventRecordPointer", referenced from:
      -[TouchExtractorAppDelegate decodeEvents:] in TouchExtractorAppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I would love to learn how this code works. I'm already using as a basis for some very basic touch synthesis in my own little project Mac Mouse Fix. I think I might be able to use it for some really neat features if I understood this better. Thank you so much for your amazing work and for making it open source!

noah-nuebling commented 4 years ago

Okay it seems like the error only prevents you from using the decodeEvents: function. If you simply comment it out, everything else will work fine.