If you have install manually (in /usr/local/), maybe add
-L/usr/local/lib to the library path of the SConstruct.
Normally on many Linux distributions, there is a jsoncpp package.
Le 07/11/2013 01:19, Sveinn Valfells a écrit :
> Hello,
>
> Checked out revision 275 of jsoncpp, installs without issues.
>
> Checked out revision 68 of json-rcp, gives the following error:
>
> <error>
>
> scons: Building targets ...
> g++ -o libjsonrpc.so -shared src/jsonrpc_handler.os
> src/jsonrpc_server.os src/jsonrpc_client.os src/jsonrpc_udpserver.os
> src/jsonrpc_tcpserver.os src/jsonrpc_udpclient.os
> src/jsonrpc_tcpclient.os src/netstring.os src/system.os
> src/networking.os src/jsonrpc_httpclient.os -ljson -lcurl -lpthread
> /usr/bin/ld: cannot find -ljson
> collect2: ld returned 1 exit status
> scons: *** [libjsonrpc.so] Error 1
> scons: building terminated because of errors.
>
> </error>
>
> I am following the instructions for JsonRpc-Cpp here
>
> http://jsonrpc-cpp.sourceforge.net/index.php?n=Doc.UserDocumentation
>
> (revision 68)
>
> the only dependency listed is for scons and JsonCpp, JsonCpp I got here
>
> http://jsonrpc-cpp.sourceforge.net/index.php?n=Doc.FAQ
>
> (revision 275)
>
> It would appear to me that the json library "-ljson" should be installed
> with JsonCpp, but isn't - at least not in a way g++ can find it.
>
> Don't know my way around scons, any suggestions on where to look for the
> missing library?
>
> Thanks!!
>
> Sveinn "Swain" Valfells
> London, UK
>
> ------------------------------------------------------------------------------
> November Webinars for C, C++, Fortran Developers
> Accelerate application performance with scalable programming models. Explore
> techniques for threading, error checking, porting, and tuning. Get the most
> from the latest Intel processors and coprocessors. See abstracts and register
> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
> _______________________________________________
> Jsonrpc-cpp-devel mailing list
> Jso...@li...
> https://lists.sourceforge.net/lists/listinfo/jsonrpc-cpp-devel
|