1 of 2
1
Building TouchLib for Ubuntu Fiesty (7.04)
Posted: 08 June 2007 01:25 PM   [ Ignore ]
Rank
Joined  2007-06-07
Total Posts:  10
New Member

I couldn’t find anything directly, and had to get a little (or a lot) of help from XWolf and Falcon4ev on IRC to get this working, so I thought I’d post my notes on how to build touchlib for Ubuntu Fiesty:

sudo apt-get install cmake libcv1 libcvaux1 libcv-dev libcvaux-dev libglut libglut-dev fftw-dev

I found that I got some errors about libavcoded and libavformat were the wrong versions.  I had installed blender2.43, which apparently used a different version of these libraries for ffmpeg.  Once I removed blender (sudo apt-get remove blender), the install of libcv1 and libcv-dev worked fine.

<TODO: add instructions for OSC>

Once all of the dependencies have been installed, next download the source code, generate the makefile and compile:

mkdir touchlib
cd touchlib
svn checkout http
://touchlib.googlecode.com/svn/multitouch/ .
cmake .
make

Thats the short of it.  As I make more progress, I’ll try to keep this thread updated.

Everything should go smoothly at that point… If not, check #FTIR on irc.freenode.net.

(2007-06-08 22:41 MST - Revised to fix some typos and missing dependencies)

Profile
 
 
Posted: 08 June 2007 04:40 PM   [ Ignore ]   [ # 1 ]
RankRankRankRank
Joined  2007-01-08
Total Posts:  1008
Member

tnx for adding this irish, ubuntu seems to be pretty hot lately, so i bet this will be usefull to quite a few people who want to get into multitouch with linux/ubuntu

Profile
 
 
Posted: 10 June 2007 08:48 AM   [ Ignore ]   [ # 2 ]
Rank
Joined  2007-06-09
Total Posts:  2
New Member

I followed the instructions here, plus installed the dependencies i found in the wiki, and i got an error compiling

Maybe you are using a previous svn revision?

svn checkout http://touchlib.googlecode.com/svn/multitouch/ .
Revisión obtenida41

This is the error i get

[ 69%] Built target tinyxml
[ 69
%] Built target touchlib
Linking CXX executable configapp
/home/fido/touchlib/src/libtouchlib.a(FilterFactory.o): In function `FilterFactory::createFilter(char const*, char const*)':
FilterFactory.cpp:(.text+0x1e8): undefined reference to 
`HighpassFilter::HighpassFilter(char*)'
FilterFactory.cpp:(.text+0x278): undefined reference to `InvertFilter::InvertFilter(char*)'
FilterFactory.cpp:(.text+0x308): undefined reference to `ScalerFilter::ScalerFilter(char*)'
collect2: ld devolvió el estado de salida 1
make[2]: *** [src/configapp] Error 1
make[1]: *** [src/CMakeFiles/configapp.dir/all] Error 2
make: *** [all] Error 2

Profile
 
 
Posted: 10 June 2007 12:47 PM   [ Ignore ]   [ # 3 ]
Rank
Joined  2007-06-10
Total Posts:  1
New Member

Having just attempted to build touchlib from clean copy of Ubuntu feisty 7.04…

The following also need to be installed with apt-get

g++ libxmu-dev libglut3-dev

I came across the same link errors as above… this is simply that the cmake build file (src/CMakeList.txt) does not attempt to compile some of the .cpp filter files. So you need to add them. (HighpassFilter.cpp InvertFilter.cpp ScalerFilter.cpp).

I also got this error:

error‘struct TouchData’ has no member named ‘Area’

which related to sampleapp.cpp and was fixed by changing the .Area member variables to .area.. there are two occurrences.

Patch for the above problems attached.

File Attachments
ubuntu_feisty_patch_from_r41.txt  (File Size: 2KB - Downloads: 1003)
Profile
 
 
Posted: 10 June 2007 01:18 PM   [ Ignore ]   [ # 4 ]
Rank
Joined  2007-06-09
Total Posts:  2
New Member

Thank you! Compiled like a charm fixing that

Profile
 
 
Posted: 28 June 2007 01:30 PM   [ Ignore ]   [ # 5 ]
Rank
Joined  2007-06-06
Total Posts:  15
New Member

i tried following the instructions but get the following:
svn: URL ‘http://touchlib.googlecode.com/svn/multitouch’ doesn’t exist

is there something i need to download manually or has the url changed?

Profile
 
 
Posted: 28 June 2007 01:43 PM   [ Ignore ]   [ # 6 ]
Rank
Joined  2007-03-05
Total Posts:  18
New Member

The path has changed from ..svn/multitouch/ to ..svn/trunk/

Profile
 
 
Posted: 28 June 2007 02:45 PM   [ Ignore ]   [ # 7 ]
Rank
Joined  2007-06-06
Total Posts:  15
New Member

thanks alan,
now i’m running into another problem =/

it does not seem to be decting where my header files are and is saying they are missing
the stated errors at the bottom of the list are:
make[2]: *** [CMakeFiles/touchlib.dir/BackgroundFilter.o] Error 1
make[1]: *** [CMakeFiles/touchlib.dir/all] Error 2
make: *** [all] Error 2

Profile
 
 
Posted: 28 June 2007 03:17 PM   [ Ignore ]   [ # 8 ]
Rank
Joined  2007-06-07
Total Posts:  10
New Member

There should be some more errors before those one… Can you post those as well?

Profile
 
 
Posted: 28 June 2007 04:04 PM   [ Ignore ]   [ # 9 ]
Rank
Joined  2007-06-06
Total Posts:  15
New Member

i started back at the svn checkout
and this time seem to have gotten more files
before cmake . would not run, so i was actually in the src folder when i got those errors from running make
now when i cmake .  from the touchlib folder i get the following:

x@x-desktop:~/touchlib$ cmake .
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc—works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++—works
-- Checking GNUCXX version 3/4 to determine OpenCV /opt/net/ path
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
Oscpack not found - OSC application will not be built
CMake Error: This project requires some variables to be set,
and cmake can not find them.
Please set the following variables:
GLUT_Xmu_LIBRARY (ADVANCED)

-- Configuring done

ok i fixed it, seems i had to type the line from notsohot again, even though i’m quite sure i typed it before…
now most things work, just the OSC application which was still not built

i get a lot of conversion warnings though, is that normal?

Profile
 
 
Posted: 06 July 2007 01:38 AM   [ Ignore ]   [ # 10 ]
Rank
Joined  2007-06-06
Total Posts:  15
New Member

when trying to reinstall everything on a faster computer i encountered another problem involving:

make[2]: *** [src/CMakeFiles/sampleapp.dir/sampleapp.o] Error 1
make[1]: *** [src/CMakeFiles/sampleapp.dir/all] Error 2
make: *** [all] Error 2

where i start having problems after ~74% completion when i run make

for those who encounter a similar problem, try downloading the files from: http://touchlib.googlecode.com/files/touchlib-src-20070627.tbz2
instead of using the svn checkout from http://touchlib.googlecode.com/svn/trunk/

still can’t get OSC to work though.

Profile
 
 
Posted: 20 September 2007 08:37 PM   [ Ignore ]   [ # 11 ]
Rank
Joined  2007-09-19
Total Posts:  3
New Member

You can get OSC to work by downloading and installing OSCpack...it can be checked out from their SVN with the following command:
svn co https://www.smartelectronix.com:9000/repos/osc/oscpack/trunk

Then run:
make
sudo make install

Then try making touchlib again.

Profile
 
 
Posted: 19 February 2008 04:08 AM   [ Ignore ]   [ # 12 ]
Rank
Joined  2008-02-19
Total Posts:  1
New Member

thanks I compiled it within 15 minutes

Profile
 
 
Posted: 19 March 2008 02:57 PM   [ Ignore ]   [ # 13 ]
RankRankRank
Joined  2008-03-11
Total Posts:  253
Sr. Member

I have compiled touchlib, run flosc and osc, but no flash application is taking any touches… when I run server, camera should switch on, it does not. The same in windwos - works, what to do?  mabe there are some lib files tobe copied in global lib directiries?

 Signature 

My Blog: http://zviangi.blogspot.com with pictures and videos ....text in Georgian
22" LCD DSI coffee table
58" DI Table
FTIR table (my 1st) http://www.youtube.com/watch?v=mR90jjZNs8s

Profile
 
 
Posted: 20 March 2008 02:55 AM   [ Ignore ]   [ # 14 ]
Rank
Joined  2007-03-11
Total Posts:  9
New Member

I just finished building touchlib last night. Been poking at it for a while now.  I’m running 7.10 64bit, and it seems to compile fine.  I have not installed/built with osclib, so that could be part of my problem, but I doubt it.  I haven’t found anything definitive yet (will continue to look), but I’m wondering how to tell touchlib to use a specific device.  Currently it runs, but I don’t get anything in the many windows that ./touch opens up. I could very well be forgetting something else as well.

Any input/help/etc would be greatly appreciated.

Thanks

Profile
 
 
Posted: 22 March 2008 01:57 AM   [ Ignore ]   [ # 15 ]
Rank
Joined  2007-03-11
Total Posts:  9
New Member

Alright, after finally getting a little more time to poke around. I have touchlib sort of working.  I was trying to run the wrong file smile

As it sits right now, i can run configapp/sampleapp, but it tends to segfault fairly quickly.  I probably won’t have time to investigate this weekend, as I want to try and get my display at least partially assembled so I can actually have something for input.  After that, I will start looking into making this work better.

Profile
 
 
   
1 of 2
1