AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[cmake](ubuntu)

Martin Hope
jamboNum5
Asked: 2024-01-22 19:53:08 +0800 CST

cmake 未检测 Conda 环境中的库文件

  • 5

我正在尝试使用 Geant 的 Conda 安装说明https://geant4-userdoc.web.cern.ch/UsersGuides/InstallationGuide/html/index.html#conda-on-linux-macos

# Basic steps to setup environment
conda create -c conda-forge --name <my-environment> geant4
conda activate <my-environment>

然后,我使用以下命令编译其中一个示例,该命令抱怨缺少库文件:

~$ cmake ~/.conda/envs/geant4/share/Geant4/examples/basic/B1/
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find EXPAT: Found unsuitable version "2.4.7", but required is at
  least "2.5.0" (found /usr/lib/x86_64-linux-gnu/libexpat.so)
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:592 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.22/Modules/FindEXPAT.cmake:65 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  /usr/share/cmake-3.22/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /home/user1/.conda/envs/geant4/lib/cmake/Geant4/Geant4Config.cmake:268 (find_dependency)
  CMakeLists.txt:13 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/user1/CMakeFiles/CMakeOutput.log".

从运行conda list中我可以看到所有模块及其各自的library.so文件已安装到环境中。但cmake很难从 Conda 环境中提取库文件。

我尝试将 Conda 环境添加到$LD_LIBRARY_PATH并在 cmake 文件中配置一行以显式查找~/.conda/envs/geant4/lib,但cmake仍然没有选择库目录并回退到主系统库目录。

CMakeLists.txt < add the following
set(CMAKE_INSTALL_RPATH "~/.conda/envs/geant4/lib")
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)

我不确定为什么cmake不考虑$LD_LIBRARY_PATH或强制执行 Geant4/B1 示例 CMake 文件中的库位置。

任何帮助都会很棒,提前致谢!

cmake
  • 1 个回答
  • 57 Views
Martin Hope
truf
Asked: 2020-10-31 09:45:01 +0800 CST

如果 cmake 找不到非强制性 c++ 功能支持,pbuilder-dist 会失败吗?

  • 4

我正在尝试根据本手册向我的 PPA 提交 deb:
https
://packaging.ubuntu.com/html/packaging-new-software.html 我可以bzr builddeb -- -nc -us -uc使用bzr builddeb -S. 但是pbuilder-dist groovy build myproject_0.2.8-1.dscin 的执行../build-area失败。
完整日志可在 pastebin 中找到:https ://pastebin.com/whr6Qsd1

我相信问题出在以下部分:

Determining if the CXX compiler accepts the flag -fno-keep-inline-dllexport failed with the following output:
Change Dir: /build/myapp-0.2.8/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_3ab02/fast && gmake[1]: Entering directory '/build/myapp-0.2.8/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'
/usr/bin/gmake -f CMakeFiles/cmTC_3ab02.dir/build.make CMakeFiles/cmTC_3ab02.dir/build
gmake[2]: Entering directory '/build/myapp-0.2.8/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_3ab02.dir/DummyCXXFile.cxx.o
/usr/bin/c++    -std=c++0x -fno-keep-inline-dllexport   -o CMakeFiles/cmTC_3ab02.dir/DummyCXXFile.cxx.o -c /usr/share/cmake-3.16/Modules/DummyCXXFile.cxx
c++: error: command-line option '-fno-keep-inline-dllexport' is not supported by this configuration
gmake[2]: *** [CMakeFiles/cmTC_3ab02.dir/build.make:66: CMakeFiles/cmTC_3ab02.dir/DummyCXXFile.cxx.o] Error 1
gmake[2]: Leaving directory '/build/myapp-0.2.8/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'
gmake[1]: *** [Makefile:121: cmTC_3ab02/fast] Error 2
gmake[1]: Leaving directory '/build/myapp-0.2.8/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'



