Author Topic: arm-linux-gcc, Codeblocks 8.2, Ubuntu 8.10  (Read 18048 times)

dclf34

  • Guest
arm-linux-gcc, Codeblocks 8.2, Ubuntu 8.10
« on: March 22, 2009, 02:27:19 am »
Any ideas on how to setup  arm-linux-gcc toolchain in Ubuntu 8.10 so i can start working with codeblocks
Do you have general guideline on what to setup and how to configure C::B

I have setup an installation ... and a compiler profile named ARMLINUXGCC

I try to compile this basic project
Code
#include <stdio.h>
#include <stdlib.h>

int main()
{
    printf("Hello world!\n");
    return 0;
}

and i get
Code
-------------- Build: Release in www ---------------

arm-linux-gcc     -I/usr/korebot-tools-0.1.2/libkorebot-1.12/build-korebot/include -I/usr/korebot-tools-0.1.2/include  -c main.c -o obj/Release/main.o
arm-linux-gcc: installation problem, cannot exec `cpp0': No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
 

...next i seacrched for cpp0 n all the directory structure of my pc and founded
Code
user@mypc:$ cd / && sudo find -name cpp0
 ./usr/korebot-tools-0.1.2/lib/gcc-lib/arm-linux/2.95.3/cpp0

thus added in compiler ARMLINUXGCC settings in additional paths ie

[toolchain executables]
additional paths --> /usr/korebot-tools-0.1.2/lib/gcc-lib/arm-linux/2.95.3

tried to rebuild the project and got
Code
||=== www, Release ===|
/usr/korebot-tools-0.1.2/include/stdio.h|34|stddef.h: No such file or directory|
/usr/korebot-tools-0.1.2/include/bits/types.h|29|stddef.h: No such file or directory|
/usr/korebot-tools-0.1.2/include/_G_config.h|14|stddef.h: No such file or directory|
/usr/korebot-tools-0.1.2/include/wchar.h|48|stddef.h: No such file or directory|
/usr/korebot-tools-0.1.2/include/wchar.h|48|stddef.h: No such file or directory|
/usr/korebot-tools-0.1.2/include/gconv.h|31|stddef.h: No such file or directory|
/usr/korebot-tools-0.1.2/include/libio.h|53|stdarg.h: No such file or directory|
/usr/korebot-tools-0.1.2/include/stdlib.h|33|stddef.h: No such file or directory|
/usr/korebot-tools-0.1.2/include/sys/types.h|146|stddef.h: No such file or directory|
/usr/korebot-tools-0.1.2/include/alloca.h|25|stddef.h: No such file or directory|
||=== Build finished: 10 errors, 0 warnings ===|


what am i missing ?
permissions in /usr directories i created?
is developing in linux not supported ???


great thanx in advace !
« Last Edit: March 22, 2009, 02:32:26 am by dclf34 »

Offline doragasu

  • Single posting newcomer
  • *
  • Posts: 7
Re: arm-linux-gcc, Codeblocks 8.2, Ubuntu 8.10
« Reply #1 on: May 05, 2009, 06:26:39 pm »
I'm also using Ubuntu 8.10 and I can build applications for my beagleboard (ARM Cortex A8) without problems. Maybe you need to add /usr/korebot-tools-0.1.2/lib/gcc-lib/arm-linux/2.95.3 to your PATH environment variable. If you haven't done it yet, you can add this line to the end of the .profile file in your home directory, and then restart your session for the changes to take effect:

export PATH=$PATH:/usr/korebot-tools-0.1.2/lib/gcc-lib/arm-linux/2.95.3

Good luck.