Re: [Plib-users] joystick library
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2001-01-21 21:58:35
|
McCracken Ryan wrote: > OK, running Windows '98 (try not to hate me too much > for doing this). I'm *trying*...but it's not going to be easy. > I installed Cygwin and it seems to > work quite well. You have Cygwin - well, that's improved your credibility *slightly*. :-) > I downloaded the plib stuff (1.3.1). > I did what the readme told me to: > > ./configure > make > make install Excellent. > OK, so now I have the example js_demo.cxx file in > /usr/local/plib_examples-1.3.1/src/js > > In this directory there is also a file called > 'js_demo.exe'. So I type './js_demo', and -Eureka!- it > works for both of my controllers. Woohoo! > But now I decide to try running some of my own stuff. > There is a problem at the point at which the statement > js[0]->notWorking () appears. This statement returns a > value of 1 (not working). Not good. > I attached the js_demo.cxx code for ease of viewing. > > I figured I might try running js_demo.cxx on my own to > see if it was my code. So I type this: > > g++ js_demo.cxx > > The executable appears by default in a.exe. I run it > and the controllers still don't work. So if the code > that created js_demo.exe is js_demo.cxx, is there some > sort of option that I'm missing to get an executable > that works like the js_demo.exe? Or is the problem > more serious/complicated? Hmmm - I'm a little suprised that something as simple as: g++ js_demo.cxx ...would compile correctly - but since the JS stuff is just a single header file - I suppose it could work. However, the PLIB distro doesn't come with binaries or executables of any kind - so js_demo.cxx *did* compile on your setup...but with a different compile line. I suggest you 'touch js_demo.cxx' - to change the date on it, then re-run the 'make' for the top level 'examples' directory. That should cause it to recompile js_demo.exe - and (importantly), you'll see what commands it used to compile it. I can't predict what those will need to be because the 'configure' script generates the Makefile's specifically to suit your machine's setup. I'm guessing that there should be something like "-DCYGWIN=1" on the compile command line. Without that, it's probably compiling the set of commands that would work under Linux rather than the ones for Windoze/Cygwin. However, I havn't used Windoze for over 10 years...so my advice may be worth nothing! Perhaps someone on this list who uses CygWin will be able to offer more help. -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net http://freeglut.sourceforge.net |