开发者

compiling boost based application using cron

开发者 https://www.devze.com 2022-12-25 09:19 出处:网络
I am building some boost bas开发者_StackOverflowed application for various embedded targets. I have developed a script which can build my application with different toolchain for several targets. This

I am building some boost bas开发者_StackOverflowed application for various embedded targets. I have developed a script which can build my application with different toolchain for several targets. This script works fine when I run it from command line but if it is invoked from cron it always fails to link the object files. My application has dependency on openssl. Can anyone please give some idea? What would be the root cause of this kind of behavior? Thanks in advance.


cron jobs will run with a much reduced environment. So you need to determine which environment variables (PATH, LD_LIBRARY_PATH etc.) your compile depends on, and then reflect those variables in the shell script you're invoking from cron.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号