我正在将 Windows 应用程序移植到 Ubuntu 14.04。该应用程序是使用通用 HID 接口的 USB 设备的主机端 GUI。我需要包含嵌入 Ubuntu 14 安装的默认 USB 驱动程序的头文件,但无法找到可以找到这些头文件的位置。
这些文件可能被命名为类似libusb.h或可能usb.h。任何人都可以提供建议在哪里看?
我是 Linux 的新用户,所以请确保您的回复准确无误,否则我可能会迷路。谢谢。
每当我尝试“制作”文件时都会出错,我在输入“制作”之前这样做了:
tar xjf xarchiver-0.5.4.tar.bz2
cd ./xarchiver-0.5.4
./configure
Run Code Online (Sandbox Code Playgroud)
配置命令:
thomas@thomas-pc:~/Downloads/xarchiver-0.5.4$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default …Run Code Online (Sandbox Code Playgroud) 我正在开发一个应用程序,它会利用一些的SCTP(流控制传输协议)的API一样sctp_bindx,sctp_connectx等等。
我的内核版本是 3.13.0-49-generic。
如果我尝试编译我的代码,我会得到
fatal error: netinet/sctp.h: no such file or directory.
Run Code Online (Sandbox Code Playgroud)
如果我安装lksctp-tools包,那么我的代码就会被编译。
我可以在不安装任何libsctp库的情况下使用 API吗?因为我读到 kenel 版本支持 SCTP > 2.1
在 12.04 中,emacs 版本是 23.3.1。如何安装最新版本?
我记得有一个关于新 Emacs 的 PPA。
Emacs 24.5 12.04可以手动编译安装吗?
这里有人在 Ubuntu 12.04 中编译 Emacs 24.5 吗?
我应该使用哪一个sudo apt-get build-dep emacs23或者sudo apt-get build-dep emacs24,如果我在12.04编译Emacs的24.5?
这让我在过去的三个小时里发疯了。我只是想安装CMake,然后安装OpenCV 3.1,但我得到一个Unsupported protocol错误(请参见下文)。
我安装了 CMake 3.4.3。像这样:
wget https://cmake.org/files/v3.4/cmake-3.4.3.tar.gz
tar xf cmake-3.4.3.tar.gz
cd cmake-3.4.3
./configure
make
sudo make install
Run Code Online (Sandbox Code Playgroud)
然后运行这个:
./bootstrap --prefix=/usr
make
sudo make install
Run Code Online (Sandbox Code Playgroud)
在 OpenCV 的安装过程中运行此命令时出错:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
这是我得到的确切错误:
CMake Warning at 3rdparty/ippicv/downloader.cmake:56 (message):
ICV: Local copy of ICV package has invalid MD5 hash:
d41d8cd98f00b204e9800998ecf8427e (expected:
808b791a6eac9ed78d32a7666804320e)
Call Stack (most recent call first):
3rdparty/ippicv/downloader.cmake:110 (_icv_downloader)
cmake/OpenCVFindIPP.cmake:237 (include)
cmake/OpenCVFindLibsPerf.cmake:12 (include)
CMakeLists.txt:537 (include)
-- ICV: Downloading ippicv_linux_20151201.tgz...
CMake Error at 3rdparty/ippicv/downloader.cmake:73 (file): …Run Code Online (Sandbox Code Playgroud) 我尝试在 Ubuntu 下编译https://unix.stackexchange.com/a/228674。
不幸的是,最终出现以下错误:
/tmp/find-cursor$ make
cc find-cursor.c -o find-cursor -lX11
find-cursor.c:19:39: fatal error: X11/extensions/Xcomposite.h: No such file or directory
#include <X11/extensions/Xcomposite.h>
^
compilation terminated.
make: *** [all] Error 1
Run Code Online (Sandbox Code Playgroud)
我试过以下嫌疑人:
$ sudo apt-get install libxtst-dev libxss-dev libxtst6-dbg libxext6-dbg libxss1-dbg
Run Code Online (Sandbox Code Playgroud)
但在编译时仍然没有运气。为了您的方便,这里是片段:
sudo apt-get install mercurial
cd /tmp
hg clone https://bitbucket.org/Carpetsmoker/find-cursor
cd find-cursor
make
Run Code Online (Sandbox Code Playgroud)
FTR:要编译上面的代码,我必须:
sudo apt-get install libxcomposite-dev libxdamage-dev libxrender-dev并-std=gnu99在 Makefile 中向 cc添加标志
我正在尝试从 qt4 升级到 qt5。我正在遵循指南,看来我已经设法安装了 qt5。如这里所见...
daveomcd@ubuntu:~/Documents/rails_projects/bane$ dpkg -l qt5-qmake
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=============================================-===========================-===========================-================================================================================================
ii qt5-qmake:amd64 5.5.1+dfsg-16ubuntu7.1 amd64 Qt 5 qmake Makefile generator tool
Run Code Online (Sandbox Code Playgroud)
该指南提到rm 'which qmake'在某些时候删除旧的 qt4 安装。但是知道我正在尝试使用的依赖于 qmake 的软件不再有效。我收到以下错误:Command 'qmake ' not available
有谁知道我该如何解决这个问题?此外,似乎还安装了 qt4。如下所示。
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=============================================-===========================-===========================-================================================================================================
ii qt4-qmake 4:4.8.7+dfsg-5ubuntu2 amd64 Qt 4 qmake Makefile generator tool
Run Code Online (Sandbox Code Playgroud)
更新:
当我这样做时......qtchooser -l我得到以下信息:
4
5
default
qt4-x86_64-linux-gnu …Run Code Online (Sandbox Code Playgroud) 我不明白编译 openWRT 的命令之一。
make -j N V=m编译openWRT时命令的含义是什么?
例如,make -j8 V=99。
我一直在尝试在我的开发机器上安装 libsass 以使用sassc,但我没有任何成功。我发现的大部分教程都来自今年早些时候,并且似乎不起作用(对我来说)(例如install libsass ubuntu ask ubuntu
这个问题对我来说似乎是从 sassc 目录运行 make 文件。
nizzok@nizzok-ThinkPad-X201:~/sassc$ make
make BUILD="static" -C /home/nizzok/libsass
make[1]: Entering directory '/home/nizzok/libsass'
mkdir lib
mkdir: cannot create directory ‘lib’: Permission denied
Makefile:227: recipe for target 'lib' failed
make[1]: *** [lib] Error 1
make[1]: Leaving directory '/home/nizzok/libsass'
Makefile:212: recipe for target 'libsass-static' failed
make: *** [libsass-static] Error 2
nizzok@nizzok-ThinkPad-X201:~/sassc$ sudo make
make BUILD="static" -C /home/nizzok
make[1]: Entering directory '/home/nizzok'
make[1]: *** No targets specified and no makefile found. …Run Code Online (Sandbox Code Playgroud) 我正在尝试将我的cmake构建项目发布到我的启动板 ppa。当我在下面进行假构建时,会抛出错误。
gowtham@ubuntu:~/Packages/build-area$ pbuilder-dist xenial build base_1.1-0ubuntu1.dsc
...
...
dh_auto_configure -O--buildsystem=cmake
mkdir -p obj-x86_64-linux-gnu
cd obj-x86_64-linux-gnu
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var
dh_auto_configure: cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var failed to to execute: No such file or directory
cd /build/base-1.1
debian/rules:11: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
...
...
Run Code Online (Sandbox Code Playgroud)
错误消息没有说明缺少什么文件。我的项目没有configure文件要做./configure。
我的debian/rules文件
#!/usr/bin/make -f
# -*- makefile -*- …Run Code Online (Sandbox Code Playgroud)