<p>- Our corporation has differ build system, makefile can not be used any more. I have to convert it into internal build config file, that is a big hassle I was working on during the last two weeks.</p><p>- after the cross compiling, I can build all those dynamic mod_console/... shared libraries. </p>
<p>But the target that bundles files like switch_core.c/switch_core_hash.c.... under /src is the culprit. Should the target be shared library libfreeswitch.so or <a href="http://libfreeswitch.la">libfreeswitch.la</a>? I tried both,</p>
<p>if it is built as libfreeswitch.so, then the executable built from switch.c will complain " switch.c:80: error: undefined reference to 'switch_core_session_ctl'"..etc.</p><p>If it is built as <a href="http://libfreeswitch.la">libfreeswitch.la</a>, the the launching of freeswitch will fail and throws error "switch_loadable_module.c:882 Error Loading module /CORE_SOFTTIMER_MODULE.so"</p>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><p>please share your advice.</p><p><br></p><p>I am building with fs 1.0.6.</p><p>-jesse</p><p><br></p>
<div class="gmail_quote">On Jun 16, 2011 12:36 PM, "Steven Ayre" <<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>> wrote:<br type="attribution">> Do you mind if I ask why it's causing problems for your cross compiling? It<br>
> makes it sound like you're compiling FS natively then cross compiling?<br>> <br>> If so, there's a much better way to do it that plenty of people are using<br>> successfully - you can give your target architecture to configure as an<br>
> option and autoconf/automake/libtool will do the rest for you.<br>> <br>> -Steve<br>> <br>> <br>> On 16 June 2011 20:25, Steven Ayre <<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>> wrote:<br>
> <br>>> They're built in. They're not separate modules, there's no need to load<br>>> them.<br>>><br>>> The .so is a shared library.<br>>> The .la is a static library created by libtool. It's like a .a file if you<br>
>> weren't using libtool.<br>>><br>>> -Steve<br>>><br>>><br>>><br>>> On 16 June 2011 20:02, jesse <<a href="mailto:chat2jesse@gmail.com" target="_blank">chat2jesse@gmail.com</a>> wrote:<br>
>><br>>>> in the core? I guess it is included in libfreeswitch.so.<br>>>><br>>>> based on the makefile output the libfreeswitch has two forms :<br>>>> <a href="http://libfreeswitch.la" target="_blank">libfreeswitch.la</a> and libfreeswitch.so, what is the reason ? It creates a<br>
>>> big headache for our cross compiling..<br>>>><br>>>> -jesse<br>>>><br>>>><br>>>> On Thu, Jun 16, 2011 at 11:31 AM, Anthony Minessale <<br>>>> <a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>> wrote:<br>
>>><br>>>>> in the core =D<br>>>>><br>>>>><br>>>>> On Thu, Jun 16, 2011 at 1:17 PM, jesse <<a href="mailto:chat2jesse@gmail.com" target="_blank">chat2jesse@gmail.com</a>> wrote:<br>
>>>> > I am doing cross compiling of freeswitch.<br>>>>> > 2011-06-16 11:12:46.912825 [WARNING] switch_loadable_module.c:948<br>>>>> Module<br>>>>> > path /CORE_SOFTTIMER_MODULE.so and file CORE_SOFTTIMER_MODULE to be<br>
>>>> loaded<br>>>>> > ...!<br>>>>> > 2011-06-16 11:12:46.912890 [CRIT] switch_loadable_module.c:882 Error<br>>>>> Loading<br>>>>> > module /CORE_SOFTTIMER_MODULE.so<br>
>>>> > **/CORE_SOFTTIMER_MODULE.so: cannot open shared object file: No such<br>>>>> file or<br>>>>> > directory**<br>>>>> > 2011-06-16 11:12:46.912905 [WARNING] switch_loadable_module.c:948<br>
>>>> Module<br>>>>> > path /CORE_PCM_MODULE.so and file CORE_PCM_MODULE to be loaded ...!<br>>>>> > 2011-06-16 11:12:46.912941 [CRIT] switch_loadable_module.c:882 Error<br>>>>> Loading<br>
>>>> > module /CORE_PCM_MODULE.so<br>>>>> > **/CORE_PCM_MODULE.so: cannot open shared object file: No such file or<br>>>>> > directory**<br>>>>> ><br>>>>> > I can't find them under /usr/local/freeswitch. where are they?<br>
>>>> > -jesse<br>>>>> > _______________________________________________<br>>>>> > FreeSWITCH-dev mailing list<br>>>>> > <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br>
>>>> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>>>>> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
>>>> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>>>>> ><br>>>>> ><br>>>>><br>>>>><br>>>>><br>>>>> --<br>
>>>> Anthony Minessale II<br>>>>><br>>>>> FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>>>>> ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
>>>> Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>>>>><br>>>>> AIM: anthm<br>>>>> <a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
>>>> GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>>>>> IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
>>>><br>
>>>> FreeSWITCH Developer Conference<br>>>>> <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>>>>> <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
>>>> pstn:<a href="tel:%2B19193869900" value="+19193869900" target="_blank">+19193869900</a><br>>>>><br>>>>> _______________________________________________<br>>>>> FreeSWITCH-dev mailing list<br>
>>>> <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br>
>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
>>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>>>>><br>>>><br>>>><br>>>> _______________________________________________<br>>>> FreeSWITCH-dev mailing list<br>
>>> <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>><br>>>><br>>><br></div>