How to build from the command line
How to build by command line
preparation in advance
Make sure you have the command line make utility ready to run.
The following explanation assumes that the bash command line is used.
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.
$ xcode-select --install
After installation is complete, type "make" and the following message should appear.
$ make
make: *** No targets specified and no makefile found. Stop.
Build
Let's build Samp_PingPong as an example.
First, go to the build folder of the build project Samp_PingPong.
$ pwd
/c/MWSDK/Wks_TWELITE
$ cd Samp_PingPong/PingPong/Build/
$ pwd
/c/MWSDK/Wks_TWELITE/Samp_PingPong/PingPong/Build/
The next step is to run clean. Here is an example of running clean on a TWELITE BLUE build.
$ make TWELITE=BLUE clean
../../../../MkFiles/chipsel.mk:36: "WARNING: TWELITE BLUE"
Once clean is done, run the build.
$ make TWELITE=BLUE
rm -f objs_BLUE/PingPong.o
mkdir -p objs_BLUE
Compiling /c/MWSDK/Wks_TWELITE/Samp_PingPong/Pi..
...
/c/MWSDK/ChipLib/SW4063V1416/../../Tools/ba-elf-ba2-r..
y -S -O binary objs_BLUE/Samp_PingPong_PingPong_BLUE_..
Samp_PingPong_PingPong_BLUE_L1200_V0-1-4.bin
$ ls *.bin
Samp_PingPong_PingPong_BLUE_L1200_V0-1-4.bin
最終更新