You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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,
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.
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
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.
Activity
[-]Link a Library to clickOs [/-][+]l[/+]fmanco commentedon May 5, 2017
Hey, maybe you made a mistake and deleted the comment?
luca201311 commentedon May 5, 2017
luca201311 commentedon May 9, 2017
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,
fmanco commentedon May 9, 2017
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
luca201311 commentedon May 9, 2017
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
fmanco commentedon May 9, 2017
You need to add the source files. Then you can search on
stub.mkwhere 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.luca201311 commentedon May 9, 2017
ok i will try this,
thank you very much