Does not appear to contain cmakelists txt windows

Brief Issue Summary On Windows, when configuring cmake through CMake Tools, the "You do not have a CMakeLists.txt" message appears even though the file does exist. Expected: The project c...

OMG, per-directory case-sensitivity… Thank you so much for root-causing and sharing this, I would have never suspected something that insane.

Similar to the example above, I experienced this error in many random places:

CMake Error at fooCMakeLists.txt:123 (ADD_SUBDIRECTORY):
  The source directory

    C:UsersjoeProjectfoobar

  does not contain a CMakeLists.txt file.

This was happening in many random directories because I initially checked out Project in Windows and updated it later from Windows Subsystem for Linux. I promise I won’t do that again.

WSL is generally awesome but the default way it uses this bug^H feature by default is really bad.

I found a recursive «repair» script in PowerShell there: https://stackoverflow.com/questions/51591091/apply-setcasesensitiveinfo-recursively-to-all-folders-and-subfolders

If you’re reading this there’s a good chance you’ve just been hit by this default WSL behaviour too hence you may prefer to start from a (tested!) repair script in shell:

time find -type d -exec /mnt/c/Windows/System32/fsutil.exe file queryCaseSensitiveInfo {} ; | awk '/is enabled/ { print $6 } ' | while read -r; do /mnt/c/Windows/System32/fsutil.exe file setCaseSensitiveInfo "$REPLY" disable; done

As opposed to the PowerShell repair script above this shell version changes only the directories that need changing. This may or may not be faster, in any case it took only a few minutes on ~15000 directories which was fast enough for me.

An easier way to build OpenCV from source in a step by step fashion as given in this reference: Installing OpenCV from the Source
is to,

step 1: install dependencies,

 sudo apt install build-essential cmake git pkg-config libgtk- 
   3-dev libavcodec-dev libavformat-dev libswscale-dev 
   libv4l-dev libxvidcore-dev libx264-dev libjpeg-dev 
   libpng-dev libtiff-dev gfortran openexr libatlas-base- 
   dev python3-dev python3-numpy libtbb2 libtbb-dev 
   libdc1394-22-dev

Step 2: create a directory opencv_build and Clone the necessary repositories as shown below,

mkdir ~/opencv_build && cd ~/opencv_build
git clone https://github.com/opencv/opencv.git
git clone https://github.com/opencv/opencv_contrib.git

step 3: cd into opencv directory, inside create another directory called build and cd into it,

cd ~/opencv_build/opencv
mkdir build && cd build

step 4: evoke Cmake to build OpenCV,

cmake -D CMAKE_BUILD_TYPE=RELEASE 
-D CMAKE_INSTALL_PREFIX=/usr/local 
-D INSTALL_C_EXAMPLES=ON 
-D INSTALL_PYTHON_EXAMPLES=ON 
-D OPENCV_GENERATE_PKGCONFIG=ON  
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_build/opencv_contrib/modules 
-D BUILD_EXAMPLES=ON ..

If step 4 completes successfully you should see the following line at the end of the terminal, the build has been written to the directory created in step 3, along with the following lines above this line,

configuration done
generating done

step 5: To start the compilation process where -j
is a flag for the number of the processor inside your machine, for example -j6 means we have 6 processors available. to verify the number of processors type nproc on the terminal then use this number after -j. To start this process, we use the following command:

make -j6 

step 6: install OpenCV, We use,

sudo make install

then check the version Of OpenCV to verify the installation:

pkg-config --modversion opencv4

Содержание

  1. CMake Error: The source directory «/home/username» does not appear to contain CMakeLists.txt. #568
  2. Comments
  3. apt-get install libqt4-dev cmake intltool
  4. cmake error ‘the source does not appear to contain CMakeLists.txt’
  5. 5 Answers 5
  6. CMake says source dir does not appear to contain CMakeLists.txt #752
  7. Comments
  8. Operating System
  9. OBS Studio Version?
  10. StreamFX Version
  11. OBS Studio Log
  12. OBS Studio Crash Log
  13. Current Behavior
  14. Expected Behavior
  15. Steps to Reproduce the Bug
  16. Any additional Information we need to know?
  17. Cmake third_party: not contain CMakeLists.txt #219
  18. Comments
  19. Wrong CMakeCache.txt directory #12
  20. Comments

