adb icon indicating copy to clipboard operation
adb copied to clipboard

Cannot build for Windows

Open Joe-MJ opened this issue 11 years ago • 2 comments

If this standalone adb source is able to support windows(i586-mingw32msvc-gcc) build. it will be great!!

Joe-MJ avatar Sep 03 '13 07:09 Joe-MJ

I haven't tried yet. But it should be compatible for mingw gcc, could you please provide some build log? thx!

karfield avatar Sep 05 '13 04:09 karfield

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.otest -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.otest -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.otest -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!~

Joe-MJ avatar Sep 05 '13 05:09 Joe-MJ