intel / wds

Wireless Display Software For Linux OS (WDS)
https://01.org/wds
GNU Lesser General Public License v2.1
511 stars 104 forks source link

Cross-compile #162

Open Jongsik-mo opened 8 years ago

Jongsik-mo commented 8 years ago

Is it possible to cross-compile for the ARM processor ? If so, please give me some advice.

I have built with yocto(bitbake). And i am faced with the difficult errors as below. Please help me..

jongsikmo@jongsikmo-To-be-filled-by-O-E-M:/mnt/sdb/projects/L3.14.52/build-wayland-gui-qp$ bitbake wds | [ 70%] Built target wdsrtsp | Scanning dependencies of target wdscommon | [ 76%] [ 83%] [ 84%] Built target wdssource | Built target wdssink | Building CXX object libwds/common/CMakeFiles/wdscommon.dir/rtsp_input_handler.cpp.o | [ 87%] Built target wdscommon | Linking CXX shared library libwds.so | Scanning dependencies of target test-wds | [ 88%] Building CXX object libwds/rtsp/tests/CMakeFiles/test-wds.dir/tests.cpp.o | [ 88%] Built target wds | Linking CXX executable gst-test | Linking CXX executable sink-test | Linking CXX executable desktop-source-test | /usr/bin/ld: cannot find -lgstreamer-1.0 | /usr/bin/ld: cannot find -lgstreamer-1.0 | collect2: error: ld returned 1 exit status | make[2]: * [mirac_network/gst-test] Error 1 | make[1]: * [mirac_network/CMakeFiles/gst-test.dir/all] Error 2 | make[1]: * Waiting for unfinished jobs.... | /usr/bin/ld: cannot find -lgstreamer-1.0 | /usr/bin/ld: cannot find -lgstreamer-1.0 | collect2: error: ld returned 1 exit status | make[2]: * [sink/sink-test] Error 1 | make[1]: * [sink/CMakeFiles/sink-test.dir/all] Error 2 | /usr/bin/ld: cannot find -lgstreamer-1.0 | /usr/bin/ld: cannot find -lgstreamer-1.0 | collect2: error: ld returned 1 exit status | make[2]: * [desktop_source/desktop-source-test] Error 1 | make[1]: * [desktop_source/CMakeFiles/desktop-source-test.dir/all] Error 2 | Linking CXX executable test-wds | [ 88%] Built target test-wds | make: * [all] Error 2 | WARNING: exit code 2 from a shell command. | ERROR: Function failed: do_compile (log file is located at /mnt/sdb/projects/L3.14.52/build-wayland-gui-qp/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/wds/1.0-r1/temp/log.do_compile.21210) ERROR: Task 6 (/mnt/sdb/projects/L3.14.52/sources/meta-unichal/recipes-unichal/wds/wds.bb, do_compile) failed with exit code '1' NOTE: Tasks Summary: Attempted 364 tasks of which 363 didn't need to be rerun and 1 failed. No currently running tasks (342 of 371)

Summary: 1 task failed: /mnt/sdb/projects/L3.14.52/sources/meta-unichal/recipes-unichal/wds/wds.bb, do_compile Summary: There was 1 ERROR message shown, returning a non-zero exit code.

andybeg commented 8 years ago

you can build it from source, like every other software

athoik commented 7 years ago

Hi,

I was able to compile for mips using Open Embedded (I guess it will work for arm as well).

Here is the bitbake.

SUMMARY = "Wireless Display Software For Linux OS (WDS)"
DESCRIPTION = "WDS is a set of libraries for developers who want to build Wi-Fi Display applications on linux"
MAINTAINER = "https://github.com/01org/wds"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=cb8aedd3bced19bd8026d96a8b6876d7"

inherit gitpkgv

PV = "1.0+git${SRCPV}"
PKGV = "1.0+git${GITPKGV}"
PR = "r0"

SRC_URI = "git://github.com/01org/wds.git;protocol=http"
SRCREV = "${AUTOREV}"

S = "${WORKDIR}/git"

DEPENDS = "gstreamer1.0"
RDEPENDS_${PN} = "wpa-supplicant connman"

do_install_append() {
        install -d ${D}${bindir}
        install -m 0755 ${B}/desktop_source/desktop-source-test ${D}${bindir}
        install -m 0755 ${B}/libwds/rtsp/tests/test-wds ${D}${bindir}
        install -m 0755 ${B}/p2p/register-peer-service ${D}${bindir}
        install -m 0755 ${B}/p2p/test-ie ${D}${bindir}
        install -m 0755 ${B}/sink/sink-test ${D}${bindir}
        install -m 0755 ${B}/mirac_network/network-test ${D}${bindir}
        install -m 0755 ${B}/mirac_network/gst-test ${D}${bindir}
}

inherit cmake lib_package

EXTRA_OECMAKE_append = " -DCMAKE_SKIP_RPATH=ON"

PS. I wasn't able to use sink-test yet, but that is not related with compiling thing.

fbertux commented 7 years ago

Hi @athoik

Did you get to work with sink-test? I can build wds for arm using your recipe, but my Android can't find device to connect.

When I run sink-test I get:

# sink-test
* Registering Wifi Display with IE 00000600111C440032  

but I can't find any device from Android.

If I run scan p2p in connmanctl, connman finds my Androind device.

athoik commented 7 years ago

Hi @fbertux

I had a crash when using sink-test and never had time make further tests/debug.

So I shared my bitbake at least to make it usefull for others, that might have more time to play with.