본문 바로가기

IT라이프47

install Homebrew http://brew.sh/ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" 2014. 3. 20.
컴파일 과정 컴파일 과정을 나름정리해둔다. source ----------> preprocessro ----------> parser ----------> transition ----------> assemble ----------> linker ----------> disk ----------> os.exe src -> preprocess -> i // 괄호나 ; 종료 연산자, 변수 선언 등을 검사한다.i -> parsing -> s // 문법에 이상이 없으면 어셈블러로 파싱한다.s -> assemble -> obj // 어셈블을 기초로 오브젝트 파일 생성obj -> linker -> .a // 각종 라이브러리를 링크하여 하나의 라이브러리를 생성-> exe // 실행파일 생성 2014. 3. 19.
파일저장 경로 변경하기(ios, android 대응) iOS 에서 iCloud 가 도입되면서 Document 폴더를 같이 쓰기때문에 더이상 여기에 저장할수 없게 되어버렸다. std::string CCFileUtils::getWriteablePath(){ // save to document folder // 아래줄을 NSCachesDirectory 로 변경 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; std::string strRet = [documentsDirectory UTF8String]; strRet.append("/"); re.. 2014. 3. 17.
cocos2d-x 3.0beta2 에서 새프로젝트 생성하기 cocos2d-x 3.0beta2 에서 새 프로젝트를 생성해보려고 했다.일단 구글링을 하지않고, 2.2 처럼 해보려고 했다.create_project.py 를 실행시키면 help가 나오려니 하고 실행해보았다. $ cd cocos2d-x-3.0beta2/tools/project-creator $ ./create_project.py 3.0 에서 작은 변화를 기대했는데, 그결과 짜잔~! project Path 에 생성할 폴더를 설정하고 create 버튼을 누르면 근데 좀 다른것이 2.2 에 있던 모든 플랫폼이 보이지 않는다는 것. proj.androidproj.ios_macproj.linuxproj.win32 요렇게 4개 폴더에 각각의 플랫폼이 생성되었다. 2014. 3. 6.
반응형