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
Related
I tried compiling shogun from source in windows but after writing
cmake [options] ..
command i get this error:
-- Selecting Windows SDK version 10.0.17134.0 to target Windows 10.0.15063.
-- Could NOT find GDB (missing: GDB_COMMAND GDB_VERSION)
CMake Error at src/shogun/CMakeLists.txt:57 (MESSAGE):
Shogun can only be built with GPL codes if the source files are in
C:/Users/user/Desktop/shogun/src/gpl. Please download or disable with
LICENSE_GPL_SHOGUN=OFF.
I tried installing GDB from MinGW but it didn't worked
how to proceed further ?
That's one of the first results when googling for the error so I'll post an answer here and link to relevant websites.
Shogun uses submodules to separate the main BSD (Berkeley Software Distribution) licensed library from the GPL (GNU General Public Licence) licensed files (for the difference between those see an example article here). After cloning the repository you'll need to invoke git submodule update --init comand as specified in the documentation which will pull shogun-gpl repository (among others) into shogun-gpl directory. See also this GitHub issue.
I'm trying to compile OpenCV 3.2 with contributions with the following commands:
1.
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=/usr/local/ -DOPENCV_EXTRA_MODULES_PATH=/home/matteo/Desktop/Xilinx/OpenCV/source/opencv_contrib/modules/ /home/matteo/Desktop/Xilinx/OpenCV/source/opencv-3.2.0/
2.
make -j7 # runs 7 jobs in parallel
3.
sudo make install
Can you explain why I get
...
........
...........
........................
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
-- Caffe: NO
-- Protobuf: NO
-- Glog: NO
-- Downloading ...
CMake Error at cmake/OpenCVUtils.cmake:1043 (file):
file DOWNLOAD cannot open file for write.
Call Stack (most recent call first):
../opencv_contrib/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake:32 (ocv_download)
../opencv_contrib/modules/dnn/CMakeLists.txt:5 (include)
CMake Error at cmake/OpenCVUtils.cmake:1047 (message):
Failed to download . Status=
Call Stack (most recent call first):
../opencv_contrib/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake:32 (ocv_download)
../opencv_contrib/modules/dnn/CMakeLists.txt:5 (include)
-- Configuring incomplete, errors occurred!
I'm working with Ubuntu 16.04 . I already had OpenCV on the system: maybe I unistall it in the wrong way? I remember to compile OpenCV 3.2 with the same command used above.
You must have matching versions of the opencv_contrib and the opencv itself.
Under the opencv github, go to the OpenCV releases and download the 3.2.0 (it should be the same in the master branch).
Now, go to https://github.com/opencv/opencv_contrib/releases and download the 3.2.0. Then you will have both versions matching.
After that all the cmake commands found on the README.md at opencv_contrib master branch should work fine.
I get the same error, that exact error, around the protobuf. There's another error on the xfeatures2d module, too, if your delete the dnn modules (so they don't get configured/built). My problem is, I need the "non-free" xfeatures2d module. :(
The problem appears to be in the opencv_contrib, in the DNN and xfeatures2d modules, but I'm not sure how to fix it. the call to ocv_download seems to be having empty inputs, even though the dnn and xfeatures2d cmake files are passing in arguments. I am not even a novice with cmake, so I'm not sure how to troubleshoot further.
I get this error on both Mac configuring for XCode and on Windows configuring for Visual Studio, using the latest version of cmake-gui, 3.8.0-rc3.
EDIT: I think I've found the issue, though. I opened an issue in the opencv_contrib github. There is a call to ocv_download in the dnn and xfeatures2d cmake files that uses FILENAME as the first parameter, but should be using PACKAGE instead. When I changed the parameters to PACKAGE, CMake successfully configured opencv with the opencv_contrib modules.
Hope this helps! :)
You might not use the same version of opencv and opencv_contrib
https://github.com/opencv/opencv_contrib/archive/<version>.zip
https://github.com/opencv/opencv/archive/<version>.zip
like master or 3.2.0
SHORT
You need to have the same version in opencv and opencv_contrib (.../opencv_contrib/modules/... belongs to an independent repo).
Either the same release or the last commit in BOTH repositories.
Check which version you have and move the other. In your case, I guess you have to change the version of opencv_contrib, then move to the release with git or download it from github.
git checkout <number_opencv_version i.e. 3.2.0>
LONG
I guess as Ken Lee, that you do not have the same version in the repositories.
As Matt referenced in the opened issue, there is a problem with the call of ocv_download because the version is not the one that was used when opencv-3.1, therefore it fails because the parameter is not the expected one.
It happens to me when I was using opencv 3.1.0 and the last version of opencv_contrib. You could change the cmake files one by one, but it is easier to take the correct version in each repo.
There is a right conflict in your build folder (may result from your previous sudo make install). I don't remember how I fixed it, but you can try recursively chown to both source and build folders (or chmod to 777).
I've been trying to install SFGUI library with Cmake tool with instructions given here: SFGUI Install Tutorial . Still got many problems in major with Cmake, which couldn't find few files from SFGUI directory, for example
CMake Error: The source "D:/SFGUI-master/CMakeLists.txt" does not match the source "D:/SFGUI-0.3.0/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory.
Restarting didn't help. Could anyone write how to install this in simple steps? Regards.
cmake is telling you that the files it has generated in it's cache from a previous run don't match the source files you are currently using. I would imagine that you ran cmake, then switched git branches or tags and tried to run cmake again. You can just rm -r CMakeFiles in your build directory to remove the cache. Then you should be able to run cmake again without errors.
Thanks! It moved a little bit, but stopped actually at error:
CMake Error at cmake/Modules/FindSFML.cmake:306 (message):
Could NOT find SFML (missing: SFML_GRAPHICS_LIBRARY SFML_WINDOW_LIBRARY
SFML_SYSTEM_LIBRARY)
Call Stack (most recent call first):
CMakeLists.txt:21 (find_package)
Configuring incomplete, errors occurred!
See also "C:/Users/admin/Documents/Visual Studio 2015/Projects/sfml1/sfml1/CMakeFiles/CMakeOutput.log".
To be honest, I will write down steps I did: 1.Configured SFML in VS15 in Windows 8.1 2. I installed the newswet version of CMake 3. Installed also newest SFGUI from Github. 4.In Cmake GUI as a build I choose my project in VS and as a source - SFGUI directory. 5.In CMake Configure and there are the errors. Did I missed something?
I'm trying to build OpenEXR 2.2 on Windows, but the instructions that came with the download aren't working as expected. The instructions for IlmBase worked, but once I get to the OpenEXR instructions, it fails because of zlib. The steps at this point are:
3. Go to http://www.zlib.net and download zlib
So I went to this website and in the section that starts with: The current release is publicly available here: I downloaded zlib source code, version 1.2.8, zipfile format...
Then, I moved on to the next step, which is where I get the error:
4. Launch a command window, navigate to the OpenEXR folder with
CMakeLists.txt, and type command:
setlocal
del /f CMakeCache.txt
cmake
-DZLIB_ROOT=<zlib location>
-DILMBASE_PACKAGE_PREFIX=<where you installed the ilmbase builds>
-DCMAKE_INSTALL_PREFIX=<where you want to instal the openexr builds>
-G "Visual Studio 10 Win64" ^
..\openexr
So here's the command I type:
cmake -DZLIB_ROOT=C:\Users\erik\Documents\zlib-1.2.8 -DILMBASE_PACKAGE_PREFIX=C:\Users\erik\Documents\ilmbase-2.2.0\bin -DCMAKE_INSTALL_PREFIX=C:\Users\erik\Documents\ilmbase-2.2.0\bin -G "Visual Studio 10 Win64" ^..\openexr-2.2.0
And here's the error I get:
Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found version "1.2.8")
First problem is, the instructions don't say anything about ZLIB_LIBRARY. Second is, the zlib download looks like it's all source code. No .lib or .dll files are involved.
You have downloaded only the source code. You need to compile it first. Or download the pre-compiled DLL: "zlib compiled DLL" from the zlib homepage.
ZLIB_LIBRARY will be derived from ZLIB_DIR, so this part is correct.
I'm trying to compile code with cmake. The code was imported from Windows onto a Raspberry Pi with Debian OS. The code works fine when compiling on Windows. Here is the error when I try to compile:
CMake Error at CMakeLists.txt:6 (FIND_PACKAGE):
By not providing "Findlibcurl.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "libcurl", but
CMake did not find one.
Could not find a package configuration file provided by "libcurl" with any
of the following names:
libcurlConfig.cmake
libcurl-config.cmake
Add the installation prefix of "libcurl" to CMAKE_PREFIX_PATH or set
"libcurl_DIR" to a directory containing one of the above files. If
"libcurl" provides a separate development package or SDK, be sure it has
been installed.
Here is a list of the installed packages regarding libcurl:
ii libcurl3:armhf 7.26.0-1+whe armhf easy-to-use client-side URL trans
ii libcurl3-gnutl 7.26.0-1+whe armhf easy-to-use client-side URL trans
ii libcurl4-opens 7.26.0-1+whe armhf development files and documentati
Could this mean the packages are installed incorrectly or I have the wrong one?
I did not touched arduino yet, but if you can access arduino's debian - try to do something like:
sudo apt-get install libcurl-dev --reinstall
and then:
make clean
make
P.S. You may have libcurl but CMake requires dev-information of it too.