[ovs-discuss] Fwd: Enabling compilation of C JSON parser (C python extension)

Numan Siddique nusiddiq at redhat.com
Thu Jun 13 06:11:21 UTC 2019


On Thu, Jun 13, 2019 at 8:17 AM nitish nagesh <nagesh.nitish at gmail.com>
wrote:

> Thanks Ben.
>
> Guys, any other recommendations, please help me out here.
>

I think you may have to compile openvswitch too with shared library option
so that libopenvswitch.so is generated.
I am not sure if this would help, but the openvswitch fedora spec file does
it this way -
https://src.fedoraproject.org/rpms/openvswitch/blob/master/f/openvswitch.spec#_326


Thanks
Numan


> Thanks,
>
> On Wed, Jun 12, 2019 at 10:48 PM Ben Pfaff <blp at ovn.org> wrote:
>
>> On Wed, Jun 12, 2019 at 09:41:03PM +0530, nitish nagesh wrote:
>> > | arm-cnos-linux-gnueabi-gcc -march=armv7-a
>> > --sysroot=/build/tmp/sysroots/switch -DNDEBUG -g -O3 -Wall
>> > -Wstrict-prototypes -O2 -pipe -ggdb3 -feliminate-unused-debug-types
>> >
>> -fdebug-prefix-map=/build/tmp/work/armv7a-cnos-linux-gnueabi/ops-openvswitch/1.0-r0_switch=/usr/src/debug/ops-openvswitch/1.0-r0_switch
>> > -fdebug-prefix-map=/build/tmp/sysroots/x86_64-linux=
>> > -fdebug-prefix-map=/build/tmp/sysroots/switch= -DOPS -fPIC -INone -I
>> > /build/tmp/sysroots/dover/usr/include/python2.7 -c ovs/_json.c -o
>> > build/temp.linux-x86_64-2.7/ovs/_json.o
>> >
>> > | ovs/_json.c:2:30: fatal error: openvswitch/json.h: No such file or
>> > directory
>> >
>> >
>> >
>> >     I tried several option, to the best of my knowledge, to pass he
>> include
>> > path to the build system (using include_dirs in setup.py, through
>> > automake.mk etc). But I can’t seem to get my head around this. I am a
>> > novice to yocto & autotools. I am starting to doubt if the approach I am
>> > following is even correct?
>>
>> I don't think that the OVS use of Python is very special.  My guess is
>> that your question can be answered by looking in some more generic place
>> for advice on (cross?)compiling Python binary modules.
>>
>> I don't have experience in this particular area, so I'm not able to
>> offer more useful advice than that.  Maybe someone else will speak up,
>> if we're lucky.
>>
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20190613/4f3d056f/attachment.html>


More information about the discuss mailing list