dh_auto_configure: error: cd obj-x86_64-linux-gnu && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu .. returned exit code 1
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

所以,cmake正在检查是否/usr/c++支持-fno-keep-inline-dllexport. 编译器以 1 bcs 结尾,它不支持它,cmake 返回 2 和 dh_auto_configure painics。

如果我cmake在我的系统上执行,我会得到以下标准输出:

-- Checking to see if CXX compiler accepts flag -ffunction-sections -fdata-sections -Wl,--gc-sections
-- Checking to see if CXX compiler accepts flag -ffunction-sections -fdata-sections -Wl,--gc-sections - yes
-- Checking to see if CXX compiler accepts flag -fno-keep-inline-dllexport
-- Checking to see if CXX compiler accepts flag -fno-keep-inline-dllexport - no
-- Checking to see if CXX compiler accepts flag -Werror=return-type
-- Checking to see if CXX compiler accepts flag -Werror=return-type - yes

所以即使是我系统上的编译器也不支持-fno-keep-inline-dllexport. 我很好。对我来说没关系。cmake不失败。

看起来,非强制特征检查失败会cmake破坏整个pbuilder-dist过程。有没有办法改变这种行为或者我错过了什么?

Ps 我的构建依赖是:debhelper-compat (= 13), cmake (>=2.8.9), gcc (>=4.6), qt5-qmake (>= 5.4), qtbase5-dev (>= 5.4), libtiff5-dev (>= 4.0.3), libjpeg8-dev (>= 8c), libpng-dev (>=1.6.2)

pbuilder bazaar deb cmake pbuilder-dist
  • 1 个回答
  • 142 Views
Martin Hope
ValeraB
Asked: 2020-10-30 05:07:55 +0800 CST

如何解决类似的“链接 CXX 可执行文件”问题

  • 0

我尝试编译以获取Gerbera,一个流行的 DLNA 服务器运行证明是徒劳的。依赖项似乎没问题。该文档没有提到任何需要的 make 标志。因此,当我尝试制作时,构建达到 100%,然后失败

[100%]链接 CXX 可执行非洲菊
带有以下消息:
/usr/bin/ld: liblibgerbera.a(sqlite_database.cc.o): 对符号'sqlite3_mprintf'的未定义引用
/usr/bin/ld: /lib/x86_64-linux-gnu/libsqlite3.so.0: 添加符号时出错:命令行中缺少 DSO
clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
make[2]: *** [CMakeFiles/gerbera.dir/build.make:98: gerbera] 错误 1
make[1]: *** [CMakeFiles/Makefile2:78: CMakeFiles/gerbera.dir/all] 错误 2
make: *** [Makefile:130: all] 错误 2
我不熟悉此类问题,因此如果有人向我解释,或者如果可能的话,帮助我解决它,我将不胜感激

compiling dlna cmake clang gerbera
  • 1 个回答
  • 2596 Views
Martin Hope
Mechatrnk
Asked: 2020-09-24 05:58:18 +0800 CST

无法安装 cmake

  • 1

我是 Linux 和 C++ 的新手,我正在尝试安装 cmake,当我尝试使用sudo apt install cmake它安装 cmake 3.10 版时,但这里声明至少需要 3.15 版:当我尝试安装更新版本时使用sudo snap install cmakeLinux 终端提示我收到错误cannot install "cmake" Post https://api.snapcraft.io/v2/snaps/refresh:dial tcp: lookup api.snapcraft.io: no such host可能是由于我在虚拟机上使用 Ubuntu 18.04 并且无法访问互联网而导致错误。所以我尝试从这里安装 cmake.sh并通过 Windows/Linux 共享文件夹将其传输到 Ubuntu,但它没有帮助。

c++ cmake
  • 1 个回答
  • 1706 Views
Martin Hope
user1020905
Asked: 2020-09-05 01:28:04 +0800 CST

Ubuntu 16.04 上的最新 CMake,无需删除其他软件包

  • 0

由于 CMakeLists 中的 cmake_minimum_required 使用,我需要使用新版本的 CMake。我有 Ubuntu 16.04 和 CMake 3.5.2。我从https://www.osec.com/en/how-to-install-the-latest-version-of-cmake-on-ubuntu-16-04-执行了“从源代码安装 CMake”的步骤18-04-linux.html不幸的是,我丢失了一些重要的包 - 与 CMake 一起删除。

如果我尝试在不删除旧 CMake 的情况下执行此操作,则 cmake --version 会显示正确的(最新的),但我仍然在 CMakeLists 中收到错误(它正在检测旧的)。

是否可以在不丢失软件包的情况下更新它,或者我应该重新安装它?

software-installation 16.04 cmake
  • 1 个回答
  • 87 Views
Martin Hope
Kong
Asked: 2020-07-28 03:09:08 +0800 CST

cmake - 如何设置 CUDA_cublas_LIBRARY 的路径?

  • 0

我正在尝试安装此https://github.com/NVlabs/ssn_superpixels但在步骤中收到以下错误cmake ..

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_cublas_LIBRARY (ADVANCED)
    linked by target "caffe" in directory /home/haziq/ASTAR/scripts/ssn_superpixels/lib/video_prop_networks/lib/caffe/src/caffe

然后我尝试搜索该库并找到一个libcublas.so.9.1和libcublas.so.9.1.85.

(base) haziq@mdeep:~/ASTAR/scripts/ssncaffe$ ls /usr/lib/x86_64-linux-gnu/libcublas.so.9.1
libcublas.so.9.1     libcublas.so.9.1.85

我现在如何告诉 CMake 到 CUDA_cublas_LIBRARY 的路径?命令

cmake .. CUDA_cublas_LIBRARY=/usr/lib/x86_64-linux-gnu/libcublas.so.9.1

不工作?

cmake
  • 1 个回答
  • 1324 Views
Martin Hope
Roy Raihenshtein
Asked: 2020-07-22 05:50:32 +0800 CST

2个版本的Cmake,需要删除一个

  • 1

我在使用 Cmake 时遇到问题。我正在使用 Ubuntu 18.04 并安装了最新版本的 Cmake (3.18.0)。由于我一般对 Linux 有点陌生,我认为安装新版本会覆盖上一个版本并简单地更新它,不幸的是我错了。现在有时当我尝试将最低版本设置为 3.10 以上时,我收到以下错误:

CMake 3.17 or higher is required.  You are running version 3.10.2

很明显,我需要删除旧版本,但是我不确定如何删除特定版本,每当我尝试找到 Cmake 文件夹时,目录是:

/usr/local/bin/cmake

这不是目录,特别不是我需要的目录(3.10.2 之一)。

如何删除特定版本的 Cmake?谢谢您的帮助。

编辑 正如以下评论所建议的,输出which -a cmake:

/usr/local/bin/cmake
/usr/bin/cmake

Cmake at/usr/bin/cmake是错误的版本(3.10.2)。

software-uninstall 18.04 cmake
  • 1 个回答
  • 1527 Views
Martin Hope
lior.i
Asked: 2020-07-20 05:17:05 +0800 CST

在 Ubuntu 18.04 中卸载 cmake

  • 4

我需要从我的 Ubuntu 机器上卸载 cmake。正如我在如何在 Ubuntu 中卸载软件?

sudo apt-get remove cmake
sudo apt-get purge cmake
sudo apt remove cmake

但它没有用,cmake仍然存在于~/.local/bindir中,当我检查版本时如何检查CMake是否安装在ubuntu中?

cmake --version

我得到了 cmake 版本。如何卸载和删除 cmake?

uninstall cmake
  • 1 个回答
  • 5142 Views
Martin Hope
Pure.Krome
Asked: 2020-05-28 04:31:47 +0800 CST

