Including files on the Kovan?

2 replies [Last post]
Marty Rand
Marty Rand's picture
Title: Botball Youth Advisory Council
Joined: 07/04/2009
BotPoints: 253
User offline. Last seen 8 years 25 weeks ago.

When I #include libraries on the Kovan, it says it can't find them on compile. They are in the same directory as the main program and yes the name is right. Is this a bug Braden?

-Marty Rand
Senior programmer at Norman Advanced Robotics

Former senior programmer at Whittier Middle School

Youth Advisory Council

All around nerd

Jeremy Rand
Jeremy Rand's picture
Title: Botball Youth Advisory Council
Joined: 04/03/2009
BotPoints: 1168
User offline. Last seen 7 years 38 weeks ago.

Can you provide some example source code which triggers this?

-Jeremy Rand
Senior Programmer, Team SNARC (2012-2013), Norman Advanced (2010-2011), Norman HS (2008-2009), Norman North (2005-2007), Whittier MS (2003-2004)
2012-2013 VP of Tech, 2011 President, Botball YAC (2009-2013)
Mentor, Alcott and Whittier MS

Beta's picture
Title: The Magnificent
Joined: 02/24/2012
BotPoints: 266
User offline. Last seen 8 years 51 weeks ago.

Yes, this is a known issue (and there's actually a decent reason why it's not a trivial fix). Basically, KISS IDE 3 would run the C preprocessor on the computer before downloading, which would include the files, but also break any sort of #ifdef platform-specific blocks. KISS IDE 4 doesn't compile the C file at all currently. For single files, we will probably end up manually parsing for includes and package them up during download behind the scenes. Once the project system in KISS IDE 4 is complete, however, this will be less of an issue. Getting this fixed is a very high priority, but so are a lot of other things unfortunately.

As a work-around, you'll need to use a flash drive and include with absolute paths to the flash drive. Yes, I know this sucks.

Please bear with the software for a few more weeks. I promise it will improve as soon as possible. Alternatively, the device is currently not locked down *at all*, and can be easily ssh'ed into via wifi. There are a lot of things that need to be done, and unfortunately I am only one person that is also a full time student for a majority of the year.


Braden McDorman

Developer of the KIPR Link, KISS IDE, KIPR's 2D Simulator, and CBCJVM.

Reach me at bmcdorman(cat)kipr(dog)org where (cat)=@ and (dog)=. if you need assistance of any kind.