[Freeswitch-users] Building Freeswitch with VPATH (src and obj directories are different)?
Simon J Mudd
sjmudd at pobox.com
Tue Oct 13 13:59:07 PDT 2009
I was hoping to be able to build Freeswitch using VPATH, that is have the src and object directories in different locations.
This ensures that the src tree is unspoilt and I don't have to reclean it if I do updates.
However this does not seem to work:
[sjmudd at mad07 src]$ pwd
/Users/sjmudd/src
[sjmudd at mad07 src]$ ls -l | grep freeswitch
drwxr-xr-x 3 sjmudd staff 102 13 Oct 07:52 freeswitch-obj
drwxr-xr-x 56 sjmudd staff 1904 13 Oct 14:29 freeswitch-svn
[sjmudd at mad07 src]$ cd freeswitch-obj
[sjmudd at mad07 freeswitch-obj]$ ../freeswitch-svn/configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ../freeswitch-svn/build/config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
configure: error: source directory already configured; run "make distclean" there first
[sjmudd at mad07 freeswitch-obj]$ cd ../freeswitch-svn
[sjmudd at mad07 freeswitch-svn]$ make distclean
Making clean in build
Making clean in src
Making clean in mod
making clean mod_amr
making clean mod_cdr_csv
making clean mod_cluechoo
making clean mod_commands
making clean mod_conference
making clean mod_console
making clean mod_dialplan_asterisk
making clean mod_dialplan_xml
making clean mod_dptools
making clean mod_enum
making clean mod_esf
making clean mod_event_socket
making clean mod_expr
making clean mod_fifo
making clean mod_file_string
making clean mod_fsv
making clean mod_g723_1
making clean mod_g729
making clean mod_h26x
making clean mod_iax
making clean mod_ilbc
making clean mod_limit
making clean mod_local_stream
making clean mod_logfile
making clean mod_loopback
making clean mod_lua
making clean mod_native_file
making clean mod_say_en
making clean mod_siren
making clean mod_sndfile
making clean mod_sofia
rm -f "./so_locations"
making clean mod_speex
making clean mod_spidermonkey
making clean mod_spidermonkey_core_db
making clean mod_spidermonkey_socket
making clean mod_spidermonkey_teletone
making clean mod_syslog
making clean mod_tone_stream
making clean mod_voicemail
making clean mod_voipcodecs
making clean mod_xml_cdr
making clean mod_xml_rpc
making clean mod_alsa
making clean mod_amrwb
making clean mod_celt
making clean mod_cepstral
making clean mod_dahdi_codec
making clean mod_dialplan_directory
making clean mod_dingaling
making clean mod_easyroute
making clean mod_erlang_event
making clean mod_event_multicast
making clean mod_fax
making clean mod_flite
WARNING mod_http is not a valid FreeSWITCH module dir, skipping it.....
making clean mod_lcr
making clean mod_ldap
making clean mod_memcache
making clean mod_nibblebill
making clean mod_opal
Package opal was not found in the pkg-config search path.
Perhaps you should add the directory containing `opal.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opal' found
Package opal was not found in the pkg-config search path.
Perhaps you should add the directory containing `opal.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opal' found
making clean mod_openzap
rm -f "./so_locations"
rm -f "./so_locations"
rm -f "./so_locations"
rm -f "./so_locations"
rm -f "./so_locations"
rm -f "./so_locations"
rm -f "./so_locations"
rm -f testtones testtones
rm -f detect_tones detect_tones
rm -f detect_dtmf detect_dtmf
rm -f testisdn testisdn
rm -f testpri testpri
rm -f testr2 testr2
rm -f testboost testboost
rm -f testanalog testanalog
rm -f testapp testapp
rm -f testcid testcid
making clean mod_perl
making clean mod_pocketsphinx
making clean mod_portaudio
making clean mod_python
making clean mod_radius_cdr
making clean mod_rss
making clean mod_say_de
making clean mod_say_es
making clean mod_say_fr
making clean mod_say_it
making clean mod_say_nl
making clean mod_say_ru
making clean mod_say_zh
making clean mod_shout
making clean mod_skypiax
making clean mod_snom
making clean mod_soundtouch
making clean mod_spidermonkey_odbc
making clean mod_spy
making clean mod_vmd
making clean mod_xml_curl
making clean mod_xml_ldap
making clean mod_yaml
Making clean in .
Making clean in .
rm -f freeswitch freeswitch
rm -f fs_cli fs_cli
rm -f fs_ivrd fs_ivrd
rm -f "./so_locations"
[sjmudd at mad07 freeswitch-svn]$ cd ../freeswitch-obj
[sjmudd at mad07 freeswitch-obj]$ ../freeswitch-svn/configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ../freeswitch-svn/build/config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
configure: error: source directory already configured; run "make distclean" there first
[sjmudd at mad07 freeswitch-obj]$
This is with
[sjmudd at mad07 freeswitch-svn]$ svn info
Path: .
URL: http://svn.freeswitch.org/svn/freeswitch/trunk
Repository Root: http://svn.freeswitch.org/svn
Repository UUID: d0543943-73ff-0310-b7d9-9358b9ac24b2
Revision: 15138
Node Kind: directory
Schedule: normal
Last Changed Author: anthm
Last Changed Rev: 15138
Last Changed Date: 2009-10-12 16:58:09 +0200 (Mon, 12 Oct 2009)
Simon
More information about the FreeSWITCH-users
mailing list