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

VS2015 Community - Release Mode Compile Success #24

Open
shint opened this issue Sep 24, 2016 · 0 comments
Open

VS2015 Community - Release Mode Compile Success #24

shint opened this issue Sep 24, 2016 · 0 comments

Comments

@shint
Copy link

shint commented Sep 24, 2016

윈도우10 32비트 - VS2015 Community - Release 모드로 컴파일에 성공했다.
Debug 모드는 컴파일이 잘 안된다.


  1. C:\apitest-master 폴더에 압축을 해제한다.

  1. cmake-gui.exe 로 configure 와 generate 를 한다.
    나 같은 경우는 DirectX SDK 가 설치되어 있지 않았는데.
    Configure 수행후. DirectX 체크옵션을 해제하면. generate 를 할 수 있다.

http://cfile212.uf.daum.net/image/26128F4E57E640C71C61FC

apitest.sln 프로젝트가 생성됐다.
http://cfile232.uf.daum.net/image/2246A04A57E641C13076F8

그냥. 같이 컴파일 하면 될거 같았는데. 잘 안되니까.
SDL프로젝트를 별도로 컴파일 해두자.


  1. C:\apitest-master\thirdparty\SDL2-2.0.1\VisualC 에서 SDL_VS2012.sln 를 Debug와 Release 모드로 컴파일 한다.
    몇몇 copy 오류가 발생하는데. 무시하자.

http://cfile203.uf.daum.net/image/2365BD4F57E642480C9333

SDL SDLmain SDLtest tests 폴더를 보면. 각각에 실행되는 테스트 예제가 생성된다.
음악. 조이스틱. 다양한 예제가 있다.

http://cfile232.uf.daum.net/image/2601654A57E64A411DAF47

http://cfile204.uf.daum.net/image/2411A44A57E64A410FDAC8

http://cfile222.uf.daum.net/image/23147B4A57E64A430C9979

http://cfile226.uf.daum.net/image/2567E54A57E64A43326DC4

http://cfile216.uf.daum.net/image/2766FC4A57E64A44333502


  1. C:\apitest-master\build 에서 apitest.sln 파일을 실행한다.
    구성 관리자'에서 빌드'를 체크해제 하더라도. 종속성을 해제할 수 는 없었다.
    그냥. 프로젝트에서 프로젝트 언로드'를 선택하고. aptest 프로젝트를 컴파일 하자.
    Debug 모드로 해보려 했지만. 안되었다. Release 모드로 컴파일하니. 잘 된다.

http://cfile229.uf.daum.net/image/255B554C57E644B6053D63

오류가 나는데.
HLSL 속성에서 셰이더의 메인함수 이름을 같게 맞춰줘야 한다.

여기서는 psMain 이니. psMain 으로 해준다.
셰이더 형식도 픽셀 셰이더'로 적어야 한다.

http://cfile228.uf.daum.net/image/25640C4C57E645C5012AF5

http://cfile226.uf.daum.net/image/21486F4A57E646433FB78F

http://cfile208.uf.daum.net/image/214AC24857E646940C6A1F

C:\apitest-master\bin 폴더에서 apitest.exe 프로그램을 실행해보면. 이와같이 실행된다.

이건 엉터리지만. 컴파일에 성공한 실행파일이다.
apitest execute.zip
http://cfile213.uf.daum.net/attach/2148DB4957E648BB155F90
방향키 왼쪽. 오른쪽
영문키 A 를 누르면. 여러가지 모드를 확인해볼 수 있다.

이건 엉터리지만. 컴파일이 된 프로젝트 파일이다.
build.zip
http://cfile224.uf.daum.net/attach/231B064A57E64B330AC4B5

http://cfile209.uf.daum.net/image/2611E25057E6484231972B

http://cfile202.uf.daum.net/image/213CF75057E648450C564F

http://cfile224.uf.daum.net/image/251A7E5057E64848298B81

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

1 participant