← Back to team overview

rohc team mailing list archive

Re: Error using the ROHC compressor

 

Hi,

> I am trying to integrate RoHC with my own application, I followed the
> steps for installation and test run, I did followed some of the tips
> given in this tread,
> 
> here is my output on
> 
> gcc -static -L./../rohc-1.3.1/lib -o rohc-test rohc-test.o
> -lrohc_decomp -lrohc_comp -lrohc_common -lm
> 
> Error:
> /usr/bin/ld: cannot find -lrohc_decomp
> /usr/bin/ld: cannot find -lrohc_comp
> /usr/bin/ld: cannot find -lrohc_common
> collect2: ld returned 1 exit status
> 
> Am I missing something?

The libraries rohc_* seem not to be installed on your system (at least
not in the default paths). Did you run step 10 in FAQ #1140 [1] ?

If yes, what prefix did you specify to the configure script at step 7 of
FAQ #1140 [1] ?

And what is the output of the following command ?
 $ pkg-config --modversion rohc

Moreover, it is recommended to use pkg-config instead of using the -L
and -l options directly:
 $ gcc $(pkg-config rohc --libs) -o rohc-test rohc-test.o

Regards,
Didier

[1] https://answers.launchpad.net/rohc/+faq/1140

Attachment: signature.asc
Description: PGP signature


References