Hello World Build Failed

Asked by Amey on 2008-04-23

I have read previous entries but my problem is different. I am using Kdevelop on Ubuntu Gnome. I have installed libtool too.
But now I created simple hello world program in Kdevelop by
Kdevelop C++->Project-> new project
Under C++->simple win32 hello program.

Now I tried to build the program by build->build project.
I got following errors

cd '/home/amey/hello' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" make -f Makefile.cvs && cd '/home/amey/hello' && CC="i586-mingw32msvc-c" CXX="i586-mingw32msvc-c++" LD="i586-mingw32msvc-ld" "/home/amey/hello/configure" && cd '/home/amey/hello' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" make install
aclocal
make: aclocal: Command not found
make: *** [all] Error 127
*** Exited with status: 2 ***

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu kdevelop Edit question
Assignee:
No assignee Edit question
Last query:
2008-04-23
Last reply:
2009-07-11
Amey (ameyjah) said : #1

now I have installed aclocal and ming32w
and konsol

now status
in konsole it says

/bin/sh: /home/amey/ss/./src/ss: not found
Press Enter to continue!

my program

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <iostream>
#include <cstdlib>

using namespace std;

int main(int argc, char *argv[])
{
  cout << "Hello, from Win32!" << endl;

  return EXIT_SUCCESS;
}

bloodshower (bloodshower) said : #2

Hi!

Have you installed autoconf and automake. The source files should sesist in a subdirectory called src.

Abhejit Rajagopal (sirgogo) said : #3

Hey all,

Im also trying to build this simple program. Im using an amd64 machine. kDevelop installed perfectly and it runs fine, however I do not find any BUILD option under the build menu. There is only a Stop option, which is grayed-out.

Any ideas?

Rajeev (rajeeja) said : #4

Sorry for dragging an old thread. I have a similar error (see below). I have mingw.., autoconf, automake, konsole. Please let me know what else is need to fix the same program as the originator of the thread.

Thanks

d '/home/rajeev/CPP-Programs/Hello' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" LC_MESSAGES="C" LC_CTYPE="C" make
make all-recursive
Making all in src
/bin/bash ../libtool --tag=CXX --mode=link i586-mingw32msvc-c++ -g -O2 -mwindows -o hello.exe hello.o
../libtool: line 835: X--tag=CXX: command not found
../libtool: line 868: libtool: ignoring unknown tag : command not found
../libtool: line 835: X--mode=link: command not found
../libtool: line 1002: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 1003: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 662: i586-mingw32msvc-c: command not found
../libtool: line 662: i586-mingw32msvc-c: command not found
../libtool: line 662: i586-mingw32msvc-c: command not found
../libtool: line 662: i586-mingw32msvc-c: command not found
../libtool: line 2240: X-g: command not found
../libtool: line 2240: X-O2: command not found
../libtool: line 2075: X-mwindows: command not found
../libtool: line 2409: Xhello.exe: command not found
X: user not authorized to run the X server, aborting.
../libtool: line 2421: Xhello.exe: command not found
../libtool: line 2429: mkdir /.libs: No such file or directory
mkdir: cannot create directory `/.libs': Permission denied
make[2]: *** [hello.exe] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
*** Exited with status: 2 ***

Can you help with this problem?

Provide an answer of your own, or ask Amey for more information if necessary.

To post a message you must log in.