On Mon, Mar 18, 2013 at 3:13 AM, Florian Eckerstorfer < > [email protected]> wrote: > > > I am developing on a MacBook Pro with OSX 10.7.5. I followed the steps > > from the http://www.zeromq.org/build:android to build a static zmq.a > > Library, unfortunately i can't build the whole Java-stuff, because I am > > always getting an error at the configure step, but that's not the > Problem. > > I only need the c-stuff, because I'm developing native without java and > > just wrap it. > > The thing is, I take the library and the zmq.h and zmq_utils.h and put > > them into my uni-folder in my Android project, then I add the the Library > > in my Android.mk-file. Because of al the goggling I've done I tried it > in a > > lot of different ways, but none of them seem to work. Currently I do it > > this way: > > > > LOCAL_PATH := $(call my-dir) > > > > > > > > include $(CLEAR_VARS) > > > > > > LOCAL_MODULE := ImageBabbleJNI > > > > LOCAL_SRC_FILES := imagebabbleJNI.cpp > > > > LOCAL_LDLIBS += -llog -lm -ljnigraphics > > > > LOCAL_CPPFLAGS = -std=gnu++11 -fpermissive -fexceptions > > -D__GXX_EXPERIMENTAL_CXX0X__ > > > > LOCAL_STATIC_LIBRARIES += libzmq > > > > > > include $(BUILD_SHARED_LIBRARY) > > > > > > It seems this is the part missing from your Android.mk: LOCAL_LDLIBS := -Lpath_to_the_folder_hosting_the_zmq_lib -lzmq
Based on my experience you don't need LOCAL_STATIC_LIBRARIES HTH Radu
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
