PDA

View Full Version : KDevelop



mickey
10th November 2006, 13:32
HI, I'm tryng to use Kdevelop; so I created a c++ (automake) project with a mai.cpp; then I tried to build but some errors (I don't remember they); I read faq and I tried to type in my project dir


libtoolize --copy --force

then I tried to re-build my project and this below is report. Why doen't it compile?
thanks


cd '/home/mic/projects/ddd' && CC="i586-mingw32msvc-c" CXX="i586-mingw32msvc-c++" LD="i586-mingw32msvc-ld" "/home/mic/projects/ddd/configure" && cd '/home/mic/projects/ddd' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" make
installing -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... missing
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 ***

jacek
10th November 2006, 13:38
See `config.log' for more details.
Well? Have you checked it?

Probably you forgot to install libstdc++-devel or similar package.

mickey
10th November 2006, 13:53
mmm there wasn't mingw32 so I installed it, but other problems occured (why when I used qmake projetcs insted of automake did it work?)



checking whether the C++ compiler works...
configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
*** Exited with status: 1 ***



configure:1899: $? = 0
configure:1901: i586-mingw32msvc-c++ -v </dev/null >&5
Reading specs from /usr/lib/gcc/i586-mingw32msvc/3.4.4/specs
Configured with: /build/buildd/mingw32-3.4.4.20050522.1/build_dir/src/gcc-3.4.4-20050522-1/configure -v --prefix=/usr --target=i586-mingw32msvc --enable-languages=c,c++ --enable-threads --enable-sjlj-exceptions --disable-multilib --enable-version-specific-runtime-libs
Thread model: win32
gcc version 3.4.4 (mingw special)
configure:1904: $? = 0
configure:1906: i586-mingw32msvc-c++ -V </dev/null >&5
i586-mingw32msvc-c++: `-V' option must have argument
configure:1909: $? = 1
configure:1932: checking for C++ compiler default output file name
configure:1935: i586-mingw32msvc-c++ conftest.cc >&5
configure:1938: $? = 0
configure:1984: result: a.exe
configure:1989: checking whether the C++ compiler works
configure:1995: ./a.exe
/home/michele/projects/ddd/configure: line 1996: ./a.exe: cannot execute binary file
configure:1998: $? = 126
configure:2007: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

mickey
11th November 2006, 00:34
do anyone know why if I create a project with autoconf system it needs mingw compiler and not gcc or other? How do I correct it? thanks

jacek
12th November 2006, 18:49
do anyone know why if I create a project with autoconf system it needs mingw compiler and not gcc or other?
It detects what system you have and tries to use corresponding compiler. It should write at the very beginning what system it has detected.