[MPlayer-dev-eng] FreeBSD problem compile problem (and patch)

Bohdan Horst nexus at hoth.amu.edu.pl
Sat Apr 16 19:52:05 CEST 2005


FreeBSD 4.11:
gcc version 2.95.4 20020320 [FreeBSD]

cc  -I. -g codec-cfg.c mp_msg.c -o codec-cfg -DCODECS2HTML -L/usr/local/lib -lintl
In file included from codec-cfg.c:27:
mp_msg.h:110: libintl.h: No such file or directory
In file included from mp_msg.c:23:
mp_msg.h:110: libintl.h: No such file or directory
gmake: *** [codec-cfg] Error 1


FreeBSD 5.2.1:
gcc version 3.3.3 [FreeBSD] 20031106

cc  -I. -g codec-cfg.c mp_msg.c -o codec-cfg -DCODECS2HTML -L/usr/local/lib -lintl
In file included from codec-cfg.c:27:
mp_msg.h:110:21: libintl.h: No such file or directory
In file included from mp_msg.c:23:
mp_msg.h:110:21: libintl.h: No such file or directory
mp_msg.c: In function `mp_msg_c':
mp_msg.c:68: warning: passing arg 3 of `vsnprintf' makes pointer from integer without a cast
gmake: *** [codec-cfg] Error 1


FreeBSD 5.3:
gcc version 3.4.2 [FreeBSD] 20040728

cc  -I. -g codec-cfg.c mp_msg.c -o codec-cfg -DCODECS2HTML -L/usr/local/lib -lintl
In file included from codec-cfg.c:27:
mp_msg.h:110:21: libintl.h: No such file or directory
In file included from mp_msg.c:23:
mp_msg.h:110:21: libintl.h: No such file or directory
gmake: *** [codec-cfg] Error 1


missing -I/usr/local/include   :)

patch:

--- Makefile_   Sat Apr 16 19:42:52 2005
+++ Makefile    Sat Apr 16 19:45:23 2005
@@ -277,7 +277,7 @@
 $(MENCODER_DEP): version.h help_mp.h

 $(PRG_CFG): version.h codec-cfg.c codec-cfg.h
-       $(HOST_CC) $(HOST_CFLAGS) -I. -g codec-cfg.c mp_msg.c -o $(PRG_CFG) -DCODECS2HTML $(EXTRA_LIB) $(I18NLIBS)
+       $(HOST_CC) $(HOST_CFLAGS) -I. -g codec-cfg.c mp_msg.c -o $(PRG_CFG) -DCODECS2HTML $(EXTRA_LIB) $(EXTRA_INC) $(I18NLIBS)

 install: $(ALL_PRG)
 ifeq ($(VIDIX),yes)



regards


-- 
Bohdan 'Nexus' Horst




More information about the MPlayer-dev-eng mailing list