PDA

View Full Version : Creator 4.5.2 crash adding INCLUDEPATH



PUK_999
10th August 2009, 15:45
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:


INCLUDEPATH = c:/cml/cml-1_0_0


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

franz
11th August 2009, 10:19
Try using
INCLUDEPATH += c:/cml/cml-1_0_0

PUK_999
17th August 2009, 11:32
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.

PaceyIV
17th August 2009, 12:41
I use the includepath both on window and on Linux.



unix:INCLUDEPATH += ../QExtSerialport-1.1/src
win32:INCLUDEPATH += ../QExtSerialport-1.1/src


I don't have any errors.

Try relative path....

PUK_999
17th August 2009, 13:13
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

PaceyIV
17th August 2009, 18:10
The source of the CML library is in the cml subdir.

Try in this way

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

PaceyIV
17th August 2009, 18:16
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... :confused:

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

PUK_999
17th August 2009, 18:46
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.


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... :confused:

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

PUK_999
17th August 2009, 18:57
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... :confused:

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:



#include <cml/cml.h>


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

PUK

PUK_999
17th August 2009, 19:02
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:(

PaceyIV
17th August 2009, 19:07
To get the crash, you also have to edit a .cpp file and add the following:



#include <cml/cml.h>


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

PUK

You're right! Same crash!

PUK_999
17th August 2009, 20:38
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