Tag: 编译

标头文件丢失

我正在尝试编译源代码,我收到很多错误,表明我的系统中缺少头文件 checking sys/ioccom.h usability… no checking sys/ioccom.h presence… no checking for sys/ioccom.h… no checking sys/sockio.h usability… no checking sys/sockio.h presence… no checking for sys/sockio.h… no checking for net/pfvar.h… no checking for linux/wireless.h… no checking bluetooth/bluetooth.h usability… no checking bluetooth/bluetooth.h presence… no checking for bluetooth/bluetooth.h… no 所以,我开始认为我错过了一些重要的包裹 你能帮我列一下吗? 我有Ubuntu 12.04 LTS,2.6.28-17内核和gcc版本4.6.3,我正在尝试编译这个包http://nrg.cs.ucl.ac.uk/mptcp/mptcp_userland_0.1.tar.gz 提前致谢

如何编译Asus-syntec-webcam-driver stk11xx

我有asus v1s和前段时间我能够轻松编译和安装它。 但现在编译失败了…我希望你们知道我能做什么,如果还有什么可以做的…… 后 svn checkout https://syntekdriver.svn.sourceforge.net/svnroot/syntekdriver syntekdriver 和 cd ./syntekdriver/trunk/driver 以及 make -f Makefile.standalone 我有: make -C /lib/modules/2.6.36.2/build SUBDIRS=/home/berot3/syntekdriver/trunk/driver modules make[1]: Betrete Verzeichnis ‘/usr/src/linux-headers-2.6.38-8-generic’ CC [M] /home/berot3/syntekdriver/trunk/driver/stk11xx-usb.o CC [M] /home/berot3/syntekdriver/trunk/driver/stk11xx-v4l.o /home/berot3/syntekdriver/trunk/driver/stk11xx-v4l.c:43:28: fatal error: linux/videodev.h: File not found! compilation terminated. make[2]: *** [/home/berot3/syntekdriver/trunk/driver/stk11xx-v4l.o] Error 1 make[1]: *** [_module_/home/berot3/syntekdriver/trunk/driver] Error 2 make[1]: Verlasse Verzeichnis ‘/usr/src/linux-headers-2.6.38-8-generic’ make: […]

Realtek RTS5229驱动程序的编译失败

我正在尝试编译我的新笔记本电脑的SD卡读卡器,一个Realtek RTS5229的驱动程序。 但是,在运行make ,我遇到以下错误: $ make # reduced messages to errors /home/sebastian/UbuntuSetup/Realtek_RTS5229_Linux_Driver_v1.07/rts5229/rtsx.c:266:2: error: unknown field ‘proc_info’ specified in initializer .proc_info = proc_info, ^ /home/sebastian/UbuntuSetup/Realtek_RTS5229_Linux_Driver_v1.07/rts5229/rtsx.c:914:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtsx_probe’ static int __devinit rtsx_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) ^ /home/sebastian/UbuntuSetup/Realtek_RTS5229_Linux_Driver_v1.07/rts5229/rtsx.c:1069:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before […]

无法在ubuntu 14.04上安装VMware工作站11.1

在ubuntu 14.04内核模块更新程序上安装VMware工作站11.1时出现问题提示编译错误:虚拟网络设备无法启动服务请参阅日志文件….我已经浏览了几个论坛但仍然没有想到它

得到一个错误gawk:符号查找错误:gawk:未定义的符号:mpfr_z_sub

所有,我收到一个错误,指示gawk:符号查找错误:gawk:未定义符号:mpfr_z_sub当我想从www.yonch.com/wireless编译模拟时 。 我键入时发生此错误 /wireless/release$ CPPFLAGS=”-I/usr/include -DNDEBUG” CXXFLAGS=”-03″ ../configure –prefix=$HOME 结果是 configure: creating ./config.status config.status: creating Makefile gawk: symbol lookup error: gawk: undefined symbol: mpfr_z_sub config.status: error: could not create Makefile 我是Ubuntu的新用户,我不知道如何修复它,任何人都可以帮助我吗? 非常感谢你。

