Skip to content
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

Issue building for M1 Mac (arm64) #2

Open
Frulko opened this issue Oct 19, 2022 · 2 comments
Open

Issue building for M1 Mac (arm64) #2

Frulko opened this issue Oct 19, 2022 · 2 comments

Comments

@Frulko
Copy link

Frulko commented Oct 19, 2022

First of all : What a work, it's really awesome !
Thanks a lot, i look forward to work with it on project. :)

I've tried to build on my M1 Macbook Pro, I followed the macOS instructions, I've updated the Makefile with the following code :

dev-macos-arm:
	@mkdir -p $(DEV_ARM)
	cmake -B "$(DEV_ARM)" \
		-DCMAKE_BUILD_TYPE=Debug \
		-DCMAKE_BUILD_PLATFORM=arm64 \
		-DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl@3 \
		-DOPENSSL_LIBRARIES=/opt/homebrew/opt/openssl@3/lib
	cmake --build $(DEV_ARM)

And after run : make dev-macos-arm all seems good but an error occured at 94% :
lvgljs/src/deps/lv_drivers/display/fbdev.c:26:10: fatal error: 'linux/fb.h' file not found

It's related to the framebuffer on linux but I'm on mac, I understand this is not completly related with your work but maybe you have an idea to handle that error for the compilation ?

Thanks again for your work !

@Sxs7513
Copy link
Collaborator

Sxs7513 commented Oct 24, 2022

try this lvgl/lv_port_pc_eclipse#51 (comment)

file lv_drv_conf.h is in src/deps

@chilus
Copy link

chilus commented Nov 5, 2022

Before continuing this topic, what an impressive body of work!

Like @Frulko I'm also trying to build this on a M1 Mac, and managed to resolve the first framebuffer issue using lvlg/lv_port_pc_eclipse#51 .

However, I got stuck on 96% with the following error:

lv_binding_js/src/deps/lv_drivers/indev/evdev.c:18:10: fatal error: 'linux/input.h' file not found
#include <linux/input.h>

I have updated the MakeFile with this:

dev-macos-arm:
	@mkdir -p $(DEV_ARM)
	cmake -B "$(DEV_ARM)" \
		-DCMAKE_BUILD_TYPE=Debug \
		-DCMAKE_BUILD_PLATFORM=arm64 \
		-DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl@3 \
		-DOPENSSL_LIBRARIES=/opt/homebrew/opt/openssl@3/lib
	cmake --build $(DEV_ARM)

I have also tried to build with arm cross compiler tools like arm-linux-gnueabihf, but then I get issues with a missing -arch option, which is part of the Apple extensions to gcc.

Likewise, I also understand my question is not related to your work, but maybe you can point me in the right direction?

Thanks for your work!

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

3 participants