compile – set – run mongoose web server in android (emulator)

run web server mongoose in android

G3n1k's Blog

source code mongose
http://mongoose.googlecode.com/files/mongoose-3.8.tgz

ndk android
https://developer.android.com/tools/sdk/ndk/index.html
ndk target 32, for 64bit linux
version: android-ndk32-r10-linux-x86_64.tar.bz2

sdk android
https://developer.android.com/sdk/index.html
sdk for linux

extract ndk to ~/tmp/android-ndk-r10
extract mongoses-3.8 to ~/tmp/mongoose
extract sdk to ~/tmp/android-sdk-linux

#insert this code
include $(CLEAR_VARS)

LOCAL_MODULE    := mongoose
LOCAL_SRC_FILES := main.c mongoose.c

include $(BUILD_EXECUTABLE)

mongoose-jni-file

android-ndk-sources-css-stl-system

if success you will find the file in ~/tmp/mongoose/libs/armeabi

mongoose-execute-file

create and run emulator, emulator api level 18 (because more faster loading)

avd2

run browser to 127.0.0.1:8080 (listening_ports value)
mongoose-android

Lihat pos aslinya

Tinggalkan komentar