Igor | 28 Jul 09:28

Trouble compiling Qwt 5.1.1 with Qt 4.4.0

I get a lot of unresolved external symbol errors when trying to compile 
5.1.1 with qt 4.4.0. What can I try to solve this?

I had to recompile qt commercial because of application linking errors 
with VS.NET 2008. Recompiling solved this issue. Is this now causing 
issues with Qwt?

Thank you!

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Rainer Thaden | 28 Jul 11:14

Re: Trouble compiling Qwt 5.1.1 with Qt 4.4.0

Hi Igor,

> I get a lot of unresolved external symbol errors when trying to compile 
> 5.1.1 with qt 4.4.0. What can I try to solve this?
> 
> I had to recompile qt commercial because of application linking errors 
> with VS.NET 2008. Recompiling solved this issue. Is this now causing 
> issues with Qwt?

I have Qt4.4.0 commercial, recompiled (as static lib) under VC++2005.
Qwt5.1.1 compiles and links nicely with that.

Don't know if that helps you.

Regards,

Rainer

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Igor | 5 Aug 09:34

Re: Trouble compiling Qwt 5.1.1 with Qt 4.4.0

When compiling 5.2 SVN I get lot of errors like this:

c:\qwt\qwt-5.2svn\qwt\src\qwt_series_data.h(373) : error C2960: 'QVector<T>' : i
nconsistent explicit instantiations, a previous explicit instantiation specified
 'extern template'
        with
        [
            T=QPointF
        ]
qwt_plot_intervalcurve.cpp
c:\qwt\qwt-5.2svn\qwt\src\qwt_series_data.h(373) : error C2960: 'QVector<T>' : i
nconsistent explicit instantiations, a previous explicit instantiation specified
 'extern template'
        with
        [
            T=QPointF
        ]
qwt_plot_printfilter.cpp
c:\qwt\qwt-5.2svn\qwt\src\qwt_series_data.h(373) : error C2960: 'QVector<T>' : i
nconsistent explicit instantiations, a previous explicit instantiation specified
 'extern template'
        with
        [
            T=QPointF
        ]

What does that mean?

Igor

Rainer Thaden pravi:
Hi Igor,
I get a lot of unresolved external symbol errors when trying to compile 5.1.1 with qt 4.4.0. What can I try to solve this? I had to recompile qt commercial because of application linking errors with VS.NET 2008. Recompiling solved this issue. Is this now causing issues with Qwt?
I have Qt4.4.0 commercial, recompiled (as static lib) under VC++2005. Qwt5.1.1 compiles and links nicely with that. Don't know if that helps you. Regards, Rainer ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ qwt-interest mailing list qwt-interest <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qwt-interest

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qwt-interest mailing list
qwt-interest <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qwt-interest
Uwe Rathmann | 5 Aug 20:20

Re: Trouble compiling Qwt 5.1.1 with Qt 4.4.0

On Tuesday 05 August 2008 09:34, Igor wrote:

> When compiling 5.2 SVN I get lot of errors like this:

You had asked for 5.1.1 !

> c:\qwt\qwt-5.2svn\qwt\src\qwt_series_data.h(373) : error C2960:
> 'QVector<T>' : i
> nconsistent explicit instantiations, a previous explicit instantiation
> specified
>  'extern template'
>         with
>         [
>             T=QPointF
>         ]
> What does that mean?

This problem has already been reported here: 
http://sourceforge.net/tracker/index.php?func=detail&aid=1948333&group_id=13693&atid=113693

If you tell me where the previous explicit instantiation happens ( I don't use 
Windows myself) I will try to fix it.

Uwe

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Igor | 6 Aug 08:36

Re: Trouble compiling Qwt 5.1.1 with Qt 4.4.0

Hello! Thank you very much for your answer. Yes, the first time I wrote about 5.1.1, but I tried 5.2SVN because 5.1.1 did not link. I tried now again and *miracle* now it links. But when I try to load plugin in VS 2008 I get message:

The plugin 'C:/Program Files/Trolltech/Qt VS Integration/plugins/qwt_designer_plugin5.dll' uses incompatible Qt library. Expected build key "Windows msvc release full-config", got "Windows msvc release full-config no-stl"

