| View previous topic :: View next topic |
| Author |
Message |
para
Joined: 20 Aug 2007 Posts: 89
Digg It |
Posted: Sun Jan 27, 2008 2:35 am Post subject: |
|
|
Go into the directory with xwii in it. Then you run xwii. The way you do this is you type ./xwii. Then you type a space. After the space you give it the file with the configuration you want to use. The configuration files are located in a subdirectory called profiles. So go into the directory you decompressed and there should be:
| Code: | ~/xwii # ls
Documentation PLANS.TXT actionset.cpp actionset.h api include main.cpp makefile profiles wiiuse.so xinterpret.cpp xinterpret.h xwii
~/xwii # ./xwii profiles/classic.xwii
wiiuse v0.9 loaded ( http://wiiuse.net http://wiiuse.sf.net/ ).
[INFO] Found 1 bluetooth device(s).
[INFO] Found wiimote (00:17:XX:XX:XX:XX) [assigned wiimote id 1].
Connected to 1 wiimotes (of 1 found). |
That's all you need to do. _________________ wiiuse C wiimote library - http://wiiuse.net/ |
|
| Back to top |
|
 |
onesojourner
Joined: 25 Jan 2008 Posts: 17
Digg It |
Posted: Sun Jan 27, 2008 2:41 am Post subject: |
|
|
I don't have a file in there called xwii.
| Code: |
peter@peter-laptop:~$ cd xwii
peter@peter-laptop:~/xwii$ ./xwii profiles/classic.xwii
bash: ./xwii: No such file or directory
peter@peter-laptop:~/xwii$ ls
actionset.cpp include makefile start_xwii.py xinterpret.cpp
actionset.h LICENSE PLANS.TXT TODO xinterpret.h
Documentation main.cpp profiles wiiuse-0.9
peter@peter-laptop:~/xwii$
|
|
|
| Back to top |
|
 |
para
Joined: 20 Aug 2007 Posts: 89
Digg It |
Posted: Sun Jan 27, 2008 2:47 am Post subject: |
|
|
| onesojourner wrote: | | I don't have a file in there called xwii. |
Oh, you have to compile it first. The tarball only had the source code in it.
After you do that you should see a bunch of stuff then xwii should be there.
edit: btw you pretty much have to compile everything in linux. Typically you need to do:
| Code: | # ./configure
# make
# su
(become root)
# make install |
For future reference. _________________ wiiuse C wiimote library - http://wiiuse.net/ |
|
| Back to top |
|
 |
onesojourner
Joined: 25 Jan 2008 Posts: 17
Digg It |
Posted: Sun Jan 27, 2008 3:05 am Post subject: |
|
|
ok sorry to be such a noob. I am lost though.
| Code: |
peter@peter-laptop:~/xwii$ make
g++ main.cpp -c -I ./include
make: g++: Command not found
make: *** [main.o] Error 127
peter@peter-laptop:~/xwii$ ./configure
bash: ./configure: No such file or directory
peter@peter-laptop:~/xwii$ make install
make: *** No rule to make target `install'. Stop.
peter@peter-laptop:~/xwii$
|
|
|
| Back to top |
|
 |
para
Joined: 20 Aug 2007 Posts: 89
Digg It |
Posted: Sun Jan 27, 2008 3:12 am Post subject: |
|
|
| onesojourner wrote: |
| Code: |
peter@peter-laptop:~/xwii$ make
g++ main.cpp -c -I ./include
make: g++: Command not found
make: *** [main.o] Error 127
|
|
You need to install GCC. Every Linux distribution should have this installed by default IMO, but it's on the installation CD if you didn't select it during installation. Pop it in, it's probably under 'development' or something, install and you should be able to do 'make'. _________________ wiiuse C wiimote library - http://wiiuse.net/ |
|
| Back to top |
|
 |
onesojourner
Joined: 25 Jan 2008 Posts: 17
Digg It |
Posted: Sun Jan 27, 2008 3:15 am Post subject: |
|
|
| It looks like it is already installed. |
|
| Back to top |
|
 |
para
Joined: 20 Aug 2007 Posts: 89
Digg It |
Posted: Sun Jan 27, 2008 4:40 am Post subject: |
|
|
| onesojourner wrote: | | It looks like it is already installed. |
| Code: | # g++ --version
g++ (GCC) 4.1.2 (Gentoo 4.1.2)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
If you do that and do not get output that looks similar then gcc/g++ is not installed. _________________ wiiuse C wiimote library - http://wiiuse.net/ |
|
| Back to top |
|
 |
|