CMake Error: The source directory «/home/username» does not appear to contain CMakeLists.txt. #568

/Hotot-master$ cmake -DWITH_QT=off ..

CMake Error: The source directory «/home/felixdz» does not appear to contain CMakeLists.txt.

How can I fix this?

The text was updated successfully, but these errors were encountered:

have you created a build directory?? you should execute the cmake .. from the build directory.
from the tutorial:
«Create a new directory for creating build mkdir build cd build Once you are inside the build directory. Pass the command»

you can also follow the «building from source» instruction here (scroll down)
https://github.com/lyricat/Hotot

@mwgkdm I have same issue.
Is there any way to make build directory independent cmake 😕

not sure what you mean.
You want a different directory or to not use cmake?
Either way, that would require changing the code which is beyond my knowledge.

«Since Hotot core is largely based on HTML5, JavaScript and Webkit technology, It can be run under many Webkit implementations. Hotot officially supports Gtk, Qt, and Chrome webkit wrapper.

so cmake is a must,

the path for building is set to be build, so just create that directory and then execute «cmake ..» from it.

«On Ubuntu 11.10 all of these resources are available in the standard repositories.

While I still use hotot, I will probably forsake it soon as the 260 characters has really broke it, and messing with the code, though it doesn’t look very complicated is too time consuming for me to learn.

@mwgkdm i got it
the file named *Cache* was responsible 😆

@tbhaxor please tell me what to do with CMake.cache file . should I delete it, or place it in any other folder .

hell i am trying to run an open source project and i created the build dir inside my root folder withe the project files and then cd inot build but when i run cmake ..
i get noCmakelists.txt file

like where do i get this file or how do i crete this file
like its NOT in my project folder i only have makefile

sorry this is too complex for no reason
but anyway thxz for any solution
Lisa

Источник

cmake error ‘the source does not appear to contain CMakeLists.txt’

I’m installing opencv in ubuntu 16.04. After installing the necessary prerequisites I used the following command:-

but it produced an error:-

I used the command provided in the folder ‘module’ documentation. How do I solve it? I tried the answers here at stack-overflow and a few other question but still can’t figure it out.

Project Git repository here.

5 Answers 5

You should do mkdir build and cd build while inside opencv folder, not the opencv-contrib folder. The CMakeLists.txt is there.

Since you add .. after cmake, it will jump up and up (just like cd .. ) in the directory. But if you want to run cmake under the same folder with CMakeLists.txt, please use . instead of .. .

