Skip to content
This repository has been archived by the owner on Oct 18, 2020. It is now read-only.

pkg-config missing packages #58

Closed
s77rt opened this issue Apr 18, 2020 · 6 comments
Closed

pkg-config missing packages #58

s77rt opened this issue Apr 18, 2020 · 6 comments

Comments

@s77rt
Copy link

s77rt commented Apr 18, 2020

Looks that packages are missing?
(Building for linux)

Building for linux amd64
go: creating new go.mod: module fyne-cross-temp-module
go: finding ...
go: downloading ...
go: extracting ...
# pkg-config --cflags  -- gio-2.0 glib-2.0 gobject-2.0
Package gio-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gio-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gio-2.0' found
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
Package gobject-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gobject-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gobject-2.0' found
pkg-config: exit status 1
Could not build for linux/amd64: exit status 2
@lucor
Copy link
Owner

lucor commented Apr 18, 2020

It looks like you are compling an application that require additional C dependencies not available into the docker image. If not could you please share a minimal sample code to reproduce ?

Please note that at the moment only the dependencies required to build fyne applications are installed into the docker image. Support for a custom docker image is planned for the upcoming 2.0 version.

@s77rt
Copy link
Author

s77rt commented Apr 18, 2020

@lucor
how it's able to build for windows but not for linux?

@lucor
Copy link
Owner

lucor commented Apr 18, 2020

I don't know about the details of the application you are trying to compile but probably this means that one or more deps in your application uses CGO and that windows ships the development headers needed by the deps.

You'd refer to the library documentation since the prerequisites can vary dependending on the target platform. These are for example the fyne dependencies needed for development: https://fyne.io/develop/

@s77rt
Copy link
Author

s77rt commented Apr 18, 2020

Okay thanks,
Just one question,
is there any diff between building for linux (using linux) and building for linux (using fyne-cross)

@lucor
Copy link
Owner

lucor commented Apr 19, 2020

There is no difference in terms of builds, fyne-cross uses a docker image based on debian 10.
But please note that since we compiling using CGO some libraries are dinamically linked (i.e. libX11.so.6) and it won't work on old systems with different a version (i.e. libX11.so.5).

A detailed discussion about this topic is available here: fyne-io/fyne/issues/512

@s77rt
Copy link
Author

s77rt commented Apr 19, 2020

okay, thanks for your support :)

@s77rt s77rt closed this as completed Apr 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants