Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- errors when do a make for install mod_bcg729 in raspberry pi 2 how I can fix this to install without errors ?
- gcc -fPIC -O3 -fomit-frame-pointer -fno-exceptions -Wall -std=c99 -pedantic -m32 -march=i686 -I/usr/include -Ibcg729/include -I/usr/local/freeswitch/include -c mod_bcg729.c
- gcc: error: unrecognized command line option ‘-m32’
- gcc: error: unrecognized argument in option ‘-march=i686’
- gcc: note: valid arguments to ‘-march=’ are: armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5e armv5t armv5te armv6 armv6-m armv6j armv6k armv6s-m armv6t2 armv6z armv6zk armv7 armv7-a armv7-m armv7-r armv7e-m ep9312 iwmmxt iwmmxt2 native
- Makefile:25: recipe for target 'mod_bcg729.o' failed
- make: *** [mod_bcg729.o] Error 1
- root@raspberrypi:/usr/src/freeswitch/src/mod/codecs/mod_bcg729#
- this is the Makefile content
- ################################
- ### FreeSwitch headers files ###
- FS_INCLUDES=/usr/local/freeswitch/include
- FS_MODULES=/usr/local/freeswitch/mod
- ################################
- ### END OF CUSTOMIZATION ###
- PROC?=$(shell uname -m)
- CC=gcc
- CFLAGS=-fPIC -O3 -fomit-frame-pointer -fno-exceptions -Wall -std=c99 -pedantic
- ifeq (${PROC},x86_64)
- CFLAGS+=-m64 -mtune=generic
- else
- CFLAGS+=-m32 -march=i686
- endif
- INCLUDES=-I/usr/include -Ibcg729/include -I$(FS_INCLUDES)
- LDFLAGS=-lm -Wl,-static -Lbcg729/src/.libs -lbcg729 -Wl,-Bdynamic
- all : mod_bcg729.o
- $(CC) $(CFLAGS) $(INCLUDES) -shared -Xlinker -x -o mod_bcg729.so mod_bcg729.o $(LDFLAGS)
- mod_bcg729.o: bcg729 mod_bcg729.c
- $(CC) $(CFLAGS) $(INCLUDES) -c mod_bcg729.c
- clone_bcg729:
- if [ ! -d bcg729 ]; then \
- git clone git://git.linphone.org/bcg729.git; \
- fi
- bcg729: clone_bcg729
- cd bcg729 && sh autogen.sh && CFLAGS=-fPIC ./configure && make && cd ..
- clean:
- rm -f *.o *.so *.a *.la; cd bcg729 && make clean; cd ..
- distclean: clean
- rm -fR bcg729
- install: all
- /usr/bin/install -c mod_bcg729.so $(INSTALL_PREFIX)/$(FS_MODULES)/mod_bcg729.so
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement