Subject: CGAL users discussion list
List archive
- From: Michael Jeulin-L <>
- To:
- Subject: Re: [cgal-discuss] CGAL + Visual Studio 2k8 Pro : Lib Error
- Date: Wed, 09 Dec 2009 14:37:55 +0200
Michael Jeulin-L wrote:
Laurent Saboret wrote:Hi,
For both, compiling QGLViewer and my application I directly use VS2k8-Pro.
Michael Jeulin-L wrote:
Laurent Saboret wrote:Michael,
Debug,
Michael Jeulin-L wrote:
Laurent Saboret wrote:No, pspapi.lib is required by CGAL only.
Hi Michael,No, I meant that I use the .pro to compile QGLViewer (.lib).
Try to add
LIBS += pspapi.lib
to your .pro file.
Regards,
Laurent S.
Michael Jeulin-L wrote:
No, actually I`m directly using the .pro like they advice to do on the website ^^).
I`ll try differently.
Laurent Saboret wrote:
Are you using CMake?
Laurent
Michael Jeulin-L wrote:
Laurent Saboret wrote:
Hi,Hi,
You need pspapi.lib and QGLViewer libraries.
Best regards,
Laurent Saboret
Michael Jeulin-L wrote:
Hi,
after lots of works to change development platform, I met 2 linkage problems
that I don`t understand and with which I don`t succeed to resolve :
error LNK2019: symbole externe non résolu _GetProcessMemoryInfo@12
référencé dans la fonction "private: unsigned int __thiscall
CGAL::Memory_sizer::get(bool)const " (?get@Memory_sizer@CGAL@@ABEI_N@Z)
error LNK2001: symbole externe non résolu _GetProcessMemoryInfo@12
error LNK2019: symbole externe non résolu "__declspec(dllimport) public:
__thiscall QGLViewer::QGLViewer(class QWidget *,char const *,class QGLWidget
const *,class QFlags<enum Qt::WindowType>)"
(__imp_??0QGLViewer@@QAE@PAVQWidget@@PBDPBVQGLWidget@@V?$QFlags@W4WindowType@Qt@@@@@Z)
référencé dans la fonction "public: __thiscall GLViewer::GLViewer(class
QWidget *)"
(??0GLViewer@@QAE@PAVQWidget@@@Z)
Does someone already see this kind of error, could someone help me to resolve
this problem ?
Thank you very much.
Regards.
Michael Jeulin-L.
I already have the QGLViewer libraries and include QGLviewer2.lib (without this one I have of course a lots more of unresolved symbols) - So the error may come from a bad compilation of this one ? -
Concerning psapi.lib, could you just let me know how do you know that please, cause I didn`t find this information with looking for "GetProcessMemoryInfo@12 " on the net.
Thank You Very much, I just still have to see about the QGLViewer depedencie.
Best Regards.
Ce courrier électronique et toutes les pièces éventuellement jointes qu’il contient sont CONFIDENTIELS et destinés exclusivement à l’usage de leur destinataire. Si une erreur de transmission ou une adresse erronée a mal dirigée ce courrier, merci d’en informer l’expéditeur en lui faisant une réponse par courrier électronique dès réception. Si vous n’êtes pas le destinataire de ce courrier, vous ne devez pas l’utiliser, le conserver, en faire état, le distribuer, le copier, l’imprimer ou en révéler le contenu à une tierce partie.
Ce courrier électronique est à usage strictement informatif et ne saurait engager de quelque manière que ce soit INFOTERRA France SAS, ni ses filiales.
This e-mail and any attachments hereto are CONFIDENTIAL and intended solely for the use of the addressee. If you have received this e-mail in error please send it back to the person that sent it to you.
If you have received it in error, please notify the sender by return email. If you are not the addressee of this email, you must not use, keep, disseminate, copy, print or otherwise deal with it.
This email is for information only and will not bind INFOTERRA France SAS in any contract or obligation, nor its subsidiaries.
To compile my project I`m just using msvc-2008 and with including psapi.lib directly into the project .
No I just have the following error :
error LNK2019: symbole externe non résolu "__declspec(dllimport) public:
__thiscall QGLViewer::QGLViewer(class QWidget *,char const *,class QGLWidget
const *,class QFlags<enum Qt::WindowType>)"
(__imp_??0QGLViewer@@QAE@PAVQWidget@@PBDPBVQGLWidget@@V?$QFlags@W4WindowType@Qt@@@@@Z)
référencé dans la fonction "public: __thiscall GLViewer::GLViewer(class QWidget *)" (??0GLViewer@@QAE@PAVQWidget@@@Z)
SO, I think that`s a problem in the compilation of QGLViewer.
Did you mean that I have to include psapi into the .pro of QGLViewer ?
Regards.
If I remember correctly, QGLViewer is compiled in release mode only out of the box. Are you trying to compile your application in Debug or Release mode?
Regards,
Laurent S.
Ce courrier électronique et toutes les pièces éventuellement jointes qu’il contient sont CONFIDENTIELS et destinés exclusivement à l’usage de leur destinataire. Si une erreur de transmission ou une adresse erronée a mal dirigée ce courrier, merci d’en informer l’expéditeur en lui faisant une réponse par courrier électronique dès réception. Si vous n’êtes pas le destinataire de ce courrier, vous ne devez pas l’utiliser, le conserver, en faire état, le distribuer, le copier, l’imprimer ou en révéler le contenu à une tierce partie.
Ce courrier électronique est à usage strictement informatif et ne saurait engager de quelque manière que ce soit INFOTERRA France SAS, ni ses filiales.
This e-mail and any attachments hereto are CONFIDENTIAL and intended solely for the use of the addressee. If you have received this e-mail in error please send it back to the person that sent it to you.
If you have received it in error, please notify the sender by return email. If you are not the addressee of this email, you must not use, keep, disseminate, copy, print or otherwise deal with it.
This email is for information only and will not bind INFOTERRA France SAS in any contract or obligation, nor its subsidiaries.
But I have compil QGLViewer in debug mode too.--
Could I miss a lib from visual for the dynamique loading ?
I think that it comes from the QGLViewer config.h file :
// Win 32 DLL export macros
#ifdef Q_OS_WIN32
# ifndef M_PI
# define M_PI 3.14159265358979323846f
# endif
# ifndef QGLVIEWER_STATIC
# ifdef CREATE_QGLVIEWER_DLL
# define QGLVIEWER_EXPORT __declspec(dllexport)
# else
# define QGLVIEWER_EXPORT __declspec(dllimport)
# endif
# endif
# ifndef __MINGW32__
# pragma warning( disable : 4251 ) // DLL interface, needed with Visual 6
# pragma warning( disable : 4786 ) // identifier truncated to 255 in browser information (Visual 6).
# endif
#endif // Q_OS_WIN32
...
With most of the thread I have been reading It could be a problem from the configuration of my project in visual : but still have no idea about what .
Thank you very much.
Regards.
Did you create your application's makefile with CMake or directly in Visual Studio?
If you used CMake, please run again cmake or cmake-gui in your application's folder and check that CMake finds QGLViewer.
You may specify QGLViewer location in the %QGLVIEWERROOT% environment variable.
The release library should be named libQGLViewer2.lib, the debug one libdQGLViewer2.lib.
If you created directly a Visual Studio project, please add libQGLViewer2.lib in the project properties for the release target and libdQGLViewer2.lib for the debug target.
Regards,
Laurent S.
Ce courrier électronique et toutes les pièces éventuellement jointes qu’il contient sont CONFIDENTIELS et destinés exclusivement à l’usage de leur destinataire. Si une erreur de transmission ou une adresse erronée a mal dirigée ce courrier, merci d’en informer l’expéditeur en lui faisant une réponse par courrier électronique dès réception. Si vous n’êtes pas le destinataire de ce courrier, vous ne devez pas l’utiliser, le conserver, en faire état, le distribuer, le copier, l’imprimer ou en révéler le contenu à une tierce partie.
Ce courrier électronique est à usage strictement informatif et ne saurait engager de quelque manière que ce soit INFOTERRA France SAS, ni ses filiales.
This e-mail and any attachments hereto are CONFIDENTIAL and intended solely for the use of the addressee. If you have received this e-mail in error please send it back to the person that sent it to you.
If you have received it in error, please notify the sender by return email. If you are not the addressee of this email, you must not use, keep, disseminate, copy, print or otherwise deal with it.
This email is for information only and will not bind INFOTERRA France SAS in any contract or obligation, nor its subsidiaries.
I compile my project in debug mode and the dQGLViewer2.lib is already linked well with my project.
That`s my miss understand, and why I`m looking around my project or dependencies to find the problem.
Thank you very much for your answers.
Best Regards.
I finally have resolved my problem with the QGLViewer Library.
The problem was from the support of QT3 and the definition of function in QGLViewer.
Here is the definition which has been caused my problem :
[code]#if QT_VERSION < 0x040000 || defined QT3_SUPPORT
explicit QGLViewer(QWidget* parent=NULL, const char* name=0, const QGLWidget* shareWidget=0, Qt::WFlags flags=0)
: QGLWidget(parent, name, shareWidget, flags)
{ defaultConstructor(); }
explicit QGLViewer(const QGLFormat& format, QWidget* parent=0, const char* name=0, const QGLWidget* shareWidget=0,Qt::WFlags flags=0)
: QGLWidget(format, parent, name, shareWidget, flags)
{ defaultConstructor(); }
QGLViewer(QGLContext* context, QWidget* parent, const char* name=0, const QGLWidget* shareWidget=0, Qt::WFlags flags=0)
# if QT_VERSION >= 0x030200
: QGLWidget(context, parent, name, shareWidget, flags) {
# else
// MOC_SKIP_BEGIN
: QGLWidget(parent, name, shareWidget, flags) {
Q_UNUSED(context);
// MOC_SKIP_END
# endif
defaultConstructor(); }
#endif[/code]
So, I just commented the line which cause the unresolved symbol to avoid it.
Thank you very much for your previous answer - specially the psapi.lib which still came from nowhere in my mind.
Thank you very much Laurent Saboret.
Best Regards.
--
--------------------------------------------
Michael Jeulin-L, ComputaMaps
Private Bag X20, Constantia 7848, South Africa
tel: +27.21.700 8140, fax: +27.21.701 9520, cell: +27.72.8588181
e-mail:
Manufacturers of digital maps and imagery
http://www.computamaps.com
--------------------------------------------
- Re: [cgal-discuss] CGAL + Visual Studio 2k8 Pro : Lib Error, (continued)
- Re: [cgal-discuss] CGAL + Visual Studio 2k8 Pro : Lib Error, Laurent Saboret, 12/07/2009
- Re: [cgal-discuss] CGAL + Visual Studio 2k8 Pro : Lib Error, Michael Jeulin-L, 12/07/2009
- Re: [cgal-discuss] CGAL + Visual Studio 2k8 Pro : Lib Error, Laurent Saboret, 12/07/2009
- Re: [cgal-discuss] CGAL + Visual Studio 2k8 Pro : Lib Error, Michael Jeulin-L, 12/07/2009
- Re: [cgal-discuss] CGAL + Visual Studio 2k8 Pro : Lib Error, Laurent Saboret, 12/07/2009
- Re: [cgal-discuss] CGAL + Visual Studio 2k8 Pro : Lib Error, Michael Jeulin-L, 12/08/2009
- Re: [cgal-discuss] CGAL + Visual Studio 2k8 Pro : Lib Error, Laurent Saboret, 12/08/2009
- Re: [cgal-discuss] CGAL + Visual Studio 2k8 Pro : Lib Error, Michael Jeulin-L, 12/08/2009
- Re: [cgal-discuss] CGAL + Visual Studio 2k8 Pro : Lib Error, Laurent Saboret, 12/08/2009
- Re: [cgal-discuss] CGAL + Visual Studio 2k8 Pro : Lib Error, Michael Jeulin-L, 12/09/2009
- Re: [cgal-discuss] CGAL + Visual Studio 2k8 Pro : Lib Error, Michael Jeulin-L, 12/09/2009
- Re: [cgal-discuss] CGAL + Visual Studio 2k8 Pro : Lib Error, Michael Jeulin-L, 12/08/2009
- Re: [cgal-discuss] CGAL + Visual Studio 2k8 Pro : Lib Error, Laurent Saboret, 12/07/2009
- Re: [cgal-discuss] CGAL + Visual Studio 2k8 Pro : Lib Error, Michael Jeulin-L, 12/07/2009
- Re: [cgal-discuss] CGAL + Visual Studio 2k8 Pro : Lib Error, Laurent Saboret, 12/07/2009
- Re: [cgal-discuss] CGAL + Visual Studio 2k8 Pro : Lib Error, Michael Jeulin-L, 12/07/2009
- Re: [cgal-discuss] CGAL + Visual Studio 2k8 Pro : Lib Error, Laurent Saboret, 12/07/2009
Archive powered by MHonArc 2.6.16.