编译mjpg-streamer input_uvc 错误 linker input file unused because linking not done
2015-03-24 16:22
656 查看
编译mjpg-streamer input_uvc 错误 linker input file unused because linking not done
linker input file unused because linking not done
Makefile中是
input_uvc.so: $(OTHER_HEADERS) input_uvc.c v4l2uvc.lo jpeg_utils.lo dynctrl.lo
$(CC) -c
$(CFLAGS) -ljpeg -L/opt/mipslibs/lib -o $@ input_uvc.c v4l2uvc.lo jpeg_utils.lo dynctrl.lo
到网上查了一下,问题出在链接ljpeg的语句不应出现在编译语句里面。 上面的语句里面有 -c 即编译 compile,所以命令会忽略掉所有的 -l 链接库的命令。
而要链接ljpeg,应该在生成可执行文件时才使用。
正确的使用链接的语句应该是(去掉-c) $(CC)$(CFLAGS)
-ljpeg -L/opt/mipslibs/lib -o $@ input_uvc.c v4l2uvc.lo jpeg_utils.lo dynctrl.lo
linker input file unused because linking not done
Makefile中是
input_uvc.so: $(OTHER_HEADERS) input_uvc.c v4l2uvc.lo jpeg_utils.lo dynctrl.lo
$(CC) -c
$(CFLAGS) -ljpeg -L/opt/mipslibs/lib -o $@ input_uvc.c v4l2uvc.lo jpeg_utils.lo dynctrl.lo
到网上查了一下,问题出在链接ljpeg的语句不应出现在编译语句里面。 上面的语句里面有 -c 即编译 compile,所以命令会忽略掉所有的 -l 链接库的命令。
而要链接ljpeg,应该在生成可执行文件时才使用。
正确的使用链接的语句应该是(去掉-c) $(CC)$(CFLAGS)
-ljpeg -L/opt/mipslibs/lib -o $@ input_uvc.c v4l2uvc.lo jpeg_utils.lo dynctrl.lo
相关文章推荐
- [Linux-C++] linker input file unused because linking not done 提示 编译与链接的知识
- 静态库调用静态库&静态库加载静态库------谈谈undefined reference to和linker input file unused because linking not done
- g++: -l[some]: linker input file unused because linking not done
- 问题linker input file unused because linking not done
- g++: -l[some]: linker input file unused because linking not done
- linker input file unused because linking not done
- 关于makefile报错:linker input file unused because linking not done
- 编译hal 出现RPM build errors: File not found: 的错误
- GCC 源码编译 mpc mprf gmp 不用make(否则会有lib/libgmp.so: could not read symbols: File in wrong format等错误)
- Xamarin 编译错误: The file "obj-Release-android-bin-package_resources" does not exist
- 关于调用listFile()在遍历含有乱码文件时出现input is not valid Modified UTF-8错误的解决方法
- 解决Android studio编译时遇到AAPT err(Facade for): libpng error: Not a PNG file 错误
- MDK编译提示错误cannot open source input file "stdint.h"
- MinGW 编译出现g++: fatal error: -fuse-linker-plugin, but liblto_plugin-0.dll not found错误的解决方法
- linker error: unable to open input file 'coh.obj'错误的排除
- 编译时出现fatal error C1853: "debug/xxx.pch" is not a precomplied header file with......错误的原因及解决办法(转)
- Ubuntu 16.04使用NASM编译时用ld链接程序出现:i386 架构于输入文件 sandbox.o 与 i386:x86-64 输出不兼容(I386 architecture in the input file sandbox.o is not compatible with i386: x86-64 output)
- php编译错误Note that the MySQL client library is not bundled anymore或者cannot find mysql header file
- 解决vsftpd编译时的错误:could not read symbols: File in wrong format
- lib_clapack.a(dlasyf.o): could not read symbols: File in wrong format---- 交叉编译opencv2.0遇到的错误解决