我正在尝试使用官方 Synology 工具链在 Ubuntu 上为 Synology NAS交叉编译StrongSwan软件包。
Host:
hostname = ubuntu
uname -m = i686
uname -r = 3.8.0-32-generic
uname -s = Linux
Target:
Synology:
- model DS213+
- CPU: Freescale QorIQ P1022
- Arch: PowerPC
- Endianness: Big Endian
- Linux 2.6.32
- uname -a:
Linux LupoDiskStation 2.6.32.12 #3776 SMP Sat Aug 17 02:11:24 CST 2013 ppc
GNU/Linux synology_qoriq_213+
Run Code Online (Sandbox Code Playgroud)
当我运行 ./configure 时,出现错误:
配置:错误:找不到 GNU 多精度库 gmp
配置命令:
env CC=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-gcc \
LD=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-ld \
RANLIB=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-ranlib \
CFLAGS="-I/usr/local/powerpc-none-linux-gnuspe/include -mcpu=8548 -mhard-float -mfloat-gprs=double" …Run Code Online (Sandbox Code Playgroud) 我目前正在使用 C++ 程序,我希望在其中使用 arc4random 函数。每次编译时,我都会收到 arc4random 的“未在范围内声明”消息。我知道这是我的程序中包含的库中的一个错误,但我已经包含了 stdlib.h 和 stdio.h ,我相信它们是它使用的库?我已经安装了“sudo apt-get install libpcl-all”以及“sudo apt-get install build-essential”。我已经在网上搜索过,但目前仍不确定我需要什么。我对 Ubuntu 还很陌生,所以任何有关这个问题的帮助将不胜感激。
我下载了官方ls.c源码并尝试用gcc编译。问题是 gcc 向我显示了很多错误。
$ gcc ls.c -o ls
ls.c:38:20: fatal error: config.h:
Run Code Online (Sandbox Code Playgroud)
我确实通过使用 find 命令在我的字典中搜索来修复了很多错误
$ find /usr/src/ -name "nameofthelibary" 2> /dev/null
Run Code Online (Sandbox Code Playgroud)
对于某些库,我找到了正确的路径,因此例如我可以将它们放入#include <config.h> => #include </usr/src/linuxheader.../config.h>
我提到的此方法适用于某些库,但不适用于标头#include "die.h"
所以我现在的问题是:有什么方法可以编译这个 ls.c 吗?cz 我想通过修改它来了解它是如何工作的
我在 boost::thread 库标头(我没有碰过)中遇到了疯狂的编译错误,所以我删除了/usr/include/boost.
我清除了libboost-all-dev然后做了sudo apt-get install libboost-all-dev,但是标题不会回来。
我应该怎么办?
由于多种原因,我需要为标准 x86 Ubuntu 16.04 系统构建自定义内核。按照这些说明,我通过以下调用成功构建了我需要的软件包套件:
fakeroot debian/rules binary-headers binary-generic binary-perarch skipdbg=false do_tool=true
Run Code Online (Sandbox Code Playgroud)
然而,作为这项工作的下一步,我想知道是否要做一些事情,例如减少不需要的驱动程序的数量,包括我目前使用 dh_dkms 软件包安装的一些补丁等。我觉得即使是我自己使用,它也会如果这些更改可以在内部发布,而不是使用标准的“通用”名称,而是可能是特定于我公司的半嵌入式用例的新风格/配置,那就最好了。
我发现 Ubuntu 内核存储库(例如 git://kernel.ubuntu.com/ubuntu/ubuntu-disco.git)有点难以导航,而且它似乎与 Debian 的做法有很大的不同,他们的有关内核构建的文档也不是很有帮助。
所以我的问题是:这个存储库中定义的口味及其配置(或默认配置)在哪里?看起来它可能已经在 中debian.master/control.d/vars.<flavourname>,但在那里添加新文件并没有使binary-<flavourname>构建目标可用,也没有改变任何fakeroot debian/rules editconfigs行为方式。
谢谢。
我做错了什么吗?我正在从源代码构建一些库,但与 Ubuntu 软件包相比,文件大小要大得多。这是一个例子。
https://github.com/linuxwacom/libwacom 使用 配置构建;make 创建 libwacom.so.2.6.1 (149,1 kB) 并且 /usr/lib 中的相同文件只有 41,8 kB。我假设调试版本带有后缀“d”,我是对的 - 那么这里有什么问题?塔。
上一个类似的问题:Ubuntu not Pick up Wifi Adapter
用终端指令回答编译驱动程序。
我按照这些说明[粘贴在这个问题的底部],一切似乎都很好,直到我执行“make”指令,然后我从终端获得以下输出。
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.11.0-27-generic/build M=/home/arch/Downloads/linux-wifi-88x2bu-driver modules
make[1]: Entering directory '/usr/src/linux-headers-5.11.0-27-generic'
CC [M] /home/arch/Downloads/linux-wifi-88x2bu-driver/core/rtw_cmd.o
CC [M] /home/arch/Downloads/linux-wifi-88x2bu-driver/core/rtw_security.o
CC [M] /home/arch/Downloads/linux-wifi-88x2bu-driver/core/rtw_debug.o
CC [M] /home/arch/Downloads/linux-wifi-88x2bu-driver/core/rtw_io.o
CC [M] /home/arch/Downloads/linux-wifi-88x2bu-driver/core/rtw_ioctl_query.o
CC [M] /home/arch/Downloads/linux-wifi-88x2bu-driver/core/rtw_ioctl_set.o
CC [M] /home/arch/Downloads/linux-wifi-88x2bu-driver/core/rtw_ieee80211.o
CC [M] /home/arch/Downloads/linux-wifi-88x2bu-driver/core/rtw_mlme.o
CC [M] /home/arch/Downloads/linux-wifi-88x2bu-driver/core/rtw_mlme_ext.o
CC [M] /home/arch/Downloads/linux-wifi-88x2bu-driver/core/rtw_mi.o
CC [M] /home/arch/Downloads/linux-wifi-88x2bu-driver/core/rtw_wlan_util.o
CC [M] /home/arch/Downloads/linux-wifi-88x2bu-driver/core/rtw_vht.o
CC [M] /home/arch/Downloads/linux-wifi-88x2bu-driver/core/rtw_pwrctrl.o
CC [M] /home/arch/Downloads/linux-wifi-88x2bu-driver/core/rtw_rf.o
CC [M] /home/arch/Downloads/linux-wifi-88x2bu-driver/core/rtw_recv.o
CC [M] /home/arch/Downloads/linux-wifi-88x2bu-driver/core/rtw_sta_mgt.o
CC [M] /home/arch/Downloads/linux-wifi-88x2bu-driver/core/rtw_ap.o
CC [M] /home/arch/Downloads/linux-wifi-88x2bu-driver/core/mesh/rtw_mesh.o
CC [M] /home/arch/Downloads/linux-wifi-88x2bu-driver/core/mesh/rtw_mesh_pathtbl.o
CC [M] /home/arch/Downloads/linux-wifi-88x2bu-driver/core/mesh/rtw_mesh_hwmp.o …Run Code Online (Sandbox Code Playgroud) 下载的软件包为 avogadro-1.2.0.tar.gz 并放入 home/src 文件夹中;解压到同一文件夹中。我从 INSTALL 文件夹中完成了第 2 步,在这里......
\nRequirements\n============\n -- CMake 2.8.9 or later (2.8.11 recommended)\n -- Qt 4.6.0 or later (4.8.5 recommended)\n -- OpenBabel 2.3.x or later (development version from \n http://github.org/openbabel/openbabel is recommended)\n -- Eigen 2.0.x or later (3.x also supported)\n\n\nBasic Installation\n==================\nThese instructions give a very basic overview of how to configure, compile and\ninstall Avogadro on most systems. If you are using unique install locations\nand/or libraries are not automatically detected please consult the 'Advanced'\nsection.\n\n1. Create a …Run Code Online (Sandbox Code Playgroud) 我正在尝试编译 abgx360 GUI。
首先我运行,home/eric/Desktop/abgx360-1.0.5/configure但我收到此错误:
检查 C++ 编译器默认输出文件名...
配置:错误:C++ 编译器无法创建可执行文件
有关更多详细信息,请参阅“config.log”。
然后我运行,make但收到此错误:
make: *没有规则可以制作目标`/home/eric/Desktop/abgx360-1.0.5/Makefile.am',
`/home/eric/Desktop/abgx360-1.0.5/Makefile.in' 需要。停止。
这是我的“config.log”:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by abgx360gui configure 1.0.2, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ /home/eric/Desktop/abgx360gui-1.0.2/configure
## --------- ##
## Platform. ##
## --------- ##
hostname = Eric-Desktop
uname -m = x86_64
uname -r = 2.6.35-27-generic …Run Code Online (Sandbox Code Playgroud) 我尝试安装 OPENssh ./configure
检查 openssl/opensslv.h... 没有配置:错误:* OpenSSL 标头丢失
任何的想法?