Hi I'm trying to build Assimp with Cmake but the following error message appears everytime I try to configure Assimp. The version of Cmake is 3.11.0 and assimp is 4.0.0.
Looking for DirectX...
DirectX_PREFIX_PATH changed.
Found DirectX: C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)/Lib/x86/d3d9.lib
DX lib dir: C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)/Lib/x86
Looking for ZLIB...
Found PkgConfig: C:/cygwin/bin/pkg-config.exe (found version "0.29.1")
Checking for module 'zzip-zlib-config'
No package 'zzip-zlib-config' found
Could not locate ZLIB
compiling zlib from sources
CMake Deprecation Warning at contrib/zlib/CMakeLists.txt:8 (cmake_policy):
The OLD behavior for policy CMP0048 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Looking for sys/types.h
Looking for sys/types.h - found
Looking for stdint.h
Looking for stdint.h - found
Looking for stddef.h
Looking for stddef.h - found
Check size of off64_t
Check size of off64_t - failed
Looking for fseeko
Looking for fseeko - not found
Looking for unistd.h
Looking for unistd.h - not found
Could NOT find rt (missing: RT_LIBRARY)
Enabled formats: AMF 3DS AC ASE ASSBIN ASSXML B3D BVH COLLADA DXF CSM HMP IRRMESH IRR LWO LWS MD2 MD3 MD5 MDC MDL NFF NDO OFF OBJ OGRE OPENGEX PLY MS3D COB BLEND IFC XGL FBX Q3D Q3BSP RAW SIB SMD STL TERRAGEN 3D X X3D GLTF 3MF MMD
Disabled formats:
Looking for DirectX...
DirectX_PREFIX_PATH changed.
DX lib dir: C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)/Lib/x86
Could NOT find IL (missing: IL_LIBRARIES IL_INCLUDE_DIR)
CMake Error at C:/cygwin/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:27 (message):
The imported target "Qt5::Gui" references the file
"C:/cygwin/include/qt5/"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"C:/cygwin/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake"
but not all the files it references.
Call Stack (most recent call first):
C:/cygwin/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:68 (_qt5_Gui_check_file_exists)
C:/cygwin/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package)
tools/assimp_qt_viewer/CMakeLists.txt:19 (FIND_PACKAGE)
Configuring incomplete, errors occurred!
See also "C:/Users/peter/Desktop/assimp-master/assimp-master/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/peter/Desktop/assimp-master/assimp-master/build/CMakeFiles/CMakeError.log".
For the configuration generator I used Visual Studio 15 2017 since I'm using that for my IDE. Is there anyway that this can be solved?
Please try the latest version of assimp ( 4.1.0 ). The cygwin-cmake file was broken. This shall work with the latest version.
As a workaround diable the tools-support for assimp ( the library will be build, but the qt5-based viewer not ):
cmake CMakelists.txt -DASSIMP_BUILD_ASSIMP_TOOLS=OFF
This will fix your cmake-error, because the tools will not be affected by cmake.
Related
I'm trying to use CMake to compile OpenCV v4.5.1 for my 1660 Super. I have installed CUDA Toolkit v12.0 and CUDNN v8.7.0.84 as per the instructions on NVIDIA's site. For the record, I'm following these instructions.
I'm using my own Anaconda Python3.10 interpreter and am encountering the following error when using the Configuration tool of CMake.
CMake Error at modules/dnn/CMakeLists.txt:39 (message):
DNN: CUDA backend requires cuDNN. Please resolve dependency or disable
OPENCV_DNN_CUDA=OFF
Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': C:/Users/testbench/ocv/opencv/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake
opencv_dnn: filter out cuda4dnn source code
rgbd: CERES support is disabled. Ceres Solver is Required for Posegraph optimization
CMake Warning at cmake/OpenCVGenSetupVars.cmake:54 (message):
CONFIGURATION IS NOT SUPPORTED: validate setupvars script in install
directory
Call Stack (most recent call first):
CMakeLists.txt:985 (include)
Please let me know if there is any more information that I can provide to assist in debugging.
After some troubleshooting, this seems to be the solution:
The official NVIDIA instructions asked me to copy the lib, bin and include folders of the CUDNN files into C:\Program Files\NVIDIA\CUDNN\v8.7\.
I have now copied the respective lib, bin and include folders to where CUDA was installed, at C:\Program Files\NVIDIA Computing Toolkit\CUDA\v12.0.
From this, I get the following line in the CMake GUI:
Found CUDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.0/lib/x64/cudnn.lib
I've cloned and am trying to compile & run a c++ project from here: https://git.ist.ac.at/gsperl/MADYPG
I've installed all the dependencies as listed with vcpkg, but I am getting an error regarding the jpeg, and png importer magnum plug-ins, despite having installed them directly with vcpkg. Has anyone run into something similar before?
logs:
['-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake']
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042.
-- Found OpenMP: TRUE (found version "2.0")
-- Found OpenMP: TRUE (found version "2.0")
-- Found Corrade: C:/dev/vcpkg/installed/x64-windows/include found components: Main
-- Found Corrade: C:/dev/vcpkg/installed/x64-windows/include found components: Containers rc Utility PluginManager
-- Found Magnum: C:/dev/vcpkg/installed/x64-windows/include found components: Trade GL MeshTools Primitives SceneGraph Shaders Sdl2Application DebugTools AnyImageImporter
-- Found Corrade: C:/dev/vcpkg/installed/x64-windows/include found components: Containers rc Utility
-- Found Magnum: C:/dev/vcpkg/installed/x64-windows/include found components: GL Shaders
-- Found Corrade: C:/dev/vcpkg/installed/x64-windows/include found components: Containers rc Utility PluginManager
-- Found Magnum: C:/dev/vcpkg/installed/x64-windows/include found components: Trade
CMake Error at C:/Users/user/Desktop/cmake-3.23.0-rc2-windows-x86_64/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find MagnumPlugins (missing: PngImporter JpegImporter)
Call Stack (most recent call first):
C:/Users/user/Desktop/cmake-3.23.0-rc2-windows-x86_64/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
C:/dev/vcpkg/installed/x64-windows/share/cmake/MagnumPlugins/FindMagnumPlugins.cmake:468 (find_package_handle_standard_args)
C:/dev/vcpkg/installed/x64-windows/share/cmake/MagnumPlugins/MagnumPluginsConfig.cmake:26 (include)
C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:782 (_find_package)
CMakeLists.txt:104 (find_package)
-- Configuring incomplete, errors occurred!
I've seen this similar thread as well cmake cannot find libraries installed with vcpkg, but all other packages seem to be found by cmake without issue, so the solution required here is probably more specific. Any help very appreciated!
here's the cmakeLists.txt I'm using: https://git.ist.ac.at/gsperl/MADYPG/-/blob/master/src/CMakeLists.txt
I'm learning OpenGL with the tutorial of https://learnopengl.com/. And I need to build Assimp in cmake-gui. I'm new to Cmake and never used it before. I met some confusing Errors, it seems like I miss some essential libs or cmake can't find root of libs.
My environment is MinGW v8.1.0, cmake v3.19.2, Assimp v4.1.0, Windows10
I get this message:
Shared libraries enabled
Looking for DirectX...
DirectX_PREFIX_PATH changed.
Found DirectX: F:/dxsdk/Lib/x86/d3d9.lib
DX lib dir: F:/dxsdk/Lib/x86
Looking for ZLIB...
Checking for module 'zzip-zlib-config'
No package 'zzip-zlib-config' found
Could not locate ZLIB
compiling zlib from souces
CMake Deprecation Warning at contrib/zlib/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at contrib/zlib/CMakeLists.txt:8 (cmake_policy):
The OLD behavior for policy CMP0048 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Checking for module 'minizip'
No package 'minizip' found
CMake Deprecation Warning at code/CMakeLists.txt:46 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Warning (dev) at F:/cmake/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:426 (message):
The package name passed to `find_package_handle_standard_args` (rt) does
not match the name of the calling package (RT). This can lead to problems
in calling code that expects `find_package` result variables (e.g.,
`_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
cmake-modules/FindRT.cmake:19 (find_package_handle_standard_args)
code/CMakeLists.txt:807 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.
Could NOT find rt (missing: RT_LIBRARY)
INFO RT-extension not found. glTF import/export will be built without Open3DGC-compression.
Enabled formats: AMF 3DS AC ASE ASSBIN ASSXML B3D BVH COLLADA DXF CSM HMP IRRMESH IRR LWO LWS MD2 MD3 MD5 MDC MDL NFF NDO OFF OBJ OGRE OPENGEX PLY MS3D COB BLEND IFC XGL FBX Q3D Q3BSP RAW SIB SMD STL TERRAGEN 3D X X3D GLTF 3MF MMD
Disabled formats:
CMake Deprecation Warning at tools/assimp_view/CMakeLists.txt:39 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
Looking for DirectX...
DirectX_PREFIX_PATH changed.
DX lib dir: F:/dxsdk/Lib/x86
CMake Deprecation Warning at tools/assimp_cmd/CMakeLists.txt:39 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Warning (dev) at F:/cmake/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:426 (message):
The package name passed to `find_package_handle_standard_args` (IL) does
not match the name of the calling package (DevIL). This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
cmake-modules/FindDevIL.cmake:71 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:421 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.
Could NOT find IL (missing: IL_LIBRARIES IL_INCLUDE_DIR)
CMake Warning at CMakeLists.txt:439 (MESSAGE):
Build of assimp_qt_viewer is disabled. Unsatisfied dendencies: Qt5 DevIL
CMake Deprecation Warning at test/CMakeLists.txt:39 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
Configuring done
I installed ZLIB and pointed ZLIB_INCLUDE_DIR but it seems like more libs about ZLIB are required. Do I need to install the libs one by one?
All the issues shown in your posts are CMake-warnings which shall indicate, that:
Your CMake minimal version requested by the libraries are outdated.
Some libraries can't be located on your devbox, so the internal version from assimp will be used.
So from my point of view your build shall run. To get rid of those warnings you can just update to the latest master of assimp or just use version 5.0.1 from here
I was trying to build flann from source in Windows-10 using cmake. During the installation process it says it cannot find liblz4.
I tried two method :
1) So I downloaded the prebuild lz4 from here (https://github.com/lz4/lz4/releases) and placed the C:\XXXX\Downloads\lz4_v1_9_1_win64\dll to my env path.
2) I used vcpkg to install lz4 first. Then did
C:\source\flann\build> cmake .. -DCMAKE_TOOLCHAIN_FILE=C:\XXXXXX\source\vcpkg\scripts\buildsystems\vcpkg.cmake -G "Visual Studio 15 2017 Win64".
None of the above two method worked. I still get cannot find liblz4 error.
-- Found PkgConfig: C:/XXXXXX/Downloads/cmake-3.13.3-win64-x64/bin/pkg-config.exe (found version "0.26") -- Checking for module 'liblz4' -- No package 'liblz4' found CMake Error at C:/Program Files/CMake/share/cmake-3.13/Modules/FindPkgConfig.cmake:452 (message): A required package was not found Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.13/Modules/FindPkgConfig.cmake:622 (_pkg_check_modules_internal) CMakeLists.txt:150 (pkg_check_modules) -- Configuring incomplete, errors occurred! See also "C:/XXXXXXX/source/flann/build/CMakeFiles/CMakeOutput.log".
Did you try to do as follows?(https://github.com/lz4/lz4)
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
vcpkg install lz4
Im Trying To Compile Blender 2.7
I was Trying to Generate The Visual Studio 12 ( 2013 ) Project Files
using CMake But The Problem is That I Get An Error
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
CMake Warning at CMakeLists.txt:1089 (message):
Using HARDCODED libpng locations
Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
Found Freetype: C:/Users/Alfrek/Desktop/Blender 2.7/blender-2.71/../lib/win64_vc12/freetype/lib/freetype2ST.lib
Could NOT find OpenEXR (missing: _openexr_LIBRARIES OPENEXR_INCLUDE_DIR)
CMake Warning at CMakeLists.txt:1172 (message):
Using HARDCODED OpenEXR locations
Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
CMake Warning at CMakeLists.txt:1191 (message):
Using HARDCODED libtiff locations
Could NOT find Boost
CMake Warning at CMakeLists.txt:1230 (message):
USING HARDCODED boost locations
Could NOT find OpenImageIO (missing: OPENIMAGEIO_LIBRARY OPENIMAGEIO_INCLUDE_DIR)
CMake Error at CMakeLists.txt:1928 (message):
Apple and Windows require pre-compiled libs at:
'C:/Users/Alfrek/Desktop/Blender 2.7/blender-2.71/../lib/win64_vc12'
I got No idea what am I suppose to do
I Have a Windows 7 64 Bit Computer
and Im Using Visual Studio Professional 2013
You downloaded the source files but forgot its dependencies. For each platform blender provides its dependencies in its SVN repo.
This is what you need to do:
Outside of the blender directory create the folder structure "lib/win64_vc12"
cd inside that directory, open your command prompt (assuming you have SVN installed) and type
svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/win64_vc12
bear in mind its a huge repo of about 6.5Gb.
When that is done run configure again in cmake and it should work.
It sounds like you are missing a step before trying to run make full...
You will need to run the install_deps.sh script or print the list of all main dependencies needed to build Blender (--show-deps option) and install them manually.
Please see the official blender wiki for updated development environment requirements --> https://wiki.blender.org/wiki/Building_Blender/Linux/Ubuntu
Automatic dependencies installation The preferred way to install dependencies under Linux is now to use the install_deps.sh script
featured with Blender sources. It currently supports Debian (and
derived), Fedora, Suse and Arch distributions. When using the
install_deps.sh script, you are only required to install the following
dependencies:
git, build-essential
Then, get the sources and run install_deps.sh
cd ~/blender-git
./blender/build_files/build_environment/install_deps.sh