Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Troubles build with mod_cepstral


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
max.bridgewater at gma...
Guest





PostPosted: Sun Aug 30, 2009 12:54 pm    Post subject: [Freeswitch-users] Troubles build with mod_cepstral Reply with quote

Hi,

I was trying to build freeswitch with cepstral enabled. Here is the procdure i am following:
http://wiki.freeswitch.org/wiki/Mod_cepstral#Can_I_use_a_16khz_.22desktop_voice.22.3F

Unfortunately, the build fails as show in the log message hereunder.  In a previous thread, Brian says that the SDK is needed. Yet on the above wiki page, it is said that the SDK is not needed.
Any suggestion?

Max.

Compiling mod_cepstral.c ...
Creating mod_cepstral.so...
/usr/bin/ld: skipping incompatible /opt/swift/lib/libswift.so when searching for -lswift
/usr/bin/ld: cannot find -lswift
collect2: ld returned 1 exit status
gcc -w -I/home/installs/freeswitch/src/include -I/home/installs/freeswitch/libs/libteletone/src -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -g -O2 -Wall -std=c99 -pedantic -D_GNU_SOURCE -I/include -I/opt/swift/include -shared -o .libs/mod_cepstral.so -shared -Wl,-x .libs/mod_cepstral.o  -L/lib -L/opt/swift/lib -lswift -lm /home/installs/freeswitch/.libs/libfreeswitch.so -L/home/installs/freeswitch/libs/apr-util/xml/expat/lib /home/installs/freeswitch/libs/apr-util/xml/expat/lib/.libs/libexpat.a /home/installs/freeswitch/libs/apr/.libs/libapr-1.a -luuid -lrt -lcrypt -lpthread -L/home/installs/freeswitch/libs/srtp -L/usr/kerberos/lib64 -lssl -lcrypto -ldl -lz -lncurses   -Wl,--rpath -Wl,/usr/local/freeswitch/lib -Wl,--rpath -Wl,/usr/local/freeswitch/mod
make[5]: *** [mod_cepstral.so] Error 1
make[4]: *** [all] Error 1
make[3]: *** [mod_cepstral-all] Error 1
make[2]: *** [all-recursive] Error 1
Making all in build
 +-------- FreeSWITCH Build Complete -----------+
 + FreeSWITCH has been successfully built.      +
 + Install by running:                          +
 +                                              +
 +               make install                   +
 +----------------------------------------------+
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Back to top
brian at freeswitch.org
Guest





PostPosted: Sun Aug 30, 2009 1:02 pm    Post subject: [Freeswitch-users] Troubles build with mod_cepstral Reply with quote

You still have to have the voices installed... the SDK comes with each voice for Linux ... for windows you have to have the SDK...

/b

On Aug 30, 2009, at 12:47 PM, Max Bridgewater wrote:
Quote:
Hi,

I was trying to build freeswitch with cepstral enabled. Here is the procdure i am following:
http://wiki.freeswitch.org/wiki/Mod_cepstral#Can_I_use_a_16khz_.22desktop_voice.22.3F

Unfortunately, the build fails as show in the log message hereunder. In a previous thread, Brian says that the SDK is needed. Yet on the above wiki page, it is said that the SDK is not needed.
Any suggestion?

Max.
Back to top
max.bridgewater at gma...
Guest





PostPosted: Sun Aug 30, 2009 1:17 pm    Post subject: [Freeswitch-users] Troubles build with mod_cepstral Reply with quote

OK, it's bad and good news. It's good news because it's reassuring that i don't need a separate SDK. Its bad news because i already installed a voice (Jean-Pierre) following the procedure describe on the wiki. I will now delete it and install the Allison voice to see if there is any difference. Will let ya know.

On Sun, Aug 30, 2009 at 1:58 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:
You still have to have the voices installed... the SDK comes with each voice for Linux ... for windows you have to have the SDK...

/b

On Aug 30, 2009, at 12:47 PM, Max Bridgewater wrote:

Quote:
Hi,

I was trying to build freeswitch with cepstral enabled. Here is the procdure i am following: 
http://wiki.freeswitch.org/wiki/Mod_cepstral#Can_I_use_a_16khz_.22desktop_voice.22.3F

