Skip to content

How to build TotalCross SDK

Allan C. M. Lira edited this page Apr 23, 2020 · 3 revisions

After cloning the project (git clone https://github.com/TotalCross/totalcross.git TotalCross) you will have:

TotalCross/
├─ LitebaseSDK/
├─ TotalCrossSDK/
└─ TotalCrossVM/

You will need to enter inside TotalCrossSDK folder, please:

$ cd TotalCrossSDK

The next step you need to call Gradle:

~/TotalCross$ ./gradlew dist

If you don't have any package errors, your folder will be something like this:

TotalCross
├─ LitebaseSDK
├─ TotalCrossSDK
│    ├─ bin/
│    ├─ build/
│    ├─ dist/
│    │    ├─vm/
│    │    │    ├─ TCBase.tcz
│    │    │    ├─ TCFont.tcz
│    │    │    └─ TCUI.tcz
│    │    └─totalcross-sdk.jar
│    ├─ docs/
│    ├─ etc/
│    ├─ gradle/
│    ├─ src/
│    ├─ build.gradle
│    ├─ build.xml
│    ├─ gradlew
│    ├─ gradlew.bat
│    ├─ license.txt
│    └─ proguard.txt
└─ TotalCrossVM

Look to the dist folder, if you have the same files you just need to copy dist to your valid SDK folder

$ cp -r dist $PATH_TO_VALID_SDK/