webosose / build-webos

webOS OSE build layer
670 stars 126 forks source link

How to download webos header and source files only? #34

Closed csdougliss closed 1 year ago

csdougliss commented 1 year ago

I just want to download the web os (open source) sdk without all the tool chain etc?

I want to start looking at

include

etc.

https://github.com/webosose/samples/blob/master/native-apps/external/com.sample.waylandegl/src/wayland_egl.c#L23

Thanks!

shr-project commented 1 year ago

https://github.com/webosose/webos-wayland-extensions/tree/master/protocol

csdougliss commented 1 year ago

@shr-project I've seen those. But they are just xml files and not the actual headers and c source files?

shr-project commented 1 year ago

Just use wayland-scanner on them as described in CMake

https://github.com/webosose/webos-wayland-extensions/blob/620680a4721a7de5da8bbb87e021afd78c493898/cmake/wayland.cmake

As you were building whole webOS OSE image before, you can build just this recipe with "bitbake webos-wayland-extensions" and it will do it for you (without building any unnecessary dependencies).

csdougliss commented 1 year ago

@shr-project I don't speak CMake :)

git clone https://github.com/webosose/build-webos.git ./mcf -p 2 -b 2 raspberrypi4 (tried 8, then 4, now trying 2) - I have 8 core CPU with 16 GB (let it do it's thing)

bitbake webos-wayland-extensions

bitbake: command not found

Do I need to run make first? (preferably not make on it's own, as that downloads 10,000 packages it seems)

bitbake exists in a sub-folder.

shr-project commented 1 year ago

source oe-init-build-env then call bitbake

csdougliss commented 1 year ago

@shr-project Thanks I think i've found what I'm looking for:

BUILD/sysroots-components/raspberrypi4/webos-wayland-extensions/usr/include

I'm assuming I don't need/have the relevant c/cpp files?

Do I then need to link against the libs in:

BUILD/sysroots-components/raspberrypi4/webos-wayland-extensions/usr/lib

I noticed it built against glibc. Is there anyway to override the version that it uses? (https://ftp.gnu.org/gnu/glibc/)

As well as the kernel headers?

csdougliss commented 1 year ago

Also, if I want to include the headers in my project, do I just copy across

webos-wayland-extensions/usr/include

Into my project and link against existing wayland source & libs I already have?