Android ndk本机应用程序环境变量运行时
任何人都知道我如何在调用本机 C++ 代码的应用程序中设置 PATH,该代码使用系统 popen 调用 WGET 和 CURL 等...
我设置环境变量的权限被拒绝。
我需要这个的原因是我不想调用 ./wget ...而是直接调用 wget ...
我尝试过普通的 putenv、getenv 但它说权限被拒绝。或者是否有我可以包含的许可。或者也许是 popen 调用有其他路径设置的其他方式?
谢谢
Anybody know how could i set the PATH within the application that is calling native c++ code, which in terms uses system popen call to WGET and CURL etc...
I get permission denied setting the enviroment variable.
Reason why i need this as i don't want to call ./wget ... but directly wget ...
I have tried with normal putenv, getenv but it says permission denied. Or is there a permission that i could include. Or maybe some other way that popen calls have additional path set?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论