从生成文件编译错误:"Unable to open output file" ..."No such file or directory"
Compiling error from Makefile: "Unable to open output file"…"No such file or directory"
我在网上找到了一个项目(复活一个旧机器人(,我想把它集成到我正在做的事情中,但我在编译makefile时遇到了问题。我总是以错误告终:
c++-c src/Apps/speechSynth.cpp-o obj/speechSynth.o-Isrc
错误:无法打开输出文件"obj/speechSynth.o":"没有这样的文件或目录">
该文件为:https://github.com/jvalentine-20000/hero-pi.git
我很难看到makefile有问题?我是不是错过了什么?
根据错误消息(与我的附录一起(:
unable to open output file 'obj/speechSynth.o': 'No such file or directory'
^^^^^^^^^^^^
由于这是一个输出文件(来自-o
(,所以它几乎是,当然是,因为您没有obj
目录。我建议创建一个。
事实上,由于Makefile
应该为您完成所有工作,我建议更改命令序列,以便您执行:
mkdir -p obj
在编译之前。这应该确保目录在尝试使用之前存在。
相关文章:
- Seg Fault Issue C++ (file IO / getline)
- 应用程序崩溃并显示"symbol _ZdlPvm, version Qt_5 not defined in file libQt5Core.so.5 with link time reference"
- Android NDK clang 编译器错误在 Windows 上显示'No such file or directory'
- File.cpp.o:OpenPose 标志 CMakeFiles/.. 的多重定义/main.cpp.o:首先在这里定
- Visual Studio C++ Project File CustomBuild Task: Filter Outp
- 已解决 - C++ 的崇高文本中的"fatal error: opencv: no such file or directory"
- 可视化 如何在C++中将字符数组转换为 FILE 类型
- 如何在从文件中读取整数时使用 file.eof()?
- "No such file or directory" C++标头问题
- ( [ ]( ){ output;}); 是什么意思?
- 使用 sftp_open() 使用 C++ 中的 SFTP libssh 将文件从本地复制到远程时,File 返回 N
- Visual Studio "fatal error LNK1104: cannot open file"未使用或包含的库
- typedef vector size_type in header file
- make 命令创建 .file,但不创建应用程序文件
- 为什么 VScode 在 .h 文件中显示"'iostream' file not found"?
- 从生成文件编译错误:"Unable to open output file" ..."No such file or directory"
- 'Cannot output file filename.exe Permission denied' C++ 代码::块中的错误
- 如何在C++中调试"cannot open output file allocating memory.exe: Permission denied"?
- 为什么我的开发 c++ "can't open output file"?
- "cannot open output file filename.exe: Permission denied"