Touchlib compilation issue
Posted: 05 February 2008 08:39 PM   [ Ignore ]
New Member
Rank
Total Posts:  12
Joined  2008-02-05

Hi Everyone.
I’m working on my DI multitouch table. Use Touchlib + Opengl and Touchlib + flosc + flash. Precompiled libraries work ok, but today i decided to compile Touchlib myself to make some modifications(used this http://www.multigesture.net/articles/touchlib-compiling-instructions/). It compiles...run fine on machine where compilation was done, but when i tranfer binaries to our test machine binaries refuse to work (precompiled binaries work fine). It seems that i checked everything, but everytime i run configappd.exe it gives me “fail to run, plz reinstall application. So how can I make my new binaries working (didnt do any code modification yet).

Profile
 
 
Posted: 05 February 2008 09:40 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  1306
Joined  2007-04-08

Hi Miha and welcome. You’ve compiled touchlib in debug mode which is why there’s is a “d” on the end of all your exes. This makes it so it only runs on the computer you compiled on. Recompile and set it to “release” instead of “debug” when you compile. This will fix your problem. =)

 Signature 

My Multitouch Blog
My Youtube
Multitouch FAQ - Need Help? Click here!

Profile
 
 
Posted: 06 February 2008 06:47 AM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRank
Total Posts:  204
Joined  2007-04-03
cerupcat - 05 February 2008 09:40 PM

Hi Miha and welcome. You’ve compiled touchlib in debug mode which is why there’s is a “d” on the end of all your exes. This makes it so it only runs on the computer you compiled on. Recompile and set it to “release” instead of “debug” when you compile. This will fix your problem. =)

Hey ceruptcat wink

I don’t the problem is the release/debug mode. That error comes up when you do not have the visual studio 2005 runtime dll’s installed (I guess the test machine does not have vs2k5 installed).

http://www.multigesture.net/wp-content/uploads/2007/09/vc2k5_sp1_x86_redist.zip
Download this file and run the setup. That will fix it on your test machine.

Edit:
oops my bad, these dll’s wont help at all… xD unless you install the vc2k5 sp1 x86 debug redist.

 Signature 

My multitouch blog: http://www.multigesture.net
Howto: Compile touchlib on windows XP/Vista
Howto: Compile touchlib on Ubuntu Linux
Downloads: Touchlib SVN builds

Profile
 
 
Posted: 06 February 2008 10:48 AM   [ Ignore ]   [ # 3 ]
New Member
Rank
Total Posts:  12
Joined  2008-02-05

Thanks alot!!!Debug Mode was a problem. Everything works well now!!!

Profile
 
 
Posted: 28 March 2008 02:20 AM   [ Ignore ]   [ # 4 ]
New Member
Rank
Total Posts:  5
Joined  2008-03-23

Hi, I would like to start my first project but I run into problem compiling touchlib. I hope you could help me. I posted below the errors. Something about atlbase.h.

Thanks and best regards,
-DJZitro

1>------ Build started: Project: touchlib, Configuration: Debug Win32 ------
1>Compiling…
1>DSVLCaptureFilter.cpp
1>c:\program files\microsoft platform sdk for windows server 2003 r2\samples\multimedia\directshow\baseclasses\streams.h(179) : fatal error C1083: Cannot open include file: ‘atlbase.h’: No such file or directory
1>FilterFactory.cpp
1>c:\program files\microsoft platform sdk for windows server 2003 r2\samples\multimedia\directshow\baseclasses\streams.h(179) : fatal error C1083: Cannot open include file: ‘atlbase.h’: No such file or directory
1>VideoWrapperFilter.cpp
1>c:\program files\microsoft platform sdk for windows server 2003 r2\samples\multimedia\directshow\baseclasses\streams.h(179) : fatal error C1083: Cannot open include file: ‘atlbase.h’: No such file or directory
1>Generating Code…
1>Build log was saved at “file://C:\multitouch\touchlib\src\Debug\BuildLog.htm”
1>touchlib - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Profile
 
 
Posted: 28 March 2008 03:08 AM   [ Ignore ]   [ # 5 ]
New Member
Rank
Total Posts:  5
Joined  2008-03-23

Please never mind the compilation error. I was able to find the problem. But now I am in linking error. Hope someone could help me.

Thanks,
-DJZitro

1>------ Build started: Project: touchlib, Configuration: Debug Win32 ------
1>Linking…
1>LINK : fatal error LNK1104: cannot open file ‘atlthunk.lib’
1>Build log was saved at “file://C:\multitouch\touchlib\src\Debug\BuildLog.htm”
1>touchlib - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Profile
 
 
Posted: 28 March 2008 06:50 AM   [ Ignore ]   [ # 6 ]
Administrator
Avatar
RankRank
Total Posts:  204
Joined  2007-04-03
DJZitro - 28 March 2008 03:08 AM

Please never mind the compilation error. I was able to find the problem. But now I am in linking error. Hope someone could help me.

Thanks,
-DJZitro

1>------ Build started: Project: touchlib, Configuration: Debug Win32 ------
1>Linking…
1>LINK : fatal error LNK1104: cannot open file ‘atlthunk.lib’
1>Build log was saved at “file://C:\multitouch\touchlib\src\Debug\BuildLog.htm”
1>touchlib - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

did you added all the lib directories which i pointed out in my tutorial?

 Signature 

My multitouch blog: http://www.multigesture.net
Howto: Compile touchlib on windows XP/Vista
Howto: Compile touchlib on Ubuntu Linux
Downloads: Touchlib SVN builds

Profile
 
 
Posted: 29 March 2008 01:41 AM   [ Ignore ]   [ # 7 ]
New Member
Rank
Total Posts:  5
Joined  2008-03-23

I was able to get the linking problem solve and then I get cmd.exe error due to a spyware. I got it clean but when I compiled solution I ran into demo_smoke compilation error. Below is the message. I chopped it off here.

Thanks,
-DJZitro

1>------ Build started: Project: demo_smoke, Configuration: Debug Win32 ------
1>Compiling…
1>main.cc
1>c:\program files\microsoft platform sdk for windows server 2003 r2\include\atl\atlconv.h(33) : error C2146: syntax error : missing ‘;’ before identifier ‘_Atlosplatform’
1>c:\program files\microsoft platform sdk for windows server 2003 r2\include\atl\atlconv.h(33) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft platform sdk for windows server 2003 r2\include\atl\atlconv.h(33) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft platform sdk for windows server 2003 r2\include\atl\atlconv.h(34) : error C2146: syntax error : missing ‘;’ before identifier ‘_AtlGetVersionEx’
..blah..
..blah..
..blah..
1>c:\program files\microsoft platform sdk for windows server 2003 r2\include\atl\atlconv.h(361) : error C2374: ‘AtlW2AHelper’ : redefinition; multiple initialization
1> c:\program files\microsoft platform sdk for windows server 2003 r2\include\atl\atlconv.h(338) : see declaration of ‘AtlW2AHelper’
1>c:\program files\microsoft platform sdk for windows server 2003 r2\include\atl\atlconv.h(361) : error C2059: syntax error : ‘wink
1>c:\program files\microsoft platform sdk for windows server 2003 r2\include\atl\atlconv.h(361) : fatal error C1003: error count exceeds 100; stopping compilation
1>Build log was saved at “file://C:\multitouch\touchlib\src\Debug\BuildLog.htm”
1>demo_smoke - 121 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Profile