[Freeswitch-users] Help building MOD_FLITE library on Ubuntu

Michael Jerris mike at jerris.com
Fri Oct 9 22:11:14 MSD 2015


freeswitch does need to link against the so, yes, pkg-config should handle that.  Is this a 32 vs 64 issue?  I suspect you have something weird with another version of flite installed too, and lib paths are different somehow on ubuntu so its finding the wrong one.  look for multiple libs installed.

> On Oct 9, 2015, at 1:06 PM, Carlos Fererro <carlos4fsint at gmail.com> wrote:
> 
> Hi Michael,
> 
> thank you so much for you reply. Yes, build of this library creates a pkgconfig directory with flite.pc and FreeSWITCH does recognize the version of the library it is looking for.
> 
> Just one more issue I encountered during the build:
> 
>   CC       mod_flite_la-mod_flite.lo
>   CCLD     mod_flite.la <http://mod_flite.la/>
> /usr/bin/ld: /usr/local/lib/libflite.a(cst_wave.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
> /usr/local/lib/libflite.a: error adding symbols: Bad value
> collect2: error: ld returned 1 exit status
> 
> And I did try to recompile the FILTE library with -fPIC, although I don't think that's the issue, and it didn't help. So, does the FreeSWITCH wants to link against the .so library file? 
> 
> Thanks again
> Carlos
> 
> On Fri, Oct 9, 2015 at 10:06 AM, Michael Jerris <mike at jerris.com <mailto:mike at jerris.com>> wrote:
> try this one:
> 
> http://files.freeswitch.org/downloads/libs/flite-2.0.0.tar.gz <http://files.freeswitch.org/downloads/libs/flite-2.0.0.tar.gz>
> 
> > On Oct 9, 2015, at 11:52 AM, Carlos Fererro <carlos4fsint at gmail.com <mailto:carlos4fsint at gmail.com>> wrote:
> >
> > Hello,
> >
> > I am trying to build mod_flite module on Ubuntu 14.01 and unfortunately with no luck.
> > The build is looking for the FLITE engine library version 2.0.0 or higher. And consequently suggests installing
> > libflite-dev library. Which I built from source (flite-2.0.0-release.tar.bz2 tarball) as there is no FLITE library
> > version 2.0.0 in the official distribution available (at least I could not find it).
> > Unfortunately no matter where I install the FLITE engine library I build (by default it goes under /usr/local/..)
> > FreeSWITCH build doesn't seem to find it.
> >
> > Needless to say I have zero problem building mod_flite module in the older releases of the FreeSWITCH, where
> > FLITE library tarball (I believe it was 1.5.7) was part of the FreeSWITCH distribution and was built automatically
> > as part of the FreeSWITCH build.
> >
> > Seems me that FreeSWITCH wants to find an FLITE library in the form of the shared library, not .a file as it
> > build from the source. Is there a solution already exists to this? As I am sure I am not the first one with this
> > issue.
> >
> > Greatly appreciate any help on the subject
> > Carlos
> > _________________________________________________________________________
> > Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org <mailto:consulting at freeswitch.org>
> > http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
> >
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org <http://www.freeswitch.org/>
> > http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
> > http://www.cluecon.com <http://www.cluecon.com/>
> >
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
> > http://www.freeswitch.org <http://www.freeswitch.org/>
> 
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org <http://www.freeswitch.org/>
> http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
> http://www.cluecon.com <http://www.cluecon.com/>
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
> http://www.freeswitch.org <http://www.freeswitch.org/>
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services: 
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20151009/6f1c4747/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list