You are not logged in.

#1 2008-06-10 07:31:49

dopar!
Member
From: Argentina
Registered: 2008-06-01
Posts: 6

Kdevelop and mingw (crosscompiling)

Hi ! I really dont't know if  this post has to be here, but  anyways ! (it has to do with programming so...:P)
My big issue is :  i have to crosscompile a c++ program to win32 but i can't even can set the compiler properly !
I've tryed mingw so far and i can't get to it work ! It's been a whole day of research and i still can't ! sad
The ide i'm using right now is Kdevelop running on arch64. One funny thing that i noticed right after downloading mingw from the aur
was that the mingw command was something like "i486-mingw-gcc" ! Is this really ok or is there something wrong on the aur repo!
Anyways i'll stick the logs here !

Kdevelop Message

cd '/home/user/projects/kwin/kwin' && CC="i586-mingw32msvc-c" CXX="i586-mingw32msvc-c++" LD="i586-mingw32msvc-ld" "/home/user/projects/kwin/kwin/configure" && cd '/home/user/projects/kwin/kwin' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" LC_MESSAGES="C" LC_CTYPE="C" make 
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for strip... strip
configure: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet. If you think this
configuration is useful to you, please write to autoconf@gnu.org.
checking for C++ compiler default output file name... 
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
*** Exited with status: 77 ***

config.log

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.62.  Invocation command line was

  $ /home/user/projects/kwin/kwin/configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = localhost
uname -m = x86_64
uname -r = 2.6.25-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Fri May 16 14:29:57 CEST 2008

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /bin
PATH: /usr/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /opt/jdk/bin
PATH: /opt/mozilla/bin
PATH: /usr/bin/perlbin/site
PATH: /usr/bin/perlbin/vendor
PATH: /usr/bin/perlbin/core
PATH: /opt/qt/bin
PATH: /opt/kde/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2066: checking for a BSD-compatible install
configure:2134: result: /bin/install -c
configure:2145: checking whether build environment is sane
configure:2188: result: yes
configure:2213: checking for a thread-safe mkdir -p
configure:2252: result: /bin/mkdir -p
configure:2265: checking for gawk
configure:2281: found /bin/gawk
configure:2292: result: gawk
configure:2303: checking whether make sets $(MAKE)
configure:2325: result: yes
configure:2445: checking for strip
configure:2461: found /usr/bin/strip
configure:2472: result: strip
configure:2486: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org.
configure:2636: checking for C++ compiler version
configure:2644: i586-mingw32msvc-c++ --version >&5
/home/user/projects/kwin/kwin/configure: line 2646: i586-mingw32msvc-c++: command not found
configure:2648: $? = 127
configure:2655: i586-mingw32msvc-c++ -v >&5
/home/user/projects/kwin/kwin/configure: line 2657: i586-mingw32msvc-c++: command not found
configure:2659: $? = 127
configure:2666: i586-mingw32msvc-c++ -V >&5
/home/user/projects/kwin/kwin/configure: line 2668: i586-mingw32msvc-c++: command not found
configure:2670: $? = 127
configure:2693: checking for C++ compiler default output file name
configure:2715: i586-mingw32msvc-c++    conftest.cpp  >&5
/home/user/projects/kwin/kwin/configure: line 2717: i586-mingw32msvc-c++: command not found
configure:2719: $? = 127
configure:2757: result: 
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "kwin"
| #define VERSION "0.1"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2764: error: C++ compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=i586-mingw32msvc-c
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_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=i586-mingw32msvc-c++
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_path_install='/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/user/projects/kwin/kwin/missing --run aclocal-1.10'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/user/projects/kwin/kwin/missing --run tar'
AR=''
AUTOCONF='${SHELL} /home/user/projects/kwin/kwin/missing --run autoconf'
AUTOHEADER='${SHELL} /home/user/projects/kwin/kwin/missing --run autoheader'
AUTOMAKE='${SHELL} /home/user/projects/kwin/kwin/missing --run automake-1.10'
AWK='gawk'
CC='i586-mingw32msvc-c'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX='i586-mingw32msvc-c++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='i586-mingw32msvc-ld'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/user/projects/kwin/kwin/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
NM=''
NMEDIT=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='kwin'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP='strip'
VERSION='0.1'
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='$(SHELL) /home/user/projects/kwin/kwin/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='echo'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "kwin"
#define VERSION "0.1"

configure: exit 77

There seems to be something wrong with the mingw installation since kde  cannot correctly execute the i586-mingw32 but i'm still kind of noob !
I'll dig the config files deeper tomorrow, but i'll be nice to hear some major advices !
I hope someone can help me out ! I'll appreciate it !:)
PS : I've been using arch(linux in fact) for almost 1 month and i have to admit it's awesome , for someone who is willing to learn how this 1010101 thingis called computer works it's just awesome !You learn something new everytime you switch on the computer! Keep it up with the good work! smile
dopar!

Offline

Board footer

Powered by FluxBB