Author Topic: C::B as IDE for Arduino, ESP8266 and similar  (Read 11092 times)

Offline g2003p

  • Single posting newcomer
  • *
  • Posts: 3
C::B as IDE for Arduino, ESP8266 and similar
« on: March 28, 2016, 12:41:53 pm »
Hi,

there is an awsome tool which does all the project managment and compiling for all the current boards from command line: http://platformio.org/

To use C::B as IDE I did this:
Add *.ino to Settings/Environment/File extensions handling.
Create PlatformIO project : platformio init --ide sublimetext --board uno
Add (example) source code file(s) .
Copy PlatformIO-Template.cbp into project folder.
Edit  PlatformIO-Template.cbp to reflect your environment!
Open  PlatformIO-Template.cbp, add source files, run.

Additional:
Open Project/target options, add C/C++ parser options:
.pioenvs/uno/FrameworkArduino,
add similar pathes from .pioenvs if libraries are used. Maybe there is a more comfortable way to enable parser / code completion? 







Offline stahta01

  • Lives here!
  • ****
  • Posts: 6613
    • My Best Post
Re: C::B as IDE for Arduino, ESP8266 and similar
« Reply #1 on: March 28, 2016, 05:49:52 pm »
Edit: The OP attachment is a CB project that changes the custom CB makefile commands to do what the OP wants.

Instead of using "C:/Python27/Scripts" in your CB Project multiple times,
I would suggest a project user/custom variable set to either "C:/Python27/Scripts"  or "C:/Python27".
It is possible an CB Global variable would be a better choice than an project user/custom variable.

I do NOT use CC so, I have no help to give you on your code completion question.

http://wiki.codeblocks.org/index.php/Global_compiler_variables

Tim S.

 
« Last Edit: March 28, 2016, 05:51:46 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

ivan.kravets

  • Guest
Re: C::B as IDE for Arduino, ESP8266 and similar
« Reply #2 on: March 30, 2016, 12:21:26 pm »
Dear @stahta01,

We have added Project Generator for CodeBlocks in the latest development branch. See https://github.com/platformio/platformio/issues/600

How to try it?
1. Install development version
2. Generate project for CodeBlocks:
Code: [Select]
> platformio init --ide codeblocks --board uno3. Import generated project.

Does it work for you?

Regards, Ivan Kravets
The PlatformIO Team

Offline g2003p

  • Single posting newcomer
  • *
  • Posts: 3
Re: C::B as IDE for Arduino, ESP8266 and similar
« Reply #3 on: March 31, 2016, 01:51:46 pm »
Dear Ivan,

works perfect. Congratulation, thank you.

Regards,

Gottfried

Offline AZ

  • Multiple posting newcomer
  • *
  • Posts: 115
Re: C::B as IDE for Arduino, ESP8266 and similar
« Reply #4 on: June 15, 2016, 03:36:14 am »
If i may to piggyback on this thread.
i installed the platformio.
created the project :
Code: [Select]
[az@toshiba CB_Prj]$ mkdir ./CB_Prj
[az@toshiba CB_Prj]$ cd CB_Prj/
[az@toshiba CB_Prj]$ platformio init --ide codeblocks --board uno

I can open the project in CB. But when i try to add an ino file - it won't open in the CB, but, at the same time i will NOT get any error messages.
Next if i proceed to compile, i'll get a compilation error ("fatal error: aprintf.h: No such file or directory") and the ino file will "appear" in the CB.
please advise.

Here is the debug from the CB:
Code: [Select]
<skip initial messages>

