mirror of
				https://github.com/bytecodealliance/wasm-micro-runtime.git
				synced 2025-10-28 03:42:35 +00:00 
			
		
		
		
	 159b69da38
			
		
	
	
		159b69da38
		
			
		
	
	
	
	
		
			
			3.14 is used and tested by linux mini-product to fix ``` CMake Error at CMakeLists.txt:4 (cmake_minimum_required): Compatibility with CMake < 3.5 has been removed from CMake. Update the VERSION argument <min> value. Or, use the <min>...<max> syntax to tell CMake that the project requires at least <min> but has been updated to work with policies introduced by <max> or earlier. Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. ```
		
			
				
	
	
	
		
			1022 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			1022 B
		
	
	
	
	
	
	
	
wasm-micro-runtime as ESP-IDF component
You can build an ESP-IDF project with wasm-micro-runtime as a component:
- 
Make sure you have the ESP-IDF properly installed and setup 
- 
In particular have the following paths set: - WAMR_PATHto point to your wasm-micro-runtime repository
- IDF_PATHto point to your ESP-IDF
- source $IDF_PATH/export.sh
 
- 
Create a new project, e.g.: idf.py create-project wamr-hello
- 
In the newly created project folder edit the CMakeList.txt:cmake_minimum_required(VERSION 3.14) include($ENV{IDF_PATH}/tools/cmake/project.cmake) set (COMPONENTS ${IDF_TARGET} main freertos esptool_py wamr) list(APPEND EXTRA_COMPONENT_DIRS "$ENV{WAMR_PATH}/build-scripts/esp-idf") project(wamr-hello)
- 
Develop your project in it's maincomponent folder.
You can find an example here.
- Set target platform: idf.py set-target esp32c3
- Build: idf.py build
- Flash: idf.py flash
- Check the output: idf.py monitor