parsing of int64 in stable release of Json-c

73 views
Skip to first unread message

jaimin jetly

unread,
May 9, 2012, 3:05:12 PM5/9/12
to json-c
Hello,
I am using Json-c in my present project and it requires to parse
int64.
I wanted to know is there any current stable release of Json-c that
supports int64 ?
I don't want to clone Json-c from github but instead download a stable
release of it and configure it through my project ant build file.

Eric Haszlakiewicz

unread,
May 9, 2012, 4:24:29 PM5/9/12
to jso...@googlegroups.com

There is a branch created for the next release (0.10).  For my purposes it works ok, but before I create an actual release I was hoping to get some other people to try it out.  For now that's the closest to "stable" that we have.

Json-c uses configure+make, not ant, so I'm not quite sure what you'd do with ant.

Eric

jaimin jetly

unread,
May 9, 2012, 7:37:43 PM5/9/12
to json-c
Eric,
Thanks for the information.

Ant is specific to my project which I use to configure+make my project
and the project uses Json-c. I was thinking if I could download and
configure+make Json-c (stable) through my ant build.xml. Ant would
simply use configure+make commands.

make n configure in build.xml:

<target name="compile" >
<exec executable="autoreconf" dir="${basedir}"
searchpath="yes" failonerror="yes">
<arg value="-if"/>
</exec>

<exec executable="${basedir}/configure" dir="${basedir}"
failonerror="yes">
</exec>

<exec executable="make" failonerror="true"/>
</target>


On May 9, 1:24 pm, Eric Haszlakiewicz <haw...@gmail.com> wrote:

Eric Haszlakiewicz

unread,
May 9, 2012, 11:00:43 PM5/9/12
to jso...@googlegroups.com
On Wed, May 9, 2012 at 6:37 PM, jaimin jetly <jaimin...@gmail.com> wrote:
> Ant is specific to my project which I use to configure+make my project
> and the project uses Json-c.  I was thinking if I could download and
> configure+make Json-c (stable) through my ant build.xml. Ant would
> simply use configure+make commands.
>
> make n configure in build.xml:
>
> <target name="compile" >
>    <exec executable="autoreconf" dir="${basedir}"
>          searchpath="yes" failonerror="yes">
>       <arg value="-if"/>
>    </exec>
>
>    <exec executable="${basedir}/configure" dir="${basedir}"
>          failonerror="yes">
>    </exec>
>
>    <exec executable="make" failonerror="true"/>
>  </target>

Well, sure something like that will probably work, but it's a bit
unusual to be constantly building a library that is external to your
project. At the very least you'll need to be sure to include a "make
install" command to install the binaries (and perform the final
link!), and a --prefix option to configure so the build doesn't try to
install things to a location that you don't have permissions to write
to.

However, I highly recommend building json-c ahead of time and
installing it normally (i.e. system wide) if you can. If you can't,
then things get tricky, especially if you're working in a
heterogeneous environment (e.g. building on NetBSD one day, Linux the
next, etc...). I've had reasonable results using architecture
specific artifacts stored in a Maven repository using the nar plugin,
but using Maven would be a pretty big change from ant.

eric
Reply all
Reply to author
Forward
0 new messages