Loading toolbar...
Initializing plugins...
KeyBinder failed UpdateById on[795][Target's default]
Loading project file...
Parsing project file...
Loading target Debug
Loading target Release
Loading project files...
1 files loaded
Done loading project in 2ms
Project's base path: /home/az/Dropbox/work/Arduino/Sketches/Examples/PlatformIO_PJ/
Project's common toplevel path: /home/az/Dropbox/work/Arduino/Sketches/Examples/PlatformIO_PJ/
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include/c++/5.3.1
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include/c++/5.3.1/x86_64-redhat-linux
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include/c++/5.3.1/backward
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/lib/gcc/x86_64-redhat-linux/5.3.1/include
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/local/include
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include
NativeParser::GetCompilerUsingStandardGCC(): Using language standard: -std=c++11
NativeParser::AddCompilerPredefinedMacrosGCC: Caching predefined macros for compiler '/usr/bin/g++':
#define __DBL_MIN_EXP__ (-1021)
#define __cpp_attributes 200809
<skip>
#define __ATOMIC_ACQ_REL 4
#define __ATOMIC_RELEASE 3

NativeParser::DoFullParsing(): Adding cpp/c files to batch-parser
ClassBrowser::UpdateClassBrowserView(): No active project available.
NativeParser::CreateParser(): Finish creating a new parser for project 'PlatformIO_PJ'
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
NativeParser::OnParserStart(): Starting batch parsing for project 'PlatformIO_PJ'...
NativeParser::OnParserEnd(): Project 'PlatformIO_PJ' parsing stage done!
Project 'PlatformIO_PJ' parsing stage done (1 total parsed files, 282 tokens in 0 minute(s), 0.009 seconds).
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/variants/standard/ , 1
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/cores/arduino/ , 19
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/Bridge/src/ , 11
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/EEPROM/src/ , 1
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/Esplora/src/ , 1
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/Ethernet/src/ , 9
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/Firmata/ , 11
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/GSM/src/ , 35
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/HID/src/ , 1
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/Keyboard/src/ , 1
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/LiquidCrystal/src/ , 1
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/Mouse/src/ , 1
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/RobotIRremote/src/ , 3
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/Robot_Control/src/ , 19
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/Robot_Motor/src/ , 4
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/SD/src/ , 8
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/SPI/src/ , 1
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/Scheduler/src/ , 1
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/Servo/src/ , 4
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/SoftwareSerial/src/ , 1
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/SpacebrewYun/src/ , 1
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/Stepper/src/ , 1
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/TFT/src/ , 4
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/Temboo/src/ , 37
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/USBHost/src/ , 11
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/WiFi/src/ , 11
SystemHeadersThread: /home/az/.platformio/packages/framework-arduinoavr/libraries/Wire/src/ , 2
SystemHeadersThread: /home/az/.platformio/packages/toolchain-atmelavr/avr/include/ , 307
SystemHeadersThread: /home/az/.platformio/packages/toolchain-atmelavr/lib/gcc/avr/4.8.1/include/ , 13
SystemHeadersThread: /home/az/.platformio/packages/toolchain-atmelavr/lib/gcc/avr/4.8.1/include-fixed/ , 3
SystemHeadersThread: /usr/include/c++/5.3.1/ , 631
SystemHeadersThread: /usr/include/c++/5.3.1/x86_64-redhat-linux/ , 46
SystemHeadersThread: /usr/include/c++/5.3.1/backward/ , 8
SystemHeadersThread: /usr/lib/gcc/x86_64-redhat-linux/5.3.1/include/ , 99
SystemHeadersThread: /usr/local/include/ , 0
SystemHeadersThread: /usr/include/ , 1706
SystemHeadersThread: Total number of paths: 36
CWD for depslib was: /home/az/Dropbox/work/Arduino/Sketches/Examples/PlatformIO_PJ.
CWD for depslib is: /home/az/Dropbox/work/Arduino/Sketches/Examples/PlatformIO_PJ.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/az/Dropbox/work/Arduino/Sketches/Examples/PlatformIO_PJ.
CWD for depslib is: /home/az/Dropbox/work/Arduino/Sketches/Examples/PlatformIO_PJ.
-------------- Clean: Debug in PlatformIO_PJ (compiler: GNU GCC Compiler)---------------
Executing clean command: /bin/platformio -f -c codeblocks run -t clean
[Tue Jun 14 23:06:43 2016] Processing uno (platform: atmelavr, board: uno, framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------
======================================================== [SUCCESS] Took 1.52 seconds ========================================================
Cleaned "PlatformIO_PJ - Debug"
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/az/Dropbox/work/Arduino/Sketches/Examples/PlatformIO_PJ.
CWD for depslib is: /home/az/Dropbox/work/Arduino/Sketches/Examples/PlatformIO_PJ.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/az/Dropbox/work/Arduino/Sketches/Examples/PlatformIO_PJ.
CWD for depslib is: /home/az/Dropbox/work/Arduino/Sketches/Examples/PlatformIO_PJ.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/az/Dropbox/work/Arduino/Sketches/Examples/PlatformIO_PJ.
CWD for depslib is: /home/az/Dropbox/work/Arduino/Sketches/Examples/PlatformIO_PJ.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/az/Dropbox/work/Arduino/Sketches/Examples/PlatformIO_PJ.
CWD for depslib is: /home/az/Dropbox/work/Arduino/Sketches/Examples/PlatformIO_PJ.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/az/Dropbox/work/Arduino/Sketches/Examples/PlatformIO_PJ.
CWD for depslib is: /home/az/Dropbox/work/Arduino/Sketches/Examples/PlatformIO_PJ.
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/az/Dropbox/work/Arduino/Sketches/Examples/PlatformIO_PJ.
CWD for depslib is: /home/az/Dropbox/work/Arduino/Sketches/Examples/PlatformIO_PJ.
-------------- Build: Debug in PlatformIO_PJ (compiler: GNU GCC Compiler)---------------
Scanned 0 files for #includes, cache used 0, cache updated 0
Checking if target is up-to-date: 1
Running command: /bin/platformio -f -c codeblocks run
[Tue Jun 14 23:06:47 2016] Processing uno (platform: atmelavr, board: uno, framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------
avr-g++ -o .pioenvs/uno/src/tmp_ino_to.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DPLATFORMIO=021001 -DARDUINO_ARCH_AVR -DARDUINO_AVR_UNO -DARDUINO=10608 -I.pioenvs/uno/FrameworkArduino -I.pioenvs/uno/FrameworkArduinoVariant -Isrc src/tmp_ino_to.cpp
avr-ar rcs .pioenvs/uno/libFrameworkArduinoVariant.a
avr-g++ -o .pioenvs/uno/FrameworkArduino/CDC.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DPLATFORMIO=021001 -DARDUINO_ARCH_AVR -DARDUINO_AVR_UNO -DARDUINO=10608 -I.pioenvs/uno/FrameworkArduino -I.pioenvs/uno/FrameworkArduinoVariant .pioenvs/uno/FrameworkArduino/CDC.cpp
avr-ranlib .pioenvs/uno/libFrameworkArduinoVariant.a
avr-g++ -o .pioenvs/uno/FrameworkArduino/HardwareSerial.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DPLATFORMIO=021001 -DARDUINO_ARCH_AVR -DARDUINO_AVR_UNO -DARDUINO=10608 -I.pioenvs/uno/FrameworkArduino -I.pioenvs/uno/FrameworkArduinoVariant .pioenvs/uno/FrameworkArduino/HardwareSerial.cpp
/home/az/Dropbox/work/Arduino/Sketches/Examples/PlatformIO_PJ/src/LED_turnonoff.ino:1:21: fatal error: aprintf.h: No such file or directory
#include "aprintf.h"
^
compilation terminated.
scons: *** [.pioenvs/uno/src/tmp_ino_to.o] Error 1
======================================================== [ ERROR ] Took 3.21 seconds ========================================================
Process terminated with status 1 (0 minute(s), 5 second(s))
1 error(s), 0 warning(s) (0 minute(s), 5 second(s))
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 41)
Editor Open
NativeParser::GetAllPathsByFilename(): Traversing '/home/az/Dropbox/work/Arduino/Sketches/Examples/PlatformIO_PJ/src' for: LED_turnonoff.*
NativeParser::GetAllPathsByFilename(): Found 0 files:
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.

P.S. rename zip -> tgz
« Last Edit: June 15, 2016, 08:31:28 am by AZ »
CB: latest available from Jen's RPM repo for Fedora
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11939
    • Travis build status
Re: C::B as IDE for Arduino, ESP8266 and similar
« Reply #5 on: June 15, 2016, 08:39:03 am »
I can open the project in CB. But when i try to add an ino file - it won't open in the CB, but, at the same time i will NOT get any error messages.
What exactly do you do to add the file?

Quote
Next if i proceed to compile, i'll get a compilation error ("fatal error: aprintf.h: No such file or directory") and the ino file will "appear" in the CB.
please advise.
Do you have this file in the search paths specified in the Project -> Build options -> <your target> -> Search paths -> Compiler or in the Settings -> Compiler -> <your compiler> or in the default search paths of your compiler?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline AZ

  • Multiple posting newcomer
  • *
  • Posts: 115
Re: C::B as IDE for Arduino, ESP8266 and similar
« Reply #6 on: June 15, 2016, 08:50:34 am »
What exactly do you do to add the file?


I right click on the project and "add file" . It appears under the "Others", but won't open in the editor.

No i don't have this ino file specified in the search directories. Do i have to ?


So apparently the problem was with me adding the wrong sketch.

Once i gave it the correct sketch i was able to compile and deploy it.
Now, where is the the serial monitor?

Also the sketch is loaded as "plain text" file. Is there a better way to treat sketches?
« Last Edit: June 15, 2016, 05:02:41 pm by AZ »
CB: latest available from Jen's RPM repo for Fedora
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11939
    • Travis build status
Re: C::B as IDE for Arduino, ESP8266 and similar
« Reply #7 on: June 15, 2016, 07:59:32 pm »
Now, where is the the serial monitor?
There is no such thing...

Also the sketch is loaded as "plain text" file. Is there a better way to treat sketches?
Either rename the file to .cpp or add the .ino in the sources list in Project ->Project tree -> Edit file types & categories.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline AZ

  • Multiple posting newcomer
  • *
  • Posts: 115
Re: C::B as IDE for Arduino, ESP8266 and similar
« Reply #8 on: June 15, 2016, 08:56:18 pm »
Now, where is the the serial monitor?
There is no such thing...

Also the sketch is loaded as "plain text" file. Is there a better way to treat sketches?
Either rename the file to .cpp or add the .ino in the sources list in Project ->Project tree -> Edit file types & categories.

got it. Thank you.

i just ( doh :( ) realized that the "Arduino project" wizard that i have installed with CB is done by Stanley Huang from arduinodev/codebloks. At the same time your project https://github.com/obfuscated/cb_arduino_template - looks very close to the wizard.

So do i have to remove that wizard somehow and install your template? And if that is true - how do i go about it ?
Thank you
CB: latest available from Jen's RPM repo for Fedora
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11939
    • Travis build status
Re: C::B as IDE for Arduino, ESP8266 and similar
« Reply #9 on: June 15, 2016, 09:58:51 pm »
My template is improved version of two previous attempts.
I don't know what is the state of the arduino wizard shipped with 16.01 or newer.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline AZ

  • Multiple posting newcomer
  • *
  • Posts: 115
Re: C::B as IDE for Arduino, ESP8266 and similar
« Reply #10 on: June 15, 2016, 10:16:02 pm »
My template is improved version of two previous attempts.
I don't know what is the state of the arduino wizard shipped with 16.01 or newer.

So what is the preferred tool to develop for arduino -
Using the template or platform ?

I've got platformio method working right away.
CB: latest available from Jen's RPM repo for Fedora
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11939
    • Travis build status
Re: C::B as IDE for Arduino, ESP8266 and similar
« Reply #11 on: June 15, 2016, 11:28:09 pm »
I'm using my template and it works fine. And when it doesn't work I'm fixing and improving it.
I've not used it to create a project for a long time.
But I'm doing some arduino work at the moment and I'll test it again very soon.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline AZ

  • Multiple posting newcomer
  • *
  • Posts: 115
Re: C::B as IDE for Arduino, ESP8266 and similar
« Reply #12 on: June 16, 2016, 04:22:05 am »
I'm using my template and it works fine. And when it doesn't work I'm fixing and improving it.
I've not used it to create a project for a long time.
But I'm doing some arduino work at the moment and I'll test it again very soon.

I'm confused now. In the other thread you said ":
FIY: My template seems to be outdated and doesn't work with the latest master of arduion. Only arduino 1.0.x and not 1.5 or 1.6!
"
Are we talking about the same things? Or you are developing on 1.0?
CB: latest available from Jen's RPM repo for Fedora
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11939
    • Travis build status
Re: C::B as IDE for Arduino, ESP8266 and similar
« Reply #13 on: June 16, 2016, 06:28:46 am »
I'm no idea what you are talking about, because you're not telling me.
The only thing I talk about is - https://github.com/obfuscated/cb_arduino_template
I know nothing about the template in cb. It wasn't added by me, nor I've used it.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline AZ

  • Multiple posting newcomer
  • *
  • Posts: 115
Re: C::B as IDE for Arduino, ESP8266 and similar
« Reply #14 on: June 16, 2016, 05:16:20 pm »
I'm no idea what you are talking about, because you're not telling me.
The only thing I talk about is - https://github.com/obfuscated/cb_arduino_template
I know nothing about the template in cb. It wasn't added by me, nor I've used it.
oh the beauty of miscommunication :).

Let me state my understanding of what CB has at the moment for  arduino development.
1. using CB i can create a initial project using "arduino project" wizard
2. One the project is created it _seems_ to be using your template ( https://github.com/obfuscated/cb_arduino_template) to create initial set of files and (probably?) compiler settings, etc.
And the problem is:
1. This initial project with the basic sketch won't get compiled because the compiler incorrectly points to the libraries:
 
Code: [Select]

-------------- Build: Arduino Uno in Test_2 (compiler: GNU GCC Compiler for AVR)---------------

avr-g++ -DF_CPU=16000000L -DARDUINO=103 -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -Wall -mmcu=atmega328p -D__AVR_ATmega328P__ -Os -I. -I/usr/bin/arduino/libraries/EEPROM -I/usr/bin/arduino/libraries/Ethernet -I/usr/bin/arduino/libraries/Firmata -I/usr/bin/arduino/libraries/Flash -I/usr/bin/arduino/libraries/LCD4884 -I/usr/bin/arduino/libraries/LCD4Bit_mod -I/usr/bin/arduino/libraries/LiquidCrystal -I/usr/bin/arduino/libraries/OBD -I/usr/bin/arduino/libraries/SD -I/usr/bin/arduino/libraries/SD/utility -I/usr/bin/arduino/libraries/Servo -I/usr/bin/arduino/libraries/SevenSegment -I/usr/bin/arduino/libraries/SoftwareSerial -I/usr/bin/arduino/libraries/SPI -I/usr/bin/arduino/libraries/Stepper -I/usr/bin/arduino/libraries/TinyGPS -I/usr/bin/arduino/libraries/Wire -I/usr/bin/arduino/libraries/Wire/utility -I/usr/bin/arduino/hardware/arduino/cores/arduino -I/usr/bin/arduino/libraries -I/usr/bin/arduino/hardware/arduino/variants/standard -I/usr/lib64/ccache/include -c cores/CDC.cpp -o .objs/cores/CDC.o
avr-g++ -DF_CPU=16000000L -DARDUINO=103 -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -Wall -mmcu=atmega328p -D__AVR_ATmega328P__ -Os -I. -I/usr/bin/arduino/libraries/EEPROM -I/usr/bin/arduino/libraries/Ethernet -I/usr/bin/arduino/libraries/Firmata -I/usr/bin/arduino/libraries/Flash -I/usr/bin/arduino/libraries/LCD4884 -I/usr/bin/arduino/libraries/LCD4Bit_mod -I/usr/bin/arduino/libraries/LiquidCrystal -I/usr/bin/arduino/libraries/OBD -I/usr/bin/arduino/libraries/SD -I/usr/bin/arduino/libraries/SD/utility -I/usr/bin/arduino/libraries/Servo -I/usr/bin/arduino/libraries/SevenSegment -I/usr/bin/arduino/libraries/SoftwareSerial -I/usr/bin/arduino/libraries/SPI -I/usr/bin/arduino/libraries/Stepper -I/usr/bin/arduino/libraries/TinyGPS -I/usr/bin/arduino/libraries/Wire -I/usr/bin/arduino/libraries/Wire/utility -I/usr/bin/arduino/hardware/arduino/cores/arduino -I/usr/bin/arduino/libraries -I/usr/bin/arduino/hardware/arduino/variants/standard -I/usr/lib64/ccache/include -c cores/HardwareSerial.cpp -o .objs/cores/HardwareSerial.o
avr-g++ -DF_CPU=16000000L -DARDUINO=103 -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -Wall -mmcu=atmega328p -D__AVR_ATmega328P__ -Os -I. -I/usr/bin/arduino/libraries/EEPROM -I/usr/bin/arduino/libraries/Ethernet -I/usr/bin/arduino/libraries/Firmata -I/usr/bin/arduino/libraries/Flash -I/usr/bin/arduino/libraries/LCD4884 -I/usr/bin/arduino/libraries/LCD4Bit_mod -I/usr/bin/arduino/libraries/LiquidCrystal -I/usr/bin/arduino/libraries/OBD -I/usr/bin/arduino/libraries/SD -I/usr/bin/arduino/libraries/SD/utility -I/usr/bin/arduino/libraries/Servo -I/usr/bin/arduino/libraries/SevenSegment -I/usr/bin/arduino/libraries/SoftwareSerial -I/usr/bin/arduino/libraries/SPI -I/usr/bin/arduino/libraries/Stepper -I/usr/bin/arduino/libraries/TinyGPS -I/usr/bin/arduino/libraries/Wire -I/usr/bin/arduino/libraries/Wire/utility -I/usr/bin/arduino/hardware/arduino/cores/arduino -I/usr/bin/arduino/libraries -I/usr/bin/arduino/hardware/arduino/variants/standard -I/usr/lib64/ccache/include -c cores/HID.cpp -o .objs/cores/HID.o
cc1plus: error: /usr/bin/arduino/libraries/EEPROM: Not a directory
<skip>
cc1plus: error: /usr/bin/arduino/libraries/LCD4Bit_mod: Not a directory
cc1plus: error: /usr/bin/arduino/libraries/LiquidCrystal: Not a directory
cc1plus: error: /usr/bin/arduino/libraries/OBD: Not a directory
Process terminated with status 1 (0 minute(s), 1 second(s))
50 error(s), 0 warning(s) (0 minute(s), 1 second(s))
 

2. The "libraries.cpp" (from the initial set ) doesn't exist.

Let me know if i need to provide more information.
CB: latest available from Jen's RPM repo for Fedora
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)