hopefully you can give me some advice how to deal with QwtPlot3D.
I've downloaded the *.zip-file and extracted it. Opened the *.pro-file from the root folder and tried to compilie this project. The compiler shows an error in the project so i searched in the net. I cheanged the line:
"win32:TEMPLATE = vclib" into "win32:TEMPLATE = lib" from the *.pro-file.
Now i've had only two errors left in the qwtplot3d_function.cpp. This line:
"fprintf(stderr,"Function: no valid Plot3D Widget assigned");" in "bool Function::create()" i've outlined.
Now the compiler shows no more warnings or errors and in the folder "/lib/" are two new files:
- "libqwtplot3d.a"
- "qwtplot3d.dll"
I navigated to the folder "/examples/simpleplot/" and opened up the *.pro-file. Now i tried to compile the project and there are again errors. Now the search again in the net - no success.
I tried it on my own with the method "try and error":
In the *.pro-file "common.pro" i commented out the line with "#" -> "# QMAKE_LFLAGS += /NODEFAULTLIB:msvcrt"
Changed the line: "TEMPLATE = vcapp" into "TEMPLATE = app"
Changed the line: "LIBS += ../../lib/qwtplot3d.lib" into "LIBS += ../../lib/libqwtplot3d.a"
And IT WORKED!
So for all who tried to run QwtPlot3D under new Qt Versions that's it.
Hopefully this thread can help others who have the same problems like me.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
hopefully you can give me some advice how to deal with QwtPlot3D.
I've downloaded the *.zip-file and extracted it. Opened the *.pro-file from the root folder and tried to compilie this project. The compiler shows an error in the project so i searched in the net. I cheanged the line:
"win32:TEMPLATE = vclib" into "win32:TEMPLATE = lib" from the *.pro-file.
Now i've had only two errors left in the qwtplot3d_function.cpp. This line:
"fprintf(stderr,"Function: no valid Plot3D Widget assigned");" in "bool Function::create()" i've outlined.
Now the compiler shows no more warnings or errors and in the folder "/lib/" are two new files:
- "libqwtplot3d.a"
- "qwtplot3d.dll"
I navigated to the folder "/examples/simpleplot/" and opened up the *.pro-file. Now i tried to compile the project and there are again errors. Now the search again in the net - no success.
I tried it on my own with the method "try and error":
In the *.pro-file "common.pro" i commented out the line with "#" -> "# QMAKE_LFLAGS += /NODEFAULTLIB:msvcrt"
Changed the line: "TEMPLATE = vcapp" into "TEMPLATE = app"
Changed the line: "LIBS += ../../lib/qwtplot3d.lib" into "LIBS += ../../lib/libqwtplot3d.a"
And IT WORKED!
So for all who tried to run QwtPlot3D under new Qt Versions that's it.
Hopefully this thread can help others who have the same problems like me.