[Shield General] jerrino77:
Hello all, i am trying to compile Moonlight on a Udoo Quad board, essentially for its Gigabit connection (i have a Raspberry too, btw). But i get some errors during compile process.

Here's my output:

root@udoo:/opt/moonlight-embedded/build# cmake ../
-- Could NOT find Broadcom (missing: BROADCOM_INCLUDE_DIR VCOS_LIBRARY VCHIQ_LIBRARY OPENMAXIL_LIBRARY BCM_HOST_LIBRARY)
-- Could NOT find Amlogic (missing: AMLOGIC_INCLUDE_DIR AMCODEC_LIBRARY AMADEC_LIBRARY AMAVUTILS_LIBRARY)
-- checking for module 'sdl2>=2.0.4'
-- package 'sdl2>=2.0.4' not found
-- checking for module 'libcec>=3.0.0'
-- package 'libcec>=3.0.0' not found
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/moonlight-embedded/build
root@udoo:/opt/moonlight-embedded/build# make
[ 2%] Building C object libgamestream/CMakeFiles/moonlight-common.dir/__/third_party/moonlight-common-c/src/ControlStream.c.o
[ 4%] Building C object libgamestream/CMakeFiles/moonlight-common.dir/__/third_party/moonlight-common-c/src/ByteBuffer.c.o
[ 7%] Building C object libgamestream/CMakeFiles/moonlight-common.dir/__/third_party/moonlight-common-c/src/LinkedBlockingQueue.c.o
[ 9%] Building C object libgamestream/CMakeFiles/moonlight-common.dir/__/third_party/moonlight-common-c/src/VideoStream.c.o
[ 12%] Building C object libgamestream/CMakeFiles/moonlight-common.dir/__/third_party/moonlight-common-c/src/AudioStream.c.o
[ 14%] Building C object libgamestream/CMakeFiles/moonlight-common.dir/__/third_party/moonlight-common-c/src/RtspConnection.c.o
[ 17%] Building C object libgamestream/CMakeFiles/moonlight-common.dir/__/third_party/moonlight-common-c/src/RtspParser.c.o
[ 19%] Building C object libgamestream/CMakeFiles/moonlight-common.dir/__/third_party/moonlight-common-c/src/RtpReorderQueue.c.o
[ 21%] Building C object libgamestream/CMakeFiles/moonlight-common.dir/__/third_party/moonlight-common-c/src/FakeCallbacks.c.o
[ 24%] Building C object libgamestream/CMakeFiles/moonlight-common.dir/__/third_party/moonlight-common-c/src/SdpGenerator.c.o
[ 26%] Building C object libgamestream/CMakeFiles/moonlight-common.dir/__/third_party/moonlight-common-c/src/Connection.c.o
[ 29%] Building C object libgamestream/CMakeFiles/moonlight-common.dir/__/third_party/moonlight-common-c/src/PlatformSockets.c.o
[ 31%] Building C object libgamestream/CMakeFiles/moonlight-common.dir/__/third_party/moonlight-common-c/src/InputStream.c.o
[ 34%] Building C object libgamestream/CMakeFiles/moonlight-common.dir/__/third_party/moonlight-common-c/src/Platform.c.o
[ 36%] Building C object libgamestream/CMakeFiles/moonlight-common.dir/__/third_party/moonlight-common-c/src/VideoDepacketizer.c.o
[ 39%] Building C object libgamestream/CMakeFiles/moonlight-common.dir/__/third_party/moonlight-common-c/src/Misc.c.o
Linking C shared library libmoonlight-common.so
[ 39%] Built target moonlight-common
[ 41%] Building C object libgamestream/CMakeFiles/gamestream.dir/mkcert.c.o
[ 43%] Building C object libgamestream/CMakeFiles/gamestream.dir/discover.c.o
[ 46%] Building C object libgamestream/CMakeFiles/gamestream.dir/xml.c.o
[ 48%] Building C object libgamestream/CMakeFiles/gamestream.dir/client.c.o
[ 51%] Building C object libgamestream/CMakeFiles/gamestream.dir/http.c.o
[ 53%] Building C object libgamestream/CMakeFiles/gamestream.dir/sps.c.o
[ 56%] Building C object libgamestream/CMakeFiles/gamestream.dir/__/third_party/h264bitstream/h264_nal.c.o
[ 58%] Building C object libgamestream/CMakeFiles/gamestream.dir/__/third_party/h264bitstream/h264_sei.c.o
[ 60%] Building C object libgamestream/CMakeFiles/gamestream.dir/__/third_party/h264bitstream/h264_stream.c.o
Linking C shared library libgamestream.so
[ 60%] Built target gamestream
[ 63%] Building C object CMakeFiles/moonlight.dir/src/connection.c.o
/opt/moonlight-embedded/src/connection.c:46:3: warning: initialization from incompatible pointer type [enabled by default]
.displayMessage = connection_display_message,
^
/opt/moonlight-embedded/src/connection.c:46:3: warning: (near initialization for‘connection_callbacks.displayMessage’) [enabled by default]
/opt/moonlight-embedded/src/connection.c:47:3: warning: initialization from incompatible pointer type [enabled by default]
.displayTransientMessage = connection_display_transient_message,
^
/opt/moonlight-embedded/src/connection.c:47:3: warning: (near initialization for‘connection_callbacks.displayTransientMessage’) [enabled by default]
[ 65%] Building C object CMakeFiles/moonlight.dir/src/config.c.o
[ 68%] Building C object CMakeFiles/moonlight.dir/src/global.c.o
[ 70%] Building C object CMakeFiles/moonlight.dir/src/main.c.o
/opt/moonlight-embedded/src/main.c: In function ‘main’:
/opt/moonlight-embedded/src/main.c:227:5: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "Invalid data received from server: %s\n", config.address, gs_error);
^
[ 73%] Building C object CMakeFiles/moonlight.dir/src/platform.c.o
[ 75%] Building C object CMakeFiles/moonlight.dir/src/sdl.c.o
[ 78%] Building C object CMakeFiles/moonlight.dir/src/loop.c.o
[ 80%] Building C object CMakeFiles/moonlight.dir/src/input/cec.c.o
[ 82%] Building C object CMakeFiles/moonlight.dir/src/input/mapping.c.o
[ 85%] Building C object CMakeFiles/moonlight.dir/src/input/udev.c.o
[ 87%] Building C object CMakeFiles/moonlight.dir/src/input/sdlinput.c.o
[ 90%] Building C object CMakeFiles/moonlight.dir/src/input/evdev.c.o
[ 92%] Building C object CMakeFiles/moonlight.dir/src/audio/pulse.c.o
[ 95%] Building C object CMakeFiles/moonlight.dir/src/audio/alsa.c.o
Linking C executable moonlight
[ 95%] Built target moonlight
[ 97%] Building C object CMakeFiles/moonlight-imx.dir/src/video/imx.c.o
/opt/moonlight-embedded/src/video/imx.c: In function ‘decoder_renderer_setup’:
/opt/moonlight-embedded/src/video/imx.c:220:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (int i = 0; i < regfbcount; i++) {
^
/opt/moonlight-embedded/src/video/imx.c:220:3: note: use option -std=c99 or -std =gnu99 to compile your code
/opt/moonlight-embedded/src/video/imx.c:270:12: error: redefinition of ‘i’
for (int i = 0; i < regfbcount; i++) {
^
/opt/moonlight-embedded/src/video/imx.c:220:12: note: previous definition of ‘i’ was here
for (int i = 0; i < regfbcount; i++) {
^
/opt/moonlight-embedded/src/video/imx.c:270:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (int i = 0; i < regfbcount; i++) {
^
/opt/moonlight-embedded/src/video/imx.c: In function ‘decoder_renderer_submit_decode_unit’:
/opt/moonlight-embedded/src/video/imx.c:307:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Uint32’ [-Wformat=]
fprintf(stderr, "Not enough space in buffer %d/%d\n", decodeUnit->fullLength, space);
^
make[2]: *** [CMakeFiles/moonlight-imx.dir/src/video/imx.c.o] Error 1
make[1]: *** [CMakeFiles/moonlight-imx.dir/all] Error 2
make: *** [all] Error 2

I think some package is missing, but i don't know what. I am currently runnung Udoobuntu 14.04.

Any help please?