Go Down

Topic: IDE v1.6.10: compilation errors with ext library (Read 809 times) previous topic - next topic

rockn

I used my project with ext libraries, who Šµxist in project folder with relative path:

example: #include "libraries\LiquidCrystal_I2C.h"

On ver 1.6.7...8...9 all is OK. Today I installed new v1.6.10 and errors appeared.
(Windows XP SP3, AMD FM1, 4GB)

What changed in IDE v1.6.10?
With path #include "LiquidCrystal_I2C.h" and lyb's in project folder all is OK.

Projects are many and I do not want to change anything :( Maybe I'll downgrade to v1.6.7 :(.

Sorry if the topic is repeated and sorry for my bad english :).

DrAzzy

Can you enable verbose compile and post the output please?

Also - 1.6.9 and 1.6.5r5 are the two most recent "good" versions.
ATtiny core for 841+1634+828 and x313/x4/x5/x61/x7/x8 series Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts (some assembled), mosfets and awesome prototyping board in my store http://tindie.com/stores/DrAzzy

rockn

#2
Jul 30, 2016, 08:56 am Last Edit: Jul 30, 2016, 09:19 am by rockn Reason: Insert Text as Code
And I tried with "clean" instalation:I del other folders in Program files, Application Data, again installing. No change.

DrAzzy, please, here:
Code: [Select]
C:\Program Files\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files\Arduino\hardware" -tools "C:\Program Files\Arduino\tools-builder" -tools "C:\Program Files\Arduino\hardware\tools\avr" -built-in-libraries "C:\Program Files\Arduino\libraries" -libraries "D:\My Documents D\Arduino\libraries" -fqbn=arduino:avr:uno -ide-version=10610 -build-path "C:\DOCUME~1\Adm\LOCALS~1\Temp\build4a8d937a6b5a61274aad2952131c42c7.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\arduino_projects\dd_29\dd_29.ino"
C:\Program Files\Arduino\arduino-builder -compile -logger=machine -hardware "C:\Program Files\Arduino\hardware" -tools "C:\Program Files\Arduino\tools-builder" -tools "C:\Program Files\Arduino\hardware\tools\avr" -built-in-libraries "C:\Program Files\Arduino\libraries" -libraries "D:\My Documents D\Arduino\libraries" -fqbn=arduino:avr:uno -ide-version=10610 -build-path "C:\DOCUME~1\Adm\LOCALS~1\Temp\build4a8d937a6b5a61274aad2952131c42c7.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\arduino_projects\dd_29\dd_29.ino"
Using board 'uno' from platform in folder: C:\Program Files\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files\Arduino\hardware\arduino\avr
Detecting libraries used...
"C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard" "C:\DOCUME~1\Adm\LOCALS~1\Temp\build4a8d937a6b5a61274aad2952131c42c7.tmp\sketch\dd_29.ino.cpp" -o "nul"
"C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard" "C:\DOCUME~1\Adm\LOCALS~1\Temp\build4a8d937a6b5a61274aad2952131c42c7.tmp\sketch\dd_29.ino.cpp" -o "C:\DOCUME~1\Adm\LOCALS~1\Temp\build4a8d937a6b5a61274aad2952131c42c7.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
C:\arduino_projects\dd_29\dd_29.ino:9:118: fatal error: libraries\LiquidCrystal_I2C.h: No such file or directory

 #include "libraries\LiquidCrystal_I2C.h"         // https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library

                                                                                                                      ^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.




pert

I'm assuming libraries\LiquidCrystal_I2C.h is a subfolder of your sketch folder:

dd_29
|_dd_29.ino
|_libraries
   |_LiquidCrystal_I2C.h

This is no longer allowed in Arduino IDE 1.6.10. You need to move them to a src subfolder of your sketch folder:

dd_29
|_dd_29.ino
|_src
   |_libraries
       |_LiquidCrystal_I2C.h

and change the code to:
Code: [Select]
#include "src\libraries\LiquidCrystal_I2C.h"

The cause of the change is this: https://github.com/arduino/arduino-builder/pull/148

rockn

pert, Now it's working!

For simpe test I create "Hello Word" with LCD-I2C.
Code: [Select]

#include "src\libraries\LiquidCrystal_I2C.h"

LiquidCrystal_I2C lcd(0x27, 16, 2);
// -----------------
void setup() {
  lcd.begin();
  lcd.print("test");
}
// -----------------
void loop() {
}


I'll start adding new folders. I'd like to thank you for your help! It was very important to clarify what causes this issue.

rockn

But now is old problem with Windows XP:
Code: [Select]

collect2.exe: error: ld returned 5 exit status
exit status 1

Error compiling for board Arduino/Genuino Uno.


With v1.6.7, ... v1.6.9 replacing "ld.exe" from v1.0.5 helps me, now does not occur :(
Code: [Select]

c:/program files/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld.exe: unrecognized option '-plugin'

c:/program files/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld.exe: use the --help option for usage information

collect2.exe: error: ld returned 1 exit status
exit status 1

Error compiling for board Arduino/Genuino Uno.

Upgrade to win7 is not my options :(


rockn

elmaestrodetecno, tnx for idea, but replacement lc.exe from v1.0.5 to v1.6.10 not working on my case. In v1.6.9 and v1.6.8 it is my favorite variant.

I simple downgrade to v1.6.8 and wainting for next ver.

Go Up