Hi Yusnaidi, I've had problems previously compiling on the Mac myself. My particular problems are with the gnu make, which seems to ignore environmental variables for some reason (I'm not an expert on gnu make). So I cannot really help you with the error messages. If you just want to use the libraries, you can use the tinyos.jar.
If you decide to use tinyos.jar, you don't even have to install any libraries. The latest version will automatically extract the native libraries to a temporary file and load it from there (ignore the warnings, or read them to understand how it works). All you have to do is include tinyos.jar in your classpath (e.g., by adding a line like "export CLASSPATH=/my/path/to/tinyos.jar:${CLASSPATH}" to the appropriate startup script). If you want to properly install the native libraries, rename them to libtoscomm.jnilib and libgetenv.jnilib. You can then copy them to the directory shown by "tos-locate-jre --jni". If you want to know more, can you download and run the following program, then send me its output? http://www.schlangenstein.ch/tosruntime.jar Cheers, Urs On 03/24/2011 05:17 PM, Yusnaidi Md Yusof wrote: > Hi Urs, > What I meant was I got so many error messages after issuing the > './configure', 'make', and 'sudo make install' commands. > Do I missed settings any enviroment variables possibly? or etc... > I am a bit confuse where I can use the tinyos.jar file. I have > uncompressed the file and found that there are two universal files > located in the tinyos->net->tinyos->util folder which are: > macosx_universal_getenv, and macosx_universal_toscomm. Is these are the > files you are referring as the macosx_universal_*.lib files? And to what > name should I rename it? > thanks > Yusnaidi > On Thu, Mar 24, 2011 at 10:47 AM, Urs Hunkeler <urs.hunke...@epfl.ch > <mailto:urs.hunke...@epfl.ch>> wrote: > > Hi Yusnaidi, > > I don't know about your problem, as I currently don't have a Mac OS > X system with the latest OS to play with. However, I did compile the > libraries for different systems, and the libraries included in the > latest tinyos.jar should support Mac OS X on PPC, Intel 32-bit and > Intel 64-bit platforms. If you don't absolutely want to compile the > libraries yourself, you can use the latest tinyos.jar and see how > this works for you: > http://tinyos-main.googlecode.com/svn/trunk/support/sdk/java/tinyos.jar > > You can also download the macosx_universal_*.lib files, rename them > to lib*.jnilib and manually put them in the right folders. The files > are universal binaries for Mac OS X supporting the aforementioned > processors. > > Cheers, > Urs > > > On 03/24/2011 12:11 AM, Yusnaidi Md Yusof wrote: > > Hi, > > I really stucked here. Please give me a help... > > I want to install tinyos-2.x (downloaded from git source) onto > my Mac OS > X snow leopard. I have successfully install all the macports, > AVR tools, > etc but when come to a stage to 'make' and 'make install' in the > $TOSROOT/tools dir, I got the following errors: > > g++ -O2 -bundle > "-I/System/Library/Frameworks/JavaVM.framework/Headers" \ > -o libtoscomm.jnilib NativeSerial_darwin.cpp > NativeSerial_darwin.cpp: In member function 'void > NativeSerial::errno_wrap(bool, const char*)': > NativeSerial_darwin.cpp:77: error: 'strerror' was not declared > in this scope > NativeSerial_darwin.cpp: In static member function 'static > std::string > NativeSerial::getTOSCommMap()': > NativeSerial_darwin.cpp:504: error: 'getenv' was not declared in > this scope > make[3]: *** [libtoscomm.jnilib] Error 1 > make[2]: *** [all-recursive] Error 1 > make[1]: *** [all-recursive] Error 1 > make: *** [all-recursive] Error 1 > > I really have no idea what is wrong here. Please help me. > > thanks > > Yusnaidi > > > > _______________________________________________ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > <mailto:Tinyos-help@millennium.berkeley.edu> > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help