Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Cross-compile #162

Open
Jongsik-mo opened this issue Jun 16, 2016 · 4 comments
Open

Cross-compile #162

Jongsik-mo opened this issue Jun 16, 2016 · 4 comments

Comments

@Jongsik-mo
Copy link

Jongsik-mo commented Jun 16, 2016

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
Copy link

andybeg commented Jun 16, 2016

you can build it from source, like every other software

@athoik
Copy link

athoik commented Jan 4, 2017

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
Copy link

fbertux commented Feb 16, 2017

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
Copy link

athoik commented Feb 16, 2017

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.

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

No branches or pull requests

4 participants