Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build for Windows #3

Open
Joe-MJ opened this issue Sep 3, 2013 · 2 comments
Open

Cannot build for Windows #3

Joe-MJ opened this issue Sep 3, 2013 · 2 comments

Comments

@Joe-MJ
Copy link

Joe-MJ commented Sep 3, 2013

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

@karfield
Copy link
Owner

karfield commented Sep 5, 2013

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

@Joe-MJ
Copy link
Author

Joe-MJ commented Sep 5, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants