Touchpy under windows
Posted: 26 June 2008 12:25 PM   [ Ignore ]
RankRankRank
Joined  2007-12-05
Total Posts:  317
Sr. Member

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

 Signature 

ElOpsis
ElOpsis Blog

Profile
 
 
Posted: 26 June 2008 12:39 PM   [ Ignore ]   [ # 1 ]
Avatar
RankRankRankRank
Joined  2008-04-22
Total Posts:  525
Moderator

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 ]
Rank
Joined  2007-03-04
Total Posts:  63
New Member

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 ]
Avatar
RankRankRankRank
Joined  2008-04-22
Total Posts:  525
Moderator

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 ]
RankRankRank
Joined  2007-12-05
Total Posts:  317
Sr. Member

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…

 Signature 

ElOpsis
ElOpsis Blog

Profile
 
 
Posted: 26 June 2008 04:43 PM   [ Ignore ]   [ # 5 ]
RankRankRank
Joined  2007-12-05
Total Posts:  317
Sr. Member

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?

 Signature 

ElOpsis
ElOpsis Blog

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

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 ]
RankRankRank
Joined  2007-12-05
Total Posts:  317
Sr. Member

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

 Signature 

ElOpsis
ElOpsis Blog

Profile
 
 
Posted: 15 July 2008 05:10 PM   [ Ignore ]   [ # 8 ]
Avatar
RankRankRankRank
Joined  2008-04-22
Total Posts:  525
Moderator

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 ]
Avatar
RankRank
Joined  2008-03-02
Total Posts:  107
Jr. Member

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 ]
Avatar
RankRankRankRank
Joined  2008-04-22
Total Posts:  525
Moderator

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 ]
Avatar
RankRank
Joined  2008-03-02
Total Posts:  107
Jr. Member

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