CMake 未正确安装在我的 Ubuntu docker 映像上

  • 1

我正在尝试在 Ubuntu docker 图像实例中使用这个图像相似性 git repo 。

那里列出了安装/构建说明,其中包括 cmake。

当我进入目录并输入时,make我得到一些奇怪的构建错误,我猜这些错误与安装不正确的cmake应用程序有关。

root@492332e8a783:/projects/perceptualdiff/perceptualdiff# ls -al
total 164
drwxr-xr-x 5 root root  4096 May 26 21:22 .
drwxr-xr-x 3 root root  4096 May 26 21:22 ..
-rw-r--r-- 1 root root  1385 May 26 21:22 .clang-format
lrwxrwxrwx 1 root root    21 May 26 21:22 .clang_complete -> .syntastic_cpp_config
drwxr-xr-x 8 root root  4096 May 26 21:22 .git
-rw-r--r-- 1 root root   269 May 26 21:22 .gitignore
-rw-r--r-- 1 root root    11 May 26 21:22 .syntastic_cpp_config
-rw-r--r-- 1 root root   536 May 26 21:22 .travis.yml
-rw-r--r-- 1 root root  2798 May 26 21:22 CMakeLists.txt
-rw-r--r-- 1 root root  2540 May 26 21:22 FindFreeImage.cmake
-rw-r--r-- 1 root root 17990 May 26 21:22 LICENSE
-rw-r--r-- 1 root root   503 May 26 21:22 Makefile
-rw-r--r-- 1 root root  4304 May 26 21:22 README.rst
drwxr-xr-x 3 root root  4096 May 26 21:25 build
-rw-r--r-- 1 root root 10377 May 26 21:22 compare_args.cpp
-rw-r--r-- 1 root root  1937 May 26 21:22 compare_args.h
-rwxr-xr-x 1 root root   206 May 26 21:22 coverage.bash
-rwxr-xr-x 1 root root   535 May 26 21:22 coveralls.bash
-rwxr-xr-x 1 root root   308 May 26 21:22 coverity.bash
-rw-r--r-- 1 root root  1138 May 26 21:22 exceptions.h
-rw-r--r-- 1 root root  3311 May 26 21:22 lpyramid.cpp
-rw-r--r-- 1 root root  1538 May 26 21:22 lpyramid.h
-rwxr-xr-x 1 root root   450 May 26 21:22 memcheck.bash
-rw-r--r-- 1 root root   248 May 26 21:22 memcheck.supp
-rw-r--r-- 1 root root 14705 May 26 21:22 metric.cpp
-rw-r--r-- 1 root root  2209 May 26 21:22 metric.h
-rw-r--r-- 1 root root  2889 May 26 21:22 perceptualdiff.cpp
-rw-r--r-- 1 root root  4885 May 26 21:22 rgba_image.cpp
-rw-r--r-- 1 root root  4123 May 26 21:22 rgba_image.h
drwxr-xr-x 2 root root  4096 May 26 21:22 test
root@492332e8a783:/projects/perceptualdiff/perceptualdiff# make
mkdir -p build
test -f build/Makefile || cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:1 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "/projects/perceptualdiff/perceptualdiff/build/CMakeFiles/CMakeOutput.log".
See also "/projects/perceptualdiff/perceptualdiff/build/CMakeFiles/CMakeError.log".
make: *** [Makefile:7: build] Error 1
root@492332e8a783:/projects/perceptualdiff/perceptualdiff#

并且安装了cmakeapt-get install cmake

root@492332e8a783:/projects/perceptualdiff/perceptualdiff# whereis cmake
cmake: /usr/bin/cmake /usr/share/cmake

那么任何人都可以帮我得到这个代码来构建make(我假设需要使用cmake)?

cmake
  • 1 个回答
  • 4710 Views
Martin Hope
chiehpower
Asked: 2020-04-27 21:44:20 +0800 CST

