(09-23-2014, 03:38 PM)micheus Wrote:(09-23-2014, 03:31 PM)john doe Wrote: In the steps to build Erlang/OTP,Did you checked the instructions to build Erlang as I pointed in the HOWTO link?
threw some errors.Code:./otp_build autoconf
Maybe it's related to your autoconf version?
Quote:GNU autoconf of at least version 2.59
It worked without having to run the otp_build step.
Looking at those instructions now, I see why it worked anyway;
>If you are building Erlang/OTP from git you will need to run ./otp_build autoconf to generate the configure scripts.
I built it from the tarball, so that's why it worked without having to do that.
With Erlang/OTP built, I am now at the OpenCL part. I've downloaded the ARM Mali OpenCL SDK from http://malideveloper.arm.com/develop-for...pencl-sdk/ and am now Sourcery CodeBench Lite from http://www.mentor.com/embedded-software/...-gnu-linux which the Mali OpenCL SDK docs said I'd need. This step will likely take some time for me to understand. I'll post again once I have figured it out or if I get too confused to understand it.
The Sourcery CodeBench Lite I downloaded targets ARM but is for IA32. I don't know if they have an edition for ARM host. Either way, it seems to be not much more than a repackaging of GCC and related tools. I guess I'll have to try and get it working with the GCC that I have.
I was hoping it'd be as simple as this:
Code:
mkdir ~/bin
ln -s $( which g++ ) ~/bin/arm-none-linux-gnueabi-g++
ln -s $( which ar ) ~/bin/arm-none-linux-gnueabi-ar
export PATH=~/bin:$PATH
And that I would then be able to build their OpenCL example code.
But after having run make in the sobel sample directory, I get:
Code:
$ ./sobel
OpenCL error: Unknown error
Retrieving OpenCL platforms failed. common.cpp:233
Failed to create an OpenCL context. sobel.cpp:54
So I'm at a bit of a dead end. I guess I'll head back to the ODROID forums and ask for help there.