亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 11625 | 回復(fù): 3
打印 上一主題 下一主題

gcc 加參數(shù) -fPIC 問題 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2011-12-11 10:23 |只看該作者 |倒序瀏覽
本帖最后由 hjk857 于 2011-12-11 10:29 編輯

[root@nginx_bak ~]# uname -a
Linux nginx_bak 2.6.18-274.12.1.el5 #1 SMP Tue Nov 29 13:37:46 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

在64位的系統(tǒng)是配置安裝vlc遇到下面問題。

[root@nginx_bak ~]# make
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/usr/local/src/vlc/vlc/modules/codec/omxil'
make[5]: Leaving directory `/usr/local/src/vlc/vlc/modules/codec/omxil'
make[5]: Entering directory `/usr/local/src/vlc/vlc/modules/codec'
/bin/sh ../../libtool --tag=CC --mode=link gcc -std=gnu99 `top_srcdir="../.." top_builddir="../.." ../../vlc-config --cflags plugin libx264_plugin.la` -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -rpath '/usr/local/lib/vlc/plugins/codec' -avoid-version -module -export-symbol-regex ^vlc_entry -shrext .so -rpath "/usr/local/lib/vlc/plugins/codec" -no-undefined `top_srcdir="../.." top_builddir="../.." ../../vlc-config --ldflags plugin libx264_plugin.la`  -o libx264_plugin.la   libx264_plugin_la-x264.lo  `top_srcdir="../.." top_builddir="../.." ../../vlc-config -libs plugin libx264_plugin.la` ../../src/libvlccore.la ../../compat/libcompat.la
gcc -std=gnu99 -shared  .libs/libx264_plugin_la-x264.o -Wl,--whole-archive ../../compat/.libs/libcompat.a -Wl,--no-whole-archive  -Wl,--rpath -Wl,/usr/local/src/vlc/vlc/src/.libs -lx264 -lpthread -L/usr/local/src/vlc/x264-snapshot-20100524-2245 -lm ../../src/.libs/libvlccore.so  -mtune=athlon64 -Wl,-soname -Wl,libx264_plugin.so -o .libs/libx264_plugin.so
/usr/bin/ld: /usr/local/src/vlc/x264-snapshot-20100524-2245/libx264.a(cabac-a.o): relocation R_X86_64_PC32 against `x264_cabac_range_lps' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[5]: *** [libx264_plugin.la] Error 1
make[5]: Leaving directory `/usr/local/src/vlc/vlc/modules/codec'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/local/src/vlc/vlc/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/local/src/vlc/vlc/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/vlc/vlc/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/vlc/vlc'
make: *** [all] Error 2

求解

根據(jù)網(wǎng)上資料,說要在Makefile文件里面,給GCC 加參數(shù)-fPIC,具體怎么操作?

論壇徽章:
0
2 [報告]
發(fā)表于 2011-12-11 11:46 |只看該作者
[root@nginx_bak ~]# uname -a
Linux nginx_bak 2.6.18-274.12.1.el5 #1 SMP Tue Nov 29 13:37:46 EST 201 ...
hjk857 發(fā)表于 2011-12-11 10:23


在對應(yīng)的CFLAGS里面加上“-fPIC”選項唄。

論壇徽章:
0
3 [報告]
發(fā)表于 2011-12-11 13:34 |只看該作者
在對應(yīng)的CFLAGS里面加上“-fPIC”選項唄。
freearth 發(fā)表于 2011-12-11 11:46



vlc的Makefile部份內(nèi)容如下,請問在哪行加? 加了-fPIC之后是否還需要重新configure一次再執(zhí)行make?
BUILD_VLC_FALSE = #
BUILD_VLC_TRUE =
CACA_CFLAGS =
CACA_LIBS =
CC = gcc -std=gnu99
CCAS = gcc -std=gnu99
CCASFLAGS = -g -O2
CCDEPMODE = depmode=gcc3
CFLAGS =  -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration
CONTRIB_DIR =
COPYRIGHT_MESSAGE = Copyright © 1996-2010 the VideoLAN team
COPYRIGHT_YEARS = 1996-2010
CPP = gcc -std=gnu99 -E
CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include  -DSYS_LINUX
CXX = g++
CXXCPP = g++ -E
CXXDEPMODE = depmode=gcc3
CXXFLAGS = -g -O2
CYGPATH =
CYGPATH_W = echo
DBUS_CFLAGS =

論壇徽章:
2
2015年辭舊歲徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:53:17
4 [報告]
發(fā)表于 2011-12-11 21:01 |只看該作者
make CC='gcc -fPIC'
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP