Linux IL2CPP 크로스 컴파일러는 Linux Unity 에디터를 사용하거나 Mono에 의존할 필요 없이 모든 스탠드얼론 플랫폼에서 Linux IL2CPP 플레이어를 빌드할 수 있게 해주는 sysroot 및 툴체인 패키지 세트입니다.
사전 요구 사항을 충족하는 경우 Linux 빌드 타겟을 선택하면 Unity가 해당 패키지를 자동으로 설치합니다.이 과정을 생략하고 자체 sysroot 및 툴체인 패키지를 사용하려면 Edit > Project Settings > Toolchain Management로 이동하여 Install Toolchain package automatically 체크박스를 비활성화하십시오.이미 설치되어 있는 경우 패키지 관리자에서도 제거해야 합니다.
경고: 추가 IL2CPP 인자를 설정하면 프로젝트 컴파일에도 영향을 미칠 수 있습니다. 자세한 내용은 IL2CPP 추가 인자 처리를 참조하십시오.
Unity는 IL2CPP 크로스 컴파일러 패키지를 설치하기 위해 다음 선행 조건이 필요합니다.
Linux sysroot 패키지는 Linux용으로 빌드하는 데 필요한 모든 헤더와 라이브러리를 포함하는 디렉토리입니다.
모든 운영체제(OS)에는 서로 다른 고유한 빌드 시스템이 있습니다. 특정 OS의 헤더 및 라이브러리를 사용하여 빌드하는 경우 빌드된 플레이어가 다른 운영체제에서 실행되지 않을 수 있습니다. Unity는 이 문제를 해결하기 위해 지원되는 모든 Linux 플랫폼에서 작동하도록 빌드하기 위해 sysroot를 제공합니다.
Unity는 macOS, Windows, Linux용 툴체인 패키지를 제공합니다. 이러한 각 플랫폼은 고유한 방식에 따라 Linux용으로 빌드됩니다.
Linux 툴체인 패키지는 Unity가 이러한 각 운영체제에서 Linux용으로 빌드하는 데 필요로 하는 툴 세트(컴파일러와 링커 포함)입니다.
패키지를 다운로드하여 압축을 풀고 사용할 수 있는 충분한 디스크 공간이 있는지 확인하십시오.
드문 경우이지만 공간이 충분한지 확실하지 않다면 UNITY_SYSROOT_CACHE 환경 변수를 정의하여 압축되지 않은 sysroot 및 툴체인 패키지를 저장하는 데 사용합니다. 환경 변수는 Unity가 참조할 수 있는 Unity 외부에서 설정한 변수입니다. 이 경우 Unity가 sysroot 및 툴체인 패키지를 압축 해제할 때 참조할 수 있는 캐시를 설정합니다. 환경 변수는 운영체제에 따라 다르므로, 환경 변수를 설정하려면 시스템 가이드라인을 따라야 합니다.
아래 표는 각 툴체인 패키지에 필요한 총 디스크 공간을 보여줍니다.
툴체인 패키지 | 필요 디스크 공간 |
---|---|
com.unity.toolchain.linux-x86_64 | 462MB |
com.unity.toolchain.macos-x86_64-linux-x86_64 | 2GB |
com.unity.toolchain.win-x86_64-linux-x86_64 | 2GB |
이 페이지의 모든 사전 요구 사항을 충족하면 프로젝트를 Linux 플레이어로 빌드할 수 있습니다.Unity는 빌드 시 Linux IL2CPP 크로스 컴파일러를 자동으로 사용합니다.
Linux 플레이어를 빌드하려면 다음 단계를 따르십시오.
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.