Touchpy under windows
Posted: 26 June 2008 12:25 PM   [ Ignore ]
New Member
Rank
Total Posts:  52
Joined  2007-12-05

Hi all,

I am trying to setup touchpy under windows and the problem that I have is liblo is not in the standard python modules, so it needs to be compiled. So I set up MinGW and MSYS to compile it but I got errors at the make command. I am going to try to correct those errors but if someone has done this before it would be great to hear from his/her experiences.
The other thing is, at the end I will need pyliblo right? So I will need to compile that as well, but since it depends on liblo that must be compiled first.
So if anyone has something please share. Otherwise I will, if I get to resolve this.

Thanks a lot
Greg

Profile
 
 
Posted: 26 June 2008 12:39 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRank
Total Posts:  392
Joined  2008-04-22

Can you post the errors you get? 

Yes, you will need pyliblo, but that is a Python file, so it will install no problem.  When you get TouchPy running some things will not work, for instance, Windows does not use X, so wmxlibutil won’t work.  That isn’t that big of a problem, you just won’t be able to use movewindows.py or mouse.py.  You could write a windows version, if you wanted to.  We would really appreciate some getting started on windows notes, and a windows version of mouse.py and movewindows.py if you ever get that far.

Good Luck!

Alex

 Signature 

I am more then willing to to test your Multi-Touch programs on Linux, PM me if you have something.  If you’re looking for something faster then AS3 and Easier then C, try Python!

My Blog

Profile
 
 
Posted: 26 June 2008 02:16 PM   [ Ignore ]   [ # 2 ]
New Member
Rank
Total Posts:  63
Joined  2007-03-04

i couldn’t get liblo compiled through cygwin… there is an OSC.py floating around here or there that may work, i think it is based on twisted… of course there is always twisted

Profile
 
 
Posted: 26 June 2008 02:18 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRank
Total Posts:  392
Joined  2008-04-22

If you are going to use OSC.py, then use the old TouchPy.  We used it there, and it may work.  It was rather buggy, however.

 Signature 

I am more then willing to to test your Multi-Touch programs on Linux, PM me if you have something.  If you’re looking for something faster then AS3 and Easier then C, try Python!

My Blog

Profile
 
 
Posted: 26 June 2008 03:16 PM   [ Ignore ]   [ # 4 ]
New Member
Rank
Total Posts:  52
Joined  2007-12-05

The thing is that there are a lot of missing header files. I tried to download a couple of them from the internet but the other headers that are included in them are missing too. So I don’t really know if its possible to get all the files…

Profile
 
 
Posted: 26 June 2008 04:43 PM   [ Ignore ]   [ # 5 ]
New Member
Rank
Total Posts:  52
Joined  2007-12-05

Here is where I am at:
I downloaded pthreads and I put the headerfiles in the src directory of liblo, so now the compilation goes quite a bit but then I get this error:
mingw32\bin\ld.exe: cannot find -lpthread
Since I could compile pthreads, I have the pthreadGC2.dll but I dont know where ld.exe is looking for it? Does anyone know?

Profile
 
 
Posted: 01 July 2008 08:55 AM   [ Ignore ]   [ # 6 ]
Jr. Member
Avatar
RankRank
Total Posts:  101
Joined  2008-03-02

Ok pthreadGC2.dll should be in your LIBRARY path .. when you are compiling (if it’s done with mingw), you need the pthreadGC in your lib folder,
there is an issue with pthread as far I remmember .. you will need also the pthread.a or pthread.la (not sure anymore). If you have difficulties with it
I could try to compile that myself, but anyway I’m doing the osc.py fallback in touchpy so pyliblo would be used just as primary option.
Anyway here is a guide to help you trough compiling liblo: http://iua-share.upf.es/wikis/clam/index.php/Devel/Windows_MinGW_cross_compile#liblo
That worked for me .. I was able to compile liblo and pthread (dll and exe release for windows) when doing the toxy app.
(it was compiled however on linux, but that means crosscompiled = more brain damage and harder) smile

Profile
 
 
Posted: 02 July 2008 06:39 AM   [ Ignore ]   [ # 7 ]
New Member
Rank
Total Posts:  52
Joined  2007-12-05

Thanx for the info jet-plane, I will try this one.

Profile
 
 
Posted: 15 July 2008 05:10 PM   [ Ignore ]   [ # 8 ]
Administrator
Avatar
RankRankRank
Total Posts:  392
Joined  2008-04-22

Any info on this?  Did it work?

 Signature 

I am more then willing to to test your Multi-Touch programs on Linux, PM me if you have something.  If you’re looking for something faster then AS3 and Easier then C, try Python!

My Blog

Profile
 
 
Posted: 30 August 2008 06:36 AM   [ Ignore ]   [ # 9 ]
Jr. Member
Avatar
RankRank
Total Posts:  101
Joined  2008-03-02

I have added pure python implementation as fallback so now It should work without pyliblo installed.
Details at : http://nuigroup.com/forums/viewthread/2879/

Profile
 
 
Posted: 30 August 2008 09:25 AM   [ Ignore ]   [ # 10 ]
Administrator
Avatar
RankRankRank
Total Posts:  392
Joined  2008-04-22

Awesome jet-plane!  Any reason the liblo version is any better?

 Signature 

I am more then willing to to test your Multi-Touch programs on Linux, PM me if you have something.  If you’re looking for something faster then AS3 and Easier then C, try Python!

My Blog

Profile
 
 
Posted: 30 August 2008 01:35 PM   [ Ignore ]   [ # 11 ]
Jr. Member
Avatar
RankRank
Total Posts:  101
Joined  2008-03-02

Well liblo is pure C implementation, so it is faster and less overhead to the system, at least theoretically smile

Edit:
I got pyliblo compiled on win, details are on touchpy thread.

Profile
 
 
   
 
 
‹‹ Multi-Touch and Python      Pyliblo on Mac ››