<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hello! I've been doing a lot of searching on the internet,but I can't seem to find anybody with my problem. I'm trying to add a recipe to my image and deliver it straight with the system. Everything goes fine, up until the recipe I created links to other
libraries. I have dependencies to Qt4. I used the hello world example recipe, which I can bitbake successfully. My recipe is the following:
<br>
</p>
<p><br>
</p>
<p></p>
<div>SUMMARY = "Simple helloworld application"<br>
SECTION = "examples"<br>
LICENSE = "Closed"<br>
SRC_URI = "file://media/traffic/Yocto/src/elva/"<br>
S = "/media/traffic/Yocto/src/elva/proj/src"<br>
inherit cmake<br>
EXTRA_OECMAKE = ""<br>
</div>
<br>
<p></p>
<p>The problem I'm having now is that, using the generated toolchain, cmake is looking at the wrong directories. The rootpath is also crooked when I print it out in my cmake project file:</p>
<p><span>CMAKE_FIND_ROOT_PATH:/media/traffic/Yocto/QorIQ-SDK-V2.0-20160527-yocto/build_ls2080abluebox/tmp/sysroots/ls2080abluebox<span>/media/traffic/Yocto/QorIQ-SDK-V2.0-20160527-yocto/build_ls2080abluebox/tmp/sysroots/x86_64-linux</span></span></p>
<p><span><span><br>
</span></span></p>
<p><span><span>What am I doing wrong? My target is arm. I can build my image fine without the recipe, so I'm thinking that there is a step I'm missing. Also when I export the SDK I can see that all the right libraries and findscripts are available (in the sysroot).
But whenever I change my source, it still looks in the sysroot of the host system. Any help would be greatly appreciated!</span></span><br>
</p>
</div>
</body>
</html>