Get me the details of what commands failed so we can just fix the Makefile instead of hacking it during build.
Thanks, I tried that but there is a problem with the chmod commands at the bottom of makefile. I simply added perl commands to the Applescript Installer that modifies the makefile to remove the -m 755, etc. and it works fine so far. Right now, the Applescript installer is a way better method to install than homebrew.
If you look at the top of the Makefile in libyuv:
PREFIX:=/usr
EXEC_PREFIX:=$(PREFIX)
LIBDIR:=$(PREFIX)/lib/
INCDIR:=$(PREFIX)/include/
you can override these on the make line:
PREFIX=/usr/local make install <--- something like this...
this should allow you to make a homebrew recipe without having to patch anything
Homebrew puts everything in /usr/local. In fact, if you follow the wiki you can actually delete the whole /usr/local to remove everything except Xcode and start over again since /usr/local is not used by OS X.
I would like to make a homebrew formula called freeswitch-support which would install all prereqs. This would allow anyone to later install whatever version of FS they want. Then, it would be simple to add a freeswitch formula (which I see someone already started) that would simply invoked freeswitch-support and install the current production version. I am stumbling learning hombrew formulas but hope to I can figure them out.
BTW, I am updating the wiki today for 1.6, working in the Applescript installer right now.
Mario G
Does homebrew use /usr/local ? I thought they had their own lib prefix that we could make a recope for and install it there by their policy so the eventual fs hombrew package would just fit in.On Tuesday, October 13, 2015, Mario <mario_fs@mgtech.com> wrote:FINALLY! I got libyuv installed into /usr/local, also flite, libvpx, and opus. And lua and libsndfile from homebrew. Freeswitch 1.7 master built and came up! BTW, the previous problem I had was dumb, I had to do a new git clone of FS and it found libyuv in /usr/local.
Thanks for the guidance! Now for thorough testing then updating the Applescript FS installer and wiki pages.
Mario G
These are the same, just one has my user id in the url
I installed libyuv into /usr/local which is where I installed flite. Freeswitch make finds flite fine but not lubyuv. I modified libyuv makefile, .pc and .
pc.in files from /usr to /usr/local. The objective is I don’t want it in OS X system directories, should not need SUDO, and removal is easy. Can’t figure out why FS finds flite in /usr/local but not libyuv.
You would have to take a look at the configure code for detection. I know libyuv needs pkg-config. You might be able to come up with some small patches for that makefile to make it possible to pass the prefix in as a var so we don't need to hack the files to build like that.
not sure what you mean by the one in support lib.
If you are installing to a different locations, it will put the .pc file for pkg-config in that alt location too, then you either need to symlink that pc file to the places pkg-config looks in or something to get pkg-config to see that file
Thank you, a question: How does this differ from the one in the support lib? The URL will go into the wiki and possibly a homebrew formula.
I was able to make install it into /usr/local instead of /usr but freeswitch still does not find it. Will look into it further.
510 cd libyuv
512 make
514 sudo make install
just did on my machine and it worked fine?
I got nowhere this weekend trying to compile libyuv on OS X so will wait for Michael’s magic. I am also looking into making the new prereqs homebrew formulas and want to see if it’s possible for libyuv. If so, I was thinking of doing a homebrew formula called “freeswitch-support/prereqs” with everything in it.
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.orghttp://www.freeswitchsolutions.comOfficial FreeSWITCH Sites
http://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.comFreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:
http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
-- Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬
ClueCon Weekly Development Call
_________________________________________________________________________Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.comOfficial FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.comFreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.orghttp://www.freeswitchsolutions.comOfficial FreeSWITCH Sites
http://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
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
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.orghttp://www.freeswitchsolutions.comOfficial FreeSWITCH Sites
http://www.freeswitch.orghttp://confluence.freeswitch.org
http://www.cluecon.com
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
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.orghttp://www.freeswitchsolutions.comOfficial FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
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
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
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