Setup Instructions..

Questions related to developing on the Tonido Platform
User avatar
mail4asim
Veteran Tonidoid
Veteran Tonidoid
Posts: 85
Joined: Wed Oct 14, 2009 4:28 pm
Location: St Joseph, MO
Contact:

Setup Instructions..

Postby mail4asim » Sat Oct 17, 2009 4:22 pm

I am following the setup instructions for SDK install on Mac OSX and I keep running into this one issue.

When I run bjam I get the following error message

Macmini:build asim$ bjam
Building for OS = MACOSX


error: Unable to find file or target named
error: '../../../thirdparty/stage/libs/libPocoFoundationd.so'
error: referred from project at
error: 'bootstrap/src'

User avatar
madhan
Admin Tonidoid
Admin Tonidoid
Posts: 8617
Joined: Tue Dec 30, 2008 12:13 am
Location: Austin, TX, USA
Contact:

Re: Setup Instructions..

Postby madhan » Sat Oct 17, 2009 8:17 pm

It looks like you didn't run this step from the instructions.

Run

Code: Select all

tonidosdk/thirdparty/setup_darwin.sh


After doing that a bunch of files will get copied over to the stage/libs directory.

User avatar
mail4asim
Veteran Tonidoid
Veteran Tonidoid
Posts: 85
Joined: Wed Oct 14, 2009 4:28 pm
Location: St Joseph, MO
Contact:

Re: Setup Instructions..

Postby mail4asim » Wed Oct 21, 2009 2:53 am

I did run darwin setup script but what I don't know is how to setup the environment variable. I am new to Mac OSX and that's my issue.

Do I edit /etc/launchd.conf and make an entry in there ? Also the instruction to run bjam should come after setting up the environment variable. Right now it says runs bjam and setup the environment variable. This could cause some confusion. What do you think ?


-Asim

User avatar
madhan
Admin Tonidoid
Admin Tonidoid
Posts: 8617
Joined: Tue Dec 30, 2008 12:13 am
Location: Austin, TX, USA
Contact:

Re: Setup Instructions..

Postby madhan » Wed Oct 21, 2009 9:24 am

The environment variable DYLD_LIBRARY_PATH is only required for running tonido once you build it. Setting the variable is done by

Code: Select all

export DYLD_LIBRARY_PATH=.


So you don't need to set the variable before the build. Does the build work now?

User avatar
mail4asim
Veteran Tonidoid
Veteran Tonidoid
Posts: 85
Joined: Wed Oct 14, 2009 4:28 pm
Location: St Joseph, MO
Contact:

Re: Setup Instructions..

Postby mail4asim » Fri Oct 23, 2009 9:59 pm

Sorry I am still unable to get it working. I have tried this on two different Macs running OS 10.6.1

When I run the setup darwin script this is what I get.

Macmini:thirdparty asim$ ./setup_darwin.sh
Clearing stage/libs
Copying Poco Darwin libs
Copying Sqlite3 Darwin libs
Copying CryptoPP Darwin libs
Copying GD Darwin libs
Copying libOpenSSL libs
Copying Common Stuff
------------------------------
Darwin x86_32 libs staged for build.


And when I run bjam this is what I get

Macmini:build asim$ bjam
Building for OS = MACOSX


error: Unable to find file or target named
error: '../../../thirdparty/stage/libs/libPocoFoundationd.so'
error: referred from project at
error: 'bootstrap/src'



Looking at the libs dir, this is all I have in there..

Macmini:libs asim$ ls
libPocoFoundation.6.dylib libPocoXMLd.6.dylib
libPocoFoundation.dylib libPocoXMLd.dylib
libPocoFoundationd.6.dylib libPocoZip.6.dylib
libPocoFoundationd.dylib libPocoZip.dylib
libPocoNet.6.dylib libPocoZipd.6.dylib
libPocoNet.dylib libPocoZipd.dylib
libPocoNetSSL.6.dylib libcrypto.0.9.8.dylib
libPocoNetSSL.dylib libcrypto.dylib
libPocoNetSSLd.6.dylib libcryptopp.a
libPocoNetSSLd.dylib libgd.2.0.0.dylib
libPocoNetd.6.dylib libgd.2.dylib
libPocoNetd.dylib libgd.a
libPocoUtil.6.dylib libgd.dylib
libPocoUtil.dylib libgd.lai
libPocoUtild.6.dylib libsqlite.a
libPocoUtild.dylib libssl.0.9.8.dylib
libPocoXML.6.dylib libssl.dylib
libPocoXML.dylib



btw, I got it working on Windows without any issues. Not sure why it's not working on a Mac.


oh btw, when I copy bjam to /usr/bin, I have to do a sudo. It would be nice to add that little instruction to the how-to. Just to make it consistent.


Thank you.

Asim

User avatar
madhan
Admin Tonidoid
Admin Tonidoid
Posts: 8617
Joined: Tue Dec 30, 2008 12:13 am
Location: Austin, TX, USA
Contact:

Re: Setup Instructions..

Postby madhan » Fri Oct 23, 2009 10:26 pm

I think I missed a step.

When you run bjam, please do

Code: Select all

bjam toolset=darwin


And thanks for the note, I will update the instructions.

User avatar
mail4asim
Veteran Tonidoid
Veteran Tonidoid
Posts: 85
Joined: Wed Oct 14, 2009 4:28 pm
Location: St Joseph, MO
Contact:

Re: Setup Instructions..

Postby mail4asim » Fri Oct 23, 2009 11:40 pm

I think we moved a bit forward but now I have another issue. When I run



Macmini:build asim$ bjam toolset=darwin
Building for OS = MACOSX


...patience...
...patience...
...found 3109 targets...
...updating 143 targets...
darwin.compile.c++ bootstrap/src/bin/darwin/debug/threading-multi/Activity.o
cc1plus: error: unrecognized command line option "-Wno-long-double"

"g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -dynamic -Wno-long-double -no-cpp-precomp -DEMBEDDED -DHAS_SOCKLEN_T -DLUABIND_BUILDING -DTONIDO_DARWIN -DTONIDO_SDK_BUILD -D_DEBUG -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__i386__ -I"../thirdparty/boost/1.35.0" -I"../thirdparty/cryptopp/5.5.2" -I"../thirdparty/gd/2.0.35" -I"../thirdparty/openssl/0.9.8h/include" -I"../thirdparty/poco/1.3.3p1/Foundation/include" -I"../thirdparty/poco/1.3.3p1/Net/include" -I"../thirdparty/poco/1.3.3p1/NetSSL_OpenSSL/include" -I"../thirdparty/poco/1.3.3p1/Zip/include" -I"../thirdparty/sqlite/3.6.6/include" -I"bootstrap/include" -I"bootstrap/include/thirdparty" -I"bootstrap/include/thirdparty/lua" -I"bootstrap/include/thirdparty/wx" -I"bootstrap/include/tonido" -c -o "bootstrap/src/bin/darwin/debug/threading-multi/Activity.o" "bootstrap/src/Activity.cpp"

and it goes on and on..

User avatar
madhan
Admin Tonidoid
Admin Tonidoid
Posts: 8617
Joined: Tue Dec 30, 2008 12:13 am
Location: Austin, TX, USA
Contact:

Re: Setup Instructions..

Postby madhan » Sat Oct 24, 2009 12:16 am

what version of gcc are you using?

We were using gcc 4.0.1. I think you might be using gcc 4.2?

User avatar
mail4asim
Veteran Tonidoid
Veteran Tonidoid
Posts: 85
Joined: Wed Oct 14, 2009 4:28 pm
Location: St Joseph, MO
Contact:

Re: Setup Instructions..

Postby mail4asim » Sat Oct 24, 2009 12:43 am

Yikes !!! You're absolutely right. I am using version 4.2.1

Macmini:tonidosdk asim$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646) (dot 1)
Copyright (C) 2007 Free Software Foundation, Inc.



You know I am thinking. Once this is all done, I will write up a nice how-to for Mac and post it here on the forums. :lol:

User avatar
madhan
Admin Tonidoid
Admin Tonidoid
Posts: 8617
Joined: Tue Dec 30, 2008 12:13 am
Location: Austin, TX, USA
Contact:

Re: Setup Instructions..

Postby madhan » Sat Oct 24, 2009 12:46 am

The issue you are seeing is because boost-build doesn't correctly configure for gcc 4.2 on the Mac. If there is an option for you to use 4.0.1 it will work with no fuss.

We have to look at building using 4.2.


Return to “Tonido Platform Development”

Who is online

Users browsing this forum: No registered users and 2 guests