NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

NI6733模拟输出卡在64位linux下的编译问题

我的系统是64位的RedHat6,这个程序是NI6733数模转换卡的应用程序,它提供的库应该是32位系统下的,所以它在编译的时候加上了-m32,进入驱动所提供的例程,打开终端运行make出现如下错误

[abcd@admin ao]$ make

 

gcc -I./include -O2 -m32 contGeneration.c -L./lib/ -lnidaqmxbase -o contGeneration

In file included from /usr/include/features.h:385,

  

from /usr/include/stdio.h:28,

from contGeneration.c:50:

/usr/include/gnu/stubs.h:7:27: 

error: gnu/stubs-32.h: No such file or directory

make: *** [contGeneration] Error 1

 

下面是我的系统版本

[abcd@admin ao]$ uname -a

 

Linux admin 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

 

我把-m32去掉之后进行编译,提示skipping incompatible /usr/lib/../lib64/libnidaqmxbase.so when searching for -lnidaqmxbase,我感觉就是因为我的库是32位系统的,所以在64位不兼容,所以去掉-m32后无法编译,可是我加上-m32就会提示上面的错误error: gnu/stubs-32.h: No such file or directory,请帮我解决一下,这是什么问题,需要再装什么包吗?

0 项奖励
1 条消息(共 1 条)
4,719 次查看