Results 1 to 12 of 12

Thread: Creator 4.5.2 crash adding INCLUDEPATH

  1. #1
    Join Date
    Aug 2009
    Posts
    30
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy Creator 4.5.2 crash adding INCLUDEPATH

    Hello,

    I am trying to make use of a 3rd party library. It is header only. For reference, it is the CML matrix library at http://www.cmldev.net.

    I've added the following entry to my .pro file:
    Qt Code:
    1. INCLUDEPATH = c:/cml/cml-1_0_0
    To copy to clipboard, switch view to plain text mode 

    When I load this project under Creator, it crashes. I've looked at the qtcreator.exe and its memory usage very quickly (a few seconds) reaches 1,991,216KB which I believe is why it's crashing.

    Am I doing something wrong? I am quite desperate to overcome this hurdle.

    EDIT: I think it might be reading the source for indexing/code completion purposes. I have the include of cml.h in one of my source files.

    Thanks,

    PUK
    Last edited by PUK_999; 10th August 2009 at 16:11.

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Creator 4.5.2 crash adding INCLUDEPATH

    Try using
    Qt Code:
    1. INCLUDEPATH += c:/cml/cml-1_0_0
    To copy to clipboard, switch view to plain text mode 
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

  3. #3
    Join Date
    Aug 2009
    Posts
    30
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Creator 4.5.2 crash adding INCLUDEPATH

    Apologies for delay - I've been away.

    I have tried the += and it still crashes in the same manner.

    Is Qt Creator only suitable for applications that use trivial/lightweight headers?

    Anyone else got any ideas?

    Thanks,

    PUK.

  4. #4
    Join Date
    Mar 2009
    Posts
    98
    Thanks
    3
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Creator 4.5.2 crash adding INCLUDEPATH

    I use the includepath both on window and on Linux.

    Qt Code:
    1. unix:INCLUDEPATH += ../QExtSerialport-1.1/src
    2. win32:INCLUDEPATH += ../QExtSerialport-1.1/src
    To copy to clipboard, switch view to plain text mode 

    I don't have any errors.

    Try relative path....

  5. #5
    Join Date
    Aug 2009
    Posts
    30
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Creator 4.5.2 crash adding INCLUDEPATH

    Using relative path crashes Creator the same. I'm sure the '-' isn't a problem. Indeed the include you use also has a minus symbol.

    PUK

  6. #6
    Join Date
    Mar 2009
    Posts
    98
    Thanks
    3
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Creator 4.5.2 crash adding INCLUDEPATH

    The source of the CML library is in the cml subdir.

    Try in this way

    INCLUDEPATH += c:/cml/cml-1_0_1/cml/

  7. #7
    Join Date
    Mar 2009
    Posts
    98
    Thanks
    3
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Creator 4.5.2 crash adding INCLUDEPATH

    I download your library.

    I create a new console project and add the path

    INCLUDEPATH += /tmp/cml-1_0_1

    I don't have any crash of qtcreator...

    Try in a new empty project. Maybe there is something else...

  8. #8
    Join Date
    Aug 2009
    Posts
    30
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Creator 4.5.2 crash adding INCLUDEPATH

    Quote Originally Posted by PaceyIV View Post
    The source of the CML library is in the cml subdir.

    Try in this way

    INCLUDEPATH += c:/cml/cml-1_0_1/cml/
    I have just tried this but the CML headers include required sub-headers from the cml subdirectory and then cannot find them. Therefore the path in the include path needs to be up one level.

    Quote Originally Posted by PaceyIV View Post
    I download your library.

    I create a new console project and add the path

    INCLUDEPATH += /tmp/cml-1_0_1

    I don't have any crash of qtcreator...

    Try in a new empty project. Maybe there is something else...
    I am always creating a new GUI application from scratch every time. I am using Creator 4.5.2 under Vista (tried under XP also). May I ask your configuration?

    One interesting point is that you're using CML 1.0.1 and I'm using 1.0.0. I will try to obtain the latter and see if that helps.

    Thank you for downloading the library and trying it out!

    PUK

  9. #9
    Join Date
    Aug 2009
    Posts
    30
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Creator 4.5.2 crash adding INCLUDEPATH

    Quote Originally Posted by PaceyIV View Post
    I download your library.

    I create a new console project and add the path

    INCLUDEPATH += /tmp/cml-1_0_1

    I don't have any crash of qtcreator...

    Try in a new empty project. Maybe there is something else...
    To get the crash, you also have to edit a .cpp file and add the following:

    Qt Code:
    1. #include <cml/cml.h>
    To copy to clipboard, switch view to plain text mode 

    At this stage, the working set for Creator balloons to the point where it crashes.

    PUK

  10. #10
    Join Date
    Aug 2009
    Posts
    30
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Creator 4.5.2 crash adding INCLUDEPATH

    Quote Originally Posted by PUK_999 View Post
    One interesting point is that you're using CML 1.0.1 and I'm using 1.0.0. I will try to obtain the latter and see if that helps.
    That made no difference

  11. #11
    Join Date
    Mar 2009
    Posts
    98
    Thanks
    3
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Creator 4.5.2 crash adding INCLUDEPATH

    Quote Originally Posted by PUK_999 View Post
    To get the crash, you also have to edit a .cpp file and add the following:

    Qt Code:
    1. #include <cml/cml.h>
    To copy to clipboard, switch view to plain text mode 

    At this stage, the working set for Creator balloons to the point where it crashes.

    PUK
    You're right! Same crash!

  12. #12
    Join Date
    Aug 2009
    Posts
    30
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Creator 4.5.2 crash adding INCLUDEPATH

    I was using CML under Microsoft Visual Studio without problems, so I don't think there's anything wrong with their library (just header files actually). Anyway, I've asked the CML authors if they could help with ideas but appreciate it might not be a high priority for them.

    As it's definitely a Qt Creator problem (because it shouldn't crash under any circumstances), I should file a bug report.

    My problem is getting the two working might take a while and I need to proceed with my work so I might look at another vector/matrix library that works ok with Qt Creator. I was just getting used to CML and it's nice dovetailing with OpenGL!

    Regards,

    PUK

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.