Does that mean I must recompile Qt with STL enabled? So does Qwt require STL enabled?

In regard to 5.2SVN: how to tell you where previous explicit instantiation happens?

Thank you again,
Igor


Uwe Rathmann pravi:
On Tuesday 05 August 2008 09:34, Igor wrote:
When compiling 5.2 SVN I get lot of errors like this:
You had asked for 5.1.1 !
c:\qwt\qwt-5.2svn\qwt\src\qwt_series_data.h(373) : error C2960: 'QVector<T>' : i nconsistent explicit instantiations, a previous explicit instantiation specified 'extern template' with [ T=QPointF ] What does that mean?
This problem has already been reported here: http://sourceforge.net/tracker/index.php?func=detail&aid=1948333&group_id=13693&atid=113693 If you tell me where the previous explicit instantiation happens ( I don't use Windows myself) I will try to fix it. Uwe ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ qwt-interest mailing list qwt-interest <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qwt-interest

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qwt-interest mailing list
qwt-interest <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qwt-interest
Uwe Rathmann | 8 Aug 17:32

Re: Trouble compiling Qwt 5.1.1 with Qt 4.4.0

On Wednesday 06 August 2008 08:36, Igor wrote:

> In regard to 5.2SVN: how to tell you where previous explicit
> instantiation happens?

By looking into the code. 

In the meantime I did this myself and found a QVector<QPointF> declaration in 
qvector.h. So I disabled the declaration in the the Qwt header for Qt >= 4.x.

Please check 5.2 SVN ( = trunk ) on Windows and let me know if this fixes the 
problem.

Uwe

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Igor | 18 Aug 11:01

Re: Trouble compiling Qwt 5.1.1 with Qt 4.4.0

Hello,

trying to compile newest 5.2 SVN, now I dont get compile messages anymore. But there are a lot of linker messages like this:

qwt_designer_plugin.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QwtKnob::fontChange(class QFont const &)" (?fontChange <at> QwtKnob <at> <at> EAEXABVQFont <at> <at> <at> Z)

I want to ask you again what I already wrote in previous post (in regard to 5.1.1):

when I try to load plugin in VS 2008 I get message:

The plugin 'C:/Program Files/Trolltech/Qt VS Integration/plugins/qwt_designer_plugin5.dll' uses incompatible Qt library. Expected build key "Windows msvc release full-config", got "Windows msvc release full-config no-stl"

Does that mean I must recompile Qt with STL enabled? So does Qwt require STL enabled?


Thanks,
Igor




On Wednesday 06 August 2008 08:36, Igor wrote:
In regard to 5.2SVN: how to tell you where previous explicit instantiation happens?
By looking into the code. In the meantime I did this myself and found a QVector<QPointF> declaration in qvector.h. So I disabled the declaration in the the Qwt header for Qt >= 4.x. Please check 5.2 SVN ( = trunk ) on Windows and let me know if this fixes the problem. Uwe ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ qwt-interest mailing list qwt-interest <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qwt-interest

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qwt-interest mailing list
qwt-interest <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qwt-interest
Uwe Rathmann | 18 Aug 11:35

Re: Trouble compiling Qwt 5.1.1 with Qt 4.4.0

On Monday 18 August 2008 11:01, Igor wrote:

> qwt_designer_plugin.obj : error LNK2001: unresolved external symbol
> "public: virtual void __thiscall QwtKnob::fontChange(class QFont const
> &)" (?fontChange <at> QwtKnob@@EAEXABVQFont@@@Z)

Sounds like a problem on your side. At least QwtKnob::fontChange hasn't 
changed since decades.

> Does that mean I must recompile Qt with STL enabled? So does Qwt require
> STL enabled?

No, it doesn't. Are you sure, that you have built the Qwt with the same Qt 
environment ?

Uwe

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Igor | 18 Aug 12:09

Re: Trouble compiling Qwt 5.1.1 with Qt 4.4.0

Uwe Rathmann pravi:
On Monday 18 August 2008 11:01, Igor wrote:
qwt_designer_plugin.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QwtKnob::fontChange(class QFont const &)" (?fontChange <at> QwtKnob <at> <at> EAEXABVQFont <at> <at> <at> Z)
Sounds like a problem on your side. At least QwtKnob::fontChange hasn't changed since decades.
I know that there is not problem with this function because I get a LOT of similar messages. And I also dont understand why this is not working. What could be wrong?

Does that mean I must recompile Qt with STL enabled? So does Qwt require STL enabled?
No, it doesn't. Are you sure, that you have built the Qwt with the same Qt environment ?
Well, I have built Qt that is now active and being used by Visual Studio Integration. Qwt Designer plugin however does not load, message says:
Expected build key "Windows msvc release full-config", got "Windows msvc release full-config no-stl".

Both are release, the only difference that I see here is in STL parameter. Maybe Designer needs STL built into Qt to launch Qwt plugin. However, I think the only option here is to try to rebuild Qt without "no-stl" parameter.

Igor

Uwe ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ qwt-interest mailing list qwt-interest <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qwt-interest

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qwt-interest mailing list
qwt-interest <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qwt-interest
Uwe Rathmann | 18 Aug 12:21

Re: Trouble compiling Qwt 5.1.1 with Qt 4.4.0

On Monday 18 August 2008 12:09, Igor wrote:

> Both are release, the only difference that I see here is in STL
> parameter. Maybe Designer needs STL built into Qt to launch Qwt plugin.
> However, I think the only option here is to try to rebuild Qt without
> "no-stl" parameter.

For me it looks like Qwt has been built with STL support and now you want to 
run it against a Qt library without STL support. Instead of rebuilding the Qt 
library I recommend to check why Qwt has been built with STL support.

In my environment ( Linux/gcc ) you find the QT_NO_STL define in 
QtCore/qfeatures.h. I would expect, that it is enabled in your Qt headers and 
should be included by the Qwt headers ?

Uwe

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Igor | 20 Aug 10:16

Re: Trouble compiling Qwt 5.1.1 with Qt 4.4.0

For me it was easier to rebuild Qt with STL enabled. I then recompiled Qwt too. And now Qwt Designer plugin works inside Visual Studio! :-D

I only have 1 more problem when running my test program. If I open a window that has some Qwt controls included and then close my whole program, then test program crashes (while closing). It says it is because of heap corruption. What could cause that? Did I forget to do something?

Igor

Uwe Rathmann pravi:
On Monday 18 August 2008 12:09, Igor wrote:
Both are release, the only difference that I see here is in STL parameter. Maybe Designer needs STL built into Qt to launch Qwt plugin. However, I think the only option here is to try to rebuild Qt without "no-stl" parameter.
For me it looks like Qwt has been built with STL support and now you want to run it against a Qt library without STL support. Instead of rebuilding the Qt library I recommend to check why Qwt has been built with STL support. In my environment ( Linux/gcc ) you find the QT_NO_STL define in QtCore/qfeatures.h. I would expect, that it is enabled in your Qt headers and should be included by the Qwt headers ? Uwe ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ qwt-interest mailing list qwt-interest <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qwt-interest

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qwt-interest mailing list
qwt-interest <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qwt-interest
Rainer Thaden | 20 Aug 10:23

Re: Trouble compiling Qwt 5.1.1 with Qt 4.4.0

Hi,

> I only have 1 more problem when running my test program. If I open a 
> window that has some Qwt controls included and then close my whole 
> program, then test program crashes (while closing). It says it is 
> because of heap corruption. What could cause that? Did I forget to do 
> something?

Do you use a debug Qwt version with a release Qt version or vice versa?

Regards,

Rainer

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Igor | 20 Aug 12:28

Re: Trouble compiling Qwt 5.1.1 with Qt 4.4.0

Actually there was some misconfiguration and wrong dlls used too. Now everything is working perfectly. Amazing!

Thank you for your help,
Igor

Rainer Thaden pravi:
Hi,
I only have 1 more problem when running my test program. If I open a window that has some Qwt controls included and then close my whole program, then test program crashes (while closing). It says it is because of heap corruption. What could cause that? Did I forget to do something?
Do you use a debug Qwt version with a release Qt version or vice versa? Regards, Rainer ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ qwt-interest mailing list qwt-interest <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qwt-interest

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qwt-interest mailing list
qwt-interest <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qwt-interest

Gmane