How to handle my non QT project



  • Hi,

    I just started working in a new company that uses custom build and make process for their project. I want to work with Qt Creator for software development (you can choose what to work with).

    I have used process "here ":http://shinnok.com/rants/2011/07/18/using-the-qt-creator-ide-with-non-qt-projects/ to set all up, and it works really nicely, but I have some issues right now:

    The big project I am working on is in Git. I have seen that Qt Creator creates some files during the process above (project file, and some more), and I am not allowed to add them to the git repository (I have them only in my own local copy). I have also added them to my own private git ignore list. Problems is that if I modify my repo with any git command (like pull) new files on the hard disc will not be added to the project. Same goes with switching branches etc.

    Is there a way I can tell Qt Creator to "Rebuild database" (to get all files on hdd). Right now every time I pull or switch branch I need to delete old and create new project.

    Regards
    Petar


  • Moderators

    I am not aware of a way to do that. But you can always ask git to do it for you: You can put scripts in .git/hooks that git will call at certain points during its work. You should be able to put a script there that generates the file list for you.

    What build system do you use in your project? Can creator use that instead? It does support quite a few build systems by now after all. That way no special files would be needed at all.



  • Hi,

    Thank you for your answer. I just started working here, and I know that we use GCC on linux, and I do not know what build system we use yet. It is made with a bunch of .mk files and build.spec files, if ti means something.

    However, I have some more problems. This project is made in c with a lot of files. When I open my custom project parsing lasts for hours.

    Also, "Follow symbol under cursor" does not work every time on macros defined in another files in the data structure. Files are added with #include, but it still does not work. By using it hew simply throws you to the first use of macro inside a function where you called it from.

    Are this known issues?

    Regards
    Petar


  • Moderators

    Parsing times depends of course on the number of files, but I know that it was tested with the linux kernel before and worked there. So if your project is not much bigger than the Linux kernel size should not be a problem.

    The code itself also has a big influence on the parsing time. Our parser is optimized for C++. It handles C mostly fine, but will always assume code to be C++. Do you have a set of headers that parse especially slow that you can publish in a "bug report":http://bugreports.qt-project.org/ ? We could have a look then and see whether our parser can be improved to handle those files.



  • I'd love to report, but:

    1 - I'm using Qt Creator 2.4.1 - It seems like it is kinda old - was there any parser improvements after that. My code is a mixture of c and c++. I think it is quite big. I have not been through a lot of it.

    2 - How do I find out how is parser doing - I see that it is only possible to see percentage he has done so far.


  • Moderators

    Why don't you try Qt Creator 2.5.2 (latest stable) or 2.6 (release candidate) then? We came a long way since 2.4!

    I'll need to check with the cpp engine devs... I think there is a environment variable to make the engine dump some information on what it is doing.



  • Thankyou very much

    The reason I am using 2.4 is because it is pre installed on a linux hub we use (QT 4.7 also).

    If I want to try out latest one I need to compile it.

    However, I do not have sudo access on the hub.

    What are dependencies of current trunk, and can it be compiled with pre-installed Qt 4.7

    Regards,
    Petar


  • Moderators

    We mostly test against Qt 4.8.x and Qt 5, but Qt 4.7 should also work I think. Check the release notes for details.

    There are binary packages available for 2.5.2 as well as 2.6RC, so no need to compile anything. Check the download pages.



  • Hi,

    I think I will want to compile, since I have been looking at the code in order to make "Follow symbol under cursor" open in new split. I think that in file cppplugin.cpp there is part around line 350 to modify.

    One more question. I'm kinda newbie in Linux, so I am not sure about binaries. I have so far been only using software that I have compiled and I was also using terminal in order to download software and it's dependencies, but I was never directly downloading binaries.

    What is the deal with binaries on Linux. How do they work? We have SLED linux hub. Are those binaries compatible with that? If yes - How do I start (execute) them? Do they install software or something else? Are binaries on linux the same for Ubuntu, Suse and other distros?

    Regards,
    Petar



  • OK, so one more question:

    There are binaries for Qt Creator, and once you download them you can just start it. But are there binaries for Qt 4.8 available (so that I do not need to compile them)

    Regards,
    Petar


  • Moderators

    Did you check the "downloads" link at the very top of every devnet page?



  • I did on some, but unfortunately they do not offer binaries for linux (or I could not find any)

    Do you maybe have link with linux binaries (Also, I have issue because I do not have Qt 4.7, but Qt 4.6 and I can not compile Qt Creator with that Qt version).

    please help (newbie help needed).

    I need them for Suse.

    Regards,
    Petar


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.