blu / hello-chromeos-gles2

"Hello GLES2" on ChromeOS, self-hosted style
MIT License
3 stars 0 forks source link

Build issues in branch 'phase_two' and 'fullscreen' #2

Open JL2210 opened 6 years ago

JL2210 commented 6 years ago

Missing file: linux/protocol-dmabuf.c Code:

chronos@localhost ~/Downloads/misc/hello-chromeos-gles2 $ ./build_chromeos_sphere_multi.sh 
./clang++.sh -o test_egl_sphere_multi -pipe -fno-exceptions -fno-rtti -fstrict-aliasing -Wreturn-type -Wunused-variable -Wunused-value -Wno-incompatible-function-pointer-types -DPLATFORM_EGL -DPLATFORM_GLES -DPLATFORM_GL_OES_vertex_array_object -DPLATFORM_GL_KHR_debug -I./khronos -I./libdrm -I./protocol -march=native -mtune=native -ffast-math -funroll-loops -O3 -DNDEBUG -x c++ main_chromeos.cpp app_sphere_multi.cpp util_tex.cpp util_file.cpp util_misc.cpp -x c protocol/linux-dmabuf-protocol.c egl_ext.c gles_ext.c -fuse-ld=lld -lwayland-client -lrt -ldl -lEGL -lGLESv2
clang-6.0: error: no such file or directory: 'protocol/linux-dmabuf-protocol.c'
chronos@localhost ~/Downloads/misc/hello-chromeos-gles2 $ 

Same issue in both branches.

JL2210 commented 6 years ago

Once these work, please create a tag so you know you have a working copy.

blu commented 6 years ago

Before building any of the apps you need to generate the linux-dmabuf marshaling code first via build_wayland_protocols.sh. I know I need a proper makefile, as the current build system is quite crude, but that's not going to happen over the weekend.

JL2210 commented 6 years ago

I'm very good at Makefiles, if you want me to take a shot at it. GNU+Autoconf or just a hand-written Makefile?

blu commented 6 years ago

If you feel like it -- give it a shot. Just make sure to include a dependency on the xml protocol files the same way build_wayland_protocols.sh handles those.