Skip to content

Can't compile libflutter_engine.so #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
volkrass opened this issue Jun 13, 2019 · 4 comments
Closed

Can't compile libflutter_engine.so #1

volkrass opened this issue Jun 13, 2019 · 4 comments

Comments

@volkrass
Copy link

I know is not related directly to you repository, but might be you have an advice for me.
I'm followed the steps from flutter from scratch article. I get nearly all my files in engine/src folder compiled. Build process stuck AT ../flutter/shell/platform/glfw/flutter_glfw.key_event_handler with ../../third_party/glfw/include/GLFW/glfw3.h:171:12: fatal error: 'GL/gl.h' file not found

In my /opt/vc/include folder copied form my Raspberry PI 3 there are only header files in EGL/GLES/GLES2. I don't have a /opt/vc/include/GL
Is there an option to use EGL or GLES instead? Or do I missing some packages on my Raspberry PI?
Thanks in advance.

@ardera
Copy link
Owner

ardera commented Jun 13, 2019

(I also replied to you on medium)

You need to enable the Raspberry Pi GL support by doing sudo raspi-config navigate to Advanced, GL Driver and select Fake KMS (or Full KMS). The header files should then be in /usr/include and the OpenGL lib in /usr/lib/.

Then, as usual, rsync the raspberry pi root to your host-machine's cross-compilation sysroot.

For the embedder & engine to run, you need to disable the raspberry pi's GL support again (simply switch to Legacy in raspi-config) otherwise you'll get a "service already in use" message.

@volkrass
Copy link
Author

Thank you for your support. Sorry for doubling my question, but I read too late that you have created this repo. Therefore I thought it would be better to discuss technical details here.

@volkrass
Copy link
Author

volkrass commented Jun 13, 2019

Looks like I have fixed my problem. I installed following packages gtk3-dev, libglib2.0-dev and libgl1-mesa-dev on on my Rasp PI to solved my linker issues. Thanks for your support.

@ardera
Copy link
Owner

ardera commented Jun 13, 2019

nice! no problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants