我有一个'二进制'(即不编译)文件的目录,只是希望它们安装到我的目标根文件系统上.
我看过几篇文章,其中没有一篇似乎对我有用.
此配方所需的功能是:
myRecipe/myFiles/ - > myRootFs/dir/to/install
我目前的尝试是:
SRC_URI += "file://myDir"
do_install() {
install -d ${D}/path/to/dir/on/fs
install -m ${WORKDIR}/myDir ${D}/path/to/dir/on/fs
}
Run Code Online (Sandbox Code Playgroud)
我不能总是抱怨Yocto文档,这真的很棒!只是找不到这样的例子!
最初Java vm甚至不会启动,但我通过编辑nsight.ini文件并删除来修复它
-XX:MaxPermSize=256m
Run Code Online (Sandbox Code Playgroud)
并更新
-Dosgi.requiredJavaVersion
Run Code Online (Sandbox Code Playgroud)
所以我现在得到启动画面并可以选择工作区目录.
我这样做,并得到一个进度条,但它立即崩溃,除了查看日志文件之外没有任何指示,其开头说:
!SESSION 2016-12-09 20:30:40.686 -----------------------------------------------
eclipse.buildId=unknown
java.version=9-internal
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_GB
Command-line arguments: -os linux -ws gtk -arch x86_64
!ENTRY com.nvidia.cuda.ide.build 4 0 2016-12-09 20:30:46.292
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: com.nvidia.cuda.ide.build [9]
Unresolved requirement: Require-Bundle: org.eclipse.cdt.managedbuilder.core
-> Bundle-SymbolicName: org.eclipse.cdt.managedbuilder.core; bundle-version="8.3.0.201409172108"; singleton:="true"
org.eclipse.cdt.managedbuilder.core [108]
Unresolved requirement: Require-Bundle: org.eclipse.cdt.core; bundle-version="[5.0.0,6.0.0)"
-> Bundle-SymbolicName: org.eclipse.cdt.core; bundle-version="5.7.0.nvidia-qualifier"; singleton:="true"
org.eclipse.cdt.core [88]
Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.7))"
at org.eclipse.osgi.container.Module.start(Module.java:434)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at …Run Code Online (Sandbox Code Playgroud) 我花了一段时间才找到与此相关的问题的解决方案:
status = system("[ -e myFile ] && exit 1 || exit 101");
if(status == 101)
{
...
Run Code Online (Sandbox Code Playgroud)
返回值被发送回 25856(101*256(或 101 << 8))。
我找到的所有答案都没有表明发生这种有效的 256 乘法的原因......
有谁能为我提供解释吗?
谢谢!