I'm told macports flex package installs the libfl.dylib but the homebrew package for flex that I have only includes the static archive (libfl.a). I'm going to just use a linux host for cross compilation.
I'm struggling to get cross-compiling working on OSX. Are you aware of any guides to get started... would it for example be possible with XCode?
I suggest you to check the Native Application Guide to cross-compile. For OSx I highly suggest you to follow section 3 (Using Eclipse with SDK), but with some slight changes.
- Install Eclipse Kepler, you can download the one of the mcu. Or you can follow section 3.2 from step 1 to 4.
- Once you have Eclipse installed Select Help > Install New Software. In the line that says Work with, click on the Add… button.
- In the Location field instead of the link suggested by the guide use http://downloads.yoctoproject.org/releases/eclipse-plugin/1.7.2/kepler/ . The reason of this change is that the latest Edison image is Yocto 1.7.2 Dizzy. Then click OK
- You’ll get a window with all the packages from the Yocto plugin. Select all of them, and complete the installation.
- To set up the Toolchain location you need to select Window > Preferences. In there you’ll use as Toolchain root location the directory where you extracted the SDK and the Sysroot Location the sysroot inside the SDK directory. In case you don’t have the SDK yet, you can get it from here.
- At this point you can continue with the steps listed in the Native application guide.
I hope you find this helpful.
Thanks for your info. I followed your steps above.
But the SDK directory I downloaded was a tar file edison-sdk-macosx-ww25.5-15.
When I unzip this there is a poky-edison-glibc-i386-edison-image-core2-32-toolchain-1.7.2.manifest file another tar zip file called poky-edison-glibc-i386-edison-image-core2-32-toolchain-1.7.2.tar.bz2
I unzipped the second as well and it contains the environment setup files, relocate_sdk.py and the sysroot folder.
How do I install this toolchain?!
The guide says that I need to run the .sh file, but I don't find one in the downloaded folder.
.sh file it is file left after toolchain build from one of yocto toolchain releases : http://downloads.yoctoproject.org/releases/yocto/yocto-2.0/toolchain/i686/
You should get latest compelled SDK toolchain from https://software.intel.com/en-us/iot/hardware/edison/downloads page. OS X* that file contains all tools and sources to compile your own apps.