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.
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.
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
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…
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?
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)
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
I was googling about installing pyliblo for cygwin on Windows and found this post. Just for the record, I was able to compile liblo and setup pyliblo without a hitch:
1. configure and build liblo from source
2. C_INCLUDE_PATH=/usr/local/include LIBRARY_PATH=/usr/local/lib python setup.py install