Thread overview | |||||
---|---|---|---|---|---|
|
August 06, 2009 Linking Tango + QtD under Ubuntu (with Rebuild) | ||||
---|---|---|---|---|
| ||||
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 |
August 09, 2009 Re: Linking Tango + QtD under Ubuntu (with Rebuild) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Michael Mittner | 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
|
August 09, 2009 Re: Linking Tango + QtD under Ubuntu (with Rebuild) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Thomas Brix Larsen | 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.
|
Copyright © 1999-2021 by the D Language Foundation