Skip to main content
JCant.1
Associate II
February 18, 2020
Solved

Trouble building meta-st-stm32mpu-app-logicanalyzer ("backend.c:49:10: fatal error: gtk/gtk.h: No such file or directory")

  • February 18, 2020
  • 6 replies
  • 3615 views

I need assistance building the https://github.com/STMicroelectronics/meta-st-stm32mpu-app-logicanalyser project. I have the Distribution-Package building successfully, but when I follow the instructions for the example meta layer, I get the following:

| backend.c:49:10: fatal error: gtk/gtk.h: No such file or directory

| #include <gtk/gtk.h>

|          ^~~~~~~~~~~

| compilation terminated.

I’ve tried a manual “bitbake gtk+3�? to no avail. I’ve also tried uncommenting line 7 of https://github.com/STMicroelectronics/meta-st-stm32mpu-app-logicanalyser/blob/thud/recipes-graphics/st-software/logic-analyser-backend/Makefile.

This topic has been closed for replies.
Best answer by JCant.1

Indeed this works with 1.2.0, without modification from the git repo. Thank you.

6 replies

Olivier GALLIEN
Technical Moderator
February 19, 2020

Hi @JCant.1​ 

Thanks for reporting this.

Issue has been fix. You can refetch.

Sorry for inconvenience

BR,

Olivier

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
JCant.1
JCant.1Author
Associate II
February 19, 2020

Thank you for getting back to me. What am I supposed to refetch? The repo at https://github.com/STMicroelectronics/meta-st-stm32mpu-app-logicanalyser hasn't been updated since Jan 9.

Olivier GALLIEN
Technical Moderator
February 19, 2020

Indeed fix was not yet push

Should be ok now.

Don't be afraid with V1.2 compatibility ( next release coming soon), it might work with V1.1.0.

Olivier

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
MCATR
Visitor II
February 19, 2020

1.2.0 should be available by next Wednesday.

MCATR
Visitor II
February 19, 2020

To fix issue of compilation, you can update the Makefile with:

# This Makefile is provided as an example of how to build a process that can

# communicate with a Storyboard application. It may require modifications in

# order to build on your host system. Please see ReadMe.html for a complete

# explanation

# Linux users add this

CFLAGS2 = -Wall $(shell pkg-config --cflags gtk+-3.0)

LDFLAGS2 = $(shell pkg-config --libs gtk+-3.0) -lpthread -lm -lc

LDFLAGS3 = -lpthread

all: backend keyboard

backend: backend.c

    $(CC) $(CFLAGS) $(CFLAGS2) -o $@ $^ $(LDFLAGS) $(LDFLAGS2)

keyboard: keyboard.c

    $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDFLAGS3)

JCant.1
JCant.1Author
Associate II
February 19, 2020

This is identical with the Makefile I've been using. I also just performed a "repo sync" in openstlinux-4.19-thud-mp1-19-10-09. Do I just need to wait until next Wed?

MCATR
Visitor II
February 19, 2020

If you are sure of your Makefile, then yes, just wait for the 1.2.0

JCant.1
JCant.1AuthorBest answer
Associate II
March 2, 2020

Indeed this works with 1.2.0, without modification from the git repo. Thank you.

JCant.1
JCant.1Author
Associate II
March 12, 2020

While this builds with V1.2, it doesn't run on the EV1. What would it take to get the Logic Analyzer demo to work on the STM32MP157C-EV1? (BTW, I asked this same question in a separate support ticket a few days ago but haven't received any responses yet, so I'm reaching out here as well as you guys were very responsive.)

MCATR
Visitor II
March 12, 2020

Hi,

this demo has been requested to work on the low cost DK2, as this is the most common board.

Moreover, the request was to use the ARDUINO connector (GPIO PE8..PE12), which is not available on EV1.

Michel.