| View previous topic :: View next topic |
| Author |
Message |
nomad
Joined: 10 Oct 2008 Posts: 3
Digg It |
Posted: 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 |
|
 |
nomad
Joined: 10 Oct 2008 Posts: 3
Digg It |
Posted: 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 |
|
 |
|