Hi.
If I want to add a pre-built package to my LTIB (including bin and lib), how do I add the lib path so the OS know where to look for that specific library?
Is there an environment variable where I include this lib-path?
In Ubuntu or debian I think they are using ld.so.conf, but I can't find that in LTIB.
Thanks,
Niklas
Hi Niklas,
The LTIB will look into "spec" files to build any particular package. so, if you want to build any package that uses your pre-built package. you need to export " bin, lib " paths, in that particular package spec file you need to build.
you can get the spec files at this location:
/ltib/dist/lfs-5.1/
-> In above path you can see spec file located in a directory with the name of package to be builded.
-> you can copy bin and lib folders into rootfs and export these paths in spec files.
These things i haven't tried u can use this as a reference.
Thanks & Regards,
Raybiztech.
Hi Raybiztech.
I finally had some time to start to look at this problem again (been busy with other parts).
If I compile some application in the ARM processor (not cross compiling) and I need to add library to the system, how do I do this in LTIB?
Thanks,
Niklas
Are you tied to LTIB? I would suggest to also create a recipe for Yocto and bake it; you may find more documentation on this platform (yocto).
Leo
To start using yocto look into this following thread
https://community.freescale.com/docs/DOC-94849
Thanks & Regards,
Raybiztech.
Great, that is the best document as a starting point.
Hi.
One "quick" question.
How much memory do you think is necessary for running YOCTO?
I was first planning using 1GB, but now it looks like they are only going to give 512MB.
Would that be enough?
I'm not going to use any graphical interface.
Going run a web-server, plus backend code to handle interaction with HW etc.
Later one I'm going to include a database (not sure which yet, levelDB, couchDB etc.).
Regards,
Niklas
RAM or HD? are you using a virtual machine? try to compile natively, the more RAM the better. For HD, you better have 100 GB so you do not run into trouble in the future. Yes, I wrote it right :smileyhappy:
Leo
Hi Leo.
I'm using a virtual machine for my compile.
I was more asking about the target (the Freescale where the YOCTO is going to run on).
On the sabrelite board there is 1GB RAM but it seems like I might only get 512MB on the final board.
I just wanted to check if it's enough?
Right now when I run the base image (with additional SDK etc.) I have around 850MB free. But now I'm not running any of my own applications yet.
/Niklas
Niklas. Yocto does not run on the target, it run on host and yields a system for the target. Not idea about the memory size but it your apps wont require much CPU/RAM, that may be enough.
Leo
Hi Niklas,
If you want add any library to LTIB, you need to create a spec file for that particular library.
-> In /ltib/dist/lfs-5.1/ create a directory on the name of the package you want to build
-> copy template.spec located in /ltib/dist/lfs-5.1/template/ directory to the new directory you had created to build your package.
-> cd to your package location for ex: /ltib/dist/lfs-5.1/sample/ rename template.spec to your package name. ex : sample.spec
-> open the sample.spec file and change modifications according to your requirement.
->save the spec file.
-> copy your package to /opt/frescale/pkgs/
-> cd to your LTIB path
-> ./ltib -m prep -p sample.spec (package name you added with .spec extension)
->./ltib -m scbuild -p sample.spec
->./ltib -m scinstall -p sample.spec
->./ltib -m scdeploy -p sample.spec
Thanks & Regards,
Raybiztech.
In Linux I assume we use ldconfig, is there a similar command in LTIB?