Toybrick

楼主: hisping

RK3399Pro入门教程(7)RTSP库的使用

 

yingfalu

注册会员

积分
98
楼主
发表于 2022-8-22 15:55:20 | 显示全部楼层

toybrick@debian10:~/RtspHardDecoding-master/local_rtsp/build$
toybrick@debian10:~/RtspHardDecoding-master/local_rtsp/build$ cmake ..
CMake Error: The current CMakeCache.txt directory /home/toybrick/RtspHardDecoding-master/local_rtsp/build/CMakeCache.txt is different than the directory /home/toybrick/local_rtsp/build where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source "/home/toybrick/RtspHardDecoding-master/local_rtsp/CMakeLists.txt" does not match the source "/home/toybrick/local_rtsp/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.

请问我执行,cmake..为啥会报这个错误呢?
回复

使用道具 举报

yingfalu

注册会员

积分
98
沙发
发表于 2022-8-23 11:30:43 | 显示全部楼层
toybrick@debian10:~/local_rtsp/build$ sudo dnf install -y python3-devel python3-opencv python3-numpy-f2py python3-h5py python3-lmdb  python3-grpcio
sudo: dnf: command not found

为啥没有dnf呀。
我的是debian系统的原因吗?
回复

使用道具 举报

yingfalu

注册会员

积分
98
板凳
发表于 2022-8-29 15:02:17 | 显示全部楼层
为啥我执行cd local_rtsp/build
cmake ..
的时候会报如下的错误呢?
toybrick@debian10:~/Documents/local_rtsp/build$ cmake ..
CMake Error: The current CMakeCache.txt directory /home/toybrick/Documents/local_rtsp/build/CMakeCache.txt is different than the directory /home/toybrick/local_rtsp/build where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source "/home/toybrick/Documents/local_rtsp/CMakeLists.txt" does not match the source "/home/toybrick/local_rtsp/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.

是路径不对,然后我修改了路径之后执行又报如下的错误了
toybrick@debian10:~/local_rtsp/build$ cmake ..
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /bin/cc
CMake Error: Generator: execution of make failed. Make command was: "/bin/gmake" "cmTC_bc0c8/fast"
-- Check for working C compiler: /bin/cc -- broken
CMake Error at /usr/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
  The C compiler

    "/bin/cc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/toybrick/local_rtsp/build/CMakeFiles/CMakeTmp

    Run Build Command:"/bin/gmake" "cmTC_bc0c8/fast"
    No such file or directory
    Generator: execution of make failed. Make command was: "/bin/gmake" "cmTC_bc0c8/fast"




  CMake will not be able to correctly generate this project.


-- Configuring incomplete, errors occurred!
See also "/home/toybrick/local_rtsp/build/CMakeFiles/CMakeOutput.log".
See also "/home/toybrick/local_rtsp/build/CMakeFiles/CMakeError.log".



回复

使用道具 举报

yingfalu

注册会员

积分
98
地板
发表于 2022-8-31 05:23:41 | 显示全部楼层
toybrick@debian10:~/local_rtsp/build$ cmake ..
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /bin/cc
CMake Error: Generator: execution of make failed. Make command was: "/bin/gmake" "cmTC_dc915/fast"
-- Check for working C compiler: /bin/cc -- broken
CMake Error at /usr/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
  The C compiler

    "/bin/cc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/toybrick/local_rtsp/build/CMakeFiles/CMakeTmp

    Run Build Command:"/bin/gmake" "cmTC_dc915/fast"
    No such file or directory
    Generator: execution of make failed. Make command was: "/bin/gmake" "cmTC_dc915/fast"




  CMake will not be able to correctly generate this project.


-- Configuring incomplete, errors occurred!
See also "/home/toybrick/local_rtsp/build/CMakeFiles/CMakeOutput.log".
See also "/home/toybrick/local_rtsp/build/CMakeFiles/CMakeError.log".

为啥我执行这个会报这个错误呢?是我有什么依赖没有安装吗?
我查看了g++的版本
看了600多行的log,看不懂,想放弃。
楼主能踢我一脚吗?
回复

使用道具 举报

yingfalu

注册会员

积分
98
5#
发表于 2022-8-31 05:24:58 | 显示全部楼层
caizhoucun 发表于 2022-1-14 13:01
你好,你这个怎么解决的,我也遇到这个问题

这个问题是什么原因呢?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表