Unfortunately, the build fails as show in the log message hereunder.  In a previous thread, Brian says that the SDK is needed. Yet on the above wiki page, it is said that the SDK is not needed. 
Any suggestion?

Max.






_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
max.bridgewater at gma...
Guest





PostPosted: Sun Aug 30, 2009 1:39 pm    Post subject: [Freeswitch-users] Troubles build with mod_cepstral Reply with quote

Even more bad news. I downloaded the Allison voice and have the same error message. Any idea what this means?


mkdir .libs
Compiling mod_cepstral.c ...
Creating mod_cepstral.so...
/usr/bin/ld: skipping incompatible /opt/swift/lib/libswift.so when searching for -lswift
/usr/bin/ld: cannot find -lswift
collect2: ld returned 1 exit status
gcc -w -I/home/installs/freeswitch/src/include -I/home/installs/freeswitch/libs/libteletone/src -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -g -O2 -Wall -std=c99 -pedantic -D_GNU_SOURCE -I/opt/swift/include -I/opt/swift/include -shared -o .libs/mod_cepstral.so -shared -Wl,-x .libs/mod_cepstral.o  -L/opt/swift/lib -lswift -lm /home/installs/freeswitch/.libs/libfreeswitch.so -L/home/installs/freeswitch/libs/apr-util/xml/expat/lib /home/installs/freeswitch/libs/apr-util/xml/expat/lib/.libs/libexpat.a /home/installs/freeswitch/libs/apr/.libs/libapr-1.a -luuid -lrt -lcrypt -lpthread -L/home/installs/freeswitch/libs/srtp -L/usr/kerberos/lib64 -lssl -lcrypto -ldl -lz -lncurses   -Wl,--rpath -Wl,/usr/local/freeswitch/lib -Wl,--rpath -Wl,/usr/local/freeswitch/mod
make[5]: *** [mod_cepstral.so] Error 1
make[4]: *** [all] Error 1
make[3]: *** [mod_cepstral-all] Error 1
make[2]: *** [all-recursive] Error 1
Making all in build
 +-------- FreeSWITCH Build Complete -----------+
 + FreeSWITCH has been successfully built.      +
 + Install by running:                          +
 +                                              +
 +               make install                   +
 +----------------------------------------------+
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Back to top
brian at freeswitch.org
Guest





PostPosted: Sun Aug 30, 2009 1:40 pm    Post subject: [Freeswitch-users] Troubles build with mod_cepstral Reply with quote

You also failed to read this:

http://wiki.freeswitch.org/wiki/Mod_cepstral#libswift.so.4:_cannot_open_shared_object_file:_No_such_file_or_directory


You have to add the directory to your ld.so.conf so it can find -lswift.


/b

On Aug 30, 2009, at 1:09 PM, Max Bridgewater wrote:
Quote:
OK, it's bad and good news. It's good news because it's reassuring that i don't need a separate SDK. Its bad news because i already installed a voice (Jean-Pierre) following the procedure describe on the wiki. I will now delete it and install the Allison voice to see if there is any difference. Will let ya know.

On Sun, Aug 30, 2009 at 1:58 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:
You still have to have the voices installed... the SDK comes with each voice for Linux ... for windows you have to have the SDK...

/b

On Aug 30, 2009, at 12:47 PM, Max Bridgewater wrote:

Quote:
Hi,

I was trying to build freeswitch with cepstral enabled. Here is the procdure i am following:
http://wiki.freeswitch.org/wiki/Mod_cepstral#Can_I_use_a_16khz_.22desktop_voice.22.3F

Unfortunately, the build fails as show in the log message hereunder. In a previous thread, Brian says that the SDK is needed. Yet on the above wiki page, it is said that the SDK is not needed.
Any suggestion?

Max.






_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
brian at freeswitch.org
Guest





PostPosted: Sun Aug 30, 2009 1:50 pm    Post subject: [Freeswitch-users] Troubles build with mod_cepstral Reply with quote

Yes please add /opt/swift/lib to /etc/ld.so.conf as per the FAQ.

/b

On Aug 30, 2009, at 1:33 PM, Max Bridgewater wrote:

Quote:
/usr/bin/ld: cannot find -lswift


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
max.bridgewater at gma...
Guest





