Advertisement
inquba

errors installing mod_bcg729 in raspi2

Sep 7th, 2015
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. errors when do a make for install mod_bcg729 in raspberry pi 2 how I can fix this to install without errors ?
  2.  
  3.  
  4. 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
  5. gcc: error: unrecognized command line option ‘-m32’
  6. gcc: error: unrecognized argument in option ‘-march=i686’
  7. 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
  8. Makefile:25: recipe for target 'mod_bcg729.o' failed
  9. make: *** [mod_bcg729.o] Error 1
  10. root@raspberrypi:/usr/src/freeswitch/src/mod/codecs/mod_bcg729#
  11.  
  12.  
  13. this is the Makefile content
  14.  
  15. ################################
  16. ### FreeSwitch headers files ###
  17. FS_INCLUDES=/usr/local/freeswitch/include
  18. FS_MODULES=/usr/local/freeswitch/mod
  19. ################################
  20.  
  21. ### END OF CUSTOMIZATION ###
  22. PROC?=$(shell uname -m)
  23.  
  24. CC=gcc
  25. CFLAGS=-fPIC -O3 -fomit-frame-pointer -fno-exceptions -Wall -std=c99 -pedantic
  26. ifeq (${PROC},x86_64)
  27. CFLAGS+=-m64 -mtune=generic
  28. else
  29. CFLAGS+=-m32 -march=i686
  30. endif
  31.  
  32. INCLUDES=-I/usr/include -Ibcg729/include -I$(FS_INCLUDES)
  33. LDFLAGS=-lm -Wl,-static -Lbcg729/src/.libs -lbcg729 -Wl,-Bdynamic
  34.  
  35. all : mod_bcg729.o
  36. $(CC) $(CFLAGS) $(INCLUDES) -shared -Xlinker -x -o mod_bcg729.so mod_bcg729.o $(LDFLAGS)
  37.  
  38. mod_bcg729.o: bcg729 mod_bcg729.c
  39. $(CC) $(CFLAGS) $(INCLUDES) -c mod_bcg729.c
  40.  
  41. clone_bcg729:
  42. if [ ! -d bcg729 ]; then \
  43. git clone git://git.linphone.org/bcg729.git; \
  44. fi
  45.  
  46. bcg729: clone_bcg729
  47. cd bcg729 && sh autogen.sh && CFLAGS=-fPIC ./configure && make && cd ..
  48.  
  49. clean:
  50. rm -f *.o *.so *.a *.la; cd bcg729 && make clean; cd ..
  51.  
  52. distclean: clean
  53. rm -fR bcg729
  54.  
  55. install: all
  56. /usr/bin/install -c mod_bcg729.so $(INSTALL_PREFIX)/$(FS_MODULES)/mod_bcg729.so
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement