Code::Blocks - Good alternative to eclipse

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

Re: Code::Blocks - Good alternative to eclipse

Postby fbt » Tue Jan 19, 2016 1:59 pm

Hi Andy,
i'm trying to setup the code:blocks IDE following your procedure, but when i finish it, and i try to compile just the dotproduct source code available on the epiphany-examples/apps/dotproduct subdirectory, i obtain the following error:


-------------- Build: Debug in dotproduct (compiler: GNU GCC Compiler)---------------

gcc -Wall -g -g -I/opt/adapteva/esdk/tools/host/include -c /home/linaro/workspace/dotproduct/main.c -o obj/Debug/main.o
g++ -L/opt/adapteva/esdk/tools/host/lib -o bin/Debug/dotproduct obj/Debug/main.o -le-hal
Output file is bin/Debug/dotproduct with size 13.09 KB

-------------- Build: EDebug in dotproduct (compiler: E_GCC)---------------

e-gcc -g -I/opt/adapteva/esdk/tools/host/include -c /home/linaro/workspace/dotproduct/e_task.c -o .objs/e_task.o
e-g++ -L/opt/adapteva/esdk/tools/host/lib -o bin/Debug/Edotproduct .objs/e_task.o -T /opt/adapteva/esdk/bsps/current/internal.ldf -le-hal -le-lib
/opt/adapteva/esdk.5.13.09.10/tools/e-gnu.armv7l/bin/../lib/gcc/epiphany-elf/4.8.2/../../../../epiphany-elf/bin/ld: skipping incompatible /opt/adapteva/esdk/tools/host/lib/libe-hal.so when searching for -le-hal
/opt/adapteva/esdk.5.13.09.10/tools/e-gnu.armv7l/bin/../lib/gcc/epiphany-elf/4.8.2/../../../../epiphany-elf/bin/ld: cannot find -le-hal
collect2: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 1 second(s))
1 error(s), 0 warning(s) (0 minute(s), 1 second(s))

could you please help me to find out which is the problem?. THANKS
fbt
 
Posts: 5
Joined: Thu Dec 17, 2015 11:55 am

Re: Code::Blocks - Good alternative to eclipse

Postby AndyC » Tue Jan 19, 2016 2:21 pm

HI,

I'm afraid I haven't got a setup for the parallella anymore I gave up on it so I can't look in detail at this.

The error you are seeing is that the libe-hal library is incompatible for some reason.

Can you paste here the output when you build the dot product example using the makefile from the sdk.

Cheers

Andy
AndyC
 
Posts: 184
Joined: Fri Jun 27, 2014 5:46 pm

Re: Code::Blocks - Good alternative to eclipse

Postby fbt » Tue Jan 26, 2016 12:12 pm

Hi Andy,
thwere is no output on the terminal when building files ... but the build.sh script is the following (hope it helps):

#!/bin/bash
set -e
ESDK=${EPIPHANY_HOME}
ELIBS=${ESDK}/tools/host/lib
EINCS=${ESDK}/tools/host/include
ELDF=${ESDK}/bsps/current/internal.ldf
SCRIPT=$(readlink -f "$0")
EXEPATH=$(dirname "$SCRIPT")
cd $EXEPATH
# Create the binaries directory
mkdir -p bin/
CROSS_PREFIX=
case $(uname -p) in
arm*)
# Use native arm compiler (no cross prefix)
CROSS_PREFIX=
;;
*)
# Use cross compiler
CROSS_PREFIX="arm-linux-gnueabihf-"
;;
esac
# Build HOST side application
${CROSS_PREFIX}gcc src/main.c -o bin/main.elf -I ${EINCS} -L ${ELIBS} -le-hal #-le-loader

# Build DEVICE side program
e-gcc -O3 -T ${ELDF} src/e_task.c -o bin/e_task.elf -le-lib -lm -ffast-math

# Convert ebinary to SREC file
e-objcopy --srec-forceS3 --output-target srec bin/e_task.elf bin/e_task.srec

thanks a lot for your help!
best regards
felix
fbt
 
Posts: 5
Joined: Thu Dec 17, 2015 11:55 am

Re: Code::Blocks - Good alternative to eclipse

Postby laideybug » Sat Feb 20, 2016 3:16 pm

Hi fbt,

I've been using Code::Blocks for development on the Parallella and have run into the same "cannot find -le-hal" problem. I was wondering if yourself or anyone else has found a solution for this?
laideybug
 
Posts: 7
Joined: Sat Feb 20, 2016 3:12 pm

Previous

Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 4 guests

cron