Optimize samples build process and build 64 bit binaries by default (#90)
* Optimize samples build process * Samples: build 64 bit version by default
This commit is contained in:
@ -11,19 +11,37 @@ The sample also provides the native Linux version of application without the run
|
||||
|
||||
The number on top will plus one each second, and the number on the bottom will plus one when clicked.
|
||||
|
||||
Configure 32 bit or 64 bit build
|
||||
==============
|
||||
On 64 bit operating system, there is an option to build 32 bit or 64 bit binaries. In file `./lvgl-native-ui-app/CMakeLists.txt` and/or `./wasm-runtime-wgl/linux-build/CMakeLists.txt` , modify the line:
|
||||
`set (BUILD_AS_64BIT_SUPPORT "YES")`
|
||||
where `YES` means 64 bit build while `NO` means 32 bit build.
|
||||
|
||||
Install required SDK and libraries
|
||||
==============
|
||||
- 32 bit SDL(simple directmedia layer)
|
||||
Use apt-get</br>
|
||||
`sudo apt-get install libsdl2-dev:i386`</br>
|
||||
Or download source from www.libsdl.org</br>
|
||||
`./configure C_FLAGS=-m32 CXX_FLAGS=-m32 LD_FLAGS=-m32`</br>
|
||||
`make`</br>
|
||||
`sudo make install`</br>
|
||||
- 32 bit SDL(simple directmedia layer) (Note: only necessary when `BUILD_AS_64BIT_SUPPORT` is set to `NO`)
|
||||
Use apt-get:
|
||||
`sudo apt-get install libsdl2-dev:i386`
|
||||
Or download source from www.libsdl.org:
|
||||
```
|
||||
./configure C_FLAGS=-m32 CXX_FLAGS=-m32 LD_FLAGS=-m32
|
||||
make
|
||||
sudo make install
|
||||
```
|
||||
- 64 bit SDL(simple directmedia layer) (Note: only necessary when `BUILD_AS_64BIT_SUPPORT` is set to `YES`)
|
||||
Use apt-get:
|
||||
`sudo apt-get install libsdl2-dev`
|
||||
Or download source from www.libsdl.org:
|
||||
```
|
||||
./configure
|
||||
make
|
||||
sudo make install
|
||||
```
|
||||
|
||||
- Install EMSDK
|
||||
<pre>
|
||||
```
|
||||
https://emscripten.org/docs/tools_reference/emsdk.html
|
||||
</pre>
|
||||
```
|
||||
|
||||
Build and Run
|
||||
==============
|
||||
|
||||
Reference in New Issue
Block a user