PostPosted: Sun Aug 30, 2009 2:04 pm    Post subject: [Freeswitch-users] Troubles build with mod_cepstral Reply with quote

Please bear with me. Here is the content of my  /etc/ld.so.conf:

include ld.so.conf.d/*.conf
/opt/swift/lib

And when i do "ldconfig -p | grep swift" , i get the following:

   libswift.so.5 (libc6) => /opt/swift/lib/libswift.so.5
   libswift.so (libc6) => /opt/swift/lib/libswift.so
   libceplex_us.so.5 (libc6) => /opt/swift/lib/libceplex_us.so.5
   libceplex_us.so (libc6) => /opt/swift/lib/libceplex_us.so
   libceplang_en.so.5 (libc6) => /opt/swift/lib/libceplang_en.so.5
   libceplang_en.so (libc6) => /opt/swift/lib/libceplang_en.so

So, can it be that Freeswitch is looking for libswift.so.4 instead of libswift.so.5 (as the first line of the wiki page is actually saying)? If so, where do i get this 4.x version? I can't find it in on cepstral site.

Max.
Back to top
brian at freeswitch.org
Guest





PostPosted: Sun Aug 30, 2009 2:16 pm    Post subject: [Freeswitch-users] Troubles build with mod_cepstral Reply with quote

make sure you run ldconfig after you add the line then try to compile
it again.


/b

On Aug 30, 2009, at 1:59 PM, Max Bridgewater wrote:

Quote:
Please bear with me. Here is the content of my /etc/ld.so.conf:

include ld.so.conf.d/*.conf
/opt/swift/lib


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
pete at privateconnect...
Guest





PostPosted: Sun Aug 30, 2009 2:40 pm    Post subject: [Freeswitch-users] Troubles build with mod_cepstral Reply with quote

I received a similar error trying to compile cepstral on a 64-bit OS. I don't think Cepstral supports 64-bit, as the SDK is 32-bit.

-pete

Quote:
-------- Original Message --------
Subject: Re: [Freeswitch-users] Troubles build with mod_cepstral
From: Max Bridgewater <max.bridgewater@gmail.com>
Date: Sun, August 30, 2009 11:33 am
To: freeswitch-users@lists.freeswitch.org

Even more bad news. I downloaded the Allison voice and have the same error message. Any idea what this means?


mkdir .libs
Compiling mod_cepstral.c ...
Creating mod_cepstral.so...
/usr/bin/ld: skipping incompatible /opt/swift/lib/libswift.so when searching for -lswift
/usr/bin/ld: cannot find -lswift
collect2: ld returned 1 exit status
gcc -w -I/home/installs/freeswitch/src/include -I/home/installs/freeswitch/libs/libteletone/src -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -g -O2 -Wall -std=c99 -pedantic -D_GNU_SOURCE -I/opt/swift/include -I/opt/swift/include -shared -o .libs/mod_cepstral.so -shared -Wl,-x .libs/mod_cepstral.o -L/opt/swift/lib -lswift -lm /home/installs/freeswitch/.libs/libfreeswitch.so -L/home/installs/freeswitch/libs/apr-util/xml/expat/lib /home/installs/freeswitch/libs/apr-util/xml/expat/lib/.libs/libexpat.a /home/installs/freeswitch/libs/apr/.libs/libapr-1.a -luuid -lrt -lcrypt -lpthread -L/home/installs/freeswitch/libs/srtp -L/usr/kerberos/lib64 -lssl -lcrypto -ldl -lz -lncurses -Wl,--rpath -Wl,/usr/local/freeswitch/lib -Wl,--rpath -Wl,/usr/local/freeswitch/mod
make[5]: *** [mod_cepstral.so] Error 1
make[4]: *** [all] Error 1
make[3]: *** [mod_cepstral-all] Error 1
make[2]: *** [all-recursive] Error 1
Making all in build
+-------- FreeSWITCH Build Complete -----------+
+ FreeSWITCH has been successfully built. +
+ Install by running: +
+ +
+ make install +
+----------------------------------------------+
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
mrene_lists at avgs.ca
Guest





PostPosted: Sun Aug 30, 2009 2:43 pm    Post subject: [Freeswitch-users] Troubles build with mod_cepstral Reply with quote

... skipping incompatible /opt/swift/lib/libswift.so when searching for -lswift thats a sign you're trying to link a 64 bits binary with a 32 bits one.
Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mrene@avgs.ca (mrene@avgs.ca)








On 30-Aug-09, at 3:33 PM, Pete Mueller wrote:
Quote:
skipping incompatible /opt/swift/lib/libswift.so when searching for -lswift
Back to top
brian at freeswitch.org
Guest





PostPosted: Sun Aug 30, 2009 3:59 pm    Post subject: [Freeswitch-users] Troubles build with mod_cepstral Reply with quote

http://downloads.cepstral.com/cepstral/x86-64-linux/Cepstral_Allison_x86-64-linux_5.1.0.tar.gz

Make sure you download the 64bit version.

/b



On Aug 30, 2009, at 2:33 PM, Pete Mueller wrote:

Quote:
I don't think Cepstral supports 64-bit, as the SDK is 32-bit.


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
max.bridgewater at gma...
Guest





PostPosted: Sun Aug 30, 2009 4:53 pm    Post subject: [Freeswitch-users] Troubles build with mod_cepstral Reply with quote

Nop, the 64bit  cepstral doesn't work either:

Creating mod_cepstral.so...
/usr/bin/ld: skipping incompatible /opt/swift/lib/libswift.so when searching for -lswift
/usr/bin/ld: cannot find -lswift
collect2: ld returned 1 exit status
gcc -w -I/home/installs/freeswitch/src/include -I/home/installs/freeswitch/libs/libteletone/src -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -g -O2 -Wall -std=c99 -pedantic -D_GNU_SOURCE -I/opt/swift/include -I/opt/swift/include -shared -o .libs/mod_cepstral.so -shared -Wl,-x .libs/mod_cepstral.o  -L/opt/swift/lib -lswift -lm /home/installs/freeswitch/.libs/libfreeswitch.so -L/home/installs/freeswitch/libs/apr-util/xml/expat/lib /home/installs/freeswitch/libs/apr-util/xml/expat/lib/.libs/libexpat.a /home/installs/freeswitch/libs/apr/.libs/libapr-1.a -luuid -lrt -lcrypt -lpthread -L/home/installs/freeswitch/libs/srtp -L/usr/kerberos/lib64 -lssl -lcrypto -ldl -lz -lncurses   -Wl,--rpath -Wl,/usr/local/freeswitch/lib -Wl,--rpath -Wl,/usr/local/freeswitch/mod
make[5]: *** [mod_cepstral.so] Error 1
make[4]: *** [all] Error 1
make[3]: *** [mod_cepstral-all] Error 1
make[2]: *** [all-recursive] Error 1
Making all in build
 +-------- FreeSWITCH Build Complete -----------+
 + FreeSWITCH has been successfully built.      +
 + Install by running:                          +
 +                                              +
 +               make install                   +
 +----------------------------------------------+
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Back to top
brian at freeswitch.org
Guest





PostPosted: Sun Aug 30, 2009 4:57 pm    Post subject: [Freeswitch-users] Troubles build with mod_cepstral Reply with quote

Make sure you rm -rf /opt/swift then reinstall

/b

On Aug 30, 2009, at 4:49 PM, Max Bridgewater wrote:

Quote:
Nop, the 64bit cepstral doesn't work either:

Creating mod_cepstral.so...
/usr/bin/ld: skipping incompatible /opt/swift/lib/libswift.so when
searching for -lswift
/usr/bin/ld: cannot find -lswift
collect2: ld returned 1 exit status


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
max.bridgewater at gma...
Guest





PostPosted: Mon Aug 31, 2009 11:41 am    Post subject: [Freeswitch-users] Troubles build with mod_cepstral Reply with quote

I thought i did that before trying. But i tried again and everything works.

Thanks for you unyielding patience.
Max.

On Sun, Aug 30, 2009 at 5:53 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:
Make sure you rm -rf /opt/swift then reinstall

/b

On Aug 30, 2009, at 4:49 PM, Max Bridgewater wrote:

Quote:
Nop, the 64bit  cepstral doesn't work either:

Creating mod_cepstral.so...
/usr/bin/ld: skipping incompatible /opt/swift/lib/libswift.so when
searching for -lswift
/usr/bin/ld: cannot find -lswift
collect2: ld returned 1 exit status




_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services