Hi Danny! On 26.04.2010 13:14, ext Danny Price wrote: > Ah so you can explain how I should modify the sample projects to do just > that? I assume that relative paths from the shadow build directories are > also a bad idea?
Yeap:-) If the libraries hardly ever change then you could install them (or put them into a absolute path somewhere). That is *ugly* as hell, but it will work woth bpth shadow building and in source building. I really suggest using the SUBDIRS approach. > Now this I find interesting as it seems to contradict Nokia's previous > advice on the subject - that is to use sessions... Please do not confuse my rumblings here with "Nokia's advice"! I am just one developer and in no way willing or able to speak for Nokia as a whole. > I've had very mixed results with SUBDIRS in creator. I have to be setup > manually, require the use of undocumented qmake features and don't > always link together properly when dependants change. Yes, documentation for qmake could be improved. > And until > recently, you had to rebuild the until tree for a single dependant > change to be picked up. That can indeed happen occasionally. Touching the files in question should do the trick though. > But even if I use a subdir, won't I have the same issues? SUBDIRS allow > me to specify the build order but not link dependencies for which I need > PRE_TARGETDEPS. So I have to specify a path. What path do I specify? Qt Creator has quite a bit of dependency setup in src/plugins. Maybe you can get some inspiration from there? We are of course aware that there are issues with shadow building. Most of them are centered around resource usage (text files, pictures, etc.). The shadow build application will have trouble finding those if it tries to find them relative to its own location and they were shipped in the source tree. -- Tobias Hunger Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori _______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
