GithubHelp home page GithubHelp logo

cmake and config.h not found about freerdp HOT 5 CLOSED

celsius avatar celsius commented on May 2, 2024
cmake and config.h not found

from freerdp.

Comments (5)

llyzs avatar llyzs commented on May 2, 2024

I did the following:

$ mkdir Build
$ cd Build
$ cmake ..

Everything still generated in the source root tree, and Build folder is just empty. Could you tell me exactly how you create the build tree in "Build" folder?

from freerdp.

celsius avatar celsius commented on May 2, 2024

I do exactly the same and I get

$ mkdir Build
$ cd Build
$ cmake ..

here I got normal cmake output
$ ls
channels CMakeFiles config.h include libfreerdp-chanman libfreerdp-gdi libfreerdp-utils
CMakeCache.txt cmake_install.cmake freerdp-ui libfreerdp-asn1 libfreerdp-core libfreerdp-kbd Makefile

each folder containing only subfolders (according to the source tree), cmake files and generated Makefile, but no source files obviously

e.g.

$ ls -R channels

channels/:
cliprdr CMakeFiles cmake_install.cmake Makefile rdpdbg

channels/cliprdr:
CMakeFiles cmake_install.cmake Makefile

channels/cliprdr/CMakeFiles:
cliprdr.dir CMakeDirectoryInformation.cmake progress.marks

channels/cliprdr/CMakeFiles/cliprdr.dir:
build.make cmake_clean.cmake DependInfo.cmake depend.make flags.make link.txt progress.make

channels/CMakeFiles:
CMakeDirectoryInformation.cmake progress.marks

channels/rdpdbg:
CMakeFiles cmake_install.cmake Makefile

channels/rdpdbg/CMakeFiles:
CMakeDirectoryInformation.cmake progress.marks rdpdbg.dir

channels/rdpdbg/CMakeFiles/rdpdbg.dir:
build.make cmake_clean.cmake DependInfo.cmake depend.make flags.make link.txt progress.make

  • ubuntu 10.04 64bit, but it used to work that way in previous version too (and, as far as I know, my colleagues using cmake on OSX have the same behavior)
  • CMake : I'm currently using cmake 2.8 but I've been using it since at least 2.4 and it has always been like this
  • This is vanilla ubuntu's cmake, I did not make any specific configuration

I find this usage of cmake particularly useful since in case something in cmake's config/cache gets somehow corrupted (which happens from time to time), I just erase and re-create the Build directory :-) (besides, I can also have several build directory such as Build-release and a Build-debug in order not to recompile everything whenever I switch between Debug and Release compilation mode)

from freerdp.

celsius avatar celsius commented on May 2, 2024

According to cmake's website, you may need to clean your source tree in order to be able to create out-of-source build :

http://www.vtk.org/Wiki/CMake_FAQ#I_run_an_out-of-source_build_but_CMake_generates_in-source_anyway._Why.3F

from freerdp.

llyzs avatar llyzs commented on May 2, 2024

I figured it out, and it turned out that I have to delete all generated cmake files before rerun cmake (it seems to even remember the previous binary tree.

I made a patch, and it seems good to just replace CMAKE_SOURCE_DIR with CMAKE_CURRENT_BINARY_DIR.

from freerdp.

celsius avatar celsius commented on May 2, 2024

Great, thanks !

from freerdp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.