Hi, all
I met the problem related to RA functionality with ?iotivity-1.1.1-RC1? version.
It has been compiled successfully on ubuntu with options WITH_RA=1
WITH_RA_IBB=1 after the below fixed
File
Original source code
Fixed source code
iotivity-1.1.1-RC1\extlibs\tinycbor\SConscript
cbor_src = [
os.path.join(cborDir,'src/cborparser.c'),
os.path.join(cborDir,'src/cborencoder.c'),
os.path.join(cborDir,'src/cborerrorstrings.c'),
]
cbor_src = [
os.path.join(cborDir,'src/cborparser.c'),
os.path.join(cborDir,'src/cborencoder.c'),
os.path.join(cborDir,'src/cborparser_dup_string.c'),
os.path.join(cborDir,'src/cborerrorstrings.c'),
]
iotivity-1.1.1-RC1\extlibs\raxmpp\raxmpp\src\connect\tcpclient.cpp
chrono::
Add namespace asio to all ?chrono::*?
asio::chrono::
Here is test procedure.
1. Setup ejabberd xmpp server
2. Run ocserver
3. Run ocremoteaccessclient
And then I got error message from ocremoteaccessclient like
xmpp DEBUG Reopened stream successfully.
xmpp DEBUG RECV: <features xmlns="http://etherx.jabber.org/streams"><c
hash="sha-1" xmlns="http://jabber.org/protocol/caps"
ver="Rvmh+iIEsrdX0uAaJpdpbKmqVEI="
node="http://www.process-one.net/en/ejabberd/"/><bind
xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session
xmlns="urn:ietf:params:xml:ns:xmpp-session"><optional/></session><sm
xmlns="urn:xmpp:sm:2"/><sm xmlns="urn:xmpp:sm:3"/><csi
xmlns="urn:xmpp:csi:0"/></features>
conn DEBUG SENT: <iq id="_xmpp_bind1" type="set"><bind
xmlns="urn:ietf:params:xml:ns:xmpp-bind"/></iq>
xmpp DEBUG RECV: <iq id="_xmpp_bind1" type="result"><bind
xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>dsyou at
ec2-52-78-74-216.ap-northeast-2.compute.amazonaws.com/120790499377977500172306</jid></bind></iq>
xmpp DEBUG Bind successful.
conn DEBUG SENT: <iq id="_xmpp_session1" type="set"><session
xmlns="urn:ietf:params:xml:ns:xmpp-session"/></iq>
xmpp DEBUG RECV: <iq id="_xmpp_session1" lang="en" type="result"/>
xmpp DEBUG Session establishment successful.
conn DEBUG SENT: </stream:stream>
event DEBUG Stopping event loop.
32:09.591 ERROR: OIC_RA_ADAP_IBB: status(1) error(-1) errorType(0) errorText
'(null)'
32:09.591 DEBUG: OIC_RA_ADAP_IBB: CARANotifyNetworkChange IN
32:09.591 DEBUG: OIC_CA_INF_CTR: [8]adapter status is changed to [0]
32:09.591 DEBUG: OIC_RA_ADAP_IBB: CARANotifyNetworkChange OUT
event DEBUG Event loop completed.
I?d like to know ERROR can be ignored or must be fixed.
Anybody give me an idea to fix this?
BR
Dae-sang, Yu
From: iotivity-dev-bounces at lists.iotivity.org
[mailto:[email protected]] On Behalf Of ???
Sent: Monday, July 11, 2016 10:04 AM
To: iotivity-dev at lists.iotivity.org
Subject: [dev] Android sample source compiling
Hi, all.
I got a problem which is not working right about android sample source
compiling.
I usually worked with Linux source but I now need to deal with android sample
source.
My compile environment spectation is as below.
1. VMWARE WORKSTATION 12
2. UBUNTU 64bit 14.04 LTS
3. Source from web cite not using gerrit (iotivity 1.1.0)
4. root account
5. /usr/local/iotivity-1.1.0
I followed all the stuffs from
https://www.iotivity.org/documentation/linux/getting-started (Linux)
https://wiki.iotivity.org/android_build_instructions (android)
But when I use "$scons TARGET_OS=android" in iotivity-1.1.0, it didn't work
well.
It makes errors such as,
1.
Cannot build hue sample. Please install libcurl.
* Example (Ubuntu):
* sudo apt-get install libcurl4-openssl-dev
* sudo ldconfig
* Hint: check with pkg-config --libs libcurl and clear scons cache.
* Skipping hue sample build. (I installed this but it occured again.)
2.
... 1 more
Caused by: java.io.IOException: Cannot run program
"/usr/local/iotivity-1.1.0/extlibs/android/sdk/android-sdk-linux/build-tools/20.0.0/aapt"
(in directory
"/usr/local/iotivity-1.1.0/service/resource-container/android/resource-container"):
error=2, No such file or directory
at
net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:25)
... 3 more
Caused by: java.io.IOException: error=2, No such file or directory
... 4 more
BUILD FAILED
3.
:resource-container:preBuild UP-TO-DATE
:resource-container:preDebugBuild UP-TO-DATE
:resource-container:checkDebugManifest
:resource-container:prepareDebugDependencies
:resource-container:compileDebugAidl UP-TO-DATE
:resource-container:compileDebugRenderscript UP-TO-DATE
:resource-container:generateDebugBuildConfig UP-TO-DATE
:resource-container:generateDebugAssets UP-TO-DATE
:resource-container:mergeDebugAssets UP-TO-DATE
:resource-container:generateDebugResValues UP-TO-DATE
:resource-container:generateDebugResources UP-TO-DATE
:resource-container:packageDebugResources UP-TO-DATE
:resource-container:processDebugManifest UP-TO-DATE
:resource-container:processDebugResources FAILED
FAILURE: Build failed with an exception.
I think that I set environment variables right too.
"$gedit /etc/profile"
export JAVA_HOME=/usr/local/java
export CLASSPATH=.:$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar
PATH=$PATH:$JAVA_HOME/bin
export ANDROID_NDK=/usr/local/ndk
export GRADLE_HOME=/usr/local/gradle/bin
I did this compile in gerrit mode too. But it is still not working.
So please give me an advice which I can try.
Best regards,
Daecheon
<http://mail.naver.com/readReceipt/notify/?img=ieRZ1NF5M6R0KzMYaqUwMrKlFq2XKxKdaxUwMo%2B0Fq34Kq2dMqFvMqErtzFXp6UwaLl5WLl51zlqDBFdp6d5MreRhoRGWX3G%2B40dDL9vpBpgWz0q%2BHK516ed1BpG%2BHv5WXiN.gif>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160711/4890fcd5/attachment.html>