感谢任何帮助:我只是想在运行 ubuntu 的虚拟机上安装 Colcon,并且我正在使用此命令:colcon build --symlink-install
我收到此错误:
Starting >>> sick_scan2
--- stderr: sick_scan2
CMake Error at CMakeLists.txt:24 (find_package):
By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this
project
has asked CMake to find a package configuration file provided by
"ament_cmake", but CMake did not find one.
Could not find a package configuration file provided by "ament_cmake"
with
any of the following names:
ament_cmakeConfig.cmake
ament_cmake-config.cmake
Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set
"ament_cmake_DIR" to a directory containing one of …Run Code Online (Sandbox Code Playgroud) 我在链接时遇到以下错误.
无法从函数ClassBB :: bound()访问成员变量ClassBB :: THR.
奇怪的是,从ClassBB :: setThreshold(T v)函数来看,它与ClassBB :: bound()的条件相同,两者都是模板成员函数,成功访问了ClassBB :: THR(我只是在谈论编译时间,当然).
我还是C++的新手,特别是在模板架构方面.谢谢!
环境:通过Eclipse Indigo CDT的Ubuntu 10.10,G ++ 4.4.5
错误消息(仅链接器部分):
Building target: SampleEclipsePrj
Invoking: GCC C++ Linker
g++ -L/usr/local/lib -L/usr/lib -o "SampleEclipsePrj" ./src/SampleEclipsePrjFinal/IntersectAngle.o ./src/SampleEclipsePrjFinal/ReadRealTime.o ./src/SampleEclipsePrjFinal/SampleEclipsePrj.o ./src/SampleEclipsePrjFinal/SampleEclipsePrjThread.o ./src/SampleEclipsePrjFinal/Slope.o ./src/SampleEclipsePrjFinal/Transform.o ./src/SampleEclipsePrjFinal/Utility.o ./src/SampleEclipsePrjFinal/main3_linux.o ./src/SampleEclipsePrjFinal/reader.o -lcv -lcxcore -lhighgui
./src/SampleEclipsePrjFinal/SampleEclipsePrj.o: In function `ClassBB<double>::bound()':
/home/user/Documents/workspace_eclipse/SampleEclipsePrj/Includes/ClassBB.hpp:203: undefined reference to `ClassBB<double>::THR'
/home/user/Documents/workspace_eclipse/SampleEclipsePrj/Includes/ClassBB.hpp:204: undefined reference to `ClassBB<double>::THR'
/home/user/Documents/workspace_eclipse/SampleEclipsePrj/Includes/ClassBB.hpp:206: undefined reference to `ClassBB<double>::THR'
/home/user/Documents/workspace_eclipse/SampleEclipsePrj/Includes/ClassBB.hpp:207: undefined reference to `ClassBB<double>::THR'
collect2: ld returned 1 exit status
make: *** [SampleEclipsePrj] Error …Run Code Online (Sandbox Code Playgroud) 加载以下2个功能clisp成功.
(defun func1 (l)
(defvar *count* nil)
(setq count 1)
(cond ((null l) 0)
((atom l) (+ count 1))
((atom (car l)) (+ count (func1 (cdr l))))
((listp (car l)) (+ (func1 (car l)) (func1 (cdr l))))
(t nil)) )
(defun func2 (l)
(defvar *resLis* nil)
(setq resLis '((0 0)))
(anotherFunc l resLis)
)
Run Code Online (Sandbox Code Playgroud)
但是,sbcl导致错误:
warning: undefined variable: COUNT
warning: undefined variable: RESLIS
Compilation failed.
Run Code Online (Sandbox Code Playgroud)
我更喜欢使用sbcl(因为我slime唯一的用途),但上面的代码有什么问题?
环境:Ubuntu 11.10,GNU CLISP 2.49,SBCL 1.0.50.0.debian
当我尝试git从 上的源安装时qnx,出现以下错误(请注意,pound 是 sudo 中的提示qnx):
# ./configure --without-iconv --with-perl=/usr/pkg/bin/perl --with-python=/usr/qnx650/host/qnx6/x86/usr/bin/python
# make all
# make install
GEN perl/PM.stamp
SUBDIR gitweb
SUBDIR ../
make[2]: `GIT-VERSION-FILE' is up to date.
GEN git-instaweb
SUBDIR git-gui
SUBDIR gitk-git
SUBDIR perl
SUBDIR git_remote_helpers
SUBDIR templates
install -d -m 755 '/usr/local/bin'
make: install: Command not found
make: *** [install] Error 127
Run Code Online (Sandbox Code Playgroud)
我在谷歌搜索任意可执行文件时看到了很多make: %XXX%: Command not found问题%XXX%,但还没有看到它被替换为install. 怎么了?
git我从的主目录发布了一些可能感兴趣的文件: Makefile、config.status
QNX6.5.0 …
c++ ×1
clisp ×1
common-lisp ×1
g++ ×1
git ×1
makefile ×1
qnx ×1
qnx-neutrino ×1
sbcl ×1
ubuntu ×1