Home > source directory > cmake error the source directory

Cmake Error The Source Directory

Contents

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us cmake error the source directory does not exist Learn more about Stack Overflow the company Business Learn more about hiring developers or

Cmake Error The Source Directory Output_variable Doesn't Exist

posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow cmake error the source directory is a file not a directory Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up cmake - CMakeLists.txt is not in root folder

Cmake Ubuntu

(but is included in source) up vote 3 down vote favorite I'm trying to compile a libpng library. The thing is that I need a specific version of this library - 1.2.37 - because the project I'm using it in is written with this version. I've found the source code of this version here (GnuWin32 project). But the folder structure looks something like this: libpng-1.2.37-src/ contrib/ projects/ scripts/ cmake set source directory CMakeLists.txt png.h pngread.c pngwrite.c ... See, the CMakeLists.txt is one level deeper than the source files. I've tried: source directory libpng-1.2.37-src/ -> resulted in error: The source directory does not appear to contain CMakeLists.txt source directory libpng-1.2.37-src/scripts -> resulted in multiple errors: File libpng-1.2.37-src/scripts/scripts/libpng.pc.in does not exist. copy CMakeLists.txt from /scripts to /libpng-1.2.37-src and set source directory to /libpng-1.2.37-src -> resulted in error: The source "/libpng-1.2.37-src/CMakeLists.txt" does not match the source "/libpng-1.2.37-src/scripts/CMakeLists.txt" used to generate cache. What should I do to make it work? I don't know why the CMakeLists.txt file would be included if it can't be used. c++ cmake libpng share|improve this question asked Jan 28 '14 at 15:34 davidthepiemaker 18113 I believe you should try 3. again, but wipe the binary directory before that. The error comes from changing the source dir while keeping the cache intact - it should work if you start in a fresh binary dir. –Angew Jan 28 '14 at 15:39 add a comment| 1 Answer 1 active oldest votes up vote 5 down vote accepted The INSTALL file explicitely says: If you want to use "cmake" (see www.cmake.org), copy CMakeLists.txt from the "scripts" directory to this directory and type c

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring

Cmake Add Source Directory

developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question

Cmake Current Source Directory

x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; cmake include source directory it only takes a minute: Sign up opencv ubuntu 12.04 Cmake error : Source directory does not appear to contain CmakeLists.txt up vote 2 down vote favorite 1 I'm using Ubuntu 12.04. I was trying to install OpenCV using http://stackoverflow.com/questions/21409935/cmake-cmakelists-txt-is-not-in-root-folder-but-is-included-in-source the steps shown in http://karytech.blogspot.in/2012/05/opencv-24-on-ubuntu-1204.html But when it comes to the step for Compiling, i get an error : clive@clive-Aspire-4755:~/OpenCV-2.4.0/build$ cmake -D WITH_QT=ON -D WITH_XINE=ON -D WITH_OPENGL=ON -D WITH_TBB=ON -D BUILD_EXAMPLES=ON .. CMake Error: The source directory "/home/clive" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. Can anyone help me? NOTE : The CMakeLists.txt file is present in the folder OpenCV-2.4.0 and not inside build. c++ opencv ubuntu terminal http://stackoverflow.com/questions/24153845/opencv-ubuntu-12-04-cmake-error-source-directory-does-not-appear-to-contain-cm cmake share|improve this question edited Jun 11 '14 at 8:58 ZeMoon 10.8k12859 asked Jun 11 '14 at 2:44 Clive 3023821 Hmm. For some reason .. seems to be /home/clive when it should be home/clive/OpenCV-2.4.0 –drescherjm Jun 11 '14 at 2:52 Did you run the cmake command before with different options? If so perhaps you should delete all files in the build folder and rerun cmake. –drescherjm Jun 11 '14 at 2:55 The instructions seem at that 2 year old blog seem reasonable when it comes to cmake usage. –drescherjm Jun 11 '14 at 2:59 Yes I did try deleting all the files in the build folder but the error still persists. –Clive Jun 11 '14 at 4:56 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote Try /home/clive/OpenCV-2.4.0 instead of .. at the end of the command. Also, It's generally easier to use ccmake instead cmake, regarding the options You are trying to set for setup. share|improve this answer answered Jun 11 '14 at 8:56 morynicz 1,60111022 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service

