0

Error compiling AllJoyn Thin Client on Mac OSX Maverick

asked 2014-08-22 12:05:28 -0700

germanviscuso gravatar image

updated 2014-08-22 12:08:51 -0700

Hi. I'm following the guide that shows how to run the thin client on an Arduino Due (with the Ethernet Shield) and I'm facing a compilation error that gives me little info.

First, my specs:

Mac OSX 10.9.3 / Scons v2.3.0 / Uncrustify v0.60

Now my steps:

git clone https://git.allseenalliance.org/gerrit/core/ajtcl

cd ajtcl

scons TARG=arduino

And now the output:

scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... Install file: "src/aj_about.c" as "build/arduino_due/libraries/AllJoyn/aj_about.cpp" Install file: "inc/aj_about.h" as "build/arduino_due/libraries/AllJoyn/aj_about.h" Install file: "inc/aj_auth_listener.h" as "build/arduino_due/libraries/AllJoyn/aj_auth_listener.h" Install file: "src/aj_bufio.c" as "build/arduino_due/libraries/AllJoyn/aj_bufio.cpp" Install file: "inc/aj_bufio.h" as "build/arduino_due/libraries/AllJoyn/aj_bufio.h" Install file: "src/aj_bus.c" as "build/arduino_due/libraries/AllJoyn/aj_bus.cpp" Install file: "inc/aj_bus.h" as "build/arduino_due/libraries/AllJoyn/aj_bus.h" Install file: "src/aj_cert.c" as "build/arduino_due/libraries/AllJoyn/aj_cert.cpp" Install file: "inc/aj_cert.h" as "build/arduino_due/libraries/AllJoyn/aj_cert.h" Install file: "inc/aj_config.h" as "build/arduino_due/libraries/AllJoyn/aj_config.h" Install file: "src/aj_connect.c" as "build/arduino_due/libraries/AllJoyn/aj_connect.cpp" Install file: "inc/aj_connect.h" as "build/arduino_due/libraries/AllJoyn/aj_connect.h" Install file: "src/aj_crc16.c" as "build/arduino_due/libraries/AllJoyn/aj_crc16.cpp" Install file: "inc/aj_crc16.h" as "build/arduino_due/libraries/AllJoyn/aj_crc16.h" Install file: "src/aj_creds.c" as "build/arduino_due/libraries/AllJoyn/aj_creds.cpp" Install file: "inc/aj_creds.h" as "build/arduino_due/libraries/AllJoyn/aj_creds.h" Install file: "src/aj_crypto.c" as "build/arduino_due/libraries/AllJoyn/aj_crypto.cpp" Install file: "inc/aj_crypto.h" as "build/arduino_due/libraries/AllJoyn/aj_crypto.h" Install file: "inc/aj_crypto_ecc.h" as "build/arduino_due/libraries/AllJoyn/aj_crypto_ecc.h" Install file: "inc/aj_crypto_sha2.h" as "build/arduino_due/libraries/AllJoyn/aj_crypto_sha2.h" Install file: "src/aj_debug.c" as "build/arduino_due/libraries/AllJoyn/aj_debug.cpp" Install file: "inc/aj_debug.h" as "build/arduino_due/libraries/AllJoyn/aj_debug.h" Install file: "src/aj_disco.c" as "build/arduino_due/libraries/AllJoyn/aj_disco.cpp" Install file: "inc/aj_disco.h" as "build/arduino_due/libraries/AllJoyn/aj_disco.h" Install file: "src/aj_guid.c" as "build/arduino_due/libraries/AllJoyn/aj_guid.cpp" Install file: "inc/aj_guid.h" as "build/arduino_due/libraries/AllJoyn/aj_guid.h" Install file: "src/aj_helper.c" as "build/arduino_due/libraries/AllJoyn/aj_helper.cpp" Install file: "inc/aj_helper.h" as "build/arduino_due/libraries/AllJoyn/aj_helper.h" Install file: "src/aj_init.c" as "build/arduino_due/libraries/AllJoyn/aj_init.cpp" Install file: "inc/aj_init.h" as "build/arduino_due/libraries/AllJoyn/aj_init.h" Install file: "src/aj_introspect.c" as "build/arduino_due/libraries/AllJoyn/aj_introspect.cpp" Install file: "inc/aj_introspect.h" as "build/arduino_due/libraries/AllJoyn/aj_introspect.h" Install file: "src/aj_keyauthentication.c" as "build/arduino_due/libraries/AllJoyn/aj_keyauthentication.cpp" Install file: "inc/aj_keyauthentication.h" as "build/arduino_due/libraries/AllJoyn/aj_keyauthentication.h" Install file: "src/aj_keyexchange.c" as "build/arduino_due/libraries/AllJoyn ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-08-26 06:45:54 -0700

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi!

I solved it! The files that violate the whitespace policy are:

ajtcl/crypto/ecc/aj_crypto_ecc.c

ajtcl/unit_test/MutterTest.cc

ajtcl/unit_test/BusAttachmentTest.cc

I found that out using:

scons TARG=arduino WS=detail

Then I run the following to fix them:

scons TARG=arduino WS=fix

After that the following commands succeeds:

scons TARG=arduino

Please have your developers do this steps and then commit the changes back to the git repo (and that's it)

Best

edit flag offensive delete publish link more

Comments

HELP!!! Same problem on Windows 7 SP2, VS 10 and 12 installed. f:\Work Core\alljoyn-14.06.00a-thin_client-sdk-windows\core\ajtcl>"f:\Program Files (x86)\Python27\Scripts\scons.bat" "OS=win7 CPU=x86_64 WS=off MSVC_VERSION=11.0"

NegLewis ( 2015-01-12 01:23:36 -0700 )edit
0

answered 2014-08-25 12:22:02 -0700

Nikhil Dabhade gravatar image

updated 2014-08-25 13:43:35 -0700

Can you try and sync with the tip of master branch and then give this a try again ? Till this point there has been no official support to build ajtcl on Mac but we recently pushed in changes that should enable this. (Updated) The TARG=arduino should be supported (/Updated)

Also it seems that the error is related to ws_ajtcl in scons output that you posted. Looking at the scons script it seems it is related to white space check. To work around this you can use WS=off with you scons command until someone figures out why white space check is failing.

Let me know how it goes.

Regards, Nikhil

edit flag offensive delete publish link more

Comments

Hi. It works perfectly with: *scons TARG=arduino WS=off* but if I remove the *WS=off* I still get the same error (even after syncing with the latest master). So it's definitely white space checking that's failing for this target. Thx for the help. German

germanviscuso ( 2014-08-26 05:55:50 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-08-22 12:05:28 -0700

Seen: 1,149 times

Last updated: Aug 26 '14