Subfolders in contributed libraries on OS X


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:

#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

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