Support Search GitHub This repository Watch 8 Star 58 Fork 3 rlane/rust-gamedev-kit Code Issues 1 Pull requests 0 Projects 0 https://github.com/rlane/rust-gamedev-kit/issues/9 Pulse Graphs New issue CMake Error: The source directory does not appear to contain CMakeLists.txt #9 Open paldepind opened this Issue Feb 26, 2014 · 3 comments Projects https://groups.google.com/d/topic/mongodb-dev/QAVpvZ0uNRs None yet Labels None yet Milestone No milestone Assignees No one assigned 2 participants paldepind commented Feb 26, 2014 It seems like the build files for glfw is not source directory being pulled in properly. simon@localhost:~/projects/rust-gamedev-kit$ ./build-libraries.sh ++ dirname ./build-libraries.sh + cd . ++ pwd -P + RUST_GAMEDEV_KIT_ROOT=/home/simon/projects/rust-gamedev-kit ++ rustc -v ++ grep '^host:' ++ cut -d ' ' -f 2 + TARGET=x86_64-unknown-linux-gnu + LIBDIR=/home/simon/projects/rust-gamedev-kit/install/lib/rustlib/x86_64-unknown-linux-gnu/lib + mkdir -p /home/simon/projects/rust-gamedev-kit/install/lib/rustlib/x86_64-unknown-linux-gnu/lib + set -eux + rm -rf glfw/build + mkdir glfw/build + cd glfw/build + cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/simon/projects/rust-gamedev-kit/install -DBUILD_SHARED_LIBS:BOOL=ON -DGLFW_BUILD_EXAMPLES:BOOL=OFF -DGLFW_BUILD_TESTS:BOOL=OFF -DGLFW_BUILD_DOCS:BOOL=OFF cmake error the .. CMake Error: The source directory "/home/simon/projects/rust-gamedev-kit/glfw" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. Owner rlane commented Feb 26, 2014 Does running git submodule update --init fix it? paldepind commented Feb 26, 2014 Oops. I didn't know about Git submodules. Yes, that did indeed fix the issue. But I get can't find crate for glfw when trying to compile cubeland. I don't know what to do about that. paldepind commented Mar 5, 2014 I ended up doing ./build.sh instead and using the rustc one gets from that. Worked is expected 👍 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Terms Privacy Security Status Help You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

from GoogleSign inHidden fieldsSearch for groups or messages

 

Related content

cmake error the source directory does not exist

Cmake Error The Source Directory Does Not Exist table id toc tbody tr td div id toctitle Contents div ul li a href Cmake Source Directory a li li a href Cmake Error The Source Directory Does Not Appear To Contain Cmakelists Txt a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us relatedl Learn more about Stack Overflow the company Business Learn more about hiring cmake error the source directory is a

cmake error the source directory does not match

Cmake Error The Source Directory Does Not Match table id toc tbody tr td div id toctitle Contents div ul li a href Cmake Error The Source Directory Is A File Not A Directory a li li a href Cmake Error The Source Directory Output variable Doesn t Exist a li li a href Cmake Add Source Directory a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn relatedl more about Stack

error source directory already configured

Error Source Directory Already Configured table id toc tbody tr td div id toctitle Contents div ul li a href Source Directory Already Configured Gcc a li li a href Gcc Source Directory Already Configured Run Make Distclean There First a li ul td tr tbody table p Tags Search LQ Wiki Search Tutorials Articles Search HCL Search Reviews Search ISOs Go to Page LinuxQuestions org relatedl Forums Linux Forums Linux - Distributions p h id Source Directory Already Configured Gcc p Linux From Scratch SOLVED Binutils error Source directory already configured run configure error source directory already configured run

gcc error source directory already configured

Gcc Error Source Directory Already Configured p p p Tutorials Articles Search HCL Search Reviews Search ISOs Go to Page LinuxQuestions org Forums Linux Forums Linux - Distributions Linux From Scratch SOLVED Binutils error relatedl Source directory already configured run make distclean there first User Name Remember Me Password Linux From Scratch This Forum is for the discussion of LFS LFS is a project that provides you with the steps necessary to build your own custom Linux system Notices Welcome to LinuxQuestions org a friendly and active Linux Community You are currently viewing LQ as a guest By joining our