curious about setup

Apr 21, 2009 at 1:58 PM
I am a new start here. I am so curious about the setup. First of all, I download the souce and compile it, then it complain that missing file of "Touchdata.h". Then I found I need to install touchlib, when I install touchlib, it asked me about openCV, so could someone please make it clear how many things we need to do, step by step. I think it helps for the starts.
Apr 21, 2009 at 3:30 PM
From where did you download the files?

If you downloaded the source from the repository then you'll have to compile the files in 'Main Source'.
To be able to compile the framework, you'll first have to compile the contracts .dll then logics .dll etc.
Apr 22, 2009 at 3:36 AM
Edited Apr 22, 2009 at 4:19 AM
I had the same experience two days ago, and here are the steps:
1. Get the latest VS update: VS90sp1-KB945140-ENU.exe (from: http://www.microsoft.com/visualstudio/en-us/downloads/default.mspx)
2. Get the latest Windows SDK: VsSDK_sfx.exe
3. Get opencv: http://sourceforge.net/projects/opencvlibrary/
4. Get touchlib: http://nuigroup.com/touchlib/tutorials/#compiling
5. Once you start building the solutions, you will have some header files/include issues, the compiler is trying to find the headers and libraries in opnecv and touchlib. You need to change the project include paths accordingly.
6. You will have link issues as well, you will also need to either build the libraries or just download them: cv.lib, cxcore.lib, highgui.lib

This should help.

Oh, by the way, you need to use Windows 7, the 32-bit version not 64-bit.
It seems that the driver installation command can only run in 32-bit.

I wish it was mentioned somewhere, as it would have save me a lot of time.

Good luck.
Apr 22, 2009 at 10:10 AM
Yes, that's great!

Thank you very much, Thomas and nelfata. Now "hello world" works!

But I still have a question,
I don't know if my thought is right or not. Mult-Touch Vista provide a framework on which to build multi-input WPF applications, so with windows vista, I can work with those applications. With windows 7, I can install multitouch dirver, so I can get two mice recognized, so for emaple I can open "Paint", and use both mice to draw. But I can't do the same thing on windows vista, right?

Thank you!
Apr 22, 2009 at 10:40 AM
Yes, Vista doesn't have native multitouch support. Win7 does though.
Apr 22, 2009 at 1:20 PM
Edited Apr 22, 2009 at 1:57 PM
With Vista, if I run "Multitouch.Service.Console.exe", I can see each mouse control one point as well, but it doesn't mean anything except I run multi-input WPF applications. I want to know whether I can also recognize those two input if I run my own application using other framework(c++)?
Coordinator
Apr 22, 2009 at 6:09 PM
You can use Multitouch.Framework.dll (ContactHandler) if you don't use WPF. Or you can communicated directly with Multitouch.Service.Logic over Web Services.
Apr 23, 2009 at 9:43 AM
Thank you for reply, nesher.
I will have a try.
Apr 27, 2009 at 1:02 PM
Nesher, do you have any example or tutorial to use Multitouch.Framework.dll in C++?
Coordinator
Apr 27, 2009 at 7:02 PM
No, I don't have any c++ examples.
But it should work with any language if it can communicate with web services.
Currently MTV sends it's data over named pipe, but by changing wcf bindigs you can make it use http.
Apr 27, 2009 at 7:33 PM
Thank you, nesher.
I don't know how to communicate with web services with C++. Could you give me any help about it or point me to a tutorial.
When I link in the dll file into my Visual Studio project I have access to  lot of functions (I think including those to determine the cursor position) but I do not really know what they all do. Is there any documention on the functions available?