erro sobre make

0

Eu gostaria de usar o cartão DDC 1553-MIL-STD no Ubuntu 15.04.

Ao fazer o projeto, tenho o seguinte erro. O que devo fazer?

root@rdp-OptiPlex-9020:/home/rdp/DDC/BU69092S1_3_13_0/samples/emacepl/prj# make

================================================================
Remove Samples and ddc_os_lib_util
================================================================
rm -f ddc_os_lib_util.o
rm -f ../bin/test.vec
for prog in aesdemo aio bcasync bcasync2 bcdbuf bcdemo bcei bcimr bcmemobj bcmrt bcmrtmti bcmti bcopcode bctime datarray datastrm dbcdemo dio dioall irigdemo looptest mrtdemo mrtei mrtimr mrtmti mti2disk mti2dsk2 mtidemo mtiedemo mtiread mtiread2 mtirq mtpoll replaydemo resptime rtdataarray rtdbuf rtirq rtmode rtmtdemo rtmtidemo rtpoll tester trgdio trigger voltage; do \
    rm -f ../bin/$prog; \
done

================================================================
Build Samples
================================================================
mkdir -p ../bin
gcc -Wall -m64 -I/usr/include/emacepl -I/usr/include/ddcacex -I/usr/include/ddcacex/os/lib_support -DLINUX -DDDC_LINUX_THREAD -lpthread -lemacepl -c /usr/include/ddcacex/os/lib_support/ddc_os_lib_util.c -o ddc_os_lib_util.o
gcc -Wall -m64 -I/usr/include/emacepl -I/usr/include/ddcacex -I/usr/include/ddcacex/os/lib_support -DLINUX -DDDC_LINUX_THREAD -lpthread -lemacepl ../src/aesdemo/aesdemo.c -o ../bin/aesdemo ddc_os_lib_util.o  -I/usr/include/emacepl -I/usr/include/ddcacex -I/usr/include/ddcacex/os/lib_support -DLINUX -DDDC_LINUX_THREAD -lpthread -lemacepl 
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../lib/libemacepl.so when searching for -lemacepl
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../lib/libemacepl.a when searching for -lemacepl
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libemacepl.so when searching for -lemacepl
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libemacepl.a when searching for -lemacepl
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../libemacepl.so when searching for -lemacepl
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../libemacepl.a when searching for -lemacepl
/usr/bin/ld: skipping incompatible /usr/lib/libemacepl.so when searching for -lemacepl
/usr/bin/ld: skipping incompatible /usr/lib/libemacepl.a when searching for -lemacepl
/usr/bin/ld: cannot find -lemacepl
collect2: error: ld returned 1 exit status
Makefile:109: recipe for target 'aesdemo' failed
make: *** [aesdemo] Error 1
root@rdp-OptiPlex-9020:/home/rdp/DDC/BU69092S1_3_13_0/samples/emacepl/prj# 
    
por Raj Sekhar 13.07.2015 / 08:34

1 resposta

0

Ao compilar as fontes, o -l refere-se a bibliotecas com as quais seu projeto deve estar vinculado.

No seu exemplo, o makefile tenta criar 'aesdemo' e precisa vincular com a biblioteca 'emacepl' , mas não consegue encontrá-lo.

cannot find -lemacepl

O 'emacepl' não está instalado, ou não pode ser encontrado no LD_LIBRARY_PATH (onde os makefiles procuram as diferentes bibliotecas).

    
por Jav 13.07.2015 / 11:15