如何在gcc中编译代码,.c文件在一个目录中,我想在另一个目录中编译代码?

在练习程序时,我有兴趣编译程序,我在一个目录中编写源代码,我想在另一个目录中编译源代码这样可能吗? 如果可以,则发送步骤 谢谢Krishnamraju.R

在哪里或如何编译或下载libzdb-devel

我正在尝试为libzdb编译开发库,因为dbmail需要这个dev包来编译 。 虽然我从libzdb下载并编译了包,但这只是常规二进制文件,而我需要的是devel包。 如何构建/获取/下载libzdb-devel?

如何在VS2017 VC ++ for Linux项目中链接libgattlib.so

我尝试使用驻留在Raspberry Pi 3板中的libgattlib.so静态库在VS2017(来自我的PC)中构建VC ++ for Linux(Raspbian)项目。 编译没有错误。 我可以使用例如\\ usr \ include可靠地包含在项目.h文件中。 我还需要一个libgattlib.so库文件的引用。 它位于Raspberry Pi 3上的/ usr / lib中,并且在VS2017 项目 – >配置属性 – > VC ++目录 – >库目录中设置了正确的链接( \\ usr \ lib ),并在项目 – >配置属性中设置了-lgattlib- > Linker-> Input-> Library Dependencies但链接器报告错误: 目标链接: 1> Linking objects 1> Invoking ‘ld’ 1> g++ -o “/home/pi/projects/Id2Monitor_For_Linux/bin/ARM/Debug/Id2Monitor_For_Linux.out” -Wl,–no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack /home/pi/projects/Id2Monitor_For_Linux/obj/ARM/Debug/main.o […]

VirtualBox不会安装在Ubuntu 18.04的新副本上

我看过两个与我相似的问题,但两个问题都没有对我有用。 当我尝试从Ubuntu repos安装VirtualBox时,生成的程序会给出错误: VirtualBox: supR3HardenedMainGetTrustedMain: dlopen(“/usr/lib/virtualbox/VirtualBox.so”,) failed: libQt5Core.so.5: cannot open shared object file: No such file or directory 我安装了qt5核心。 事实上,因为我不断得到Qt5错误,我最终做了 sudo apt install qt* 这没有解决我的问题。 我甚至尝试过按照这些说明从源代码构建VirtualBox。 当我第一次尝试从源代码构建时,我在./configure步骤中也遇到了Qt5错误。 我最终从他们的网站安装了Qt5并将构建指向它,如下所示: ./configure –disable-hardening –with-qt-dr=/opt/path/to/Qt 这实际上确实修复了Qt错误,但现在kmk步骤最终失败,然后如果我继续执行指令,我实际上从未实际工作。 我现在也尝试直接重新安装Ubuntu 3或4次,这没有帮助。 这是 Ask Ubuntu 的其他问题之一,解决方案并没有真正帮助我,因为我的系统输出 – 据我所知 – 与唯一答案的工作系统相同。 另一个问题没有答案,唯一评论的建议是sudo apt install -f ,我显然已经尝试过,而且没有修复我的安装。 请求编辑:我尝试了sudo apt install –reinstall libqt5core5a并继续得到相同的错误。 apt-cache policy virtualbox-qt […]

符号混乱

试图解决我遇到的错误(尝试运行使用nvidia的cuda的程序),CUDA入门指南说: 通过修改PATH和LD_LIBRARY_PATH变量来设置开发环境: $ export PATH=/usr/local/cuda-9.1/bin${PATH:+:${PATH}} $ export LD_LIBRARY_PATH=/usr/local/cuda-9.1/lib64\ ${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 链接: http : //docs.nvidia.com/cuda/cuda-quick-start-guide/index.html#ixzz553mlsUKP 我是否应该用实际路径替换其中一条“路径”? “$”或花括号是否意味着我应该用自己的路径替换示例? 我对Linux一般都很陌生,提前感谢您的时间和耐心。