How to build from the command line

How to build by command line

When using VSCode, the command line is called from within VSCode, so you do not need to be aware of the following steps.

preparation in advance

Make sure you have the command line make utility ready to run.

Windows

Use the BASH (by msys) attached to the SDK.

Run the BASH.CMD located in {MWSDK installation folder} from Explorer, and you will see the bash command line with the Wks_TWELITE workspace as the current folder. Set the PATH to the toolchain for the TWELITE SDK.

user1@MACHINE_NAME   /c/MWSDK/Wks_TWELITE
$ pwd
/c/MWSDK/Wks_TWELITE

$ ls
App_IO  App_Tag  Samp_PER  Samp_Wayback
App_Melody  
...

macOS

If an error occurs when executing make on the command line (bash), install XCode.

After installation is complete, type "make" and the following message should appear.

Build

Let's build Samp_PingPong as an example.

First, go to the build folder of the build project Samp_PingPong.

The next step is to run clean. Here is an example of running clean on a TWELITE BLUE build.

When running make, you must specify either TWELITE=BLUE or TWELITE=RED, and you will get a WARNING to indicate that this is a TWELITE BLUE build, not a problem. To clean the Build folder without running make, delete the .bin file and objs_* folder in the Build folder.

Once clean is done, run the build.

If the .bin file is created after the build is executed, it is successful. If the build does not succeed, you will get some error messages.

The intermediate files are stored in the objs_{ARCH} folder.

最終更新