How to build/install libi2c?

Robert S. Grimes rsg at alum.mit.edu
Fri Mar 7 18:03:09 UTC 2008


Thomas Doerfler wrote:
> Robert,
>
> libi2c is part of the cpukit, so it should be "just there" when you link
> your application with RTEMS.
>   
Hi Thomas,

Be where?  I looked at the libs (find powerpc-rtems -name '*.a') in my 
install point, and I couldn't find definitive evidence.

By the way, here is the error I'm getting

Making all in main
make[1]: Entering directory 
`/cygdrive/c/Home/ll/etill/development/apps/laser/main'
powerpc-rtems-g++ -B/usr/rtems/4.8/powerpc-rtems/virtex/lib/ -specs 
bsp_specs -qrtems   -g -Wall  -g    -mcpu=403 -Dppc405 -Dvirtex    
-I../include -I../../include -I../../../common/include -I
../../../common/include/commands -o o-optimize/app.exe   
o-optimize/app.o ../../lib/epp/o-optimize/libepp.a 
../../../common/src/eppcommon/o-optimize/libeppcommon.a
../../lib/epp/o-optimize/libepp.a(spi-fram-ramtron.o): In function 
`spi_fram_ramtron_read':
/cygdrive/c/Home/ll/etill/development/apps/lib/spi/spi-fram-ramtron.c:285: 
undefined reference to `rtems_libi2c_ioctl'
../../lib/epp/o-optimize/libepp.a(spi-fram-ramtron.o): In function 
`spi_fram_ramtron_write':
/cygdrive/c/Home/ll/etill/development/apps/lib/spi/spi-fram-ramtron.c:133: 
undefined reference to `rtems_libi2c_ioctl'
/cygdrive/c/Home/ll/etill/development/apps/lib/spi/spi-fram-ramtron.c:186: 
undefined reference to `rtems_libi2c_ioctl'
collect2: ld returned 1 exit status

Thanks,
-Bob
> wkr,
> Thomas.
>
> Robert S. Grimes schrieb:
>   
>> Hi all,
>>
>> How do I get libi2c to build?
>>
>> I'm guessing it would normally get built by the BSP, right?  However,
>> I'm trying to develop a driver as part of my application, and the
>> powerpc/virtex BSP doesn't use libi2c.  Is there a special make target?
>> Or a configure option?  Something else?
>>
>> Thanks!
>> -Bob
>> _______________________________________________
>> rtems-users mailing list
>> rtems-users at rtems.com
>> http://rtems.rtems.org/mailman/listinfo/rtems-users
>>     
>
>
> --
> --------------------------------------------
> embedded brains GmbH
> Thomas Doerfler           Obere Lagerstr. 30
> D-82178 Puchheim          Germany
> Tel. : +49-89-18 90 80 79-2
> Fax  : +49-89-18 90 80 79-9
> email: Thomas.Doerfler at embedded-brains.de
> PGP public key available on request
>
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>
>   




More information about the users mailing list