我试图在Ubuntu14.04上安装qttorch包,但在安装过程中会遇到以下错误:
CMake Warning at /usr/share/cmake-3.2/Modules/FindQt4.cmake:626 (message):
/usr/bin/qmake reported QT_INSTALL_LIBS as "/usr/lib/x86_64-linux-gnu" but
QtCore could not be found there. Qt is NOT installed correctly for the
target build environm
来自以下示例:
CMakeList.txt文件:
include_directories(inc)
# Grab all the cpp and h files to be compile.
file(GLOB SOURCES
inc/*.h
inc/*.hpp
src/*.cpp
)
add_library(MyStaticLib STATIC ${SOURCES} )
target_link_libraries(MyStaticLib PUBLIC "${OPENCV_LIBS}/opencv_world410.lib" )
targ
首先,请原谅我在这个主题上的无知--我对作为一个整体进行编译并不熟悉,而且我正在尝试理解静态和共享构建/库的概念。
我已经修改了指南,使用MinGW-W64工具链从源代码交叉编译x265项目,以便在Windows上运行。我试图使它成为静态构建,但当我这样做时:
cd /ffmpeg_sources && if /cd x265 2> /dev/null; then hg pull && hg update && cd ..; else hg clone https://bitbucket.org/multicoreware/x265; fi
我试图获得另一个项目的静态库的位置。我试过了
get_property(target_name目标测试属性定位)但是CMAKE给出了以下错误
CMake Error at project.cmake:6 (get_property):
The LOCATION property may not be read from target "A".
Use the target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropri