[cocos2d-x 빌드 자동화] 2. jenkins 설치

wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list' sudo apt-get update && sudo apt-get install jenkins http://localhost:8080

[cocos2d-x 빌드 자동화] 1. git 서버 설치

git 설치 sudo add-apt-repository ppa:git-core/ppa sudo apt-get update sudo apt-get install git-core git version git 유저 추가 sudo adduser git sudo su git 클라이언트 git 사용자 ssh key 등록 cd ~ mkdir .ssh chmod 700 .ssh cat id_rsa.pub >> ~/.ssh/authorized_keys 저장소 생성 cd ~ mkdir repos 프로젝트 저장소 생성 cd repos mkdir test.git cd test.git git init --bare --shared 클라이언트에서 git clone git@address:/home/git/repos/test.git cd Dice touch README.md git add README.md git commit -m "add README" git push -u origin master 혹은 cd existing_folder git init git remote add origin git@address:/home/git/repos/test.git git add . git commit git push -u origin master

cocos2d-x 3.x (3.10) 'extensions/ExtensionExport.h': No such file or directory

#include "cocos-ext.h" 후 Visual Studio에서 'extensions/ExtensionExport.h': No such file or directory 가 나오면 속성 -> C/C++ -> 일반 -> 추가 포함 디렉토리 에서 $(EngineRoot) 추가

cocos2d-x 3.x (3.10) Layer의 AnchorPoint 조정

Layer는 AnchorPoint 수정을 해도 되지 않는다. ignoreAnchorPointForPosition(false); 를 호출하면 된다.

cocos2d-x 3.x (3.10) 컬러 레이어 만들기

class HelloWorld : public cocos2d::Layer 를 class HelloWorld : public cocos2d::LayerColor로 변경하고 if ( !Layer::init() )를 if ( !LayerColor::initWithColor(Color4B(255,255,255,255)) )로 변경

cocos2d-x 3.x (3.10) 안드로이드 가로 세로 방향 고정

AndroidManifest.xml에서 화면을 세로로 유지 <activity android:name="org.cocos2dx.cpp.AppActivity"                   android:label="@string/app_name"                   android:screenOrientation="portrait"                   android:theme="@android:style/Theme.NoTitleBar.Fullscreen"                   android:configChanges="orientation|keyboardHidden|screenSize"> 화면을 가로로 유지 <activity android:name="org.cocos2dx.cpp.AppActivity"                   android:label="@string/app_name"                   android:screenOrientation="randscape"                   android:theme="@android:style/Theme.NoTitleBar.Fullscreen"                 ...

cocos2d-x 3.x (3.10) error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] 에러 해결

Application.mk 에서 APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char -Wno-error=format-security 로 변경