.PHONY: release
release: $(MODNAME)
distribution/make-deb.sh
cause i want to use switch function so i include header need, but it can not find switch.h so i change in source include it:
include </usr/local/freeswitch/include/freeswitch/switch.h>
include </usr/local/freeswitch/include/freeswitch/switch_stun.h>
include </usr/local/freeswitch/include/freeswitch/switch_json.h>
It throw error like:
/usr/local/freeswitch/include/freeswitch/switch.h:49:10: fatal error: switch_am_config.h: No such file or directory
I cant give help on build errors pertaining to a Makefile you've created, but I can point you to this example of how I build freeswitch with this module.
Hi I try to setting to rebuild mod audio fork but got error, please help My Makefile `
Customise these as appropriate
MODNAME = mod_audio_fork.so MODOBJ = mod_audio_fork.o MODCFLAGS = -Wall -Werror MODLDFLAGS = -lssl FS_INCLUDES=/usr/local/freeswitch/include/freeswitch
CXX = g++ CXXFLAGS = -fPIC -g -ggdb -I/usr/include
pkg-config --cflags freeswitch
$(MODCFLAGS) -std=c++0x LDFLAGS =pkg-config --libs freeswitch
-lrdkafka -lz -lpthread -lrt $(MODLDFLAGS) INCLUDES=-I$(FS_INCLUDES).PHONY: all all: $(MODNAME) $(INCLUDES)
$(MODNAME): $(MODOBJ) @$(CXX) -shared -o $@ $(MODOBJ) $(LDFLAGS) $(INCLUDES)
.cpp.o: $< @$(CXX) $(CXXFLAGS) $(INCLUDES) -o $@ -c $<
.PHONY: clean clean: rm -f $(MODNAME) $(MODOBJ)
.PHONY: install install: $(MODNAME) install -d $(DESTDIR)/usr/lib/freeswitch/mod install $(MODNAME) $(DESTDIR)/usr/lib/freeswitch/mod install -d $(DESTDIR)/etc/freeswitch/autoload_configs/
.PHONY: release release: $(MODNAME) distribution/make-deb.sh
cause i want to use switch function so i include header need, but it can not find switch.h so i change in source include it:
include </usr/local/freeswitch/include/freeswitch/switch.h>
include </usr/local/freeswitch/include/freeswitch/switch_stun.h>
include </usr/local/freeswitch/include/freeswitch/switch_json.h>
It throw error like:
/usr/local/freeswitch/include/freeswitch/switch.h:49:10: fatal error: switch_am_config.h: No such file or directoryinclude
compilation terminated. make: *** [: mod_audio_fork.o] Error 1
`