Comments (12)
BTW, this CMake project could be built and run on a Raspberry Pi 3B+ running ELK OS.
from elkpi-sdk.
Hi @Piasy ,
seems there's an issue on how you are sourcing the environment script.
I tried your projects and builds fine...
Could you paste here the output of printenv
after sourcing the environment?
from elkpi-sdk.
Thanks for your reply!
Here is the output:
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
ARCH=arm
GDB=arm-elk-linux-gnueabi-gdb
OPENSSL_CONF=/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/usr/lib/ssl-1.1/openssl.cnf
HOSTNAME=cc3f330f41d1
OLDPWD=/xxpxx/elk-test-project
CONFIG_SITE=/xxpxx/elk/1.0/site-config-cortexa7t2hf-neon-vfpv4-elk-linux-gnueabi
SDKTARGETSYSROOT=/xxpxx/elk/1.0/sysroots/cortexa7t2hf-neon-vfpv4-elk-linux-gnueabi
CFLAGS= -O2 -pipe -g -feliminate-unused-debug-types
M4=m4
KCFLAGS=--sysroot=/xxpxx/elk/1.0/sysroots/cortexa7t2hf-neon-vfpv4-elk-linux-gnueabi
OECORE_ACLOCAL_OPTS=-I /xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/usr/share/aclocal
CC=arm-elk-linux-gnueabi-gcc -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/xxpxx/elk/1.0/sysroots/cortexa7t2hf-neon-vfpv4-elk-linux-gnueabi
OECORE_DISTRO_VERSION=1.0
OECORE_SDK_VERSION=1.0
PKG_CONFIG_SYSROOT_DIR=/xxpxx/elk/1.0/sysroots/cortexa7t2hf-neon-vfpv4-elk-linux-gnueabi
CXXFLAGS= -O2 -pipe -g -feliminate-unused-debug-types
STRIP=arm-elk-linux-gnueabi-strip
OBJCOPY=arm-elk-linux-gnueabi-objcopy
PWD=/xxpxx/elk-test-project/build
CONFIGURE_FLAGS=--target=arm-elk-linux-gnueabi --host=arm-elk-linux-gnueabi --build=x86_64-linux --with-libtool-sysroot=/xxpxx/elk/1.0/sysroots/cortexa7t2hf-neon-vfpv4-elk-linux-gnueabi
HOME=/root
OECORE_NATIVE_SYSROOT=/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux
RANLIB=arm-elk-linux-gnueabi-ranlib
OBJDUMP=arm-elk-linux-gnueabi-objdump
AS=arm-elk-linux-gnueabi-as
AR=arm-elk-linux-gnueabi-ar
TARGET_PREFIX=arm-elk-linux-gnueabi-
NM=arm-elk-linux-gnueabi-nm
CXX=arm-elk-linux-gnueabi-g++ -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/xxpxx/elk/1.0/sysroots/cortexa7t2hf-neon-vfpv4-elk-linux-gnueabi
OECORE_TARGET_OS=linux-gnueabi
TERM=xterm
OECORE_TARGET_ARCH=arm
OECORE_TARGET_SYSROOT=/xxpxx/elk/1.0/sysroots/cortexa7t2hf-neon-vfpv4-elk-linux-gnueabi
SHLVL=1
CROSS_COMPILE=arm-elk-linux-gnueabi-
OE_CMAKE_TOOLCHAIN_FILE=/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/usr/share/cmake/OEToolchainConfig.cmake
CPPFLAGS=
LDFLAGS=-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
OE_CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX=
PATH=/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/usr/bin:/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/usr/sbin:/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/bin:/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/sbin:/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/usr/bin/../x86_64-pokysdk-linux/bin:/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-elk-linux-gnueabi:/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-elk-linux-musl:/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/usr/bin:/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/usr/sbin:/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/bin:/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/sbin:/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/usr/bin/../x86_64-pokysdk-linux/bin:/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-elk-linux-gnueabi:/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-elk-linux-musl:/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/usr/bin:/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/usr/sbin:/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/bin:/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/sbin:/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/usr/bin/../x86_64-pokysdk-linux/bin:/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-elk-linux-gnueabi:/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-elk-linux-musl:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
OECORE_BASELIB=lib
PKG_CONFIG_PATH=/xxpxx/elk/1.0/sysroots/cortexa7t2hf-neon-vfpv4-elk-linux-gnueabi/usr/lib/pkgconfig:/xxpxx/elk/1.0/sysroots/cortexa7t2hf-neon-vfpv4-elk-linux-gnueabi/usr/share/pkgconfig
CPP=arm-elk-linux-gnueabi-gcc -E -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/xxpxx/elk/1.0/sysroots/cortexa7t2hf-neon-vfpv4-elk-linux-gnueabi
LD=arm-elk-linux-gnueabi-ld --sysroot=/xxpxx/elk/1.0/sysroots/cortexa7t2hf-neon-vfpv4-elk-linux-gnueabi
_=/usr/bin/printenv
from elkpi-sdk.
Oh, actually I just tried to extract the sdk into another location, e.g. /xxpxx/elk/1.0
.
from elkpi-sdk.
Hi @stez-mind , can you see anything wrong in my environment?
from elkpi-sdk.
Any help please?
from elkpi-sdk.
Hi @Piasy,
apologies but in these days we had some delay setting up everything for remote working.
Your environment seems fine and I tested exactly the same project on an Ubuntu 18.04 machine and it worked well. Maybe some locale / language settings in your shell that confuses Cmake?
Could you tell us the output of which cmake
and which shell are you using (bash, zsh, etc.).
from elkpi-sdk.
Hi @stez-mind , thanks for your reply!
Here are the outputs:
root@350c8e99321d:/xxpxx/elk-test-project/build# which cmake
/xxpxx/elk/1.0/sysroots/x86_64-pokysdk-linux/usr/bin/cmake
I'm using docker to run the Ubuntu on my macOS, my command is:
docker run --rm -v ~/Downloads:/xxpxx -it ubuntu:18.04 /bin/bash
from elkpi-sdk.
Ah, I didn't understand you were using Docker.
In that case, it's better to follow the instructions to use the eSDK container that we put here:
https://github.com/elk-audio/elkpi-sdk/blob/master/running_docker_container_on_macos.md
Also check this discussion on the forum:
https://forum.elk.audio/t/docker-image-samba/218/
for some useful hints such as root password, use of case-sensitive volumes etc.
from elkpi-sdk.
My macOS is installed on a case-sensitive volume, I think running a normal ubuntu 18.04 docker image should be fine too.
I do barely the same thing as the guide, I copy the installation script into docker container's internal volume, and run it.
from elkpi-sdk.
I'd recommend trying the eSDK container and see if that works as a first step.
Then, if you can figure out what it's needed on the Ubuntu image I guess that would be helpful to know.
from elkpi-sdk.
Okay, seems only working on eSDK container.
BTW, there is no need for samba, here is the simplified setup (with elk-glibc-x86_64-elk-sika-image-dev-cortexa7t2hf-neon-vfpv4-raspberrypi3-toolchain-1.0.sh
and my test project inside ~/Downloads
):
docker volume create --name elkvolume
docker run -it --rm -v elkvolume:/workdir busybox -v ~/Downloads:/xxpxx busybox /bin/sh
# in the shell of busybox
cp /xxpxx/elk-glibc-x86_64-elk-sika-image-dev-cortexa7t2hf-neon-vfpv4-raspberrypi3-toolchain-1.0.sh /workdir/
chmod +x /workdir/elk-glibc-x86_64-elk-sika-image-dev-cortexa7t2hf-neon-vfpv4-raspberrypi3-toolchain-1.0.sh
chown -R 1000:1000 /workdir
exit
docker run --rm -it -v elkvolume:/workdir -v ~/Downloads:/xxpxx crops/extsdk-container --url /workdir/elk-glibc-x86_64-elk-sika-image-dev-cortexa7t2hf-neon-vfpv4-raspberrypi3-toolchain-1.0.sh
# wait for the installation complete, then in the shell of extsdk-container
source /workdir/environment-setup-cortexa7t2hf-neon-vfpv4-elk-linux-gnueabi
Then everything works fine.
Thanks for your help!
from elkpi-sdk.
Related Issues (6)
- No source HOT 2
- Problems installing toolchain for Elk Audio OS 0.6 in macOS HOT 4
- cross-compile for Elk Pi RPi3B HOT 4
- Elk-pi HOT 2
- cannot execute binary file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elkpi-sdk.