Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

cmake fails on individual components due to inability to find cotire. #229

Open
unbibium opened this issue Feb 22, 2013 · 9 comments
Open

Comments

@unbibium
Copy link

cmake dtemu from the DCPUToolchain directory, or cmake . from the dtemu directory, both fail because cotire is an unknown command, because those files don't inherit the CMakeScripts directory.

I need to do this because cmake . from the DCPUToolchain directory notices that qt4 and sphinx are missing, and refuses to build anything.

@Mause
Copy link
Member

Mause commented Feb 22, 2013

Which version of cmake are you using?

@Mause
Copy link
Member

Mause commented Feb 22, 2013

And are you using an up to date clone?

Though, it might be worth noting that cotire is optional, as it simply serves to increase compile speed :)

@unbibium
Copy link
Author

indeed, but I don't know how to disable it. The root directory has a variable that defaults to ON, but switching it to OFF has no effect when I'm making within subdirectories.

cmake version 2.8.10

@patflick
Copy link
Member

@unbibium if sphinx and qt are missing, all you should get is a warning that the IDE and the documentation will not be build. Can you please post what you get when you run

cmake . 
make

in the DCPUToolchain directory?

@unbibium
Copy link
Author

cmake ends with:

-- Could NOT find Qt4 (missing:  QT_QMAKE_EXECUTABLE QT_MOC_EXECUTABLE QT_RCC_EXECUTABLE QT_UIC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_LIBRARY) 
Not building IDE due to lack of Qt 4 libraries.
-- C target dtimg cotired without precompiled header. Too few applicable sources.
-- C target dtlua cotired without precompiled header. Too few applicable sources.
-- C target dtemu cotired without precompiled header. Too few applicable sources.
-- C target dtmm cotired without precompiled header. Too few applicable sources.
-- C target dtdb cotired.
-- Could NOT find Sphinx (missing:  SPHINX_EXECUTABLE) 
-- Found Doxygen: /opt/local/bin/doxygen (found version "1.8.3") 
-- Configuring incomplete, errors occurred!

make only gives:

make: *** No targets specified and no makefile found.  Stop.

@unbibium
Copy link
Author

complete cmake output:

-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is GNU 4.2.1
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Showing configuration
  >> version is: 'beta; #ae263a8f8'
  >> m4 is at: /usr/bin/m4
  >> flex is at: /opt/local/bin/flex
  >> flex unistd is at: 
  >> bison is at: /opt/local/bin/bison
   (must be Cygwin versions on Windows)
  >> cmake version is >= 2.8.6 -> using cotire
-- Found FLEX: /opt/local/bin/flex (found version "2.5.37") 
-- Found BISON: /opt/local/bin/bison (found version "2.7") 
-- C target bstring cotired without precompiled header. Too few applicable sources.
-- C target lua cotired.
-- Could NOT find Qt4 (missing:  QT_QMAKE_EXECUTABLE QT_MOC_EXECUTABLE QT_RCC_EXECUTABLE QT_UIC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_LIBRARY) 
-- Found GNU Readline: .
-- C target z cotired.
-- C target png cotired.
-- Found OpenGL: /System/Library/Frameworks/OpenGL.framework  
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Building GLFW for Cocoa and NSOpenGL on Mac OS X
-- Building GLFW only for the native architecture
-- C target argtable2 cotired.
-- C target simclist cotired without precompiled header. Too few applicable sources.
-- Found CURL: /usr/lib/libcurl.dylib (found version "7.21.4") 
-- C target libdcpu cotired excluding files /Users/nickb/dcpu/DCPUToolchain/libdcpu/err.d, config.h.in.
-- C target libdcpu-pp-expr cotired excluding files /Users/nickb/dcpu/DCPUToolchain/libdcpu-pp-expr/lexer.c, /Users/nickb/dcpu/DCPUToolchain/libdcpu-pp-expr/parser.c, /Users/nickb/dcpu/DCPUToolchain/libdcpu-pp-expr/parser.y, /Users/nickb/dcpu/DCPUToolchain/libdcpu-pp-expr/lexer.l without precompiled header. Too few applicable sources.
-- C target libdcpu-vm cotired.
-- C target libdcpu-ci-dbgfmt cotired without precompiled header. Too few applicable sources.
-- C target libdcpu-vm-dbg cotired excluding files /Users/nickb/dcpu/DCPUToolchain/libdcpu-vm-dbg/lexer.c, /Users/nickb/dcpu/DCPUToolchain/libdcpu-vm-dbg/parser.c, /Users/nickb/dcpu/DCPUToolchain/libdcpu-vm-dbg/parser.y, /Users/nickb/dcpu/DCPUToolchain/libdcpu-vm-dbg/lexer.l.
-- C target libdcpu-pp cotired excluding files /Users/nickb/dcpu/DCPUToolchain/libdcpu-pp/ppparamlexer.l, /Users/nickb/dcpu/DCPUToolchain/libdcpu-pp/ppparamparser.y, /Users/nickb/dcpu/DCPUToolchain/libdcpu-pp/ppparamlexer.c, /Users/nickb/dcpu/DCPUToolchain/libdcpu-pp/ppparamparser.c.
-- C target libdcpu-ci-objfmt cotired.
CMake Error at CMakeLists.txt:231 (add_subdirectory):
  The source directory

    /Users/nickb/dcpu/DCPUToolchain/libdcpu-cc

  does not contain a CMakeLists.txt file.


-- C target libdcpu-ci-asm cotired excluding files /Users/nickb/dcpu/DCPUToolchain/libdcpu-ci-asm/lexer.c, /Users/nickb/dcpu/DCPUToolchain/libdcpu-ci-asm/parser.c, /Users/nickb/dcpu/DCPUToolchain/libdcpu-ci-asm/parser.y, /Users/nickb/dcpu/DCPUToolchain/libdcpu-ci-asm/lexer.l.
-- C target libdcpu-ld-policy cotired excluding files /Users/nickb/dcpu/DCPUToolchain/libdcpu-ld-policy/lexer.c, /Users/nickb/dcpu/DCPUToolchain/libdcpu-ld-policy/parser.c, /Users/nickb/dcpu/DCPUToolchain/libdcpu-ld-policy/parser.y, /Users/nickb/dcpu/DCPUToolchain/libdcpu-ld-policy/lexer.l.
-- C target libdcpu-ld cotired.
cc include dir 
-- CXX target dtcc cotired without precompiled header. Too few applicable sources.
-- C target dtasm cotired without precompiled header. Too few applicable sources.
-- C target dtld cotired without precompiled header. Too few applicable sources.
-- C target dtpolicy cotired without precompiled header. Too few applicable sources.
-- Could NOT find Qt4 (missing:  QT_QMAKE_EXECUTABLE QT_MOC_EXECUTABLE QT_RCC_EXECUTABLE QT_UIC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_LIBRARY) 
Not building IDE due to lack of Qt 4 libraries.
-- C target dtimg cotired without precompiled header. Too few applicable sources.
-- C target dtlua cotired without precompiled header. Too few applicable sources.
-- C target dtemu cotired without precompiled header. Too few applicable sources.
-- C target dtmm cotired without precompiled header. Too few applicable sources.
-- C target dtdb cotired.
-- Could NOT find Sphinx (missing:  SPHINX_EXECUTABLE) 
-- Found Doxygen: /opt/local/bin/doxygen (found version "1.8.3") 
-- Configuring incomplete, errors occurred!

@Mause
Copy link
Member

Mause commented Feb 24, 2013

Be sure to do:
git clone [email protected]:DCPUTeam/DCPUToolchain.git --recurse-submodules
The recurse submodules part is the important part, as it ensures the
submodules are cloned as well, and should hopefully fix that error

@unbibium
Copy link
Author

that seemed to work, though i didn't know that existed.

also the URL you gave in that comment didn't work, but that's probably just a nicety of different url types...

@Mause
Copy link
Member

Mause commented Feb 24, 2013

yeah, its annoying that downloading submodules isn't enabled by default :/

If this is no longer an issue, please close, the, er, issue :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants