[Freeswitch-users] Freeswitch configure error using --srcdir option

Robert Hadley robert.hadley at teotech.com
Fri Nov 13 09:26:40 PST 2009


Hello All

 

On CentOS 5.3, I am trying to build Freeswitch in a different directory and
use the -srcdir= option.  One reason I want to do this to have Debug and
Release build targets from the same source.

 

It doesn't work, the configure errors when it gets to the first library
subdirectory lib/srtp and tries to configure in there.

 

The steps I am doing are:

1.	Building as root 
2.	Unzip freeswitch-1.0.4-tar.gz in /opt 
3.	cd into /opt/freeswitch-1.0.4 
4.	mkdir Debug 
5.	cd Debug 
6.	../configure -srcdir=".." CFLAGS="-g -ggdb -O2" 
7.	After several seconds of configuring I get: 

=== configuring in libs/srtp (/opt/freeswitch-1.0.4/Debug/libs/srtp)

configure: running /bin/sh ../../../libs/srtp/configure.gnu
--disable-option-checking '--prefix=/usr/local/freeswitch'  'CFLAGS=-g -ggdb
-O2' --cache-file=/dev/null --srcdir=../../../libs/srtp

../../../libs/srtp/configure.gnu: line 2: ./configure: No such file or
directory

configure: error: ../../../libs/srtp/configure.gnu failed for libs/srtp

[root at roberth-c53 Debug]# 

 

The file that's executing is this:

[root at roberth-c53 srtp]# cd libs/srtp; cat ../../../libs/srtp/configure.gnu 

#! /bin/sh

./configure "$@" --disable-shared --with-pic

 

 

Please tell me if I understood the -srcdir option correctly and if there is
a way to do build in a different directory.

 

Thanks,

Robert

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091113/354433a3/attachment-0002.html 


More information about the FreeSWITCH-users mailing list