From: Arjen M. <Arj...@de...> - 2017-07-05 12:28:57
|
Hi Alan, > -----Original Message----- > From: Alan W. Irwin [mailto:ir...@be...] > Sent: Tuesday, July 04, 2017 11:08 PM > > I would advise concentrating on debugging the results of each relevant find > command (e.g., find_library, find_path, find_file, and possibly > find_program) within that code since there are relatively few such commands within > that find module logic, and it is pretty likely that find module is failing to find your > installation because one or more of those find commands is failing. > I have found the omission that caused wxWidgets not to be recognised. The libraries are stored in d:\wxWidgets\lib\vc120_dll and that was not a pattern that was checked (the existing patterns all have the architecture - 32 or 64 bits - included). So when I added a pattern consistent with the directory from my installation, CMake recognised the wxWidgets installation (no extra parameters required). However, the make step failed: cd D:\plplot-svn\build-windows-alt [ 20%] Linking CXX shared library ..\..\dll\plplotwxwidgets.dll cd D:\plplot-svn\build-windows-alt\bindings\wxwidgets D:\cmake3.8.0\bin\cmake.exe -E vs_link_dll --intdir=CMakeFiles\plplotwxwidgets.dir --manifests -- C:\PROGRA~2\MICROS~3.0\VC\bin\amd64\link.exe /nologo @CMakeFiles\plplotwxwidgets.dir\objects1.rsp @C:\Users\markus\AppData\Local\Temp\nm4431.tmp Visual Studio Incremental Link with embedded manifests Create CMakeFiles\plplotwxwidgets.dir/manifest.rc RC Pass 1: C:/Program Files (x86)/Windows Kits/8.1/bin/x64/rc.exe /foCMakeFiles\plplotwxwidgets.dir/manifest.res CMakeFiles\plplotwxwidgets.dir/manifest.rc LINK Pass 1: C:\PROGRA~2\MICROS~3.0\VC\bin\amd64\link.exe /nologo @CMakeFiles\plplotwxwidgets.dir\objects1.rsp /out:..\..\dll\plplotwxwidgets.dll /implib:..\..\dll\plplotwxwidgets.lib /pdb:D:\plplot-svn\build-windows-alt\dll\plplotwxwidgets.pdb /dll /version:1.2 /machine:x64 /debug /INCREMENTAL ..\..\dll\plplotcxx.lib D:\wxwidgets\lib\vc120_dll\wxbase30ud.lib D:\wxwidgets\lib\vc120_dll\wxmsw30ud_core.lib D:\wxwidgets\lib\vc120_dll\wxpngd.lib D:\wxwidgets\lib\vc120_dll\wxtiffd.lib D:\wxwidgets\lib\vc120_dll\wxjpegd.lib D:\wxwidgets\lib\vc120_dll\wxzlibd.lib D:\wxwidgets\lib\vc120_dll\wxregexud.lib D:\wxwidgets\lib\vc120_dll\wxexpatd.lib winmm.lib comctl32.lib oleacc.lib rpcrt4.lib shlwapi.lib version.lib wsock32.lib ..\..\dll\plplot.lib ..\..\dll\csirocsa.lib ..\..\dll\qsastime.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\plplotwxwidgets.dir/intermediate.manifest CMakeFiles\plplotwxwidgets.dir/manifest.res Creating library ..\..\dll\plplotwxwidgets.lib and object ..\..\dll\plplotwxwidgets.exp wxPLplotstream.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl wxString::~wxString(void)" (__imp_??1wxString@@QEAA@XZ) referenced in function "public: void * __cdecl wxString::`vector deleting destructor'(unsigned int)" (??_EwxString@@QEAAPEAXI@Z) wxPLplotstream.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl wxSize::wxSize(int,int)" (__imp_??0wxSize@@QEAA@HH@Z) referenced in function "public: void __cdecl wxPLplotstream::SetSize(int,int)" (?SetSize@wxPLplotstream@@QEAAXHH@Z) ..\..\dll\plplotwxwidgets.dll : fatal error LNK1120: 2 unresolved externals LINK Pass 1 failed. with 1120 NMAKE : fatal error U1077: 'D:\cmake3.8.0\bin\cmake.exe' : return code '0xffffffff' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\nmake.exe"' : return code '0x2' Stop. As far as I can tell, all the wxWidgets libraries are present, but I admit I did not make a thorough investigation into this. Regards, Arjen DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. |