From: Jamie D <jam...@gm...> - 2011-01-18 20:20:47
|
Hi Thanks, that worked Rich, except there is an error in the Chronos::now ( void ) method. I wasn't sure how to fix it so I just commented the code out to let it compile. Error 84 error C2079: 'clock' uses undefined struct 'timeval' C:\...\Player\player\server\drivers\position\differential\chronos.cc 52 1 playerdrivers Error 85 error C2664: 'gettimeofday' : cannot convert parameter 1 from 'int *' to 'timeval *' C:\...\Player\player\server\drivers\position\differential\chronos.cc 54 1 playerdrivers Error 86 error C2228: left of '.tv_sec' must have class/struct/union C:\...\Player\player\server\drivers\position\differential\chronos.cc 58 1 playerdrivers Error 87 error C2228: left of '.tv_usec' must have class/struct/union C:\...\Player\player\server\drivers\position\differential\chronos.cc 59 1 playerdrivers There's a problem when building the INSTALL project - it gives the following error: Error 84 error MSB3073: The command ""C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_install.cmake if errorlevel 1 goto VCReportError :VCEnd" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 113 6 INSTALL It may be related to http://social.msdn.microsoft.com/Forums/en/tfsbuild/thread/9c14fd1c-4c6c-4a5b-ac2a-05a2972036e9 this , but I'm not familiar with CMake really. Ok sweet, it looks like all that is needed is a different command line parameter when calling swig e.g. "swig -csharp" rather than "swig -python". I guess I'll see if its that simple. Thanks for your help Jamie Rich Mattes-2 wrote: > > On 01/17/2011 04:07 PM, James Diprose wrote: >> Hey >> >> Thank you all for your help. I tried running the C++ clients in >> release mode but they still crashed unfortunately. >> Setting HAVE_STDINT_H to false in CMake has gotten rid of the "C2371: >> 'int64_t' : redefinition; different basic types" errors. >> >> It would be much appreciated if you could send your compilations >> issues document Jorge as there are two errors left and I guess you've >> figured out how to solve them. >> >> Error1605error C1083: Cannot open include file: 'netinet/in.h': No >> such file or >> directoryC:\...\Player\player\server\drivers\fiducial\laserfeature.cc1241playerdrivers >> Error1753error C1083: Cannot open include file: 'sys/time.h': No such >> file or >> directoryC:\...\Player\player\server\drivers\position\differential\chronos.cc261playerdrivers >> >> I'll give the nanosleep and usleep thing a go and reply with the results. >> >> Perhaps this is for another thread, but I noticed that you guys are >> using swig - I was wondering if I would be able to use swig to create >> C# bindings for Player? >> >> Thanks again for your help >> >> Jamie >> >> > > Hi, > > Those are both drivers that were added since the last Player release. > For the chronos file, you can try replacing "sys/time.h" with something > like this: > #if WIN32 > #include <replace/replace.h> > #else > #include <sys/time.h> > #endif > > In the laserfeature driver, you can get rid of "net/in.h", there's > nothing in the driver that needs that header anymore. You might also > have to get around unistd.h by doing something like: > #if WIN32 > #include <replace/replace.h> > #else > #include <unistd.h> > #endif > > It looks like swig supports C#, so it should be possible to generate C# > bindings from libplayerc/libplayerc++ I don't know how different the > process is than generating python or ruby bindings; you might be able to > build off of some of the parsing code that's already in the codebase. > > Rich > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-users > > -- View this message in context: http://old.nabble.com/Player-Client-on-Windows-7-with-Visual-Studio-2010-tp30668461p30703943.html Sent from the playerstage-users mailing list archive at Nabble.com. |