This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Which linux lib are allowed on DM816x

I have just received my DM816x... board and wonder if i can use linux lib which are not (yet) in the directory ti-ezsdk_dm816x-evm_5_02_02_60/linux-devkit/arm-none-linux-gnueabi/lib ?

It means that usually with apt-get you have package compiled for your hardware and software, so how souhld i do to have libs adapted to my board hardware and software ?

 

For information, i would like to use the openGL lib.

 

Thank you for your help,

 

Bat

  • I copied /usr/lib/libgl* on a specific directory and i added this directory to my makefile, but i have an linker error:

    /home/banc/Desktop/CodeSourceryLite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: skipping incompatible /home/banc/ti-ezsdk_dm816x-evm_5_02_02_60/linux-devkit/arm-none-linux-gnueabi/usr/lib/addedlib//libglut.so when searching for -lglut

    I assume that the freeglut3 lib installed on my computer is not compiled for the target HW and SW, how can i use this lib in my makefile ?

     

    Should i compiled this lib with the target gcc ? if yes, how should i do that ?

     

    Any information would be great,

     

    Bat

  • I downloaded freeglut source files, i tried to use the ./configure instruction but i always have errors...

    Here is my ./configure command :

    ./configure --prefix=/home/banc_dt_078/freeglut/PERSO_LIB CC=/home/banc_dt_078/Desktop/CodeSourceryLite//bin/arm-none-linux-gnueabi-gcc CFLAGS='-Dxdc_target_types__=ti/targets/std.h -g -I/home/banc_dt_078/Desktop/CodeSourceryLite/arm-none-linux-gnueabi/libc/usr/include -I/home/banc_dt_078/ti-ezsdk_dm816x-evm_5_02_02_60/linux-devkit/arm-none-linux-gnueabi/usr/include'

    Here is the extract of the config.log file:

    ## --------- ##
    ## Platform. ##
    ## --------- ##

    hostname = banc-dt-078
    uname -m = i686
    uname -r = 2.6.32-33-generic
    uname -s = Linux
    uname -v = #70-Ubuntu SMP Thu Jul 7 21:09:46 UTC 2011

    /usr/bin/uname -p = unknown
    /bin/uname -X     = unknown

    /bin/arch              = unknown
    /usr/bin/arch -k       = unknown
    /usr/convex/getsysinfo = unknown
    /usr/bin/hostinfo      = unknown
    /bin/machine           = unknown
    /usr/bin/oslevel       = unknown
    /bin/universe          = unknown

    PATH: /usr/local/sbin
    PATH: /usr/local/bin
    PATH: /usr/sbin
    PATH: /usr/bin
    PATH: /sbin
    PATH: /bin
    PATH: /usr/games


    ## ----------- ##
    ## Core tests. ##
    ## ----------- ##

    configure:2181: checking for a BSD-compatible install
    configure:2249: result: /usr/bin/install -c
    configure:2260: checking whether build environment is sane
    configure:2310: result: yes
    configure:2451: checking for a thread-safe mkdir -p
    configure:2490: result: /bin/mkdir -p
    configure:2503: checking for gawk
    configure:2519: found /usr/bin/gawk
    configure:2530: result: gawk
    configure:2541: checking whether make sets $(MAKE)
    configure:2563: result: yes
    configure:2700: checking for gcc
    configure:2727: result: /home/banc_dt_078/Desktop/CodeSourceryLite//bin/arm-none-linux-gnueabi-gcc
    configure:2956: checking for C compiler version
    configure:2965: /home/banc_dt_078/Desktop/CodeSourceryLite//bin/arm-none-linux-gnueabi-gcc --version >&5
    arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q1-203) 4.3.3
    Copyright (C) 2008 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    configure:2976: $? = 0
    configure:2965: /home/banc_dt_078/Desktop/CodeSourceryLite//bin/arm-none-linux-gnueabi-gcc -v >&5
    Using built-in specs.
    Target: arm-none-linux-gnueabi
    Configured with: /scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/src/gcc-4.3/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --with-specs='%{funwind-tables|fno-unwind-tables|mabi=*|ffreestanding|nostdlib:;:-funwind-tables}' --enable-languages=c,c++ --enable-shared --enable-symvers=gnu --enable-__cxa_atexit --with-pkgversion='Sourcery G++ Lite 2009q1-203' --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc --with-build-sysroot=/scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/lite/install/arm-none-linux-gnueabi/libc --with-gmp=/scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/lite/obj/host-libs-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --with-mpfr=/scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/lite/obj/host-libs-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --disable-libgomp --enable-poison-system-directories --with-build-time-tools=/scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/lite/install/arm-none-linux-gnueabi/bin --with-build-time-tools=/scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/lite/install/arm-none-linux-gnueabi/bin
    Thread model: posix
    gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203)
    configure:2976: $? = 0
    configure:2965: /home/banc_dt_078/Desktop/CodeSourceryLite//bin/arm-none-linux-gnueabi-gcc -V >&5
    arm-none-linux-gnueabi-gcc: '-V' option must have argument
    configure:2976: $? = 1
    configure:2965: /home/banc_dt_078/Desktop/CodeSourceryLite//bin/arm-none-linux-gnueabi-gcc -qversion >&5
    arm-none-linux-gnueabi-gcc: unrecognized option '-qversion'
    arm-none-linux-gnueabi-gcc: no input files
    configure:2976: $? = 1
    configure:2996: checking whether the C compiler works
    configure:3018: /home/banc_dt_078/Desktop/CodeSourceryLite//bin/arm-none-linux-gnueabi-gcc -Dxdc_target_types__=ti/targets/std.h -g -I/home/banc_dt_078/Desktop/CodeSourceryLite/arm-none-linux-gnueabi/libc/usr/include -I/home/banc_dt_078/ti-ezsdk_dm816x-evm_5_02_02_60/linux-devkit/arm-none-linux-gnueabi/usr/include   conftest.c  >&5
    configure:3022: $? = 0
    configure:3071: result: yes
    configure:3074: checking for C compiler default output file name
    configure:3076: result: a.out
    configure:3082: checking for suffix of executables
    configure:3089: /home/banc_dt_078/Desktop/CodeSourceryLite//bin/arm-none-linux-gnueabi-gcc -o conftest -Dxdc_target_types__=ti/targets/std.h -g -I/home/banc_dt_078/Desktop/CodeSourceryLite/arm-none-linux-gnueabi/libc/usr/include -I/home/banc_dt_078/ti-ezsdk_dm816x-evm_5_02_02_60/linux-devkit/arm-none-linux-gnueabi/usr/include   conftest.c  >&5
    configure:3093: $? = 0
    configure:3115: result:
    configure:3137: checking whether we are cross compiling
    configure:3145: /home/banc_dt_078/Desktop/CodeSourceryLite//bin/arm-none-linux-gnueabi-gcc -o conftest -Dxdc_target_types__=ti/targets/std.h -g -I/home/banc_dt_078/Desktop/CodeSourceryLite/arm-none-linux-gnueabi/libc/usr/include -I/home/banc_dt_078/ti-ezsdk_dm816x-evm_5_02_02_60/linux-devkit/arm-none-linux-gnueabi/usr/include   conftest.c  >&5
    configure:3149: $? = 0
    configure:3156: ./conftest
    ./configure: line 3158: ./conftest: cannot execute binary file
    configure:3160: $? = 126
    configure:3167: error: in `/home/banc_dt_078/Desktop/PARTAGE/OpenGL/freeglut/freeglut-2.6.0':
    configure:3171: error: cannot run C compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details.

    It appears that the cross compilation test bug, do you know why ?

     

    Even if i  had the --host compilation option, cf config.log extract with the following command:

    ./configure --prefix=/home/banc_dt_078/freeglut/PERSO_LIB CC='/home/banc_dt_078/Desktop/CodeSourceryLite//bin/arm-none-linux-gnueabi-gcc --host' CFLAGS='-Dxdc_target_types__=ti/targets/std.h -g -I/home/banc_dt_078/Desktop/CodeSourceryLite/arm-none-linux-gnueabi/libc/usr/include -I/home/banc_dt_078/ti-ezsdk_dm816x-evm_5_02_02_60/linux-devkit/arm-none-linux-gnueabi/usr/include'

    config.log:

    cc1: error: unrecognized command line option "-fhost"
    configure:3022: $? = 1
    configure:3060: result: no
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "freeglut library"
    | #define PACKAGE_TARNAME "freeglut"
    | #define PACKAGE_VERSION "2.6.0"
    | #define PACKAGE_STRING "freeglut library 2.6.0"
    | #define PACKAGE_BUGREPORT "freeglut-bugs@lists.sourceforge.net"
    | #define PACKAGE_URL ""
    | #define PACKAGE "freeglut"
    | #define VERSION "2.6.0"
    | /* end confdefs.h.  */
    |
    | int
    | main ()
    | {
    |
    |   ;
    |   return 0;
    | }
    configure:3065: error: in `/home/banc_dt_078/Desktop/PARTAGE/OpenGL/freeglut/freeglut-2.6.0':
    configure:3069: error: C compiler cannot create executables
    See `config.log' for more details.

    Do you have a clue ?

    thx

     

    Bat

  • Hi Bat,

    I'm not familar with freeglut, but looking at the arguments passed to ./configure, it looks  --host isn't correct. Can you try adding  <codesourcery installation>/bin to your PATH and then running configure with --host=arm-none-linux-gnueabi

    There maybe other arguments you need to set and other dependent libraries you may need to first download and stage.