clickos icon indicating copy to clipboard operation
clickos copied to clipboard

l

Open luca201311 opened this issue 8 years ago • 7 comments

luca201311 avatar May 03 '17 12:05 luca201311

Hey, maybe you made a mistake and deleted the comment?

fmanco avatar May 05 '17 13:05 fmanco

hello, no, but i want to edit it and add a details to the question, thank you for your interest and helping, regards On Fri, May 5, 2017 at 3:03 PM Filipe Manco [email protected] wrote:

Hey, maybe you made a mistake and deleted the comment?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cnplab/clickos/issues/37#issuecomment-299458886, or mute the thread https://github.com/notifications/unsubscribe-auth/AbCRsq1OqlhBcJVRu5KeNvo0BNkPiHHzks5r2x4tgaJpZM4NPT-z .

luca201311 avatar May 05 '17 14:05 luca201311

Hello, my issue was how to link a library into clickos, and build the image clickos with this library, instead to use a new elements that need this library? where should i add the path of the library that i want to use, in which file? Thank you,

luca201311 avatar May 09 '17 09:05 luca201311

Hi

Unfortunately there is no straightforward way to add a library to ClickOS. I think the easiest way is to add the library files to the mini-os directory, and add the appropriate object files to stub.mk.

Best

fmanco avatar May 09 '17 10:05 fmanco

thank you very much, kindly did you mean i add all files of library and objects .o files to library in mini-os directory? and then link it with stub.mk by gcc

luca201311 avatar May 09 '17 10:05 luca201311

You need to add the source files. Then you can search on stub.mk where the list of object files is defined and extend it with the new ones coming from the library. The objects will be built then during the build process.

fmanco avatar May 09 '17 10:05 fmanco

ok i will try this,

thank you very much

luca201311 avatar May 09 '17 10:05 luca201311