[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[mihini-dev] Mihini Cross Compilation
|
Hello All,
I'm doing some more debugging and I
had some issues with my Mihini cross-compilation. I saw that the "Run
As" approach in LDT, the runtime was looking for some packages under
the directory /opt/[...]. Instead of instructing the "Run As"
approach to look for the .so in a different location than "/opt/[...]",
which I am not really sure how to do, I decided to give a try to the Cross
Compilation, so that I could use my own .deb with dpkg to place the files
at the default locations.
After some time, I figured out that
we're supposed to use a 32 bit OS with the Linaro toolchain, so I edited
the page:
http://wiki.eclipse.org/Mihini/Cross_Compilation
to include this:
Please, note that these steps have
been validated on a 32 bit OS. Trying to run it on a 64 bit OS may give
you errors when trying the build.sh .
---
You can see the error that I has having
on my 64 bit Debian at the end of this message (in summary: The C compiler
"/home/marcelo/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian//bin/arm-linux-gnueabihf-gcc"
is not able to compile a simple
test program.).
On a 32 bit Debian, everything went
fine.
However, since I wanted to give a try
to the devicetree GPIO approach, I tried to do:
make gpio
make make agent_treemgr_gpio
but these did not succeed. Doing the
make package
didn't seem to be building gpio ou agent_treemgr_gpio
modules.
I do not know much about building these
libraries, so if you can fix this issue or give me good pointers/background
on how to investigate/fix it, I'd really appreciate.
Thanks,
Marcelo
===
>>> Set TARGET type to raspberrypi-linaro
>>> Set BUILD DIRECTORY to
default value: /home/marcelo/mihini-repo/build.raspberrypi-linaro
-- The C compiler identification is
unknown
-- The CXX compiler identification is
unknown
-- Check for working C compiler: /home/marcelo/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian//bin/arm-linux-gnueabihf-gcc
-- Check for working C compiler: /home/marcelo/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian//bin/arm-linux-gnueabihf-gcc
-- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52
(MESSAGE):
The C compiler
"/home/marcelo/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian//bin/arm-linux-gnueabihf-gcc"
is not able to compile a simple
test program.
It fails with the following output:
Change Dir: /home/marcelo/mihini-repo/build.raspberrypi-linaro/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make
"cmTryCompileExec482163478/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec482163478.dir/build.make
CMakeFiles/cmTryCompileExec482163478.dir/build
make[1]: Entering directory
`/home/marcelo/mihini-repo/build.raspberrypi-linaro/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/home/marcelo/mihini-repo/build.raspberrypi-linaro/CMakeFiles/CMakeTmp/CMakeFiles
1
Building C object
CMakeFiles/cmTryCompileExec482163478.dir/testCCompiler.c.o
/home/marcelo/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc
-o CMakeFiles/cmTryCompileExec482163478.dir/testCCompiler.c.o
-c
/home/marcelo/mihini-repo/build.raspberrypi-linaro/CMakeFiles/CMakeTmp/testCCompiler.c
make[1]:
/home/marcelo/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc:
Command not found
make[1]: Leaving directory
`/home/marcelo/mihini-repo/build.raspberrypi-linaro/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec482163478.dir/testCCompiler.c.o]
Error 127
make: *** [cmTryCompileExec482163478/fast]
Error 2
CMake will not be able to correctly
generate this project.
Call Stack (most recent call first):
CMakeLists.txt:17 (PROJECT)
-- Configuring incomplete, errors occurred!
Command "cmake -DCMAKE_TOOLCHAIN_FILE=/home/marcelo/mihini-repo/cmake/toolchain.raspberrypi-linaro.cmake
-DPLATFORM=raspberrypi-linaro -DCMAKE_BUILD_TYPE=Release /home/marcelo/mihini-repo"
failed
Best,
Marcelo Nery dos Santos
Research Software Engineer
Phone:
55-21-2132-3663
E-mail:
mnerys@xxxxxxxxxx
| Av.
Pasteur 146 & 138
Rio De Janeiro, RJ
22290-240 - Brazil |