使文件错误以构建 libbot2 库

  • 0

让我描述一下我的问题。到目前为止,我正在构建请求libbot2库的 MPNet。

  • MPNet GitHub
  • libbot2 GitHub

我已经安装了以下需求库:

        GLib 2.0+
        CMake
        LCM       (http://lcm.googlecode.com)
        Java      (Sun JDK or OpenJDK strongly preferred)
        Python
        GTK+ 2.0+ (required by bot2-vis)
        OpenGL    (required by bot2-vis)
        GLUT
        PyGTK
    libglib2.0-dev
    cmake
    sun-java6-jdk | default-jdk | openjdk-6-jdk
    python-dev
    python-gtk2
    libgtk2.0-dev
    mesa-common-dev
    libgl1-mesa-dev
    libglu1-mesa-dev
    freeglut3-dev
    libjpeg-dev

这是我的部分环境设置。

OS: Ubuntu 18.04
    freeglut3-dev is already the newest version (2.8.1-3)
    libxi-dev is already the newest version (2:1.7.9-1)
    libxmu-dev is already the newest version (2:1.1.2-2)
    binutils is already the newest version (2.30-21ubuntu1~18.04.3)
    libglu1-mesa-dev is already the newest version (9.0.0-2.1build1)
    libgtk2.0-dev is already the newest version (2.24.32-1ubuntu1)
    libjpeg-dev is already the newest version (8c-2ubuntu8)
    freeglut3-dev is already the newest version (2.8.1-3)
    libgl1-mesa-dev is already the newest version (19.2.8-0ubuntu0~18.04.3)
    libglib2.0-dev is already the newest version (2.56.4-0ubuntu0.18.04.6)
    mesa-common-dev is already the newest version (19.2.8-0ubuntu0~18.04.3)
    LCM version 1.4.0

当我使用sudo make时,我得到了这个错误。我发现我无法成功构建bot2-vis这个阶段。

-------------------------------------------
-- bot2-vis
-------------------------------------------
[  2%] Building C object src/bot_vis/CMakeFiles/bot2-vis.dir/viewer.c.o
/home/chieh/github/libbot2/bot2-vis/src/bot_vis/viewer.c: In function ‘bot_viewer_start_recording’:
/home/chieh/github/libbot2/bot2-vis/src/bot_vis/viewer.c:136:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     self->movie_gzf = gzopen(self->movie_path, "w");
                     ^
/home/chieh/github/libbot2/bot2-vis/src/bot_vis/viewer.c:137:17: warning: passing argument 1 of ‘gzsetparams’ from incompatible pointer type [-Wincompatible-pointer-types]
     gzsetparams(self->movie_gzf, Z_BEST_SPEED, Z_DEFAULT_STRATEGY);
                 ^~~~
In file included from /home/chieh/github/libbot2/bot2-vis/src/bot_vis/viewer.c:9:0:
/usr/include/zlib.h:1380:21: note: expected ‘gzFile {aka struct gzFile_s *}’ but argument is of type ‘struct gzFile_s **’
 ZEXTERN int ZEXPORT gzsetparams OF((gzFile file, int level, int strategy));
                     ^~~~~~~~~~~
/home/chieh/github/libbot2/bot2-vis/src/bot_vis/viewer.c: In function ‘bot_viewer_stop_recording’:
/home/chieh/github/libbot2/bot2-vis/src/bot_vis/viewer.c:173:13: warning: passing argument 1 of ‘gzclose’ from incompatible pointer type [-Wincompatible-pointer-types]
     gzclose(self->movie_gzf);
             ^~~~
In file included from /home/chieh/github/libbot2/bot2-vis/src/bot_vis/viewer.c:9:0:
/usr/include/zlib.h:1631:24: note: expected ‘gzFile {aka struct gzFile_s *}’ but argument is of type ‘struct gzFile_s **’
 ZEXTERN int ZEXPORT    gzclose OF((gzFile file));
                        ^~~~~~~
/home/chieh/github/libbot2/bot2-vis/src/bot_vis/viewer.c: In function ‘on_gl_expose’:
/home/chieh/github/libbot2/bot2-vis/src/bot_vis/viewer.c:498:18: warning: passing argument 1 of ‘gzprintf’ from incompatible pointer type [-Wincompatible-pointer-types]
         gzprintf(self->movie_gzf, "P6 %d %d %d\n", self->movie_width, self->movie_height, 255);
                  ^~~~
In file included from /home/chieh/github/libbot2/bot2-vis/src/bot_vis/viewer.c:9:0:
/usr/include/zlib.h:1469:23: note: expected ‘gzFile {aka struct gzFile_s *}’ but argument is of type ‘struct gzFile_s **’
 ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...));
                       ^~~~~~~~
/home/chieh/github/libbot2/bot2-vis/src/bot_vis/viewer.c:502:21: warning: passing argument 1 of ‘gzwrite’ from incompatible pointer type [-Wincompatible-pointer-types]
             gzwrite(self->movie_gzf, &self->movie_buffer[offset], self->movie_stride);
                     ^~~~
In file included from /home/chieh/github/libbot2/bot2-vis/src/bot_vis/viewer.c:9:0:
/usr/include/zlib.h:1447:21: note: expected ‘gzFile {aka struct gzFile_s *}’ but argument is of type ‘struct gzFile_s **’
 ZEXTERN int ZEXPORT gzwrite OF((gzFile file,
                     ^~~~~~~
/home/chieh/github/libbot2/bot2-vis/src/bot_vis/viewer.c: In function ‘on_button_press’:
/home/chieh/github/libbot2/bot2-vis/src/bot_vis/viewer.c:600:5: error: expected ‘,’ or ‘;’ before ‘BotEventHandler’
     BotEventHandler *best_handler = NULL;
     ^~~~~~~~~~~~~~~
/home/chieh/github/libbot2/bot2-vis/src/bot_vis/viewer.c:610:21: error: ‘best_handler’ undeclared (first use in this function); did you mean ‘sa_handler’?
                     best_handler = handler;
                     ^~~~~~~~~~~~
                     sa_handler
/home/chieh/github/libbot2/bot2-vis/src/bot_vis/viewer.c:610:21: note: each undeclared identifier is reported only once for each function it appears in
/home/chieh/github/libbot2/bot2-vis/src/bot_vis/viewer.c: In function ‘on_motion_notify’:
/home/chieh/github/libbot2/bot2-vis/src/bot_vis/viewer.c:690:2: error: expected ‘,’ or ‘;’ before ‘BotEventHandler’
  BotEventHandler *best_handler = NULL;
  ^~~~~~~~~~~~~~~
/home/chieh/github/libbot2/bot2-vis/src/bot_vis/viewer.c:701:21: error: ‘best_handler’ undeclared (first use in this function); did you mean ‘sa_handler’?
                     best_handler = handler;
                     ^~~~~~~~~~~~
                     sa_handler
src/bot_vis/CMakeFiles/bot2-vis.dir/build.make:322: recipe for target 'src/bot_vis/CMakeFiles/bot2-vis.dir/viewer.c.o' failed
make[4]: *** [src/bot_vis/CMakeFiles/bot2-vis.dir/viewer.c.o] Error 1
CMakeFiles/Makefile2:130: recipe for target 'src/bot_vis/CMakeFiles/bot2-vis.dir/all' failed
make[3]: *** [src/bot_vis/CMakeFiles/bot2-vis.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make[2]: *** [all] Error 2
Makefile:27: recipe for target 'all' failed
make[1]: *** [all] Error 2
Makefile:19: recipe for target 'all' failed
make: *** [all] Error 2

我怎么解决这个问题?谢谢

make python-2.7 cmake
  • 1 个回答
  • 75 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve