1

build error

asked 2014-04-10 10:38:01 -0700

alotronto gravatar image

After I downloaded source code with repo utility following the wiki instruction, when I try to build the code with following command:

scons BINDINGS=cpp,java WS=off BT=off ICE=off SERVICES="about,notification,controlpanel,config,onboarding"

I get these errors:

scons: Reading SConscript files ...
Building bindings: cpp, java
Building services: notification, about, controlpanel, config, onboarding
BULLSEYE_BIN not specified
BULLSEYE_BIN not specified

scons: warning: Ignoring missing SConscript 'alljoyn_core/win8_sdk/SConscript'
File "/home/andrea/WORKING_DIRECTORY/core/alljoyn/alljoyn_core/SConscript", line 160, in <module>

scons: warning: Ignoring missing SConscript '/home/andrea/WORKING_DIRECTORY/services/config/build/linux/x86/debug/obj/java/samples/java/ConfigClientSample/SConscript'
File "/home/andrea/WORKING_DIRECTORY/services/config/java/samples/java/SConscript", line 19, in <module>
TypeError: 'NoneType' object is not iterable:
  File "/home/andrea/WORKING_DIRECTORY/core/alljoyn/SConstruct", line 67:
    env.SConscript(['../../services/config/SConscript'])
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 546:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 260:
    exec _file_ in call_stack[-1].globals
  File "/home/andrea/WORKING_DIRECTORY/services/config/SConscript", line 44:
    exports = ['config_env'])
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 546:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 260:
    exec _file_ in call_stack[-1].globals
  File "/home/andrea/WORKING_DIRECTORY/services/config/java/SConscript", line 30:
    jars += config_env.SConscript('samples/SConscript', exports = ['config_env'])
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 546:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 260:
    exec _file_ in call_stack[-1].globals
  File "/home/andrea/WORKING_DIRECTORY/services/config/java/samples/SConscript", line 23:
    jars = sample_env.SConscript('java/SConscript', exports = ['sample_env'])
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 546:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 260:
    exec _file_ in call_stack[-1].globals
  File "/home/andrea/WORKING_DIRECTORY/services/config/java/samples/java/SConscript", line 19:
    jars += sample_env.SConscript('ConfigClientSample/SConscript', exports = ['sample_env'])
  File "/usr/lib/python2.7/UserList.py", line 68:
    self.data += list(other)

This type of problem has already been reported in the previous forum, but I do not have received any solution

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2014-04-11 16:24:12 -0700

bspencer gravatar image

The reason that the command fails is you have added to compile for the Java language binding. When doing this the service samples (service itself will run), but samples are not setup to run on Linux using the Java language binding. The samples are Android applications that run in Dalvik.

To fully answer your question if you add BUILD_SERVICES_SAMPLES=off to the command it will compile:

scons BINDINGS=cpp,java WS=off BT=off ICE=off SERVICES="about,notification,controlpanel,config,onboarding" BUILD_SERVICES_SAMPLES=off
edit flag offensive delete publish link more

Comments

Thanks Brian for replay

alotronto ( 2014-04-22 01:06:35 -0700 )edit
0

answered 2014-04-22 08:29:02 -0700

alotronto gravatar image

The command:

scons BINDINGS=cpp,java WS=off BT=off ICE=off SERVICES="about,notification,controlpanel,config,onboarding" BUILD_SERVICES_SAMPLES=off

work fine and compile source code without error. But I wonder if it is normal that in the service directory there isn't no jar file.

edit flag offensive delete publish link more

Comments

You need to compile the .jar files manually using ant. They are not part of the scons build system at this time. Out of curiosity are you compiling the service jar files to run on windows or another platform other than Android?

bspencer ( 2014-04-23 19:58:53 -0700 )edit
0

answered 2014-05-09 02:28:19 -0700

The framework i tried for Linux thin client and able to exchange message between Client & Server. I included services and trying to build for java for 32-bit, Ubuntu-12.04.02 using the above commands and getting errors (2) as:

ERROR 1: error while executing scons comand,

scons: Reading SConscript files ... Building bindings: cpp, java Building services: notification, about, controlpanel, config, onboarding BULLSEYE_BIN not specified BULLSEYE_BIN not specified

scons: warning: Ignoring missing SConscript 'alljoyn_core/win8_sdk/SConscript' File "/home/alljoyn/core/alljoyn/alljoyn_core/SConscript", line 160, in <module> scons: done reading SConscript files.</module>

I tried with clean build, but no better result.

ERROR 2: For Java build

[JAR] build/linux/x86/debug/dist/java/jar/alljoyn.jar sh: 1: jar: not found scons: * [build/linux/x86/debug/dist/java/jar/alljoyn.jar] Error 127 scons: building terminated because of errors.

Can anyone put some light for these errors.

Thank you in advance for the kind help.

edit flag offensive delete publish link more

Comments

Please open a new question as this is different from the original ask. Also please see the wiki.allseenalliance.org for some setup instructions to start building AllJoyn (Building and running: https://wiki.allseenalliance.org/develop/building_and_running )

bspencer ( 2014-05-13 14:56:50 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-04-10 10:38:01 -0700

Seen: 984 times

Last updated: May 09 '14