Compile Projucer for embedded Petalinux/Yocto

Hi there,

I’m using a Xilinx Zynq (armv7) device and would like to a JUCE application onto that. There is a topic about that and Yocto but I stucked as Clemens in the days.

In a nutshell pkg-config doesn’t find some needed libraries:
> Log data follows:

| DEBUG: Executing shell function do_compile
| NOTE: make -j 8
| Package gtk+-x11-3.0 was not found in the pkg-config search path.
| Perhaps you should add the directory containing `gtk+-x11-3.0.pc'
| to the PKG_CONFIG_PATH environment variable
| No package 'gtk+-x11-3.0' found
| Package webkit2gtk-4.0 was not found in the pkg-config search path.
| Perhaps you should add the directory containing `webkit2gtk-4.0.pc'
| to the PKG_CONFIG_PATH environment variable
| No package 'webkit2gtk-4.0' found
| Compiling jucer_Project.cpp
| Compiling jucer_ProjectSaver.cpp
| Compiling jucer_ProjectExporter.cpp
| Compiling jucer_ResourceFile.cpp
| Package gtk+-x11-3.0 was not found in the pkg-config search path.
| Perhaps you should add the directory containing `gtk+-x11-3.0.pc'
| to the PKG_CONFIG_PATH environment variable
| No package 'gtk+-x11-3.0' found
| Package webkit2gtk-4.0 was not found in the pkg-config search path.
| Perhaps you should add the directory containing `webkit2gtk-4.0.pc'
| to the PKG_CONFIG_PATH environment variable
| No package 'webkit2gtk-4.0' found
| make: *** [Makefile:423: check-pkg-config] Error 1
| make: *** Waiting for unfinished jobs....
| Compiling jucer_FileHelpers.cpp
| Compiling jucer_CodeHelpers.cpp
| ERROR: oe_runmake failed

Does anybody had similar issues with that? I can’t see a fix or workaround for that in here.

I know that JUCE doesn’t support Yocto or Petalinux officially. But maybe there is knowledge here in the forum :wink:

Greetings
Thomas

By the way, the needed libraries gtk±x11-3.0 and the webkit2gtk-4.0 are installed on the host system and I can see them with pkg-config:

$ pkg-config --list-all | grep gtk
gtk±3.0 GTK+ - GTK+ Graphical UI Library
webkit2gtk-4.0 WebKitGTK+ - Web content engine for GTK+
gtk±mir-3.0 GTK+ - GTK+ Graphical UI Library
webkit2gtk-web-extension-4.0 WebKitGTK+ Web process extensions - Web content engine for GTK+ - Web process extensions
gtk±broadway-3.0 GTK+ - GTK+ Graphical UI Library
gtk±unix-print-3.0 GTK+ - GTK+ Unix print support
javascriptcoregtk-4.0 JavaScriptCoreGTK+ - GTK+ version of the JavaScriptCore engine
gtk±wayland-3.0 GTK+ - GTK+ Graphical UI Library
gtk±x11-3.0 GTK+ - GTK+ Graphical UI Library

$ pkg-config --list-all | grep webkit
webkit2gtk-4.0 WebKitGTK+ - Web content engine for GTK+
webkit2gtk-web-extension-4.0 WebKitGTK+ Web process extensions - Web content engine for GTK+ - Web process extensions

This is my patch for projucer-native 5.3.2. But it should contain all necessary changes for the current version.
bitbake_juce.patch (5.1 KB)

1 Like