Whenever you're doing development on Linux, you can usually append "-dev" or "-devel" on the name of the package to get the headers and libraries for whatever it is you're tyring to work with.. so obtaining "libjpg" (by apt-get or rpm or whatever) will let you use programs pre-compiled to work with Jpgs (like ImageMagick for example), but "libjpg-devel" will allow you to write programs to use it.
These are general Linux programming questions, so probably a little off topic for this forum. Probably a good idea is to get a book on Linux programming (there's LOADS of free PDFs and HTML files on the internet about it!).
I hope this helps. Good luck with your programming! The slug is a great tool for writing quick utils. :)
N.
--
Nick Walton
To:
nslu2-linux@...
From:
Neill@...
Date: Tue, 23 Jun 2009 12:38:19 -0700
Subject: Re: [nslu2-linux] Running a C program
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.htmlSent from the Nslu2 - Linux mailing list archive at Nabble.com.
_________________________________________________________________
Get the best of MSN on your mobile
http://clk.atdmt.com/UKM/go/147991039/direct/01/