salut a tous, j'ai un petit soucis avec un makefile:
en fait j'essaye de compiler un petit program utilisant une lib (obexftp) installée dans un dossier non standard (~/bidon).
j'ai essayé quelques trucs, mais ca ne compile pas, voici le makefile et les erreurs:
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 OBEXFTPINC=-I/home/ayman/bidon/usr/local/include -I/opt/STM/STLinux-2.3/devkit/sh4/target/usr/include OBEXFTPLIB=-L/home/ayman/bidon/usr/local/lib -lobexftp -L/opt/STM/STLinux-2.3/devkit/sh4/target/usr/lib -lopenobex -lbluetooth OBEXINC=-I/opt/STM/STLinux-2.3/devkit/sh4/target/usr/include OBEXLIB=-L/opt/STM/STLinux-2.3/devkit/sh4/target/usr/lib -lopenobex -lbluetooth CFLAGS:=${CFLAGS} -Wall all: c_example_obex_push c_example_obex_push: c_example_obex_push.o sh4-linux-gcc c_example_obex_push.o ${OBEXFTPLIB} -o c_example_obex_push c_example_obex_push.o: c_example_obex_push.c sh4-linux-gcc ${CFLAGS} ${OBEXFTPINC} -c c_example_obex_push.c -o c_example_obex_push.o clean: @rm -rf c_example_obex_push *.o *~
et l'erreur:
Citation:
sh4-linux-gcc c_example_obex_push.o -L/home/ayman/bidon/usr/local/lib -lobexftp -L/opt/STM/STLinux-2.3/devkit/sh4/target/usr/lib -lopenobex -lbluetooth -o c_example_obex_push
/opt/STM/STLinux-2.3/devkit/sh4/lib/gcc/sh4-linux/4.2.4/../../../../sh4-linux/bin/ld: warning: libmulticobex.so.1, needed by /home/ayman/bidon/usr/local/lib/libobexftp.so, not found (try using -rpath or -rpath-link)
/opt/STM/STLinux-2.3/devkit/sh4/lib/gcc/sh4-linux/4.2.4/../../../../sh4-linux/bin/ld: warning: libbfb.so.0, needed by /home/ayman/bidon/usr/local/lib/libobexftp.so, not found (try using -rpath or -rpath-link)
/home/ayman/bidon/usr/local/lib/libobexftp.so: undefined reference to `cobex_ctrans'
collect2: ld returned 1 exit status
make: *** [c_example_obex_push] Error 1