免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2028 | 回复: 0
打印 上一主题 下一主题

[硬件问题] xf86-video-nouveau编译出错 缺少编不出.lo .o [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-05-31 16:24 |只看该作者 |倒序浏览
./configure  sh autogen.sh 现在通过了 但是即便把libtool --  compile什么.c -o .lo 也只是得到lo 但是lo c 得不到.o
因此得不到make后的la so所以so  nouveau_drv.so得不到 这个就是驱动文件 modprobe nouveau能用 但是本机的是2009的,不支持NVGT240M所以都是最后no device detected 其他没有报错最后 busid pci:01:00.0  -- -ignoreABI  drm modeset=0 如果用fedora .fc20的nouveau-dev的驱动RPM不能通过 最后pixmapstartdirtytrack .so文件错误 加载不了nouveau_drv.so驱动
我是应该怎样加载?缺少-lz -lm -ls?
libtool有问题?我是下载的源码安装的呀
centos6.4正常 不出现那么多错误 但是这个中标普华5就不行
make -i -k 也编不出得不到src/.libs 的.o文件 .lo都没有  libtool手动只有.lo能做出来 放到./src但是.libs/*.o就是没有 没有编出不了
而如果我用Ubuntukylin14.04的.o编出的 就会提示加载驱动时PixmapStartDirtyTrack
我就想看看开源驱动nouveau对我NVIDIA的显卡200系列的 显示效果 视频效果
要么centos6.4也能用 也能看 不过就想测试一下中标的  不过中标麒麟6也不能用nouveau驱动 因为驱动也是没有device detected
xf86-video-nouveau

[root@localhost xf86-video-nouveau-1.0.9]# sudo ./configure LIBDRM_NOUVEAU_CFLAGS=empty LIBDRM_NOUVEAU_LIBS=/usr/lib/libdrm_nouveau2.so.2.0.0 XORG_CFLAGS=empty XORG_LIBS=/usr/lib/xorg PCIACCESS_LIBS=/usr/lib/libpciaccess.so.0.10.2 PCIACCESS_CFLAGS=empty


[HASEE@localhost xf86-video-nouveau-1.0.9]$ sudo make check
Making check in src
make[1]: Entering directory `/media/程序/file/linux/git/web/nouveau/xf86-video-nouveau-1.0.9/src'
  CC       nouveau_exa.lo
gcc: error: empty: No such file or directory
gcc: error: empty: No such file or directory
gcc: error: empty: No such file or directory
make[1]: *** [nouveau_exa.lo] 错误 1
make[1]: Leaving directory `/media/程序/file/linux/git/web/nouveau/xf86-video-nouveau-1.0.9/src'
make: *** [check-recursive] 错误 1
[HASEE@localhost xf86-video-nouveau-1.0.9]$


make
e type
/usr/include/xf86Crtc.h:614:12: error: field 'initialTotalArea' has incomplete type
/usr/include/xf86Crtc.h:615:12: error: field 'initialTrackingArea' has incomplete type
In file included from nv_include.h:69:0,
                 from nouveau_exa.c:23:
nv_type.h:124:12: error: field 'clip' has incomplete type
make[2]: *** [nouveau_exa.lo] 错误 1
make[2]: Leaving directory `/media/程序/file/linux/git/web/nouveau/xf86-video-nouveau-1.0.9/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/media/程序/file/linux/git/web/nouveau/xf86-video-nouveau-1.0.9'
make: *** [all] 错误 2


[root@localhost .deps]# for i in `ls`; do cp  $i `echo $i | sed 's/...$/lo/'`; done
cp:是否覆盖“nouveau_xv.lo”? y
[root@localhost .deps]# ls
drmmode_display.lo   nv04_xv_blit.lo   nv40_exa.Plo         nvc0_exa.lo
drmmode_display.Plo  nv04_xv_blit.Plo  nv40_xv_tex.lo       nvc0_exa.Plo
nouveau_dri2.lo      nv04_xv_ovl.lo    nv40_xv_tex.Plo      nvc0_xv.lo
nouveau_dri2.Plo     nv04_xv_ovl.Plo   nv50_accel.lo        nvc0_xv.Plo
nouveau_exa.lo       nv10_exa.lo       nv50_accel.Plo       nv_dma.lo
nouveau_exa.Plo      nv10_exa.Plo      nv50_exa.lo          nv_dma.Plo
nouveau_wfb.lo       nv10_xv_ovl.lo    nv50_exa.Plo         nv_driver.lo
nouveau_wfb.Plo      nv10_xv_ovl.Plo   nv50_xv.lo           nv_driver.Plo
nouveau_xvlo         nv30_exa.lo       nv50_xv.Plo          nv_shadow.lo
nouveau_xv.lo        nv30_exa.Plo      nv_accel_common.lo   nv_shadow.Plo
nouveau_xv.Plo       nv30_xv_tex.lo    nv_accel_common.Plo  vl_hwmc.lo
nv04_exa.lo          nv30_xv_tex.Plo   nvc0_accel.lo        vl_hwmc.Plo
nv04_exa.Plo         nv40_exa.lo       nvc0_accel.Plo
[root@localhost .deps]# cp *.lo ../
cp:是否覆盖“../nouveau_exa.lo”? n
cp:是否覆盖“../nouveau_xv.lo”? n
[root@localhost .deps]# cd ../
[root@localhost src]# cd ../
[root@localhost xf86-video-nouveau-1.0.9]# make
make  all-recursive
make[1]: Entering directory `/media/程序/file/linux/git/web/nouveau/xf86-video-nouveau-1.0.9'
Making all in src
make[2]: Entering directory `/media/程序/file/linux/git/web/nouveau/xf86-video-nouveau-1.0.9/src'
  CCLD     nouveau_drv.la
libtool: link: `nouveau_exa.lo' is not a valid libtool object
make[2]: *** [nouveau_drv.la] 错误 1
make[2]: Leaving directory `/media/程序/file/linux/git/web/nouveau/xf86-video-nouveau-1.0.9/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/media/程序/file/linux/git/web/nouveau/xf86-video-nouveau-1.0.9'
make: *** [all] 错误 2
[root@localhost xf86-video-nouveau-1.0.9]#


[root@localhost src]# /usr/local/bin/libtool --mode=compile /usr/local/bin/gcc .deps/nouveau_exa.Plo -c -o nouveau_exa.lo --tag=cc
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
[root@localhost src]# /usr/local/bin/libtool --tag=cc --mode=compile /usr/local/bin/gcc .deps/nouveau_exa.Plo -c -o nouveau_exa.lo
libtool: ignoring unknown tag cc
libtool: compile:  /usr/local/bin/gcc .deps/nouveau_exa.Plo -c  -fPIC -DPIC -o .libs/nouveau_exa.o
gcc: warning: .deps/nouveau_exa.Plo: linker input file unused because linking not done
libtool: compile:  /usr/local/bin/gcc .deps/nouveau_exa.Plo -c -o nouveau_exa.o >/dev/null 2>&1

ouveau_exa.c:99:45: error: 'struct <anonymous>' has no member named 'client'
nouveau_exa.c: In function 'nouveau_exa_pixmap_is_offscreen':
nouveau_exa.c:113:33: warning: comparison between pointer and integer [enabled by default]
nouveau_exa.c: In function 'nouveau_exa_create_pixmap':
nouveau_exa.c:126:27: error: dereferencing pointer to incomplete type
nouveau_exa.c:128:10: error: 'struct <anonymous>' has no member named 'exa_force_cp'
nouveau_exa.c:128:31: error: 'struct <anonymous>' has no member named 'dev'
nouveau_exa.c:131:27: error: dereferencing pointer to incomplete type
nouveau_exa.c:136:41: error: dereferencing pointer to incomplete type
nouveau_exa.c: In function 'nouveau_exa_destroy_pixmap':
nouveau_exa.c:158:29: error: dereferencing pointer to incomplete type
nouveau_exa.c: In function 'nv50_style_tiled_pixmap':
nouveau_exa.c:209:30: error: 'NV_ARCH_50' undeclared (first use in this function)
nouveau_exa.c:210:32: error: invalid type argument of '->' (have 'int')
nouveau_exa.c: In function 'nouveau_exa_scratch':
nouveau_exa.c:219:10: error: 'struct <anonymous>' has no member named 'transfer'
nouveau_exa.c:220:10: error: 'struct <anonymous>' has no member named 'transfer'
nouveau_exa.c:220:33: error: 'struct <anonymous>' has no member named 'transfer_offset'
nouveau_exa.c:221:27: error: 'struct <anonymous>' has no member named 'dev'
nouveau_exa.c:227:48: error: 'struct <anonymous>' has no member named 'client'
nouveau_exa.c:233:26: error: 'struct <anonymous>' has no member named 'transfer'
nouveau_exa.c:235:6: error: 'struct <anonymous>' has no member named 'transfer_offset'
nouveau_exa.c:238:12: error: 'struct <anonymous>' has no member named 'transfer_offset'
nouveau_exa.c:239:12: error: 'struct <anonymous>' has no member named 'transfer'
nouveau_exa.c:241:5: error: 'struct <anonymous>' has no member named 'transfer_offset'
nouveau_exa.c: In function 'nouveau_exa_download_from_screen':
nouveau_exa.c:273:6: warning: passing argument 7 of 'NVAccelM2MF' makes pointer from integer without a cast [enabled by default]
nouveau_exa.c:46:1: note: expected 'struct nouveau_bo *' but argument is of type 'int'
nouveau_exa.c:276:42: error: 'struct <anonymous>' has no member named 'client'
nouveau_exa.c:296:5: warning: assignment makes pointer from integer without a cast [enabled by default]
nouveau_exa.c:301:43: error: 'struct <anonymous>' has no member named 'client'
nouveau_exa.c: In function 'nouveau_exa_upload_to_screen':
nouveau_exa.c:326:27: error: 'NV_ARCH_50' undeclared (first use in this function)
nouveau_exa.c:332:27: error: 'NV_ARCH_C0' undeclared (first use in this function)
nouveau_exa.c:369:6: warning: passing argument 13 of 'NVAccelM2MF' makes pointer from integer without a cast [enabled by default]
nouveau_exa.c:46:1: note: expected 'struct nouveau_bo *' but argument is of type 'int'
nouveau_exa.c:381:5: warning: assignment makes pointer from integer without a cast [enabled by default]
nouveau_exa.c:386:43: error: 'struct <anonymous>' has no member named 'client'
nouveau_exa.c: In function 'nouveau_exa_init':
nouveau_exa.c:440:27: error: 'NV_ARCH_50' undeclared (first use in this function)
nouveau_exa.c:467:26: error: 'NV_ARCH_C0' undeclared (first use in this function)
nouveau_exa.c:512:7: error: 'NV_ARCH_E0' undeclared (first use in this function)
nouveau_exa.c:525:5: error: 'struct <anonymous>' has no member named 'EXADriverPtr'
[root@localhost src]# libtool --mode=compile gcc -g -O -c nouveau_exa.c

/usr/local/include/X11/extensions/dpms.h:48:24: 错误:未知的类型名‘Display’
In file included from src/nv_include.h:69:0,
                 from src/nouveau_exa.c:23:
src/nv_type.h:15:2: 错误:#error "This driver requires a DRI-enabled X server"
src/nv_type.h:72:5: 错误:未知的类型名‘drmVersionPtr’
src/nv_type.h:126:12: 错误:字段‘clip’的类型不完全
[root@localhost xf86-video-nouveau-1.0.6]# libtool --mode=compile gcc -g -O -c src/nouveau_exa.c

[HASEE@localhost src]$ libtool --mode=compile gcc -O2 -pipe -MT nouveau_exa.lo -MD -MP -MF .deps/nouveau_exa.Plo -c nouveau_exa.c  -fPIC -DPIC -o .libs/nouveau_exa.o


[HASEE@localhost src]$ libtool --tag gcc --mode=compile gcc .deps/nouveau_exa.lo -o nouveau_exa.o
libtool: ignoring unknown tag gcc
libtool: compile:  gcc .deps/nouveau_exa.lo  -fPIC -DPIC -o .libs/nouveau_exa.o
.deps/nouveau_exa.lo: file not recognized: File format not recognized
[HASEE@localhost src]$ ls .libs
nouveau_exa.lo

[HASEE@localhost src]$ /usr/local/bin/libtool --tag=cc --mode=compile /usr/local/bin/gcc .deps/nouveau_exa.Plo -c -o nouveau_exa.lo
libtool: ignoring unknown tag cc
libtool: compile:  /usr/local/bin/gcc .deps/nouveau_exa.Plo -c  -fPIC -DPIC -o .libs/nouveau_exa.o
gcc: 警告:.deps/nouveau_exa.Plo:未使用链接器输入文件,因为链接尚未完成
libtool: compile:  /usr/local/bin/gcc .deps/nouveau_exa.Plo -c -o nouveau_exa.o >/dev/null 2>&1
[HASEE@localhost src]$ /usr/local/bin/libtool --tag=cc --mode=link /usr/local/bin/gcc .deps/nouveau_exa.Plo -c -o nouveau_exa.lo
libtool: ignoring unknown tag cc
libtool: link: /usr/bin/ld -r -o nouveau_exa.o   
/usr/bin/ld: no input files

[HASEE@localhost src]$ make
  CC     nouveau_exa.lo
gcc: error: empty: No such file or directory
make: *** [nouveau_exa.lo] 错误 1



您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP