This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

linux ccs Version: 6.0.1.00040 arm project can't find static lib

Hi,

I new a arm project with the step below:

but  when I build the project,it print:

Building file: ../main_manage.c
Invoking: Cross GCC Compiler
arm-hik_v7a-linux-uclibcgnueabi-gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"main_manage.d" -MT"main_manage.d" -o "main_manage.o" "../main_manage.c"

arm-hik_v7a-linux-uclibcgnueabi-gcc -static -L"/home/dsp-66ak/Dsp-66AK/workspace/hik-cdvs/CDVS_Lib_2015118" -o "hik-cdvs"  ./main_manage.o   -llibbitstream.a

/home/dsp-66ak/Dsp-66AK/software/arm-hik_v7a-linux-uclibcgnueabi/bin/../lib/gcc/arm-hik_v7a-linux-uclibcgnueabi/4.4.6/../../../../arm-hik_v7a-linux-uclibcgnueabi/bin/ld: cannot find -llibbitstream.a
collect2: ld returned 1 exit status
make: *** [hik-cdvs] Error 1

 I don't know why it can't find the libbitstream.a? I use the static lib. Is there anywhere I need to set?

Best Regards,

Si

  • si cheng said:
    /home/dsp-66ak/Dsp-66AK/software/arm-hik_v7a-linux-uclibcgnueabi/bin/../lib/gcc/arm-hik_v7a-linux-uclibcgnueabi/4.4.6/../../../../arm-hik_v7a-linux-uclibcgnueabi/bin/ld: cannot find -llibbitstream.a

    The standard for a Linux linker is to be only given the part of the library name after the lib prefix and with no extension.

    i.e. if you want to link libstream.a then under the Eclipse libraries just use the name stream.

    [Note that in the linker error message there is a duplicate lib prefix since the linker is reporting that it can't read a file named liblibstream.a]