Re: HOWTO: Wii Remote in Ubuntu Intrepid Ibex (8.10)
Quote:
Originally Posted by
Snille
Hi all,
I've been playing with the WII mote a bit, but I can't seam to be able to compile the whiteboard (Ubuntu 8.10, 64bit system). Has anyone got it to work?
I can download the source from SVN, but the it is not possible to run the ./autogen.sh in the "linux-whiteboard-read-only".
How ever, there is a folder called build and in there there is a "make-deb.sh", that one is possible to run but ends with an error...
Here is the full "log". I think I may have forgotten something, but I don't know what...
Let me know if anyone have any ideas... :)
Code:
snille@edge:~/linux-whiteboard-read-only/build$ sudo ./make-deb.sh
[sudo] password for snille:
Merging translations into ../src/whiteboard.desktop.
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package whiteboard
dpkg-buildpackage: source version 0.3.4.2-0ubuntu1
dpkg-buildpackage: source changed by VAnhTu1987 <VAnhTu1987@gmail.com>
dpkg-buildpackage: host architecture amd64
fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
#/usr/bin/make clean
dh_clean
debian/rules build
dh_testdir
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- checking for module 'gtkmm-2.4'
-- found gtkmm-2.4, version 2.14.1
-- checking for module 'libglademm-2.4'
-- found libglademm-2.4, version 2.6.6
-- Configuring done
-- Generating done
-- Build files have been written to: /home/snille/linux-whiteboard-read-only/build
dh_testdir
# Add here commands to compile the package.
/usr/bin/make -j2
make[1]: Entering directory `/home/snille/linux-whiteboard-read-only/build'
make[2]: Entering directory `/home/snille/linux-whiteboard-read-only/build'
make[3]: Entering directory `/home/snille/linux-whiteboard-read-only/build'
make[3]: Entering directory `/home/snille/linux-whiteboard-read-only/build'
Scanning dependencies of target translations
make[3]: Leaving directory `/home/snille/linux-whiteboard-read-only/build'
Scanning dependencies of target whiteboard
make[3]: Entering directory `/home/snille/linux-whiteboard-read-only/build'
make[3]: *** No rule to make target `../ALL', needed by `ALL.gmo'. Stop.
make[3]: Leaving directory `/home/snille/linux-whiteboard-read-only/build'
make[2]: *** [CMakeFiles/translations.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/home/snille/linux-whiteboard-read-only/build'
make[3]: Entering directory `/home/snille/linux-whiteboard-read-only/build'
[ 10%] [ 10%] Building CXX object src/CMakeFiles/whiteboard.dir/common.cpp.o
Building CXX object src/CMakeFiles/whiteboard.dir/main.cpp.o
[ 15%] Building CXX object src/CMakeFiles/whiteboard.dir/auxiliary.cpp.o
[ 21%] Building CXX object src/CMakeFiles/whiteboard.dir/events.cpp.o
[ 26%] Building CXX object src/CMakeFiles/whiteboard.dir/ConfigFileParser.cpp.o
[ 31%] Building CXX object src/CMakeFiles/whiteboard.dir/configurator.cpp.o
[ 36%] Building CXX object src/CMakeFiles/whiteboard.dir/irfilter.cpp.o
[ 42%] Building CXX object src/CMakeFiles/whiteboard.dir/calibration.cpp.o
[ 47%] Building CXX object src/CMakeFiles/whiteboard.dir/wiicontrol.cpp.o
/home/snille/linux-whiteboard-read-only/src/wiicontrol.cpp: In function ‘cwiid_wiimote_t* wii_connect(char*)’:
/home/snille/linux-whiteboard-read-only/src/wiicontrol.cpp:45: warning: taking address of temporary
[ 52%] Building CXX object src/CMakeFiles/whiteboard.dir/wiicursor.cpp.o
[ 57%] Building CXX object src/CMakeFiles/whiteboard.dir/gtk-gui.cpp.o
[ 63%] Building CXX object src/CMakeFiles/whiteboard.dir/wiicursormanager.cpp.o
Linking CXX executable ../bin/whiteboard
make[3]: Leaving directory `/home/snille/linux-whiteboard-read-only/build'
[ 63%] Built target whiteboard
make[2]: Leaving directory `/home/snille/linux-whiteboard-read-only/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/snille/linux-whiteboard-read-only/build'
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
snille@edge:~/linux-whiteboard-read-only/build$
Any ideas?
As I stated before, I'm not familiar with the whiteboard, but looking at your log.....Have you installed the package called: build-essential ?...
Code:
sudo apt-get install build-essential
I'm really not sure if the whiteboard is working on Intrepid 64...I'm sorry. But you might want to check if you have that package installed. Report back if it worked :)!
Re: HOWTO: Wii Remote in Ubuntu Intrepid Ibex (8.10)
Hi again,
I read in the thread that you where not "in" to the whiteboard things... :)
Thank you for your replay anyway, and yes I had/have the essentials packet installed and also the "cmake" packet that is needed for the "make-deb.sh" to get as far as it gets. How ever I noticed that I get the same error on my 32bit machine. So maybe it's something else that's broke?
On the 32bit machine however the .deb worked without problems anyway. So the software works. :)
Just wanted to check if someone knew some trix... :)
Re: HOWTO: Wii Remote in Ubuntu Intrepid Ibex (8.10)
Does anyone know if a configuration file can specify multiple buttons, like KEY_CTRL+KEY_UP or KEY_CTRL,KEY_UP
Re: HOWTO: Wii Remote in Ubuntu Intrepid Ibex (8.10)
Quote:
Originally Posted by
Meson
Does anyone know if a configuration file can specify multiple buttons, like KEY_CTRL+KEY_UP or KEY_CTRL,KEY_UP
As far as I've tested no...Only XWii does that...I haven't been able to test XWii because it gives me a 1,000 errors...ugh! I need to go deeper into the process of compiling it...
Anyways, it is the only way to sync multiple buttons to a single wiimote button. As I said, it also let's you launch programs and scripts...Check it out! ;)!
Re: HOWTO: Wii Remote in Ubuntu Intrepid Ibex (8.10)
Thanks for this howto.
I have the WiiMote up and working, and the Classic Controller working also. Is there a way to map the analog joysticks on the classic controller? Even digitally?
Thanks.
Re: HOWTO: Wii Remote in Ubuntu Intrepid Ibex (8.10)
Quote:
Originally Posted by
vulcanfk
Thanks for this howto.
I have the WiiMote up and working, and the Classic Controller working also. Is there a way to map the analog joysticks on the classic controller? Even digitally?
Thanks.
I'm really sleepy at the moment, so I won't say much, as it may just be wrong or misleading.
But from memory it is possible to map one of the analog joysticks to be a mouse / standard joystick.
It may be possible to map the other to be similar to a D pad I think.
I'll add this to the list of things to try out with my wiimote + classic controller this weekend (I'm trying out XWii in 8.10 too).
Keep your eyes on this thread vulcanfk ;)
Re: HOWTO: Wii Remote in Ubuntu Intrepid Ibex (8.10)
2 more questions from me:
1. Will this work with programs running in WINE? More specifically, Day Of Defeat from Steam which runs on the Halflife 2 engine.
2. Can I map the joystick on the nunchuck to work like the left, right, up, down keys on the keyboard?
Re: HOWTO: Wii Remote in Ubuntu Intrepid Ibex (8.10)
Quote:
Originally Posted by
Rhubarb
I'm really sleepy at the moment, so I won't say much, as it may just be wrong or misleading.
But from memory it is possible to map one of the analog joysticks to be a mouse / standard joystick.
It may be possible to map the other to be similar to a D pad I think.
I'll add this to the list of things to try out with my wiimote + classic controller this weekend (I'm trying out XWii in 8.10 too).
Keep your eyes on this thread vulcanfk ;)
Thanks Rhubarb. I'll also poke around some more and see if I can find anything. I'm subscribed to this thread so I don't miss any updates ;)
Re: HOWTO: Wii Remote in Ubuntu Intrepid Ibex (8.10)
I just installed 64 bit 8.1 on a new hard drive and had to set this up again....with a problem. I type the infrared command into the Terminal and it connects, then my Wiimote works as an infrared mouse perfectly. Then it exits for some reason 5 seconds later and I have to do it again. It won't stay connected for more than 5 seconds. Here's the Terminal output:
Quote:
deemar@Chugger:~$ sudo wminput -c ir_ptr 00:17:AB:23:A3:49
Put Wiimote in discoverable mode now (press 1+2)...
Ready.
Exiting.
deemar@Chugger:~$
Re: HOWTO: Wii Remote in Ubuntu Intrepid Ibex (8.10)
Quote:
Originally Posted by
Maheriano
I just installed 64 bit 8.1 on a new hard drive and had to set this up again....with a problem. I type the infrared command into the Terminal and it connects, then my Wiimote works as an infrared mouse perfectly. Then it exits for some reason 5 seconds later and I have to do it again. It won't stay connected for more than 5 seconds. Here's the Terminal output:
Nevermind, the batteries got weak from not turning the Wiimote off between uses. Should add that to the troubleshooting guide.