<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/trying-wpe-platform-api-on-raspberry-pi-mtytey6ph" -->

---
title: Trying WPE Platform API on Raspberry Pi | daily.dev
description: A walkthrough demonstrates building and testing a minimal browser using WPE Platform API on a Raspberry Pi 3B, using the latest WebKit main branch instead of a...
canonical: https://daily.dev/posts/trying-wpe-platform-api-on-raspberry-pi-mtytey6ph
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Trying WPE Platform API on Raspberry Pi | daily.dev
og:description: A walkthrough demonstrates building and testing a minimal browser using WPE Platform API on a Raspberry Pi 3B, using the latest WebKit main branch instead of a...
og:url: https://daily.dev/posts/trying-wpe-platform-api-on-raspberry-pi-mtytey6ph
og:image: https://api.daily.dev/og/posts/MTYTey6pH.png
og:image:alt: Trying WPE Platform API on Raspberry Pi
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Trying WPE Platform API on Raspberry Pi

**[Planet Igalia](https://daily.dev/sources/planet-igalia)** · 8 min read · 0 upvotes · 0 comments

## Summary

A walkthrough demonstrates building and testing a minimal browser using WPE Platform API on a Raspberry Pi 3B, using the latest WebKit main branch instead of a stable release. It covers setting up a Yocto scarthgap build environment with the WebKit Container SDK, creating a custom wpewebkit_latest recipe pinned to a specific main-branch commit, applying two compilation patches (one for a libpas stdatomic.h C++ compilation issue, one for a WebDriver LOG_CHANNEL guard), building a minimal browser executable, and testing it via SSH with GPU diagnostics, HTTP, and HTTPS pages. It notes that LLMs can help generate compilation fix patches when advancing the source revision, and cautions that main branch is good for testing new web platform features but not for performance benchmarking.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blogs.igalia.com/plampe/trying-wpe-platform-api-on-raspberry-pi>

## Questions this post answers

### How do I fix the GCC stdatomic.h compilation error when building libpas in WebKit on Yocto?

The error occurs because GCC's stdatomic.h relies on the C11-only _Atomic keyword and cannot be included in C++ translation units, while some libpas .c files are compiled as C++ for TZone heap support. The fix guards the stdatomic.h include with #if PAS_COMPILER(CLANG), since the GCC path only needs __atomic_* builtins, not the Clang-specific __c11_atomic_* intrinsics that require the header.

_Developers wrangling WebKit main-branch build breakage can find similar embedded build fixes on daily.dev._

### Why does WebDriverService.cpp fail to compile with 'LOG_CHANNEL_PREFIXWebDriverClassic was not declared in this scope' on an embedded WebKit build?

This happens on release builds without journald or OS_LOG support, where both LOG_DISABLED and RELEASE_LOG_DISABLED are true, so Logging.h never declares the WebDriverClassic log channel, yet WebDriverService::handleRequest() still checks its state unconditionally. The fix wraps that LOG_CHANNEL check in the same #if !LOG_DISABLED || !RELEASE_LOG_DISABLED guard used to declare the channel.

_Track embedded WebKit build gotchas like this one on daily.dev before they stall a release._

### How do I build a minimal browser using WPE Platform API on a Raspberry Pi with the latest WebKit main branch instead of a stable release?

Use the WebKit Container SDK (version 2.53-v6-d535e88 on Ubuntu 24.04.4 LTS) with Yocto scarthgap, set MACHINE to raspberrypi3-64, and create a custom wpewebkit_latest.bb recipe pinning SRCREV to a specific WebKit main commit plus two compilation patches. A minimal main.cpp using wpe/webkit.h, a CMakeLists.txt, and a bitbake recipe build the browser, which is then run over SSH with WAYLAND_DISPLAY and XDG_RUNTIME_DIR set.

_Engineers prototyping embedded browsers can follow builds like this via daily.dev to stay current with WPE WebKit._

## Similar posts on daily.dev

- [WebKit Igalia Periodical \#77](https://daily.dev/posts/webkit-igalia-periodical-77-xnhu3mjlb) · Planet Igalia · 0 upvotes · 0 comments
- [Zebkit – Chromium as an embeddable library](https://daily.dev/posts/zebkit-chromium-as-an-embeddable-library-prj9voxb6) · Hacker News · 0 upvotes · 0 comments
- [The Orange Pi Zero 3W beats the Raspberry Pi 5 on paper, but it can't use half its own hardware](https://daily.dev/posts/the-orange-pi-zero-3w-beats-the-raspberry-pi-5-on-paper-but-it-can-t-use-half-its-own-hardware-kd3qtlflv) · XDA Developers · 1 upvotes · 0 comments

---

Tags: [#embedded](https://daily.dev/tags/embedded), [#raspberry-pi](https://daily.dev/tags/raspberry-pi), [#safari](https://daily.dev/tags/safari)

[View this post on daily.dev](https://daily.dev/posts/trying-wpe-platform-api-on-raspberry-pi-mtytey6ph)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Trying WPE Platform API on Raspberry Pi","url":"https://daily.dev/posts/trying-wpe-platform-api-on-raspberry-pi-mtytey6ph","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/trying-wpe-platform-api-on-raspberry-pi-mtytey6ph"},"datePublished":"2026-09-20T07:44:30.233Z","dateModified":"2026-09-20T07:50:43.496Z","description":"A walkthrough demonstrates building and testing a minimal browser using WPE Platform API on a Raspberry Pi 3B, using the latest WebKit main branch instead of a...","image":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","thumbnailUrl":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","isAccessibleForFree":true,"articleSection":"Planet Igalia","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Planet Igalia","logo":"https://media.daily.dev/image/upload/s--84VSWNwZ--/f_auto,q_auto/v1789890204/logos/planet-igalia?_a=BAMAMicg0","url":"https://daily.dev/sources/planet-igalia"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/trying-wpe-platform-api-on-raspberry-pi-mtytey6ph","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"embedded,raspberry-pi,safari","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Planet Igalia","item":"https://daily.dev/sources/planet-igalia"},{"@type":"ListItem","position":3,"name":"Trying WPE Platform API on Raspberry Pi"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/trying-wpe-platform-api-on-raspberry-pi-mtytey6ph#faq","mainEntity":[{"@type":"Question","name":"How do I fix the GCC stdatomic.h compilation error when building libpas in WebKit on Yocto?","acceptedAnswer":{"@type":"Answer","text":"The error occurs because GCC's stdatomic.h relies on the C11-only _Atomic keyword and cannot be included in C++ translation units, while some libpas .c files are compiled as C++ for TZone heap support. The fix guards the stdatomic.h include with #if PAS_COMPILER(CLANG), since the GCC path only needs __atomic_* builtins, not the Clang-specific __c11_atomic_* intrinsics that require the header. Developers wrangling WebKit main-branch build breakage can find similar embedded build fixes on daily.dev."}},{"@type":"Question","name":"Why does WebDriverService.cpp fail to compile with 'LOG_CHANNEL_PREFIXWebDriverClassic was not declared in this scope' on an embedded WebKit build?","acceptedAnswer":{"@type":"Answer","text":"This happens on release builds without journald or OS_LOG support, where both LOG_DISABLED and RELEASE_LOG_DISABLED are true, so Logging.h never declares the WebDriverClassic log channel, yet WebDriverService::handleRequest() still checks its state unconditionally. The fix wraps that LOG_CHANNEL check in the same #if !LOG_DISABLED || !RELEASE_LOG_DISABLED guard used to declare the channel. Track embedded WebKit build gotchas like this one on daily.dev before they stall a release."}},{"@type":"Question","name":"How do I build a minimal browser using WPE Platform API on a Raspberry Pi with the latest WebKit main branch instead of a stable release?","acceptedAnswer":{"@type":"Answer","text":"Use the WebKit Container SDK (version 2.53-v6-d535e88 on Ubuntu 24.04.4 LTS) with Yocto scarthgap, set MACHINE to raspberrypi3-64, and create a custom wpewebkit_latest.bb recipe pinning SRCREV to a specific WebKit main commit plus two compilation patches. A minimal main.cpp using wpe/webkit.h, a CMakeLists.txt, and a bitbake recipe build the browser, which is then run over SSH with WAYLAND_DISPLAY and XDG_RUNTIME_DIR set. Engineers prototyping embedded browsers can follow builds like this via daily.dev to stay current with WPE WebKit."}}]}
```

