Pages: [1]   Go Down
Author Topic: Subfolders in contributed libraries on OS X  (Read 250 times)
0 Members and 1 Guest are viewing this topic.
Trondheim, Norway
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I'm having some trouble with a bit of 3rd party code. It compiles when I run it using a windows virtual machine but not in OS X.

When I try to verify the code in OSX it says it cannot find library files which are located within a subfolder under the contributed library folder.

For example:

My contributed library is called Nordic (Documents/Arduino/libraries/Nordic)
Within that I have the acilib.cpp which is looking for aci_cmds.h. This file is located under (.../libraries/Nordic/aci/).
If this isn't clear I've attached a screenshot from finder.

When I try to verify the code I get the error message:
/Users/twonius/Documents/Arduino/libraries/Nordic/acilib.cpp:25:26: error: aci\aci_cmds.h: No such file or directory



The code for acilib.cpp which is looking for aci_cmds.h is as follows:

Code:
#include <stdint.h>
#include <stdbool.h>
#include "aci.h"
#include "aci\aci_cmds.h"
#include "aci\aci_evts.h"
#include "aci\acilib.h"
#include "aci\aci_protocol_defines.h"
#include "aci\acilib_defs.h"
#include "aci\acilib_if.h"
#include "aci\acilib_types.h"
#include "lib\lib_mem.h"

how should I change this addressing in order for it to work with Mac or preferably both file systems?

I'm running Arduino 1.0.1 on OS X 10.8


* Screen Shot 2012-08-01 at 11.29.26 PM.png (144.77 KB, 884x552 - viewed 3 times.)
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 19
Posts: 3114
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Try using forward slashes '/' instead of back '\'.
Logged

Pages: [1]   Go Up
Jump to: