PDA

View Full Version : Help with Compiling in KDE



dwessell
October 25th, 2005, 09:43 PM
Hey all..

I'm trying to compile in KDE, but am running into some issues, as I'm not over familiar with Linux as of yet, and was hoping that someone could offer some advice.. When compiling I get:

configure: error: C++ compiler cannot create executables
See `config.log' for more details.
*** Exited with status: 77 ***


I will post the config.log below..

Thanks
David


---------------------------
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.59. Invocation command line was

$ /home/david/NCSU/hwk5/hwk5/configure

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

hostname = ubuntu
uname -m = i686
uname -r = 2.6.12-9-386
uname -s = Linux
uname -v = #1 Mon Oct 10 13:14:36 BST 2005

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

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

PATH: /usr/local/bin
PATH: /usr/local/sbin
PATH: /sbin
PATH: /usr/sbin
PATH: /bin
PATH: /usr/bin
PATH: /usr/bin/X11
PATH: /usr/games


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

configure:1540: checking for a BSD-compatible install
configure:1595: result: /usr/bin/install -c
configure:1606: checking whether build environment is sane
configure:1649: result: yes
configure:1664: checking whether make sets $(MAKE)
configure:1684: result: yes
configure:1716: checking for working aclocal-1.4
configure:1723: result: found
configure:1731: checking for working autoconf
configure:1738: result: found
configure:1746: checking for working automake-1.4
configure:1753: result: found
configure:1761: checking for working autoheader
configure:1768: result: found
configure:1776: checking for working makeinfo
configure:1787: result: missing
configure:1893: checking for C++ compiler version
configure:1896: i586-mingw32msvc-c++ --version </dev/null >&5
/home/david/NCSU/hwk5/hwk5/configure: line 1897: i586-mingw32msvc-c++: command not found
configure:1899: $? = 127
configure:1901: i586-mingw32msvc-c++ -v </dev/null >&5
/home/david/NCSU/hwk5/hwk5/configure: line 1902: i586-mingw32msvc-c++: command not found
configure:1904: $? = 127
configure:1906: i586-mingw32msvc-c++ -V </dev/null >&5
/home/david/NCSU/hwk5/hwk5/configure: line 1907: i586-mingw32msvc-c++: command not found
configure:1909: $? = 127
configure:1932: checking for C++ compiler default output file name
configure:1935: i586-mingw32msvc-c++ conftest.cc >&5
/home/david/NCSU/hwk5/hwk5/configure: line 1936: i586-mingw32msvc-c++: command not found
configure:1938: $? = 127
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "hwk5"
| #define VERSION "0.1"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:1977: error: C++ compiler cannot create executables
See `config.log' for more details.

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

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_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_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='/usr/bin/install -c'
ac_cv_prog_make_make_set=yes

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

ACLOCAL='aclocal-1.4'
AR=''
AUTOCONF='autoconf'
AUTOHEADER='autoheader'
AUTOMAKE='automake-1.4'
CC='i586-mingw32msvc-c'
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX='i586-mingw32msvc-c++'
CXXCPP=''
CXXFLAGS=''
DEFS=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='/home/david/NCSU/hwk5/hwk5/missing makeinfo'
OBJEXT=''
PACKAGE='hwk5'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='0.1'
ac_ct_AR=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_F77=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${prefix}/share'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

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

configure: exit 77

mlomker
October 25th, 2005, 11:30 PM
configure:1776: checking for working makeinfo
configure:1787: result: missing

You can start by searching for each missing item in Synaptic/Adept. Usually there is a README file or some other list of dependencies provided with the source or on their web page.

Have you already installed build-essential?

dwessell
October 26th, 2005, 12:51 AM
You can start by searching for each missing item in Synaptic/Adept. Usually there is a README file or some other list of dependencies provided with the source or on their web page.

Have you already installed build-essential?


It's actually a homework assignment that I'm working on.. I usually use Codewarrior in Windows.. There it's just a matter of compiling, and Codewarrior handles everything else.. I'll keep working on it, thanks for the input..

Thanks
David

toojays
October 26th, 2005, 01:42 AM
The C++ compiler the configure script is trying to use is i586-mingw32msvc-c++, which you don't have installed.

Did you tell kdevelop that you want to build a Windows application or something?

dwessell
October 26th, 2005, 01:56 AM
toojays..

Well.. I hadn't thought so.. But I looked in the makefile and found:

# the library search path.
hwk5_LDFLAGS = -mwindows $(all_libraries)
noinst_HEADERS = stack.h

So I guess I must have somewhere.. I think I'll start a new project, and see what happens...

Thanks for the tip..

dw