[En-Nut-Discussion] OS X configurator build problems
ARMITAGE Tom
Thomas.ARMITAGE at Tenix.com
Fri Jul 27 10:11:39 CEST 2007
Hi all,
I've been trying to set up the latest nut/OS development environment on
Mac OS X 10.4.10 without much luck.
Previously I've configured nut/OS by hand but this is error prone, so I
have been trying to compile the configurator as per the instructions for
Debian installation. I was hoping to try and compile the GUI
configurator, but will settle for the command line configurator if the
GUI won't compile on OS X.
I have downloaded the ethernut-4.3.3 source and I used darwin ports to
install oxygen, graphviz, wxWidgets and lua and the OSXAVR tool chain
installer to load the compiler and associated files etc. I have the
latest Mac developer tools installed (gcc etc).
The problem comes about when I try and run ./configure in the base
directory of the ethernut source, the process fails to correctly detect
the lua installation with the following messages:
checking for library containing lua_open... no
checking for library containing luaL_loadfile... no
./configure successfully finds the lua executable, but it can't seem to
find the library files it needs. Because of this I am unable to build
the configurator.
I have tried installing lua from several different sources (darwin
ports, fink, stand-alone installer, compiled from Xcode package and
compiled and install from the source code by hand) but they all give the
same result - lua compiles correctly but the lua libraries can't be
found by the ./configure script.
I have a few questions:
1) Am I trying to do something that just does not work, ie compile the
configurator on OS X?
2) Are the libraries that ./configure cannot find the compiled libraries
(liblua5.1.so, liblua5.1.a etc) which are installed in /usr/local/lib by
default by darwin ports or are there other libraries that need to be
installed or lua packages to be installed? The Debian procedure for
compiling from the source doesn't seem to indicate that I need to do
anything more than "make macosx; sudo make install".
3) What is the default or proper location for the lua libraries? Is
there a way (perhaps an environment variable?) to set to force lua to
find the libraries?
4) Do I need to modify the ./configure script or a make file to force it
to find the libraries? If so which files and what changes do I make?
5) Has anyone managed to get the ./configure script to build the
configurator tools on OS X??
I have tried searching this discussion list and googling for answers but
come up empty handed (I think the OS X + nut/OS club is pretty small
crowd!) and the documentation for lua isn't clear to me either.
Thanks for any help/advice in advance, I'm not ready to give up on this
yet!
Tom Armitage
--
Tom Armitage
Senior Electronics Engineer
Disclaimer :
The contents of this e-mail including any attachments are intended only
for the person or entity to which this e-mail is addressed. If you are not,
or believe you may not be, the intended recipient, please advise the sender
immediately by return e-mail, delete this e-mail and destroy any copies.
Tenix does not warrant nor guarantee that this email communication is free
from errors, virus, interception or interference.
More information about the En-Nut-Discussion
mailing list