Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Cmake references #18696

Closed
remolive opened this issue Feb 21, 2018 · 2 comments
Closed

Missing Cmake references #18696

remolive opened this issue Feb 21, 2018 · 2 comments

Comments

@remolive
Copy link

Hi! I'm trying to build a cocos2d-x3.17 project on Ubuntu 16.04.
What I did:

> git clone --recursive https://github.com/cocos2d/cocos2d-x.
> cd cocos2d-
> python download-deps.
> git submodule update --
> ./setup.
> source ~/.
> cd build
> ./install-deps-linux.
> cd -
> cocos new FirstGame -l cpp -d .
> cd FirstGame
> cocos run -p linux

Then I got:

Building mode: debug
running: 'cmake -DCMAKE_BUILD_TYPE=Debug -DDEBUG_MODE=ON ..'

-- The C compiler identification is GNU 4.9.4
-- The CXX compiler identification is GNU 4.9.4
-- 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
-- Detecting C compile features
-- Detecting C compile features - done
-- 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:41 (include):
  include could not find load file:

    CocosBuildSet

CMake Error at CMakeLists.txt:42 (CocosBuildSet):
   Unknown CMake command "CocosBuildSet".


 -- Configuring incomplete, errors occurred!
See also "/home/oremy/cocos2d-x/FirstGame/linux-build/CMakeFiles/CMakeOutput.log".

I think I missed something and I'm not familiar with CMake.
I searched a lot about this kind of issue but didn't find anything working for me.
I'm just looking for some help or guidelines!

@drelaptop
Copy link
Contributor

just copy this file cocos2d-x-root/cmake/Modules/CocosBuildSet.cmake into the correspond cmake dir on new project. the reason is CocosBuildSet.cmake is a new file, cocos-console din't copy it when cocos new, it's a mistake.

@minggo I remember that you said cocos-console will auto update after the new added file is merged

@minggo
Copy link
Contributor

minggo commented Feb 24, 2018

I just merged #18687, i think it is ok now.

@minggo minggo closed this as completed Feb 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants