adb
adb copied to clipboard
Cannot build for Windows
If this standalone adb source is able to support windows(i586-mingw32msvc-gcc) build. it will be great!!
I haven't tried yet. But it should be compatible for mingw gcc, could you please provide some build log? thx!
Sorry for the confused comment. My problem is how to configure for windows build in ubuntu(Linux)?
I try to configure by ./configure --host=i586-mingw32msvc CFLAGS="-DHAVE_WINSOCK -DHAVE_WIN32_THREADS"
and make
make[2]: Entering directory /home/joe/project/adb/adb-std/trunk/libcutils' i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -DANDROID_SMP=0 -DLIBC_STATIC -DDLMALLOC_DEBUG -DHOST_OS=linux -DHAVE_WINSOCK -DHAVE_WIN32_THREADS -MT libcutils_a-properties.o -MD -MP -MF .deps/libcutils_a-properties.Tpo -c -o libcutils_a-properties.o
test -f 'properties.c' || echo './'properties.c properties.c: In function ‘property_set’: properties.c:317: warning: implicit declaration of function ‘setenv’ properties.c:297: warning: unused variable ‘p’ mv -f .deps/libcutils_a-properties.Tpo .deps/libcutils_a-properties.Po i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -DANDROID_SMP=0 -DLIBC_STATIC -DDLMALLOC_DEBUG -DHOST_OS=linux -DHAVE_WINSOCK -DHAVE_WIN32_THREADS -MT libcutils_a-threads.o -MD -MP -MF .deps/libcutils_a-threads.Tpo -c -o libcutils_a-threads.o
test -f 'threads.c' || echo './'threads.c mv -f .deps/libcutils_a-threads.Tpo .deps/libcutils_a-threads.Po i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -Wall -DANDROID_SMP=0 -DLIBC_STATIC -DDLMALLOC_DEBUG -DHOST_OS=linux -DHAVE_WINSOCK -DHAVE_WIN32_THREADS -MT libcutils_a-abort_socket.o -MD -MP -MF .deps/libcutils_a-abort_socket.Tpo -c -o libcutils_a-abort_socket.o
test -f 'abort_socket.c' || echo './'`abort_socket.c
abort_socket.c:21:24: error: sys/socket.h: No such file or directory
abort_socket.c:22:22: error: sys/poll.h: No such file or directory
In file included from abort_socket.c:24:
Have any suggestion?
Many Thanks!~