0

How can I get java library for MacOSX.

asked 2015-01-15 16:29:56 -0800

sharkvary gravatar image

Hi.

I want alljoyn lib java version for MacOSX.

But, it is not distributed by the official website.

Do I need to build it by compiling alljoyn src?

If so, let me know how.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-20 12:52:08 -0800

Nikhil Dabhade gravatar image

updated 2015-01-20 12:59:00 -0800

Hi sharkway,

I remember attempting this a while back and getting it to work on OS X. Here is what I know had made it work. Hopefully not much has changed since as it was almost a year back. I am showing you below how the patch looked like. Things might not be at the same line numbers but you should at least get an idea.

  diff --git a/alljoyn_java/samples/SConscript b/alljoyn_java/samples/SConscript
index a2948dc..d6fae7d 100644
--- a/alljoyn_java/samples/SConscript
+++ b/alljoyn_java/samples/SConscript
@@ -20,7 +20,7 @@ returnValue = []

 if env['OS'] == 'android':
     returnValue += env.SConscript('android/SConscript', exports = ['env'])
-elif env['OS'] == 'linux' or env['OS_GROUP'] == 'windows':
+elif env['OS'] == 'linux' or env['OS_GROUP'] == 'windows' or env['OS'] == 'darwin':
     returnValue += env.SConscript('java/SConscript', exports = ['env'])

 Return('returnValue')
diff --git a/alljoyn_java/src/SConscript b/alljoyn_java/src/SConscript
index b3df1de..fbdebfc 100755
--- a/alljoyn_java/src/SConscript
+++ b/alljoyn_java/src/SConscript
@@ -42,7 +42,7 @@ if env['OS'] == 'android':

     alljoyn_jar = env.Jar('$JARDIR/alljoyn.jar', source = [main_classes])

-elif (env['OS'] == 'linux' or env['OS_GROUP'] == 'windows'):
+elif (env['OS'] == 'linux' or env['OS_GROUP'] == 'windows' or env['OS'] == 'darwin'):
     main_classes = env.Java('$CLASSDIR', source = ['.'], JAVACLASSPATH = env.subst('$JAVACLASSPATH'))
     alljoyn_jar = env.Jar('$JARDIR/alljoyn.jar', source = [main_classes])

diff --git a/alljoyn_objc/alljoyn_darwin.xcodeproj/project.pbxproj b/alljoyn_objc/alljoyn_darwin.xcodeproj/project.pbxproj
index a9947e1..ac49175 100644
--- a/alljoyn_objc/alljoyn_darwin.xcodeproj/project.pbxproj
+++ b/alljoyn_objc/alljoyn_darwin.xcodeproj/project.pbxproj
@@ -145,7 +145,7 @@
        };
        ACB4AFB6150E631F0054D964 /* alljoyn_core_osx */ = {
            isa = PBXLegacyTarget;
-           buildArgumentsString = "-u OS=darwin CPU=x86 DOCS=html BR=on BINDINGS=\"cpp\" WS=off VARIANT=$(CONFIGURATION) --$(ACTION)";
+           buildArgumentsString = "-u OS=darwin CPU=x86 BR=on BINDINGS=\"cpp,java\" WS=off VARIANT=$(CONFIGURATION) --$(ACTION)";
            buildConfigurationList = ACB4AFB9150E631F0054D964 /* Build configuration list for PBXLegacyTarget "alljoyn_core_osx" */;
            buildPhases = (
            );

Let me know how it goes and I will be glad to help make it work

Nikhil

edit flag offensive delete publish link more

Comments

Thank You~! Hava a good time~!

sharkvary ( 2015-01-20 17:33:57 -0800 )edit

If it does work for you it would helpful to mark it as an answer so that others too may benefit from it

Nikhil Dabhade ( 2015-01-21 10:48:58 -0800 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-01-15 16:29:56 -0800

Seen: 78 times

Last updated: Jan 20 '15