[dev] Problem in Makefile bitbaking server.cpp in Yocto

2017-07-12 Thread Natalia Theologou
Hello all,

I am following the template of iotivity-simple-client inside recipes-apps in 
order to bitbake my custom simple server and simple client.
The client succeeds in bitbaking but the server has the errors:


ERROR: Function failed: do_compile (log file is located at 
/home/natalia/Downloads/release-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/iotivity-nick-server/1.0-r0/temp/log.do_compile.4495)
ERROR: Logfile of failure stored in: 
/home/natalia/Downloads/release-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/iotivity-nick-server/1.0-r0/temp/log.do_compile.4495
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 1 -e MAKEFLAGS=
| arm-poky-linux-gnueabi-g++  -march=armv7-a -mthumb-interwork -mfloat-abi=hard 
-mfpu=neon -mtune=cortex-a9 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed 
--sysroot=/home/natalia/Downloads/release-bsp/build/tmp/sysroots/imx6dlsabreauto
 -o nickserver nickserver.o -loc -loctbstack -loc_logger
| 
/home/natalia/Downloads/release-bsp/build/tmp/sysroots/x86_64-linux/usr/libexec/cortexa9hf-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld:
 nickserver.o: undefined reference to symbol 'pthread_create@@GLIBC_2.4'
| 
/home/natalia/Downloads/release-bsp/build/tmp/sysroots/imx6dlsabreauto/lib/libpthread.so.0:
 error adding symbols: DSO missing from command line
| collect2: error: ld returned 1 exit status
| make: *** [nickserver] Error 1
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at 
/home/natalia/Downloads/release-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/iotivity-nick-server/1.0-r0/temp/log.do_compile.4495)
ERROR: Task 6 
(/home/natalia/Downloads/release-bsp/sources/meta-oic/recipes-apps/iotivity-nick-server+/iotivity-nick-server.bb,
 do_compile) failed with exit code '1'


My .bb file is as follows:



SUMMARY = "Iotivity Simple server"
DESCRIPTION = "Iotivity Simple server example which talks to the Simple Server 
example."
HOMEPAGE = "https://www.iotivity.org/;
Home | IoTivity
www.iotivity.org
IoTivity is an open source software framework enabling seamless 
device-to-device connectivity to address the emerging needs of the Internet of 
Things.



DEPENDS = "iotivity"
SECTION = "apps"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = 
[file://nickserver.cpp;beginline=1;endline=19;md5=fc5a615cf1dc3880967127bc853b3e0c]"file://nickserver.cpp;beginline=1;endline=19;md5=fc5a615cf1dc3880967127bc853b3e0c"

SRC_URI = 
"file://iotivity-nick-server.tar.gz \
  "

S = "${WORKDIR}/iotivity-nick-server"

TARGET_CC_ARCH += "${LDFLAGS}"

IOTIVITY_BIN_DIR = "/opt/iotivity"
IOTIVITY_BIN_DIR_D = "${D}${IOTIVITY_BIN_DIR}"

do_install() {
install -d ${IOTIVITY_BIN_DIR_D}/apps/iotivity-nick-server
install -c -m 555 ${S}/nickserver 
${IOTIVITY_BIN_DIR_D}/apps/iotivity-nick-server
install -c -m 444 ${S}/oic_svr_db_server.dat 
${IOTIVITY_BIN_DIR_D}/apps/iotivity-nick-server
}

FILES_${PN} = "${IOTIVITY_BIN_DIR}/apps/iotivity-nick-server/nickserver \
   
${IOTIVITY_BIN_DIR}/apps/iotivity-nick-server/oic_svr_db_server.dat"
FILES_${PN}-dbg = "${IOTIVITY_BIN_DIR}/apps/iotivity-nick-server/.debug"
RDEPENDS_${PN} += "iotivity-resource"
BBCLASSEXTEND = "native nativesdk"

and my makefile:


YOCTOCXXFLAGS=-I$(PKG_CONFIG_SYSROOT_DIR)/usr/include/iotivity/resource/ 
-I$(PKG_CONFIG_SYSROOT_DIR)/usr/include/iotivity/resource/stack 
-I$(PKG_CONFIG_SYSROOT_DIR)/usr/include/iotivity/resource/ocrandom 
-I$(PKG_CONFIG_SYSROOT_DIR)/usr/include/iotivity/resource/logger 
-I$(PKG_CONFIG_SYSROOT_DIR)/usr/include/iotivity/resource/oc_logger

YOCTOLDFLAGS=-lpthread -loc -loctbstack -loc_logger -lm -l

all: nickserver

nickserveroff.o: nickserver.cpp
ifeq ($(PKG_CONFIG_SYSROOT_DIR),)
echo "Error: Yocto cross-toolchain environment not initialized"
exit 1
endif
$(CXX) -std=c++0x -c -o $@ $< $(YOCTOCXXFLAGS)

nickserver: nickserver.o
$(CXX) -o nickserver nickserver.o $(YOCTOLDFLAGS)

clean:
rm -rf nickserver *.o




Have you got any idea?

I have searched this but all the recommendations is about adding the -lpthread 
-lm -ldl which I added and nothing happened.


Thank you!

___
iotivity-dev mailing list
iotivity-dev@lists.iotivity.org
https://lists.iotivity.org/mailman/listinfo/iotivity-dev


[dev] Error at iotivity_1.1.1.bb

2017-04-24 Thread Natalia Theologou
Hello,

I am trying to install meta-oic from here 
http://git.yoctoproject.org/cgit/cgit.cgi/meta-oic/tree/README?h=master

I have added:
IMAGE_INSTALL_append = " iotivity-resource-samples iotivity-service-samples"
IMAGE_INSTALL_append += " iotivity"
IMAGE_INSTALL_append += " packagegroup-iotivity"
at local.conf of the build directory.

When I run bitbake  (=imx6dlsa...)
ERROR: ExpansionError during parsing 
/home/nataliath/Downloads/certh-release-bsp/sources/meta-oic/recipes-core/iotivity/iotivity_1.1.1.bb:
 Failure expanding variable do_fetch[file-checksums], expression was 
${@bb.fetch.get_checksum_file_list(d)} which triggered exception ValueError: 
need more than 1 value to unpack

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Can anyone help me with this?
Thank you in advance and best regards,
Theologou Natalia

-- next part --
An HTML attachment was scrubbed...
URL: 



[dev] Cross compile Iotivity for arm

2017-07-08 Thread Natalia Theologou
Hello,


I am trying to cross compile iotivity for arm architecture. I am getting the 
error that it can not find boost_thread.

I found out that I have to cross compile all the libs that I want (boost, 
gtest0 from a previous thread.

What is the best way to do this? Has anyone resolved this issue?
I took the steps according this 
advice.
 But I keep getting the error.


Thanks in advance.


BR, Natalia
-- next part --
An HTML attachment was scrubbed...
URL: 



[dev] Fw: Cross compile Iotivity for arm

2017-07-09 Thread Natalia Theologou

I have also followed these advice.

https://wiki.iotivity.org/iotivity_porting_to_arm_based_platforms


I am running:


scons TARGET_OS=linux TARGET_ARCH=arm TARGET_TRANSPORT=IP SECURED=0 RELEASE=1 
TC_PREFIX=arm-none-linux-gnueabi- 
TC_PATH=/opt/gcc-arm-none-eabi-6-2017-q2-update/arm-none-eabi/bin


I added this line but nothing happened :/


From: Mats Wichmann <m...@wichmann.us>
Sent: Saturday, July 8, 2017 7:06 PM
To: Natalia Theologou; iotivity-dev at lists.iotivity.org
Subject: Re: [dev] Cross compile Iotivity for arm

On 07/08/2017 09:42 AM, Natalia Theologou wrote:
> Hello,
>
>
> I am trying to cross compile iotivity for arm architecture. I am getting the 
> error that it can not find boost_thread.
>
> I found out that I have to cross compile all the libs that I want (boost, 
> gtest0 from a previous thread.
>
> What is the best way to do this? Has anyone resolved this issue?
> I took the steps according this 
> advice<https://stackoverflow.com/questions/29029867/cross-compile-boost-1-57-0-on-ubuntu-for-arm>.
>  But I keep getting the error.
[https://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon at 
2.png?v=73d79a89bded]<https://stackoverflow.com/questions/29029867/cross-compile-boost-1-57-0-on-ubuntu-for-arm>

g++ - cross compile Boost 1.57.0 on ubuntu for arm - Stack 
...<https://stackoverflow.com/questions/29029867/cross-compile-boost-1-57-0-on-ubuntu-for-arm>
stackoverflow.com
I am new into cross compile process. Need to cross compile boost library for 
arm. Please suggest step to cross-compile boost library. Is it possible to 
cross compile ...





The library check has to happen with the cross-build environment
completely set up. Can you share how you are calling scons (the setting
for TC_PATH in particular)?

It might even be interesting to dump your construction environment - in
build_common/SConscript, you can stick this line in at the end, just
before the last line Return('env'):

print env.Dump()

this will show a lot about your setup, before anything starts running
(and failing).
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170709/4507b11b/attachment.html>


[dev] Cross compile Iotivity for arm

2017-07-10 Thread Natalia Theologou
Hello Philippe,


I want to cross compile iotivity for arm for yocto.

Also the patch to run newer versions of iotivity for older versions of Yocto is 
not working:

I am trying again with the contribution but I have the same error at 
iotivity_1.1.1.bb

ERROR: ExpansionError during parsing 
/~/sources/meta-oic/recipes-core/iotivity/iotivity_1.1.1.bb: Failure expanding 
variable do_fetch[file-checksums], expression was 
${@bb.fetch.get_checksum_file_list(d)} which triggered exception ValueError: 
need more than 1 value to unpack
With the same version of Yocto and with the 
http://git.yoctoproject.org/cgit/cgit.cgi/meta-oic/commit/?h=1.2.0=028a5c234fb9fe51b39db339f7d4250fba978198



From: iotivity-dev-bounces at lists.iotivity.org  on behalf of Philippe Coval <philippe.co...@osg.samsung.com>
Sent: Monday, July 10, 2017 11:25 AM
To: iotivity-dev at lists.iotivity.org
Subject: Re: [dev] Cross compile Iotivity for arm



On 08/07/17 17:42, Natalia Theologou wrote:

Hello,


I am trying to cross compile iotivity for arm architecture. I am getting the 
error that it can not find boost_thread.

I found out that I have to cross compile all the libs that I want (boost, 
gtest0 from a previous thread.

What is the best way to do this? Has anyone resolved this issue?

Cross compiling using yocto is trivial,
if you want to target ubuntu, well I would build on device (or qemu instance) 
like tizen is doing using GBS.
I am not sure cross compiling using scons is supported for other systems.
but could be added, please file bug we'll track it


--
mailto:philippe.coval at osg.samsung.com gpg:0x467094BC
https://blogs.s-osg.org/author/pcoval/


-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170710/fe1ab5cb/attachment.html>


[dev] Cross compile Iotivity for arm

2017-07-10 Thread Natalia Theologou
Hello Philippe,



Thank you for your answer.

I am using Yocto 1.6 Daisy and Iotivity 1.2.1.

The error I get is this even if I apply this 
http://git.yoctoproject.org/cgit/cgit.cgi/meta-oic/commit/?h=1.2.0=028a5c234fb9fe51b39db339f7d4250fba978198

ERROR: ExpansionError during parsing 
/~/sources/meta-oic/recipes-core/iotivity/iotivity_1.1.1.bb: Failure expanding 
variable do_fetch[file-checksums], expression was 
${@bb.fetch.get_checksum_file_list(d)} which triggered exception ValueError: 
need more than 1 value to unpack

Thank you.


From: Philippe Coval <philippe.co...@osg.samsung.com>
Sent: Monday, July 10, 2017 4:50 PM
To: Natalia Theologou; iotivity-dev at lists.iotivity.org
Subject: Re: [dev] Cross compile Iotivity for arm



On 10/07/17 11:08, Natalia Theologou wrote:

Hello Philippe,


I want to cross compile iotivity for arm for yocto.

Ok then I can assist you
if https://wiki.iotivity.org/yocto
is not enough



Also the patch to run newer versions of iotivity

like 1.3.0 ?
1.2.1 should be supported with a patch I shared earlier in this list (not yet 
accepted in meta-oic)


for older versions of Yocto is not working:

which ones?


I am trying again with the contribution

unclear which one are you talking about
please file a bug on iotivity affect it to me and I will try to reproduce.


but I have the same error at iotivity_1.1.1.bb

ERROR: ExpansionError during parsing 
/~/sources/meta-oic/recipes-core/iotivity/iotivity_1.1.1.bb: Failure expanding 
variable do_fetch[file-checksums], expression was 
${@bb.fetch.get_checksum_file_list(d)} which triggered exception ValueError: 
need more than 1 value to unpack
With the same version of Yocto and with the 
http://git.yoctoproject.org/cgit/cgit.cgi/meta-oic/commit/?h=1.2.0=028a5c234fb9fe51b39db339f7d4250fba978198



From: iotivity-dev-bounces at lists.iotivity.org<mailto:iotivity-dev-bounces at 
lists.iotivity.org> <mailto:iotivity-dev-bounces at lists.iotivity.org> on 
behalf of Philippe Coval <mailto:philippe.co...@osg.samsung.com>
Sent: Monday, July 10, 2017 11:25 AM
To: iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at 
lists.iotivity.org>
Subject: Re: [dev] Cross compile Iotivity for arm



On 08/07/17 17:42, Natalia Theologou wrote:

Hello,


I am trying to cross compile iotivity for arm architecture. I am getting the 
error that it can not find boost_thread.

I found out that I have to cross compile all the libs that I want (boost, 
gtest0 from a previous thread.

What is the best way to do this? Has anyone resolved this issue?

Cross compiling using yocto is trivial,
if you want to target ubuntu, well I would build on device (or qemu instance) 
like tizen is doing using GBS.
I am not sure cross compiling using scons is supported for other systems.
but could be added, please file bug we'll track it


--
mailto:philippe.coval at osg.samsung.com gpg:0x467094BC
https://blogs.s-osg.org/author/pcoval/




--
mailto:philippe.coval at osg.samsung.com gpg:0x467094BC
https://blogs.s-osg.org/author/pcoval/


-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170710/813cc128/attachment.html>


[dev] onGET Response error: 29

2017-03-30 Thread Natalia Theologou
Hello,


I would like a little bit help.

I am following these instructions:
https://www.iotivity.org/documentation/linux/getting-started
Getting Started | 
IoTivity
www.iotivity.org
Source code. There are 2 methods to get the source code. Downloading most 
stable source from here. Getting source directly from gerrit. Gerrit is a 
web-based code ...


(I downloaded the iotivity source code and didn't followed the five steps)
When I execute the
$ ./simpleclient
command in the terminal it returns in the end the error:


Found another resource, ignoring
onGET Response error: 29

and can't execute GET, PUT.
Simpleserver is in another terminal.


Have you got any idea on how to solve this?


Thank you in advance,
Natalia
-- next part --
An HTML attachment was scrubbed...
URL: 



[dev] onGET Response error: 29

2017-03-30 Thread Natalia Theologou
Hello,


I follow these instructions - Sample Application:



https://wiki.iotivity.org/security_resource_manager
security_resource_manager [Wiki] - 
wiki.iotivity.org
wiki.iotivity.org
Security Resource Manager (SRM) provides management of Secure Virtual Resources 
(SVRs) and access control based on policies defined by SVRs. SVRs are defined 
in a ...

but when I execute the

$ ./ocserverbasicops &

command in the terminal it returns the error:

./ocserverbasicops: error while loading shared libraries: liboctbstack.so: 
cannot open shared object file: No such file or directory

However the liboctbstack.so is in the folder /out/<...>/release  
and I have executed the $ export 
LD_LIBRARY_PATH=/out/<...>/release  command.



Have you got any idea on how to solve this?


Thank you in advance,
Natalia
-- next part --
An HTML attachment was scrubbed...
URL: 



[dev] liboctbstack.so - right email

2017-03-30 Thread Natalia Theologou


Hello,


I follow these instructions - Sample Application:



https://wiki.iotivity.org/security_resource_manager
security_resource_manager [Wiki] - 
wiki.iotivity.org
wiki.iotivity.org
Security Resource Manager (SRM) provides management of Secure Virtual Resources 
(SVRs) and access control based on policies defined by SVRs. SVRs are defined 
in a ...

but when I execute the

$ ./ocserverbasicops &

command in the terminal it returns the error:

./ocserverbasicops: error while loading shared libraries: liboctbstack.so: 
cannot open shared object file: No such file or directory

However the liboctbstack.so is in the folder /out/<...>/release  
and I have executed the $ export 
LD_LIBRARY_PATH=/out/<...>/release  command.



Have you got any idea on how to solve this?


Thank you in advance,
Natalia
-- next part --
An HTML attachment was scrubbed...
URL: