ubuntu or ubuntu like to solve error: QtQml/QQmlApplicationEngine: No such file or directory

本文详细介绍了在Ubuntu系统上遇到的QtQml应用引擎错误:'No such file or directory',并提供了解决方案,即通过运行命令 'apt install -y qtdeclarative5-dev' 来安装必要的Qt开发包。

error: QtQml/QQmlApplicationEngine: No such file or directory

 

on ubuntu 

apt install -y qtdeclarative5-dev

root@ubuntu:/home/Ubo/release_042/svn/webassembly-ffmpeg-main/web-client# ./build_ffmpeg-emcc.sh Makefile:2: ffbuild/config.mak: No such file or directory Makefile:40: /tools/Makefile: No such file or directory Makefile:41: /ffbuild/common.mak: No such file or directory Makefile:97: /libavutil/Makefile: No such file or directory Makefile:97: /ffbuild/library.mak: No such file or directory Makefile:99: /fftools/Makefile: No such file or directory Makefile:100: /doc/Makefile: No such file or directory Makefile:101: /doc/examples/Makefile: No such file or directory Makefile:167: /tests/Makefile: No such file or directory make: *** No rule to make target '/tests/Makefile'. Stop. configure: ./configure --cc=emcc --cxx=em++ --ar=emar --ranlib=emranlib --prefix=../ffmpeg-emcc/ --enable-cross-compile --target-os=none --arch=x86_32 --cpu=generic --enable-gpl --disable-asm --disable-programs emcc is unable to create an executable file. C compiler test failed. If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "ffbuild/config.log" produced by configure as this will help solve the problem. emconfigure: error: './configure --cc=emcc --cxx=em++ --ar=emar --ranlib=emranlib --prefix=../ffmpeg-emcc/ --enable-cross-compile --target-os=none --arch=x86_32 --cpu=generic --enable-gpl --disable-asm --disable-programs' failed (returned 1) Makefile:2: ffbuild/config.mak: No such file or directory Makefile:40: /tools/Makefile: No such file or directory Makefile:41: /ffbuild/common.mak: No such file or directory Makefile:97: /libavutil/Makefile: No such file or directory Makefile:97: /ffbuild/library.mak: No such file or directory Makefile:99: /fftools/Makefile: No such file or directory Makefile:100: /doc/Makefile: No such file or directory Makefile:101: /doc/examples/Makefile: No such file or directory Makefile:167: /tests/Makefile: No such file or directory make: *** No rule to make target '/tests/Makefile'. Stop. Makefile:2: ffbuild/config.mak: No such file or directory Makefile:40: /tools/Makefile: No such file or directory Makefile:41: /ffbuild/common.mak: No such file or directory Makefile:97: /libavutil/Makefile: No such file or directory Makefile:97: /ffbuild/library.mak: No such file or directory Makefile:99: /fftools/Makefile: No such file or directory Makefile:100: /doc/Makefile: No such file or directory Makefile:101: /doc/examples/Makefile: No such file or directory Makefile:167: /tests/Makefile: No such file or directory make: *** No rule to make target '/tests/Makefile'. Stop.
最新发布
09-03
### Makefile 提示找不到文件的解决办法 - **检查文件路径**:确认 `Makefile` 中引用的文件路径是否正确。在脚本中,可能由于路径设置错误导致无法找到文件。例如,在 FFmpeg 编译过程中,某些库文件或头文件的路径可能配置有误。可以通过打印 `Makefile` 中的变量或使用 `echo` 语句来检查路径是否正确。 ```bash # 在 Makefile 中添加调试信息 $(info Path to library: $(LIBRARY_PATH)) ``` - **检查文件是否存在**:确保 `Makefile` 中引用的文件确实存在于指定的路径下。可以使用 `ls` 命令来检查文件是否存在。 ```bash ls /path/to/file ``` - **环境变量问题**:检查环境变量是否正确设置。有些文件的查找依赖于环境变量,如 `PATH`、`LD_LIBRARY_PATH` 等。确保这些环境变量包含了所需文件的路径。 ```bash echo $PATH echo $LD_LIBRARY_PATH ``` ### C 编译器测试失败的解决办法 - **检查 Emscripten 工具链**:由于使用了 `emconfigure` 进行配置,需要确保 Emscripten 工具链正确安装和配置。可以通过运行 `emcc -v` 来检查 Emscripten 编译器是否可用。 ```bash emcc -v ``` - **检查编译器选项**:在 `./configure` 脚本中,可能存在一些编译器选项导致测试失败。例如,某些选项可能与 Emscripten 不兼容。可以尝试简化配置选项,逐步排除问题。 ```bash emconfigure ./configure --cc="emcc" --cxx="em++" --ar="emar" --ranlib=emranlib --prefix=../ffmpeg-emcc/ --enable-cross-compile --target-os=none --arch=x86_32 --cpu=generic --enable-gpl --disable-asm --disable-programs ``` - **检查依赖库**:C 编译器测试可能依赖于一些系统库或第三方库。确保这些库已经正确安装,并且在编译时可以被找到。可以通过查看错误信息来确定缺少哪些库。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值