Click to See Complete Forum and Search --> : Anjuta help


arlenagha
12-02-2002, 11:01 PM
i start a new project in Anjuta 1.0.0 and put this code in the main.cc file:
/////////////////////////////////////////////////////////
#include <qapplication.h>
#include <qpushbutton.h>


int main( int argc, char **argv )
{
QApplication a( argc, argv );

QPushButton hello( "Hello world!", 0 );
hello.resize( 100, 30 );

a.setMainWidget( &hello );
hello.show();
return a.exec();
}
///////////////////////////////////////////////////////////

i also edit the Settings and add $QTDIR/include for Include Paths,$QTDIR/lib for Library Paths, and qt for Libraries.

Anjuta compiles without any errors but once i try to build it i get this:


//////////////////////////////////////////////////////////
Building source directory of the Project: cube ...
make --keep-going
cd .. && \
/bin/sh /home/Arlen/Projects/cube/missing --run automake-1.6 --gnu src/Makefile
cd .. && /bin/sh ./config.status src/Makefile depfiles
config.status: creating src/Makefile
config.status: executing depfiles commands
/bin/sh ../libtool --mode=link g++ -Wall -Wimplicit -Wreturn-type -Wunused -Wswitch -Wcomment -Wuninitialized -Wparentheses -Wtraditional -Wpointer-arith -Wmissing-prototypes -O1 -g -o cube -LTDIR/lib main.o -lqt
../libtool: line 1: cd: TDIR/lib: No such file or directory
libtool: link: cannot determine absolute directory name of `TDIR/lib'
make: *** [cube] Error 1
make: Target `all' not remade because of errors.
Build completed...............Unsuccessful
Total time taken: 14 secs
//////////////////////////////////////////////////////////

I must say that doing this in the terminal with g++ -o main main.cc -I$QTDIR/include -L$QTDIR/lib -lqt works just fine. Does anyone know why it doesn't work when i try to build it in Anjuta???

Rüpel
12-03-2002, 03:20 AM
try to set QTDIR in curly brackets like that ${QTDIR}

is there an environment-variable $Q set in your shell?

i'm far from being an expert about these things, but obviously your lib-directory setting $QTDIR is translated into nothing and TDIR, as if $Q points to an empty string or something like that. or anjuta just can't handle these things - but that would be very strange.

binaryDigit
12-03-2002, 10:01 AM
Originally posted by Rpel
try to set QTDIR in curly brackets like that ${QTDIR}


yes, that will fix it. just tried it out. used () instead of {}, but it does work.
nice work Rpel
:D

Rüpel
12-03-2002, 10:16 AM
Originally posted by binaryDigit
yes, that will fix it. just tried it out. used () instead of {}, but it does work.

just intuition - i've never used anjuta (haven't even installed it)
Originally posted by binaryDigit
nice work Rpel
little lesson in german spelling? if you can't write the umlaut, like ö, ä, ü (i.e. they are missing on your keyboard or character-set) just append an 'e' to the "normal" character.

ä -> ae
ö -> oe
ü -> ue
Ä -> Ae
...

so Rüpel without umlaut would be Ruepel. ok? Rpel looks *ouch!* ;)

binaryDigit
12-03-2002, 10:22 AM
Originally posted by Rpel

little lesson in german spelling? if you can't write the umlaut, like , � (i.e. they are missing on your keyboard or character-set) just append an 'e' to the "normal" character.

�-> ae
-> oe
-> ue
�-> Ae
...

so Rpel without umlaut would be Ruepel. ok? Rpel looks *ouch!* ;)

my apologies Ruepel
won't happen again :cool:

Rüpel
12-03-2002, 10:28 AM
np :D