View previous topic :: View next topic |
Author |
Message |
sjmudd at pobox.com Guest
|
Posted: Tue Oct 13, 2009 6:29 pm Post subject: [Freeswitch-users] Building Freeswitch with VPATH (src and o |
|
|
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@mad07 src]$ pwd
/Users/sjmudd/src
[sjmudd@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@mad07 src]$ cd freeswitch-obj
[sjmudd@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@mad07 freeswitch-obj]$ cd ../freeswitch-svn
[sjmudd@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@mad07 freeswitch-svn]$ cd ../freeswitch-obj
[sjmudd@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@mad07 freeswitch-obj]$
This is with
[sjmudd@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
_______________________________________________
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 |
|
|
brian at freeswitch.org Guest
|
Posted: Tue Oct 13, 2009 7:49 pm Post subject: [Freeswitch-users] Building Freeswitch with VPATH (src and o |
|
|
You shouldn't have to make clean usually ... doing so might break your
tree... You can usually get by with "make current" that will ensure
the critical things are cleaned and built correctly... every now and
they you'll hit a snafu but we'll usually tell you about it.
/b
On Oct 13, 2009, at 1:59 PM, Simon J Mudd wrote:
Quote: | 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.
|
_______________________________________________
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 |
|
|
sjmudd at pobox.com Guest
|
Posted: Wed Oct 14, 2009 1:40 am Post subject: [Freeswitch-users] Building Freeswitch with VPATH (src and o |
|
|
brian@freeswitch.org (Brian West) writes:
Quote: | You shouldn't have to make clean usually ... doing so might break your
tree...
|
Why?
In any case on my mac (Leopard) neither make clean or distclean fully
cleans up afterwards. I would prefer to get a completely "untouched"
source tree after doing this. If that's supposed to work and I should
post a bug or report the problem in more detail then I can do that.
Quote: | You can usually get by with "make current" that will ensure
the critical things are cleaned and built correctly... every now and
they you'll hit a snafu but we'll usually tell you about it.
|
ok. That's one of the reasons for liking to use VPATH builds. It's also
why many BSD system builds use this so that you can mount the source
tree readonly (perhaps from another server) and build the binaries
in a separate directory independently.
If that's not supported then that's fine.
I was trying to build the latest svn version of freeswitch (Revision:
15138) and this didn't build. As I'm not too familiar with compiling
at least on the Mac I thought I'd first try to see if a VPATH build
would work better. I'll have to try and investigate further.
Simon
_______________________________________________
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 |
|
|
mike at jerris.com Guest
|
Posted: Fri Oct 16, 2009 8:39 am Post subject: [Freeswitch-users] Building Freeswitch with VPATH (src and o |
|
|
I would love to see this work in tree, but i am pretty sure it has
never worked. I would gladly accept patches that implement this.
Mike
On Oct 14, 2009, at 2:33 AM, Simon J Mudd wrote:
Quote: | brian@freeswitch.org (Brian West) writes:
Quote: | You shouldn't have to make clean usually ... doing so might break
your
tree...
|
Why?
In any case on my mac (Leopard) neither make clean or distclean fully
cleans up afterwards. I would prefer to get a completely "untouched"
source tree after doing this. If that's supposed to work and I should
post a bug or report the problem in more detail then I can do that.
Quote: | You can usually get by with "make current" that will ensure
the critical things are cleaned and built correctly... every now and
they you'll hit a snafu but we'll usually tell you about it.
|
ok. That's one of the reasons for liking to use VPATH builds. It's
also
why many BSD system builds use this so that you can mount the source
tree readonly (perhaps from another server) and build the binaries
in a separate directory independently.
If that's not supported then that's fine.
I was trying to build the latest svn version of freeswitch (Revision:
15138) and this didn't build. As I'm not too familiar with compiling
at least on the Mac I thought I'd first try to see if a VPATH build
would work better. I'll have to try and investigate further.
|
_______________________________________________
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 |
|
|
|