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

How can I build for Windows 10? #11

Open
Peymanmi opened this issue Jan 20, 2020 · 1 comment
Open

How can I build for Windows 10? #11

Peymanmi opened this issue Jan 20, 2020 · 1 comment

Comments

@Peymanmi
Copy link

Peymanmi commented Jan 20, 2020

Hi,

I try CYGWin to build this solution but I get following error:

image

image

`## ----------- ##

Core tests.

-----------

configure:2295: checking for gcc
configure:2325: result: no
configure:2388: checking for cc
configure:2435: result: no
configure:2491: checking for cl.exe
configure:2507: found /cygdrive/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
configure:2518: result: cl.exe
configure:2551: checking for C compiler version
configure:2560: cl.exe --version >&5
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24234.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.

cl : Command line warning D9002 : ignoring unknown option '--version'
cl : Command line error D8003 : missing source filename
configure:2571: $? = 2
configure:2560: cl.exe -v >&5
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24234.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.

cl : Command line warning D9002 : ignoring unknown option '-v'
cl : Command line error D8003 : missing source filename
configure:2571: $? = 2
configure:2560: cl.exe -V >&5
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24234.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.

cl : Command line error D8004 : '/V' requires an argument
configure:2571: $? = 2
configure:2560: cl.exe -qversion >&5
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24234.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.

cl : Command line warning D9002 : ignoring unknown option '-qversion'
cl : Command line error D8003 : missing source filename
configure:2571: $? = 2
configure:2591: checking whether the C compiler works
configure:2613: cl.exe conftest.c >&5
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24234.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.

conftest.c
Microsoft (R) Incremental Linker Version 14.00.24234.1
Copyright (C) Microsoft Corporation. All rights reserved.

/out:conftest.exe
conftest.obj
LINK : fatal error LNK1104: cannot open file 'LIBCMT.lib'
configure:2617: $? = 2
configure:2655: result: no
configure: failed program was:
| /* confdefs.h /
| #define PACKAGE_NAME "virt_cacard"
| #define PACKAGE_TARNAME "virt_cacard"
| #define PACKAGE_VERSION "1"
| #define PACKAGE_STRING "virt_cacard 1"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| /
end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2660: error: in /cygdrive/c/FreelanceProjects/xyndata/virt_cacard': configure:2662: error: C compiler cannot create executables See config.log' for more details

----------------

Cache variables.

----------------

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_prog_ac_ct_CC=cl.exe

-----------------

Output variables.

-----------------

ACLOCAL=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR=''
AM_BACKSLASH=''
AM_DEFAULT_V=''
AM_DEFAULT_VERBOSITY=''
AM_V=''
AUTOCONF=''
AUTOHEADER=''
AUTOMAKE=''
AWK=''
CACARD_CFLAGS=''
CACARD_LIBS=''
CC='cl.exe'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CYGPATH_W=''
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GLIB_CFLAGS=''
GLIB_LIBS=''
GREP=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
INSTALL_STRIP_PROGRAM=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO=''
MKDIR_P=''
OBJEXT=''
PACKAGE=''
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_NAME='virt_cacard'
PACKAGE_STRING='virt_cacard 1'
PACKAGE_TARNAME='virt_cacard'
PACKAGE_URL=''
PACKAGE_VERSION='1'
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION=''
ac_ct_CC='cl.exe'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot=''
am__nodep=''
am__quote=''
am__tar=''
am__untar=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

-----------

confdefs.h.

-----------

/* confdefs.h */
#define PACKAGE_NAME "virt_cacard"
#define PACKAGE_TARNAME "virt_cacard"
#define PACKAGE_VERSION "1"
#define PACKAGE_STRING "virt_cacard 1"
#define PACKAGE_BUGREPORT "[email protected]"
#define PACKAGE_URL ""

configure: exit 77`

appreciate you if could let me know how can I build it for Windows 10.

Thanks in advance

@Jakuje
Copy link
Contributor

Jakuje commented Feb 24, 2020

This seems like you are missing gcc or other compatible compiler. VS cl.exe does not look like being able to produce executable files on your system.

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