[Frage] Compling for Freetz

Qemme

Neuer User
Mitglied seit
20 Jul 2012
Beiträge
8
Punkte für Reaktionen
0
Punkte
0
Hello Freetz Developers,

I have made a program based upon this example:

http://freetz.org/wiki/libs/ftdi
But now i have to execute :

LD_LIBRARY_PATH=/mod/lib:/usr/lib/freetz
export LD_LIBRARY_PATH

every time i want to use it.
How to avaoid this?
Ive managed to add the binary to the /addon directory so it is available in the freetz image,
how can I start the binary upon boot time?

Thanx in advance.
(to moderator: My german is not to good, i hope i posted this message in the right place)
 
But I get a:
./blink2: can't load library 'libusb-0.1.so.4'
when i run
root@fritz:/bin# ./blink2
firmware is: 29.04.82freetz-1.2_rc2
 
You can also write the lines with LD_LIBRARY_PATH to the .profile (in the Web interface Freetz->.profile), then they are executed at every login.
 
But will i be able to run the program as a service at start-up?
 
We set "LD_RUN_PATH=/usr/lib/freetz" when compiling our programms. This path is hardcoded into the binary and can be shown with readelf -d prog.

Regards
Oliver
 
Ok, thanxs.
I fixed it with a script in init.d\rc.blink2
i placed the script in : \addon\own-files-0.1\root\etc\init.d
with the line:
export LD_LIBRARY_PATH="/mod/lib:/usr/lib/freetz:${LD_LIBRARY_PATH}"

But do you know if its possible to run this script at boot time straight from the image? (whitout editing rc.custom afterwards..)
 
Kostenlos!

Statistik des Forums

Themen
248,162
Beiträge
2,282,546
Mitglieder
377,385
Neuestes Mitglied
Negus