[Qt-creator] Linked projects/workspace/'solutions'
Coda Highland
coda at bobandgeorge.com
Thu Jul 9 05:47:59 CEST 2009
Embedding the framework in the application bundle is just a deployment
thing and won't make a significant difference in debugging.
In my application, I actually just used a bare .dylib instead of a
full framework bundle. I set up an "extra target" rule to copy the
library into the appropriate place in the bundle:
install_interphraser.target =
tdbedit.app/Contents/Frameworks/libinterphraser.1.dylib
install_interphraser.commands = \
mkdir -p tdbedit.app/Contents/Frameworks/; \
cp ../libinterphraser.1.dylib tdbedit.app/Contents/Frameworks/
QMAKE_EXTRA_TARGETS += install_interphraser
POST_TARGETDEPS += tdbedit.app/Contents/Frameworks/libinterphraser.1.dylib
I put this inside a macx {} block because this app is also built on
Linux and Windows. On Linux I use an rpath flag. Windows I haven't
figured out the "ideal" solution yet.
For frameworks I think I remember something about needing
install_name_tool to change the pathing.
On 7/8/09, Juan Leni <jleni at matyca.com> wrote:
> I have a similar problem. I would like to keep two projects ( app and
> framework) together.
> I already know about sessions, but how can I debug the application and
> be able to step into the framework?
> I guess I should embed the framework in the application like in Xcode,
> but how should I do that in QtCreator? (By the way, I am using OSX)
>
> Andre Poenitz wrote:
>> On Wed, Jul 08, 2009 at 08:47:43PM +0100, Robert Caldecott wrote:
>>
>>> Nearly all the projects I create using Qt Creator have a separate unit
>>> test project - how can I link projects so that when I open the main
>>> project, the unit test one is also opened? The same question would
>>> apply to projects that use library projects, etc. I'm thinking of
>>> something similar to the Visual Studio 'solution' idea. It wouldn't
>>> have to be anything too complicated.
>>>
>>> Is this possible? If not, it is planned? Can I hack my .pro files by
>>> hand in the meantime?
>>>
>>
>> You can (and should...) use 'Sessions' to handle projects (and some
>> other information) that logically belong together.
>>
>> A 'TEMPLATE = subdirs' .pro might be an option, too.
>>
>> Andre'
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-creator at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>>
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
More information about the Qt-creator-old
mailing list