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 

probleme with install libwiimote-0.4

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> General Linux Wiimote
View previous topic :: View next topic  
Author Message
nomad



Joined: 10 Oct 2008
Posts: 3

Digg It
PostPosted: Sat Oct 11, 2008 12:07 pm    Post subject: probleme with install libwiimote-0.4

hi folks,
i have problem to install libwiimote-0.4
i have suse linux 10.1. OS 64-bit on a acer Aspire 5000
with my usb-bluetooth adapter is connected with the wiimote-controller:
i have a correct MAC-adress.

then, i want install libwiimote-0.4

running ./configure OK
running make: FAILURE WITH:

Code:

 make
make[1]: Entering directory `/root/Desktop/libwiimote-0.4/src'
gcc -Os -Wall -pipe -D_ENABLE_TILT -D_ENABLE_FORCE  -g -O2 -I../src wiimote_link.c wiimote_ir.c wiimote_event.c wiimote_io.c wiimote_report.c wiimote_api.c wiimote_error.c wiimote_speaker.c wiimote_mii.c wiimote_classic.c wiimote_nunchuk.c -shared -o libcwiimote.so
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: /tmp/cctSp23j.o:
relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object;
recompile with -fPIC
/tmp/cctSp23j.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libcwiimote.so] Error 1
make[1]: Leaving directory `/root/Desktop/libwiimote-0.4/src'
make: *** [subdirs] Error 1



the questions is how i do this: recompile with -fPIC
please help me.

with cwiid-0.6.0.0 : install and compile OK
wmdemo running.
wmgui running ok all 2 controllers & the IR-Bar OK
its a verry fine program.

excure my bad english

thanks for help
regards
nomad
Back to top
View user's profile Send private message
nomad



Joined: 10 Oct 2008
Posts: 3

Digg It
PostPosted: Tue Oct 14, 2008 8:30 am    Post subject: problem solved

hi,

solving::
first excuse my bad english

make should be compile with -fPIC
into folder /test/ are 4 (test1.c - test4.c) programs and one make-file.
1) running the original make-file as:

Code:

cc -Os -Wall -pipe -D_ENABLE_TILT -D_ENABLE_FORCE  -g -O2  -I../src -o ../bin/test1 test1.c  -L../lib -lcwiimote -lbluetooth -lm


2) then i compile the test-files without make but with -fPIC

Code:

cc -Os -Wall -pipe -fPIC  -D_ENABLE_TILT -D_ENABLE_FORCE  -g -O2  -I../src -o ../bin/test1 test1.c  -L../lib -lcwiimote -lbluetooth -lm


3) result: into folder /bin/ 4 test-programs.

running the programs: OOK
bluetooth OK, wiimote OK

regards
nomad
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> General Linux Wiimote All times are GMT
Page 1 of 1

 
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