Optware ipkg installs libs to /opt/lib, which is not a usual place that the system automatically looks for shared lib. You can work around that with LD_LIBRARY_PATH environment variable; or you can add "-rpath /opt/lib" to your ld command line, or "-Wl,-rpath,/opt/lib" if you use gcc to link.
We recommend to use optware development framework and create ipk. This kind of problem has already been taken care of in the framework. And your work can very likely be re-used for other optware targets. In the case of optware, we don't always package development headers, since they are staged in the staging directory.
-Brian
--- In
nslu2-linux@..., NeillHog <Neill@...> wrote:
>
>
>
> Sébastien Lorquet wrote:
> >
> > ..... or run a on-slug-board gcc adapted to your slug.
> >
>
> Sebastien's help was very useful.
> I have now managed to compile the program that I want to use on the slug and
> it appears to have compiled.
> When I try to start it, I get a message as follows
> # ./vcontrold-arm
> ./vcontrold-arm: error while loading shared libraries: libxml2.so.2: cannot
> open shared object file: No such file or directory
>
> The author of the program told me that I needed to have the header files for
> libxml2 installed.
> Maybe this is my problem. Could any one help me with instructions on how to
> install the header files?
> Or point me at suitable instructions.
>
> I have already done ipkg install libxml2 but I don't think that installed
> any header files.
>
>
> Thank you!
> Neill
> --
> View this message in context:
http://www.nabble.com/Running-a-C-program-tp24080049p24172302.html> Sent from the Nslu2 - Linux mailing list archive at Nabble.com.
>