BTW, when using a subdirs template in Qt Creator, a bug exists that means changing a .lib will rebuild it but _won't_ relink your app against it - a source of much frustration on my last project.
2009/8/26 Danny Price <[email protected]>: > > > On Wed, Aug 26, 2009 at 1:58 PM, Vladimir <[email protected]> wrote: >> >> Thanks a lot, Danny! >> >> It looks like it works from first sight, but: >> 1) .user file is really huge and contains a lot of strange information >> like my environment variables and absolute paths. So my coworkers >> probably would be unable to checkout the tree and start working. > > Yes that's why they not suitable for SVN. I'm sure the Trolls have a > solution in the works :) >> >> 2) Problem during (ld)linking stage. "ld: cannot find -lfreetype", but I >> cleanly see there is libfreetype.so.6 in /usr/lib. I made symbolic link >> to libfreetype.so and problem are gone. Also I did it for another ~10 >> libraries. Very strange why libs aren't recognized. > > Odd. > >> >> 3) My main .pro file looks like this: >> SOURCES += xxxxx.cc >> INCLUDEPATH = ../libxx >> LIBS = -L../libxx -lxx -lopenssl >> And during link stage I see -lQt... lines, so looks like QT variable in >> project file defined as core and/or gui. I don't know as for you, but I >> didn't defined any values and for me variable QT should be completely >> empty. Anyway I just added line "QT = " and Qt libraries are gone. > > Yes some Qt libs are added implictly. I can't remember right now how you get > rid of them. >> >> But I steel see -lpthread. How I can remove linking to pthreads? >> So problem #2 gone also. But that is probably deferent errors. >> 4) After QtCreator reloading projects tab become clear. When I added >> projects links between them also gone. So I have to do that work again. >> I think it shouldn't be so. >> >> So after all it doesn't work well yet. > > I recommend creating a simple test project with a lib and a client app that > uses it to get familar with how it works. > > Also resist the temptation to dump static libs into /usr/bin! Create a > dedicated 'products' directory for your libs and link to them there. >> >> >> > If I understand correctly, the only way to do this with Creator is via >> > the >> > Sessions model - load your lib project and the client project than >> > depends >> > on into a single session and then add the dependencies in the Project >> > mode. >> > Creator *should* then build the lib if required. >> > >> > However I've come to realize that the whole 'sessions' thing is flawed, >> > not >> > least because it cannot be used with source control and depends on the >> > .pro.user files which have caused me a lot of problems and setting >> > corruptions. >> > >> > Creator needs to have a solution system like MSVC. I've had similar >> > problems >> > in XCode which is rediculously convoluted when it comes to setting up >> > dependencies, especially for target-specific dependencies (you have you >> > wrap >> > the other projects with XCode projects and then import them as >> > references >> > which only works if you have the source code!). >> > >> > >> > On Wed, Aug 26, 2009 at 11:44 AM, Vladimir <[email protected]> wrote: >> > >> >> Hello everyone! >> >> >> >> I'm trying to use QtCreator for my project because it's fast and >> >> promising. I have .pro file for main project and I have a few .pro >> >> files >> >> for my libraries. I would like the ability to build main project and >> >> linked libraries should be building automatically by QtCreator. >> >> Is there such possibility? Currently I don't see any way to open >> >> propetries of main project and <<link>> lib projects. So I have to >> >> manually rebuild library projects. >> >> Is there some workaround or something? >> >> If not, please add possibility to link projects and automatically >> >> rebuild them is sources changed. >> >> My current IDE Eclipse can do this, and I think QtCreator also should >> >> can. That would be nice for me and other developers also :) >> _______________________________________________ >> Qt-creator mailing list >> [email protected] >> http://lists.trolltech.com/mailman/listinfo/qt-creator > > > _______________________________________________ > Qt-creator mailing list > [email protected] > http://lists.trolltech.com/mailman/listinfo/qt-creator > > _______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
