[Freeswitch-dev] how to use switch_json?

Seven Du dujinfang at gmail.com
Tue Aug 31 18:30:50 PDT 2010


Got it, cJSON in libfreeswitch.a but not .dylib, how does FS use it?

On Wed, Sep 1, 2010 at 9:13 AM, Seven Du <dujinfang at gmail.com> wrote:
> On Wed, Sep 1, 2010 at 4:16 AM, Anthony Minessale
> <anthony.minessale at gmail.com> wrote:
>> why are you basing it on FSCOMM instead of helping make the actual FSCOMM?
>>
>
> Because I'm not only working on a SIP client but a client will
> interaction with our system with flash, socket communication etc. SIP
> is only part of it.
>
> And, for FSComm, I do have sth. to discuss
>
> 1) Some of my patches already in tree.
>
> 2) I do made a branch a few days ago, fixed some bugs and changed UI.
> While I have some idea to make it better, I'm new to QT, and you know
> that it's a little hard to merge UI codes. So I'd like to keep on
> working the branch until it looks better.
>
> 3) The hard part of FSComm is the UI, It's hard to agree an UI. So I
> think the better way is to work out my branch and we can see what need
> to merge back to the master tree.
>
> 4) I once had a branch (and contrib dir) on SVN, but didn't follow
> after turn to git. So, I'd like to get an access again so I can push
> my code. I cannot access fisheye right now, so cannot tell the repo
> structure.
>
> 5) As the idea of FSComm is to use libfreeswitch, not the FS source,
> so,, would it be better to split into a stand alone project? I guess
> it would be easy to maintain.
>
> i.e. I can build and link with libfreeswitch in
> /usr/local/freeswitch/{include,lib} without the FS source.
>
>
> @João, thank you to make FSComm happen.
>
> I'm using qjson (http://qjson.sourceforge.net/) right now. It works
> great, but as it need extra steps to link it and make it in release
> package(especially for multi-OS), I'd like to find a "native"
> solution.
> I will try the QT script one. But at the same time, I still interested
> to link to cJSON.
>
> Thanks.
>
>> On Tue, Aug 31, 2010 at 4:34 AM, Seven Du <dujinfang at gmail.com> wrote:
>>> Hi,
>>>
>>> I'm developing a client based on FSComm (using QT), I need to parse
>>> some JSON string, as FS already has json libs build in so I don't want
>>> link to other json libs.
>>>
>>> I used cJSON_Parse, but when I tried to link with libfreeswitch, but
>>> it cannot found cJSON_Parse
>>>
>>> Undefined symbols:
>>>  "_cJSON_Parse", referenced from:
>>>
>>> I listed functions using
>>>
>>> nm -gfj libfreeswitch.dylib (on mac), there are no json related
>>>
>>> And there's no libjson in /usr/local/freeswitch/lib
>>>
>>> So, where is it? As event socket support json format it should be somewhere.
>>>
>>> I build mod_curl, then it download json lib again.
>>>
>>> I'm on git version a few days ago.
>>>
>>> Thanks.
>>>
>>> --
>>> Blog: http://www.dujinfang.com
>>> Proj:  http://www.freeswitch.org.cn
>>>
>>> _______________________________________________
>>> FreeSWITCH-dev mailing list
>>> FreeSWITCH-dev at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
>>> http://www.freeswitch.org
>>>
>>
>>
>>
>> --
>> Anthony Minessale II
>>
>> FreeSWITCH http://www.freeswitch.org/
>> ClueCon http://www.cluecon.com/
>> Twitter: http://twitter.com/FreeSWITCH_wire
>>
>> AIM: anthm
>> MSN:anthony_minessale at hotmail.com
>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>> IRC: irc.freenode.net #freeswitch
>>
>> FreeSWITCH Developer Conference
>> sip:888 at conference.freeswitch.org
>> googletalk:conf+888 at conference.freeswitch.org
>> pstn:+19193869900
>>
>> _______________________________________________
>> FreeSWITCH-dev mailing list
>> FreeSWITCH-dev at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
>> http://www.freeswitch.org
>>
>
>
>
> --
> Blog: http://www.dujinfang.com
> Proj:  http://www.freeswitch.org.cn
>



-- 
Blog: http://www.dujinfang.com
Proj:  http://www.freeswitch.org.cn



More information about the FreeSWITCH-dev mailing list