www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Linking Tango + QtD under Ubuntu (with Rebuild)

reply Michael Mittner <m.mittner shebang.at> writes:
I'm trying to evaluate QtD. First step is to link something against Tango 
and Qt, but unfortunately I can't get it to work:

rebuild main.d -debug -full -oqobj/ -I~/coding -llqtdcore -llqtdgui -
llQtCore -llQtGui

I have Tango installed via apt-get (and the Tango repository), as well as 
libqt4-dev and all its dependencies, but still the linker can resolve almost 
nothing. When I remove the QtD imports and simply link against Tango (with a 
test Stdout), it links and runs.

Has anybody run into some similar problem? I've never been good at this 
linking business and I'm out of ideas :( so help would be much appreciated.

Regards,
Mike
Aug 06 2009
parent reply Thomas Brix Larsen <brix brix-verden.dk> writes:
Michael Mittner wrote:

 I'm trying to evaluate QtD. First step is to link something against Tango
 and Qt, but unfortunately I can't get it to work:
 
 rebuild main.d -debug -full -oqobj/ -I~/coding -llqtdcore -llqtdgui -
 llQtCore -llQtGui
 
 I have Tango installed via apt-get (and the Tango repository), as well as
 libqt4-dev and all its dependencies, but still the linker can resolve
 almost nothing. When I remove the QtD imports and simply link against
 Tango (with a test Stdout), it links and runs.
 
 Has anybody run into some similar problem? I've never been good at this
 linking business and I'm out of ideas :( so help would be much
 appreciated.
 
 Regards,
 Mike
Hello Mike. This works well for me: rebuild -oq.build main.d -L-lqtdgui -L-lqtdcore -L-lQtCore -L-lQtGui /Brix
Aug 09 2009
parent Michael Mittner <m.mittner shebang.at> writes:
Thomas Brix Larsen wrote:

 This works well for me:
 rebuild -oq.build main.d -L-lqtdgui -L-lqtdcore -L-lQtCore -L-lQtGui
 
 /Brix
Now it works too - problem was that I installed both Tango and QtD from the repository; so I had Tango version 0.99.7, while QtD is compiled against 0.99.8 - so it didn't link. I eventually just downloaded the latest Tango tarball, pulled in QtD via svn and prayed a couple times to the FSM and got it running. Lesson learned: don't let apt-get handle the D stuff.
Aug 09 2009