WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

trying to get the classic controller working with ubuntu
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    WiiLi.org Forum Index -> CWiid
View previous topic :: View next topic  
Author Message
para



Joined: 20 Aug 2007
Posts: 89

Digg It
PostPosted: 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
View user's profile Send private message Visit poster's website
onesojourner



Joined: 25 Jan 2008
Posts: 17

Digg It
PostPosted: 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
View user's profile Send private message
para



Joined: 20 Aug 2007
Posts: 89

Digg It
PostPosted: 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.

Code:
# make


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
View user's profile Send private message Visit poster's website
onesojourner



Joined: 25 Jan 2008
Posts: 17

Digg It
PostPosted: 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
View user's profile Send private message
para



Joined: 20 Aug 2007
Posts: 89

Digg It
PostPosted: 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
View user's profile Send private message Visit poster's website
onesojourner



Joined: 25 Jan 2008
Posts: 17

Digg It
PostPosted: Sun Jan 27, 2008 3:15 am    Post subject:

It looks like it is already installed.
Back to top
View user's profile Send private message
para



Joined: 20 Aug 2007
Posts: 89

Digg It
PostPosted: 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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> CWiid All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group