# ccardimx28js yocto start (eclipse, bitbake)

**URL:** https://forums.digi.com/t/ccardimx28js-yocto-start-eclipse-bitbake/17849
**Category:** Linux
**Tags:** linux, yocto, ccardimx28js
**Created:** [January 4, 2017, 9:45am UTC](https://forums.digi.com/t/ccardimx28js-yocto-start-eclipse-bitbake/17849 "2017-01-04T09:45:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Curby](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@Curby](https://forums.digi.com/u/Curby)
#### Post date: [January 4, 2017, 9:45am UTC](https://forums.digi.com/t/ccardimx28js-yocto-start-eclipse-bitbake/17849/1 "2017-01-04T09:45:29Z")

</div>

Hello,

i’m trying to use bitbake and yocto with the connectardim28js.

So far, i have succefully created my image with my own recipes using bitbake. But there are some more questions:

a) Is it possibile to add all recipes of a layer? At the moment i add every recipe on its own with the local.conf line “IMAGE\_INSTALL\_append = …”

b) What is the correct way to set the default root password and hostname? I tried the following line, without success:

DISTRO\_HOSTNAME = “coffeeroaster”  
inherit extrausers  
EXTRA\_USERS\_PARAMS = “usermod -P password root;”

c) How do i remove default software distributed by the digi layer? In the local.conf there is for example no line for the default webserver. Do i have to edit the layer?

d) I try to use eclipse to create my own project. Creating a C++ project my linker seem to not knowing my own classes. I get always undefined reference error for my own classes and its methods. Its a very basic Hello World programm with a testclass printing “Hello World”. In eclipse I choosed “Hello World C++ Autotools Project”

Thank you very much for you help!

---

<div class="post-metadata">

### Author: ![LeonidM](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@LeonidM](https://forums.digi.com/u/LeonidM)
#### Post date: [January 4, 2017, 11:23am UTC](https://forums.digi.com/t/ccardimx28js-yocto-start-eclipse-bitbake/17849/2 "2017-01-04T11:23:33Z")

</div>

a) I think what you want is to create your own layer  
Create your own custom layer. Poky provides a script to create custom layers:

# cd /usr/local/dey-2.0/sources

# ./poky/scripts/yocto-layer create your\_layer

b) I succesfully used 2 lines below to add a new user:  
inherit extrausers  
EXTRA\_USERS\_PARAMS = “useradd -P 2015\*08 leonidm;”

more details and examples here:

> **[FAQ:How do I set or change the root password - Yocto Project](https://wiki.yoctoproject.org/wiki/FAQ:How_do_I_set_or_change_the_root_password)**

inherit extrausers  
EXTRA\_USERS\_PARAMS = “usermod -P 1876\*18 root;”

c) modify meta-digi layer

d) please take a look at this presentation:

> **[DEY%20-%20hands-on%203%20-%20Application%20Development\_20160228\_rebranded.pdf](https://www.dropbox.com/s/596srcc2i9oig9l/DEY%20-%20hands-on%203%20-%20Application%20Development_20160228_rebranded.pdf?dl=0)**

---

<div class="post-metadata">

### Author: ![Curby](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@Curby](https://forums.digi.com/u/Curby)
#### Post date: [January 17, 2017, 8:43am UTC](https://forums.digi.com/t/ccardimx28js-yocto-start-eclipse-bitbake/17849/3 "2017-01-17T08:43:41Z")

</div>

Alright I’m working on it, but just another question:

Using Eclipse I am wondering how to add the sqlite3 library? I can use #include “sqlite3.h” and the file is found. But i always get an error “undefined reference”.

Using the autotools c++ project it seems to not have the classic library section under properties -\> c++ build.
