Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem Include Libs in x.2 versions
05-02-2012, 09:10 PM, (This post was last modified: 06-02-2012, 09:27 PM by PaX.)
#1
Problem Include Libs in x.2 versions
IDE.- x.2 rev 255
Board: Pinguino32X OGT

I need make a i2c comunication... with this, IMU3000, and because a never make a i2c comunication, y try to learm form an example, i search in the examples folder, and i find in 10.Libraries the folder "Wire", and perfect, i tray compile some of those examples and all... all... crak...

  1. 24c64.pde
    Quote:Board: PIC32_Pinguino_OTG
    Proc: 32MX440F256H
    /opt/pinguino/255/source/define.h:8:20: fatal error: libI2C.c: No such file or directory
    error while linking /opt/pinguino/255/examples/10.Libraries/Wire/24c64.o
  2. digital_potentiometer.pde
    Quote:Board: PIC32_Pinguino_OTG
    Proc: 32MX440F256H
    /opt/pinguino/255/linux/p32/bin/../lib/gcc/mips-elf/4.5.2/../../../../mips-elf/include/stdint.h:53:22: error: conflicting types for 'int16_t'
    /opt/pinguino/255/linux/p32/bin/../lib/gcc/mips-elf/4.5.2/../../../../mips-elf/include/stdint.h:54:24: error: conflicting types for 'uint16_t'
    /opt/pinguino/255/examples/10.Libraries/Wire/Wire.h:27:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TwoWire'
    /opt/pinguino/255/examples/10.Libraries/Wire/Wire.h:64:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Wire'
    /opt/pinguino/255/source/user.c:19:3: error: 'Wire' undeclared (first use in this function)
    /opt/pinguino/255/source/user.c:26:3: error: 'Wire' undeclared (first use in this function)
    error while linking /opt/pinguino/255/examples/10.Libraries/Wire/digital_potentiometer.o
  3. LCDi2c.pde
    Quote:Board: PIC32_Pinguino_OTG
    Proc: 32MX440F256H
    /opt/pinguino/255/p32/include/pinguino/core/newlib.c:149:5: error: conflicting types for 'write'
    error while linking /opt/pinguino/255/examples/10.Libraries/Wire/LCDi2c.o
  4. master_reader.pde
    Quote:Board: PIC32_Pinguino_OTG
    Proc: 32MX440F256H
    /opt/pinguino/255/linux/p32/bin/../lib/gcc/mips-elf/4.5.2/../../../../mips-elf/include/stdint.h:53:22: error: conflicting types for 'int16_t'
    /opt/pinguino/255/linux/p32/bin/../lib/gcc/mips-elf/4.5.2/../../../../mips-elf/include/stdint.h:54:24: error: conflicting types for 'uint16_t'
    /opt/pinguino/255/examples/10.Libraries/Wire/Wire.h:27:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TwoWire'
    /opt/pinguino/255/examples/10.Libraries/Wire/Wire.h:64:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Wire'
    /opt/pinguino/255/source/user.c:17:3: error: 'Wire' undeclared (first use in this function)
    /opt/pinguino/255/source/user.c:23:3: error: 'Wire' undeclared (first use in this function)
    error while linking /opt/pinguino/255/examples/10.Libraries/Wire/master_reader.o
  5. slave.pde
    Quote:Board: PIC32_Pinguino_OTG
    Proc: 32MX440F256H
    /opt/pinguino/255/source/user.c:3:2: error: 'I2C' undeclared (first use in this function)
    error while linking /opt/pinguino/255/examples/10.Libraries/Wire/slave.o

This error repeat in all examples... (Wire Folder)... pls could u help me...
Reply
06-02-2012, 09:28 PM,
#2
RE: Problem Include Libs in x.2 versions
After many test, in different versions, 9.05, 208, 255 and r262(via svn), in all x.2 versions, the problem is when i put #include something, eeprom.c, serial.c, any libs, in all versions x.2..

I download again all fonts, and execute chmod -R 777 /opt/pinguino/, and execute Pinguino with sudo rigths... and for all get error like this
Quote:/opt/pinguino/develop/source/define.h:17:23: error: eepromlib.c: No such file or directory
Reply
04-04-2012, 11:17 PM,
#3
RE: Problem Include Libs in x.2 versions
I have the same problems. I can't compile any of library folder examples for my mx220. I am assuming there will be some re-writing. In fact, i tried to compile the examples, selecting different boards still resulted in failed compilation. I even added the #include<> for the relevant files and still no result.
Are there any soltions out there? I read wiki issues and it was mentioned that a library re-write would be needed. Any info on this?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)