#首先進(jìn)入目錄并下載編譯
cd src/mod/applications/
git clone http://hub.fgit.gq/freeswitch/mod_mosquitto.git
cd?? mod_mosquitto
./bootstrap.sh -j?
./configure CFLAGS=-Wno-error
報(bào)錯(cuò)
checking for FREESWITCH... no
configure: error: Package requirements (freeswitch) were not met:
Package 'freeswitch', required by 'virtual:world', not found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables FREESWITCH_CFLAGS
and FREESWITCH_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
發(fā)現(xiàn)是找不到freeswitch的pc文件?查找一下本地的freeswitch的Package ,添加路徑,重新執(zhí)行
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/freeswitch/lib/pkgconfig/:${PKG_CONFIG_PATH}
./bootstrap.sh -j?
./configure CFLAGS=-Wno-error
報(bào)錯(cuò)?
checking for MOSQUITTO... no
no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
config.status: error: in `/mnt/d/work/freeswitch_projects/src/mod/applications/mod_mosquitto':
config.status: error: Something went wrong bootstrapping makefile fragments
? ? for automatic dependency tracking.? If GNU make was not used, consider
? ? re-running the configure script with MAKE="gmake" (or whatever is
? ? necessary).? You can also try re-running configure with the
? ? '--disable-dependency-tracking' option to at least be able to build
? ? the package (albeit without support for automatic dependency tracking).
發(fā)現(xiàn)需要安裝MOSQUITTO?我直接從軟件源安裝了一個(gè)也可以去github下一個(gè)編譯安裝?eclipse/mosquitto: Eclipse Mosquitto - An open source MQTT broker (github.com)
再次運(yùn)行通過(guò)?
./bootstrap.sh -j?
./configure CFLAGS=-Wno-error
make
sudo?make?install