This reply may be late but it may help users having similar problem. The opencv-contrib (available at https://github.com/opencv/opencv_contrib/releases) contains extra modules but the build procedure has to be done from core opencv (available at from https://github.com/opencv/opencv/releases) modules.

Follow below steps (assuming you are building it using CMake GUI)

Download openCV (from https://github.com/opencv/opencv/releases) and unzip it somewhere on your computer. Create build folder inside it

Download exra modules from OpenCV. (from https://github.com/opencv/opencv_contrib/releases). Ensure you download the same version.

Unzip the folder.

Click Browse Source and navigate to your openCV folder.

Click Browse Build and navigate to your build Folder.

Click the configure button. You will be asked how you would like to generate the files. Choose Unix-Makefile from the drop down menu and Click OK. CMake will perform some tests and return a set of red boxes appear in the CMake Window.

Search for «OPENCV_EXTRA_MODULES_PATH» and provide the path to modules folder (e.g. /Users/purushottam_d/Programs/OpenCV3_4_5_contrib/modules)

Click Configure again, then Click Generate.

Go to build folder

  1. This will install the opencv libraries on your computer.

An easier way to build OpenCV from source in a step by step fashion as given in this reference: Installing OpenCV from the Source is to,

step 1: install dependencies,

Step 2: create a directory opencv_build and Clone the necessary repositories as shown below,

step 3: cd into opencv directory, inside create another directory called build and cd into it,

step 4: evoke Cmake to build OpenCV,

If step 4 completes successfully you should see the following line at the end of the terminal, the build has been written to the directory created in step 3, along with the following lines above this line,

configuration done generating done

step 5: To start the compilation process where -j is a flag for the number of the processor inside your machine, for example -j6 means we have 6 processors available. to verify the number of processors type nproc on the terminal then use this number after -j. To start this process, we use the following command:

step 6: install OpenCV, We use,

then check the version Of OpenCV to verify the installation:

Источник

CMake says source dir does not appear to contain CMakeLists.txt #752

Operating System

Linux (like Arch Linux)

OBS Studio Version?

StreamFX Version

OBS Studio Log

cmake -H=source/ -B=build/

OBS Studio Crash Log

I’m trying to get OBS up on my new Manjaro install. It is working, installed from pamac, and does open. But I’d really like to have both the virtual camera, and the built-in RTSP server which seem to be missing compared to the install I had up on Kubuntu and Zorin prior. I’m normally a debian/Ubuntu user, but only recently switched to Manjaro. Noting that I can’t open .deb files (Manjaro can’t open .deb right?), I figured maybe I could compile it from source.

Current Behavior

But I get stuck with this error about missing file CMakeLists.txt which does not seem to be in the git repo:

Expected Behavior

I expected it would compile a binary that I can use in obs-studio to enable virtual camera.

Steps to Reproduce the Bug

  • install manjaro
  • install obs-studio using pamac
  • clone the streamfx repo recursively

Any additional Information we need to know?

Linux putin 5.15.7-1-MANJARO #1 SMP PREEMPT Wed Dec 8 10:09:19 UTC 2021 x86_64 GNU/Linux
cmake version 3.22.1
OBS Studio — 27.1.3-1 (linux)
ffmpeg version n4.4.1 Copyright (c) 2000-2021 the FFmpeg developers

commit 2d7fce5 (HEAD -> master, tag: 0.11.0c1, origin/master, origin/HEAD)
Date: Sun Dec 12 17:04:36 2021 +0100
project: Version 0.11.0c1

The text was updated successfully, but these errors were encountered:

Источник

Cmake third_party: not contain CMakeLists.txt #219

I follow the commands cmake third-party library:
cd $PYMESH_PATH/third_party
mkdir build
cd build
cmake ..
make
make install

and the result prompts:
CMake Error: The source directory «$PYMESH_PATH/third_party» does not appear to contain CMakeLists.txt.

I have confirmed that there is no CMakeLists.txt file in the third-party library. Did I make a mistake?

The text was updated successfully, but these errors were encountered:

I also am getting the same issue. I note that there is a build.py file, but this comes with a few problems that makes it using it unwieldy. Specifically, there is no ‘all’ option, and when I attempt to use the script going through dependencies 1-by-1 I get a failure on the first one (cgal) with the same issue (no CMakeLists).

I’ve tried going back to a previous commit (bb0bac9 which was made on the 13/10, which is well before the «Overhaul third party build process.» commit which I suspect is causing the issue). However, this does not work — I get a «error: Server does not allow request for unadvertised object. «.

Yes, sorry about the confusion. Please try using the setup.py build script for building both the third party and the main PyMesh code.

It is still possible to just build third party libraries by themselves, I have provided a build python script:

Thank you very much, Qingnan. I got it.

I have added an all option, and the doc has been updated. To build third party, you can simply

Thanks a lot. I am most grateful.

Hi, but I don’t think this issue should be closed because this has not resolved the issue — the command:

Returns the error: CMake Error: The source directory «

/third_party/build/cgal» does not appear to contain CMakeLists.txt.

Can you let me know your cmake version?

The build script assumes -B options is supported, which requires cmake 3.13.5 and above. Maybe that is why?

Ah yes, you are correct, but this is because the system cmake is used (Ubuntu 18.04 does not have cmake of the required version in the repositories). Could an option be added to specify the cmake bin? This would be very useful because it would enable everyone using Ubuntu 18.04 and older to use your package without having to go through a custom install process for cmake (which would involve overriding the system cmake).

@charlie0389 I have updated the build script. It should work for older cmake now. Please let me know if it is still an issue.

Hello, Qingnan!
When ./build.py draco, an error occurs: error: expected ‘;’ at end of member declaration.
How do I do it?

I seem to be encountering this same error with current pymesh — I have cmake 3.13.4 and I get:

It is running cmake as

@charlie0389 I have updated the build script. It should work for older cmake now. Please let me know if it is still an issue.

It still exists the same issue when the cmake version is 3.10.2.

Hi @qnzhou
After build using your instruction above, I try pymesh function and am getting error:
pymesh’ has no attribute ‘distance_to_mesh’
It states elsewhere ( #37) that it is caused by failure of CGAL to build. But I think it has built. I ran it again and attach herewith a log file, and screen grab.
Note: My problem is similar to the comment in the other thread ( #37) except my CGAL_DIR environmental value is empty.
Can you please help me to understand why I cannot use distance_to_mesh ?
cgal.log

Источник

Wrong CMakeCache.txt directory #12

After it runs the sudo ./LCD5-show command, it throws an error:
CMake Error: The current CMakeCache.txt directory /home/pi/downloads/LCD-show/rpi-fbcp/build/CMakeCache.txt is different than the directory /home/pi/LCD-show/rpi-fbcp/build where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt CMake Error: The source «/home/pi/downloads/LCD-show/rpi-fbcp/CMakeLists.txt» does not match the source «/home/pi/LCD-show/rpi-fbcp/CMakeLists.txt» used to generate cache. Re-run cmake with a different source directory. CMake Error: The source directory «/home/pi/LCD-show/rpi-fbcp» does not exist. Specify —help for usage, or press the help button on the CMake GUI. Makefile:176: recipe for target ‘cmake_check_build_system’ failed make: *** [cmake_check_build_system] Error 1 LCD configrue 0

The text was updated successfully, but these errors were encountered:

nothing on this one? I’m getting this one too.

You have the LCD-show folder in downloads folder /home/pi/downloads/LCD-show/ must be on /home/pi/LCD-show/ solved moving the directory to home path

who the hell is using raspbian default user pi for doing anything else than booting the os creating an individual admin account?

For me it is best security practice to not use pi as user.

I ran into this issue after running a c++ program on a new computer than the one I had originally ran it on.

The program used a CMakeLists.txt to do the build initially and then created a CMakeCache.txt file.

When I deleted the CMakeCache.txt and ran cmake again it worked as expected. 👍

I ran into this issue after running a c++ program on a new computer than the one I had originally ran it on.

The program used a CMakeLists.txt to do the build initially and then created a CMakeCache.txt file.

When I deleted the CMakeCache.txt and ran cmake again it worked as expected. 👍

Thank you. THIS WORKED. I have been stuck at this spot for 3 days now.

Источник

49 / 34 / 9

Регистрация: 27.12.2017

Сообщений: 1,450

1

21.10.2020, 20:45. Показов 10139. Ответов 4


Что я делаю не так?
Находясь в папке project создал папку src в которой находится main.cpp ,создал папку build в которой находится CMakeLists.txt
Находясь в папке build запускаю cmake ../scr и после этого ошибка
CMake Error: The source directory «/home/user/Projects/project/src» does not appear to contain CMakeLists.txt.
Specify —help for usage, or press the help button on the CMake GUI.

Переместил main.cpp в другую папку по адресу /home/user/Projects/C++/test и запускаю cmake ../../C++/test и всё срабатывает отлично

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь



0



hoggy

Эксперт С++

8718 / 4299 / 957

Регистрация: 15.11.2014

Сообщений: 9,743

21.10.2020, 21:13

2

Лучший ответ Сообщение было отмечено ReYalp как решение

Решение

Цитата
Сообщение от ReYalp
Посмотреть сообщение

Что я делаю не так?

ты за каким то фигом перемещаешь main.cpp

вместо того что бы просто запустить cmake, указав ему путь к CMakeLists.txt

Windows Batch file
1
2
3
4
5
    cmake.exe ^
        -H"%ePATH_TO_CMAKELIST%" ^
        -B"%ePATH_TO_BUILD%"     ^
        -G"%eGENERATOR%"         ^
        -D"CMAKE_BUILD_TYPE=%eBUILD_TYPE%"



0



49 / 34 / 9

Регистрация: 27.12.2017

Сообщений: 1,450

21.10.2020, 21:18

 [ТС]

3

hoggy, разве не правильно разделять папку всё что связано с билдом в одну папку, всё что связано с исходниками в другую?



0



Комп_Оратор)

Эксперт по математике/физике

8776 / 4515 / 608

Регистрация: 04.12.2011

Сообщений: 13,466

Записей в блоге: 16

21.10.2020, 22:35

4

Цитата
Сообщение от ReYalp
Посмотреть сообщение

создал папку build в которой находится CMakeLists.txt

Он с сорсом должен быть. В папке построения будет создан построенный модуль (exe или что вы строите).



0



3 / 3 / 1

Регистрация: 15.03.2019

Сообщений: 574

28.10.2022, 14:52

5

Что бы не дублировать тему

загрузил проект и все вроде как сделал как описано здесь

https://github.com/FreeRDP/Fre… nd-64-bit)

но при команде

Код

cmake . -G"Visual Studio 16 2019"

получаю ошибки

Код

**********************************************************************
** Visual Studio 2019 Developer PowerShell v16.11.16
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
PS D:C#FreeRDP-master> cmake . -G"Visual Studio 16 2019"
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000.
CMake Error in D:/C#/FreeRDP-master/CMakeFiles/_CMakeLTOTest-C/src/CMakeLists.txt:
  OUTPUT containing a "#" is not allowed.


CMake Error at D:/MicrosoftVisualStudio/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/CheckIPOSupported.cmake:120 (try_compile):
  Failed to generate test project build system.
Call Stack (most recent call first):
  D:/MicrosoftVisualStudio/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/CheckIPOSupported.cmake:240 (_ipo_run_language_check)
  CMakeLists.txt:30 (check_ipo_supported)


-- Configuring incomplete, errors occurred!
See also "D:/C#/FreeRDP-master/CMakeFiles/CMakeOutput.log".
PS D:C#FreeRDP-master> cmake . -G"Visual Studio 16 2019"
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000.
CMake Error in D:/C#/FreeRDP-master/CMakeFiles/_CMakeLTOTest-C/src/CMakeLists.txt:
  OUTPUT containing a "#" is not allowed.


CMake Error at D:/MicrosoftVisualStudio/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/CheckIPOSupported.cmake:120 (try_compile):
  Failed to generate test project build system.
Call Stack (most recent call first):
  D:/MicrosoftVisualStudio/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/CheckIPOSupported.cmake:240 (_ipo_run_language_check)
  CMakeLists.txt:30 (check_ipo_supported)


-- Configuring incomplete, errors occurred!
See also "D:/C#/FreeRDP-master/CMakeFiles/CMakeOutput.log".
PS D:C#FreeRDP-master>

подскажите как исправить или как открыть анный проект в визуал студии?



0



Topic: SFML 2.0 MinGW Make «Does not contain Cmakelists.txt  (Read 14859 times)

0 Members and 1 Guest are viewing this topic.

-Downloaded Cmake
-Downloaded sfml
-Created a folder in C: named sfml. Put sfml 2.0 into that folder
-Directories added to Path enviromental Variable: ;C:Program Files (x86)CMake 2.8bin; C:Program files (x86)CodeBlocksMinGWbin;
-Ive never ran cmake with this sfml directory
-Command Lines:
>sfml/sfml2
>cmake -G «MinGW Makefiles» -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=TRUE -D
STATIC_STD_LIBS=FALSE c:/sfml/sfml2/
The Problem:
Cmake error: The Source directory C:/Sfml/sfml2/ does not appear to contain Cmakelists.txt

What am i doing wrong why wont it configure the files and create what ive specified? Thank you in advance


Logged


-Downloaded sfml

From where and which version did you download?

Have you tried to redownload it? IIRC I once also had the problem that the file was missing (although no idea how) a redownload ‘fixed’ the problem.


Logged


What’s in your C:/Sfml/sfml2/ folder?


Logged

Laurent Gomila — SFML developer


It version 2.0 the one at the bottom of the download page that says «Final version in beta for bug testing» or something similar.
sfml/sfml2 contains: bin, cmake, doc, examples, include, lib.

txt documents:
Readme
Licence


Logged


Oh, but the precompiled RC doesn’t contain source code. You must download it from Github.


Logged

Laurent Gomila — SFML developer


Your right. I thought they both were the same when i was following the tutorial. When i changed them i got all these errors.

[attachment deleted by admin]


Logged


You did something wrong, read the tutorial carefully and try again from scratch (clear your build folder).


Logged

Laurent Gomila — SFML developer


In the video im following it says that you need to unzip the file twice but i could only unzip it once using winrar. could this be the problem?


Logged


I don’t know which video you’re watching, but you should rather follow the official tutorial.

And by the way, why do you want to compile SFML yourself?


Logged

Laurent Gomila — SFML developer


…i thought you had to to use it with codeblocks…


Logged


Of course not ;)


Logged

Laurent Gomila — SFML developer


Where can i find a tutorial for 2.0 than if im doing it wrong?


Logged


Frontpage->Tutorials->SFML 2.0

Wasn’t that hard, was it? ;-)


Logged


how to i get the lib dlls without compiling using cmake than. the snapshot doesnt even come with the lib files…and the pre comp version doesnt have the dlls


Logged


the snapshot doesnt even come with the lib files…

It is a snapshot of the source repository. It’s not supposed to contain any compiled file.

and the pre comp version doesnt have the dlls

It does.


Logged

Laurent Gomila — SFML developer


Я устанавливаю OpenCV в Ubuntu 16.04. После установки необходимых компонентов я использовал следующую команду: —

[email protected]:~/opencv_contrib$ mkdir build
[email protected]:~/opencv_contrib$ cd build
[email protected]:~/opencv_contrib/build$ 
[email protected]:~/opencv_contrib/build$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX+/usr/local -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules -D BUILD_EXAMPLES=ON ..

но это выдало ошибку: —

CMake Error: The source directory "/home/kvs/opencv_contrib" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

Я использовал команду, представленную в папке «модуль» документации. Как мне это решить? Я попробовал ответы здесь в переполнении стека и несколько других вопросов, но все еще не могу понять это.

Проект Git репозиторий здесь.

27 сен. 2017, в 15:18

Поделиться

Источник

3 ответа

Вы должны выполнить mkdir build и cd build в папке opencv, а не в папке opencv-contrib. Там есть CMakeLists.txt.

Quang Hoang
27 сен. 2017, в 15:09

Поделиться

Поскольку вы добавляете .. после cmake, он будет вскакивать вверх и вверх (точно так же, как cd..) в каталоге. Но если вы хотите запустить cmake в той же папке с CMakeLists.txt, используйте . а не ..

K. Symbol
29 авг. 2018, в 03:22

Поделиться

Этот ответ может быть запоздалым, но может помочь пользователям с подобной проблемой. Opencv-contrib (доступен по адресу https://github.com/opencv/opencv_contrib/releases) содержит дополнительные модули, но процедура сборки должна быть выполнена из основного opencv (доступно по адресу https://github.com/opencv/opencv./релизы) модулей.

Выполните следующие шаги (при условии, что вы создаете его с помощью CMake GUI)

  1. Загрузите openCV (с https://github.com/opencv/opencv/releases) и разархивируйте его где-нибудь на вашем компьютере. Создайте в нем папку для сборки

  2. Загрузите exra-модули из OpenCV. (с https://github.com/opencv/opencv_contrib/releases). Убедитесь, что вы загружаете ту же версию.

  3. Разархивируйте папку.

  4. Открыть CMake

  5. Нажмите Browse Source и перейдите к вашей папке openCV.

  6. Нажмите Browse Build и перейдите к папке сборки.

  7. Нажмите кнопку настройки. Вам будет задан вопрос о том, как вы хотите создать файлы. Выберите Unix-Makefile из выпадающего меню и нажмите OK. CMake выполнит несколько тестов и вернет набор красных полей, появившихся в окне CMake.

  8. Выполните поиск «OPENCV_EXTRA_MODULES_PATH» и укажите путь к папке модулей (например,/Users/purushottam_d/Programs/OpenCV3_4_5_contrib/modules)

  9. Нажмите Configure еще раз, затем нажмите Generate.

  10. Перейти в папку сборки

# cd build
# make
# sudo make install
  1. Это установит библиотеки opencv на ваш компьютер.

puru
05 фев. 2019, в 10:38

Поделиться

Ещё вопросы

  • 1PostMessage скрипта Google App не соответствует происхождению окна получателя
  • 0mysql: как выбрать email_id, для которого есть несколько действий
  • 0Получение данных из одного массива в другой
  • 0Multer и AngularJS
  • 1Невозможно получить плитки карты с высоким уровнем масштабирования (т.е. уменьшенным) с помощью Matplotlib / Cartopy / Python
  • 1Как расширить модель данных в LINQPad, используя частичные классы?
  • 0Как запустить JS-скрипт, только если другой действителен
  • 1Использование оператора pass в python как способ сделать код более читабельным? Это имеет значение?
  • 1Как избежать чтения перед инициализацией всех трех карт с помощью RentrantLock и вернуть обновленный набор карт после завершения обновления?
  • 1Пакетная вставка из элемента управления Repeater с помощью флажка
  • 0Прогрессивное перелистывание открыть мобильную панель jquery
  • 0$ .getJSON не может вызвать Codebehind [WebMethod] asp, net
  • 0MySQL Проверка, находится ли временной диапазон за пределами заданных временных интервалов для дня
  • 0Кэширование данных, полученных из API — php
  • 1Не удается правильно отобразить легенду Leaflet
  • 1Как узнать пользовательский агент браузера в Android
  • 1Как сделать так, чтобы оси занимали несколько вспомогательных участков при использовании графика даты и времени панд?
  • 0Удалить зазор между изображением и контейнером [дубликаты]
  • 1Добавить таймер для изображений в javafx
  • 1Как найти совпадение одинаковых значений в двух разных столбцах набора данных в Python
  • 1Как обеспечить переопределение хотя бы одного из двух методов в классе Java?
  • 1Flask — Вызовите маршрут и вернитесь к первому маршруту.
  • 0Angular JS watch data из сервисного метода
  • 0Шаблон получения контейнера в качестве аргумента
  • 0Как избежать выпадающего дубликата после добавления строк [AngularJS]
  • 0Как мне заполнить значение первичного ключа через форму и запрос php?
  • 1Как мне отформатировать SPARQL для JS?
  • 0Запрос SQL и назначить его на JavaScript
  • 0Оптимальная практика выбора стиля
  • 1Предварительно загрузить вид в Android?
  • 1Android-будильник
  • 0Как распечатать содержимое очереди
  • 0Как сохранить значение переменной Python в Telegram в локальной базе данных?
  • 0URL вставлен дважды
  • 1Java конвертировать JSONObject в параметр URL
  • 0Конвертировать HTML в XML, используя Java
  • 1изо всех сил, чтобы проверить флягу-танец / фляга-безопасность / фляга-sqlalchemy / pytest
  • 0Выбор даты не отображается на входе PHP, созданном внутри цикла for
  • 0MySQL: несколько SELECT с разными WHERE на одном поле с результатом в отдельных столбцах
  • 0значения переменных, добавляемых в массив после нажатия кнопки «Отправить»
  • 1Преобразование различных категориальных переменных в фиктивные переменные
  • 0неверный ковариантный тип возвращаемого значения (параметры также наследуются)
  • 1Discord.js Удалить отдельное сообщение
  • 0Внешняя ссылка не работает в FF, Chrome, но работает в IE 9
  • 1Вырезать и вставить строку текста из текстового файла c #
  • 1Settings.xml не позволит мне изменить цвет фона?
  • 1Токен JWT, сгенерированный из c #, не совпадает с Javascript
  • 1Проверка пароля — добавление дополнительных требований
  • 1Только получать одинаковые пакеты udp
  • 0Каков современный способ не дублировать код на HTML-страницах и подстраницах?

Сообщество Overcoder

Like this post? Please share to your friends:
  • Dock windows как в mac os для windows
  • Doc не является приложением win32 что делать windows 7
  • Doc или windows 10 что лучше
  • Doc web cureit скачать бесплатно для windows 10
  • Do your office have a big windows