LoginSignup
0
0

More than 5 years have passed since last update.

cocos newでエラった時の対処法

Posted at

cocosをgitでcloneしてsetup.pyを実行した後に、
以下のようなエラーが出た

$ cocos new -l lua
> Copy template into /Users/tanishi/projects/MyLuaGame
> Replace the project name from 'HelloLua' to 'MyLuaGame'
> Copying directory from cocos root directory...
[Errno 2] No such file or directory: '/Users/tanishi/projects/cocos2d-x/external/win32-specific/gles/prebuilt'

んで、git logでexternalの中身を確認してみたけど、
どうもconfig.jsonしか変更されていない

とりあえずsubmodule化してるかもしれないから

git submodule init
git submodule update

で更新

...
変わんない...

んでREADME.mdを確認してみるとやり方が
そのまま書いていた

Git user attention

  1. Clone the repo from GitHub.

     $ git clone https://github.com/cocos2d/cocos2d-x.git
    
  2. After cloning the repo, please execute download-deps.py to download and install dependencies.

     $ cd cocos2d-x
     cocos2d-x $ python download-deps.py
    
  3. After running download-deps.py.

     cocos2d-x $ git submodule update --init
    

ということで解決

説明書はちゃんと読もう

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0