An error in path but error is still here :
if(_list_element STREQUAL "-l${_list_element1}") set(_library_pathname "_library_pathname-NOTFOUND") find_library( _library_pathname ${_list_element1} PATHS ${_link_directory_list} "f:/lib/wxWidgets-3.1.0/lib" "F:/mingw-w64/x86_64-6.2.0-posix-sjlj-rt_v5-rev1/mingw64/x86_64-w64-mingw32/lib" NO_DEFAULT_PATH ) and make clean and make gives make [ 1%] Building C object lib/csa/CMakeFiles/csirocsa.dir/csa.c.obj [ 3%] Linking C static library libcsirocsa.a [ 3%] Built target csirocsa [ 3%] Building C object lib/qsastime/CMakeFiles/deltaT-gen.dir/deltaT-gen.c.obj [ 4%] Building C object lib/qsastime/CMakeFiles/deltaT-gen.dir/dspline.c.obj [ 6%] Linking C executable deltaT-gen.exe [ 6%] Built target deltaT-gen [ 7%] Generating deltaT.h [ 7%] Built target deltaT.h_built [ 9%] Building C object lib/qsastime/CMakeFiles/tai-utc-gen.dir/tai-utc-gen.c.obj [ 9%] Linking C executable tai-utc-gen.exe [ 9%] Built target tai-utc-gen [ 10%] Generating tai-utc.h [ 10%] Built target tai-utc.h_built Scanning dependencies of target qsastime [ 12%] Building C object lib/qsastime/CMakeFiles/qsastime.dir/qsastime.c.obj [ 13%] Building C object lib/qsastime/CMakeFiles/qsastime.dir/dsplint.c.obj [ 15%] Linking C static library libqsastime.a [ 15%] Built target qsastime [ 15%] Building C object include/CMakeFiles/plhershey-unicode-gen.dir/__/fonts/plhershey-unicode-gen.c.obj [ 16%] Linking C executable plhershey-unicode-gen.exe [ 16%] Built target plhershey-unicode-gen [ 18%] Generating plhershey-unicode.h [ 18%] Built target plhershey-unicode.h_built Scanning dependencies of target plplot [ 19%] Building C object src/CMakeFiles/plplot.dir/pdfutils.c.obj [ 21%] Building C object src/CMakeFiles/plplot.dir/plmem.c.obj [ 21%] Building C object src/CMakeFiles/plplot.dir/plaffine.c.obj [ 22%] Building C object src/CMakeFiles/plplot.dir/plarc.c.obj [ 24%] Building C object src/CMakeFiles/plplot.dir/plargs.c.obj [ 25%] Building C object src/CMakeFiles/plplot.dir/plbox.c.obj [ 27%] Building C object src/CMakeFiles/plplot.dir/plcont.c.obj [ 28%] Building C object src/CMakeFiles/plplot.dir/plcore.c.obj [ 28%] Building C object src/CMakeFiles/plplot.dir/plctrl.c.obj [ 30%] Building C object src/CMakeFiles/plplot.dir/plcvt.c.obj [ 31%] Building C object src/CMakeFiles/plplot.dir/pldtik.c.obj [ 33%] Building C object src/CMakeFiles/plplot.dir/plf2ops.c.obj [ 34%] Building C object src/CMakeFiles/plplot.dir/plfill.c.obj [ 34%] Building C object src/CMakeFiles/plplot.dir/plfreetype.c.obj [ 36%] Building C object src/CMakeFiles/plplot.dir/plgradient.c.obj [ 37%] Building C object src/CMakeFiles/plplot.dir/plhist.c.obj [ 39%] Building C object src/CMakeFiles/plplot.dir/plimage.c.obj [ 40%] Building C object src/CMakeFiles/plplot.dir/plline.c.obj [ 40%] Building C object src/CMakeFiles/plplot.dir/plmetafile.c.obj [ 42%] Building C object src/CMakeFiles/plplot.dir/plot3d.c.obj [ 43%] Building C object src/CMakeFiles/plplot.dir/plpage.c.obj [ 45%] Building C object src/CMakeFiles/plplot.dir/plsdef.c.obj [ 46%] Building C object src/CMakeFiles/plplot.dir/plshade.c.obj [ 48%] Building C object src/CMakeFiles/plplot.dir/plstdio.c.obj [ 48%] Building C object src/CMakeFiles/plplot.dir/plstripc.c.obj [ 50%] Building C object src/CMakeFiles/plplot.dir/plsym.c.obj [ 51%] Building C object src/CMakeFiles/plplot.dir/pltick.c.obj [ 53%] Building C object src/CMakeFiles/plplot.dir/plvpor.c.obj [ 54%] Building C object src/CMakeFiles/plplot.dir/plwind.c.obj [ 54%] Building C object src/CMakeFiles/plplot.dir/plbuf.c.obj [ 56%] Building C object src/CMakeFiles/plplot.dir/plgridd.c.obj [ 57%] Building C object src/CMakeFiles/plplot.dir/plvect.c.obj [ 59%] Building C object src/CMakeFiles/plplot.dir/mt19937ar.c.obj [ 60%] Building C object src/CMakeFiles/plplot.dir/pltime.c.obj [ 60%] Building C object src/CMakeFiles/plplot.dir/pllegend.c.obj [ 62%] Building C object src/CMakeFiles/plplot.dir/plmap.c.obj [ 63%] Building C object src/CMakeFiles/plplot.dir/__/drivers/mem.c.obj [ 65%] Building C object src/CMakeFiles/plplot.dir/__/drivers/null.c.obj [ 66%] Building C object src/CMakeFiles/plplot.dir/__/drivers/ps.c.obj [ 68%] Building C object src/CMakeFiles/plplot.dir/__/drivers/svg.c.obj [ 68%] Building C object src/CMakeFiles/plplot.dir/__/drivers/wingcc.c.obj [ 69%] Building CXX object src/CMakeFiles/plplot.dir/__/drivers/wxwidgets.cpp.obj [ 71%] Building CXX object src/CMakeFiles/plplot.dir/__/drivers/wxwidgets_comms.cpp.obj In file included from F:/mingw-w64/x86_64-6.2.0-posix-sjlj-rt_v5-rev1/mingw64/x86_64-w64-mingw32/include/Windows.h:72:0, from G:/Lib/plplot/drivers/wxwidgets_comms.h:25, from G:/Lib/plplot/drivers/wxwidgets_comms.cpp:20: F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h: In function 'HWND__* CreateDialog(HINSTANCE, LPCTSTR, HWND, DLGPROC)': F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h:38:20: error: cannot convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' for argument '2' to 'HWND__* CreateDialogParamW(HINSTANCE, LPCWSTR, HWND, DLGPROC, LPARAM)' return CreateDialogW(hInstance, pTemplate, hwndParent, pDlgProc); ^ In file included from F:/lib/wxWidgets-3.1.0/include/wx/defs.h:3302:0, from F:/lib/wxWidgets-3.1.0/include/wx/font.h:18, from G:/Lib/plplot/drivers/wxwidgets_comms.h:34, from G:/Lib/plplot/drivers/wxwidgets_comms.cpp:20: F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h: In function 'HFONT__* CreateFont(int, int, int, int, int, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, LPCTSTR)': F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h:69:48: error: cannot convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' for argument '14' to 'HFONT__* CreateFontW(int, int, int, int, int, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, LPCWSTR)' family, facename); ^ In file included from F:/mingw-w64/x86_64-6.2.0-posix-sjlj-rt_v5-rev1/mingw64/x86_64-w64-mingw32/include/Windows.h:72:0, from G:/Lib/plplot/drivers/wxwidgets_comms.h:25, from G:/Lib/plplot/drivers/wxwidgets_comms.cpp:20: F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h: In function 'HWND__* CreateWindow(LPCTSTR, LPCTSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID)': F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h:94:20: error: cannot convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' for argument '2' to 'HWND__* CreateWindowExW(DWORD, LPCWSTR, LPCWSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID)' return CreateWindowW(lpClassName, lpWndClass, dwStyle, x, y, w, h, ^ In file included from F:/lib/wxWidgets-3.1.0/include/wx/defs.h:3302:0, from F:/lib/wxWidgets-3.1.0/include/wx/font.h:18, from G:/Lib/plplot/drivers/wxwidgets_comms.h:34, from G:/Lib/plplot/drivers/wxwidgets_comms.cpp:20: F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h: In function 'HMENU__* LoadMenu(HINSTANCE, LPCTSTR)': F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h:111:44: error: cannot convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' for argument '2' to 'HMENU__* LoadMenuW(HINSTANCE, LPCWSTR)' return LoadMenuW(instance, name); ^ F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h: In function 'HWND__* FindText(LPFINDREPLACE)': F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h:126:43: error: cannot convert 'LPFINDREPLACE {aka tagFINDREPLACEA*}' to 'LPFINDREPLACEW {aka tagFINDREPLACEW*}' for argument '1' to 'HWND__* FindTextW(LPFINDREPLACEW)' return FindTextW(lpfindreplace); ^ F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h: In function 'HICON__* LoadIcon(HINSTANCE, LPCTSTR)': F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h:311:51: error: cannot convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' for argument '2' to 'HICON__* LoadIconW(HINSTANCE, LPCWSTR)' return LoadIconW(hInstance, lpIconName); ^ F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h: In function 'HBITMAP__* LoadBitmap(HINSTANCE, LPCTSTR)': F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h:324:55: error: cannot convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' for argument '2' to 'HBITMAP__* LoadBitmapW(HINSTANCE, LPCWSTR)' return LoadBitmapW(hInstance, lpBitmapName); ^ make[2]: *** [src/CMakeFiles/plplot.dir/build.make:1114: src/CMakeFiles/plplot.dir/__/drivers/wxwidgets_comms.cpp.obj] Error 1 make[1]: *** [CMakeFiles/Makefile2:546: src/CMakeFiles/plplot.dir/all] Error 2 make: *** [Makefile:150: all] Error 2 Le 10/12/2016 à 15:58, Laurent Berger a écrit : > Hi phil, > > Thanks for your answer. > > I have try to solve problem in a bad way : > > I have changed some lines in pkg-config.cmake : line298--305 are now : > > if(_list_element STREQUAL "-l${_list_element1}") > set(_library_pathname "_library_pathname-NOTFOUND") > find_library( > _library_pathname > ${_list_element1} > PATHS ${_link_directory_list} "f:/lib/wxWidgets-3.1.0/lib" > "F:/mingw-w64/x86_64-6.2.0-posix-sjlj-rt_v5-rev1/mingw64/x86_64-w64-mingw32/lib32" > NO_DEFAULT_PATH > ) > > > I can start build plplot using MSYS-mingw64. Now I have some compilation > errors and try to understand it.... > > $ make > [ 3%] Built target csirocsa > [ 6%] Built target deltaT-gen > [ 7%] Built target deltaT.h_built > [ 9%] Built target tai-utc-gen > [ 10%] Built target tai-utc.h_built > [ 15%] Built target qsastime > [ 16%] Built target plhershey-unicode-gen > [ 18%] Built target plhershey-unicode.h_built > [ 19%] Building CXX object > src/CMakeFiles/plplot.dir/__/drivers/wxwidgets_comms.cpp.obj > In file included from > F:/mingw-w64/x86_64-6.2.0-posix-sjlj-rt_v5-rev1/mingw64/x86_64-w64-mingw32/include/Windows.h:72:0, > from G:/Lib/plplot/drivers/wxwidgets_comms.h:25, > from G:/Lib/plplot/drivers/wxwidgets_comms.cpp:20: > F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h: In function 'HWND__* > CreateDialog(HINSTANCE, LPCTSTR, HWND, DLGPROC)': > F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h:38:20: error: cannot > convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' > for argument '2' to 'HWND__* CreateDialogParamW(HINSTANCE, LPCWSTR, > HWND, DLGPROC, LPARAM)' > return CreateDialogW(hInstance, pTemplate, hwndParent, > pDlgProc); > ^ > In file included from F:/lib/wxWidgets-3.1.0/include/wx/defs.h:3302:0, > from F:/lib/wxWidgets-3.1.0/include/wx/font.h:18, > from G:/Lib/plplot/drivers/wxwidgets_comms.h:34, > from G:/Lib/plplot/drivers/wxwidgets_comms.cpp:20: > F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h: In function 'HFONT__* > CreateFont(int, int, int, int, int, DWORD, DWORD, DWORD, DWORD, DWORD, > DWORD, DWORD, DWORD, LPCTSTR)': > F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h:69:48: error: cannot > convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' > for argument '14' to 'HFONT__* CreateFontW(int, int, int, int, int, > DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, LPCWSTR)' > family, facename); > ^ > In file included from > F:/mingw-w64/x86_64-6.2.0-posix-sjlj-rt_v5-rev1/mingw64/x86_64-w64-mingw32/include/Windows.h:72:0, > from G:/Lib/plplot/drivers/wxwidgets_comms.h:25, > from G:/Lib/plplot/drivers/wxwidgets_comms.cpp:20: > F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h: In function 'HWND__* > CreateWindow(LPCTSTR, LPCTSTR, DWORD, int, int, int, int, HWND, HMENU, > HINSTANCE, LPVOID)': > F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h:94:20: error: cannot > convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' > for argument '2' to 'HWND__* CreateWindowExW(DWORD, LPCWSTR, LPCWSTR, > DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID)' > return CreateWindowW(lpClassName, lpWndClass, dwStyle, x, > y, w, h, > ^ > In file included from F:/lib/wxWidgets-3.1.0/include/wx/defs.h:3302:0, > from F:/lib/wxWidgets-3.1.0/include/wx/font.h:18, > from G:/Lib/plplot/drivers/wxwidgets_comms.h:34, > from G:/Lib/plplot/drivers/wxwidgets_comms.cpp:20: > F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h: In function 'HMENU__* > LoadMenu(HINSTANCE, LPCTSTR)': > F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h:111:44: error: cannot > convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' > for argument '2' to 'HMENU__* LoadMenuW(HINSTANCE, LPCWSTR)' > return LoadMenuW(instance, name); > ^ > F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h: In function 'HWND__* > FindText(LPFINDREPLACE)': > F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h:126:43: error: cannot > convert 'LPFINDREPLACE {aka tagFINDREPLACEA*}' to 'LPFINDREPLACEW {aka > tagFINDREPLACEW*}' for argument '1' to 'HWND__* FindTextW(LPFINDREPLACEW)' > return FindTextW(lpfindreplace); > ^ > F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h: In function 'HICON__* > LoadIcon(HINSTANCE, LPCTSTR)': > F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h:311:51: error: cannot > convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' > for argument '2' to 'HICON__* LoadIconW(HINSTANCE, LPCWSTR)' > return LoadIconW(hInstance, lpIconName); > ^ > F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h: In function > 'HBITMAP__* LoadBitmap(HINSTANCE, LPCTSTR)': > F:/lib/wxWidgets-3.1.0/include/wx/msw/winundef.h:324:55: error: cannot > convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' > for argument '2' to 'HBITMAP__* LoadBitmapW(HINSTANCE, LPCWSTR)' > return LoadBitmapW(hInstance, lpBitmapName); > ^ > make[2]: *** [src/CMakeFiles/plplot.dir/build.make:1114: > src/CMakeFiles/plplot.dir/__/drivers/wxwidgets_comms.cpp.obj] Error 1 > make[1]: *** [CMakeFiles/Makefile2:546: src/CMakeFiles/plplot.dir/all] > Error 2 > make: *** [Makefile:150: all] Error 2 > > > > > > Le 10/12/2016 à 02:11, Phil Rosenberg a écrit : >> I'm sorry Laurent, but I think I am the main Windows user on the list >> and I have absolutely no experience with MSys. >> >> However, I believe we have now returned to the CMake default wxWidgets >> find module. Alan, can you comment on this and whether this looks like >> a bug in that module or a bug in our build system? >> >> On 8 December 2016 at 16:37, Laurent Berger >> <laurent.ber...@univ-lemans.fr> wrote: >>> Hi, >>> >>> I want to buil plplot in static using MSYS makefiles on windows 10. >>> >>> In cmake GUI i have got an error that I cannot understand. wxWidgets is >>> found but there is cmake_link_flags WARNING. >>> >>> Any help would be appreciate. >>> >>> CMake version = 3.7.0-rc2 >>> >>> CMAKE_SYSTEM_NAME = Windows >>> >>> SH_EXECUTABLE = C:/Windows/System32/bash.exe.... >>> >>> Looking for gdi32 header and library >>> >>> Looking for gdi32 header and library - found >>> >>> wxWidgets_FOUND : TRUE >>> >>> wxWidgets_INCLUDE_DIRS : >>> F:/lib/wxWidgets-3.1.0/lib/wx/include/msw-unicode-static-3.1;F:/lib/wxWidgets-3.1.0/include >>> >>> wxWidgets_LIBRARY_DIRS : /f/lib/wxWidgets-3.1.0/lib >>> >>> wxWidgets_LIBRARIES : >>> -L/f/lib/wxWidgets-3.1.0/lib;;;-Wl,--subsystem,windows;-mwindows;/f/lib/wxWidgets-3.1.0/lib/libwx_mswu_core-3.1.a;/f/lib/wxWidgets-3.1.0/lib/libwx_baseu-3.1.a;-lwxregexu-3.1;-lwxexpat-3.1;-lwxtiff-3.1;-lwxjpeg-3.1;-lwxpng-3.1;-lz;-lrpcrt4;-loleaut32;-lole32;-luuid;-lwinspool;-lwinmm;-lshell32;-lshlwapi;-lcomctl32;-lcomdlg32;-ladvapi32;-lversion;-lwsock32;-lgdi32 >>> >>> wxWidgets_CXX_FLAGS : -I/f/lib/wxWidgets-3.1.0/include >>> >>> wxWidgets_USE_FILE : UsewxWidgets >>> >>> cmake_link_flags WARNING: (original link flags) = >>> -L/f/lib/wxWidgets-3.1.0/lib;;;-Wl,--subsystem,windows;-mwindows;/f/lib/wxWidgets-3.1.0/lib/libwx_mswu_core-3.1.a;/f/lib/wxWidgets-3.1.0/lib/libwx_baseu-3.1.a;-lwxregexu-3.1;-lwxexpat-3.1;-lwxtiff-3.1;-lwxjpeg-3.1;-lwxpng-3.1;-lz;-lrpcrt4;-loleaut32;-lole32;-luuid;-lwinspool;-lwinmm;-lshell32;-lshlwapi;-lcomctl32;-lcomdlg32;-ladvapi32;-lversion;-lwsock32;-lgdi32 >>> >>> cmake_link_flags WARNING: wxwidgets_LINK_FLAGS = >>> -Wl,--subsystem,windows;-mwindows;/f/lib/wxWidgets-3.1.0/lib/libwx_mswu_core-3.1.a;/f/lib/wxWidgets-3.1.0/lib/libwx_baseu-3.1.a;_library_pathname-NOTFOUND;_library_pathname-NOTFOUND;_library_pathname-NOTFOUND;_library_pathname-NOTFOUND;_library_pathname-NOTFOUND;F:/mingw-w64/Strawberry/c/lib/libz.a;C:/Windows/System32/rpcrt4.dll;C:/Windows/System32/oleaut32.dll;C:/Windows/System32/ole32.dll;_library_pathname-NOTFOUND;_library_pathname-NOTFOUND;C:/Windows/System32/winmm.dll;C:/Windows/System32/shell32.dll;C:/Windows/System32/shlwapi.dll;C:/Windows/System32/comctl32.dll;C:/Windows/System32/comdlg32.dll;C:/Windows/System32/advapi32.dll;C:/Windows/System32/version.dll;C:/Windows/System32/wsock32.dll;C:/Windows/System32/gdi32.dll >>> >>> cmake_link_flags WARNING: wxwidgets_LINK_FLAGS is invalid so it is set to >>> nothing to signal the failure of cmake_link_flags for the original link >>> flags printed out above. >>> >>> WARNING: wxWidgets or its libraries not found so setting all wxwidgets >>> devices to OFF. >>> >>> WARNING: ENABLE_wxwidgets is OFF so setting all wxwidgets devices to OFF. >>> >>> >>> ------------------------------------------------------------------------------ >>> Developer Access Program for Intel Xeon Phi Processors >>> Access to Intel Xeon Phi processor-based developer platforms. >>> With one year of Intel Parallel Studio XE. >>> Training and support from Colfax. >>> Order your platform today.http://sdm.link/xeonphi >>> _______________________________________________ >>> Plplot-devel mailing list >>> Plplot-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/plplot-devel >>> > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today.http://sdm.link/xeonphi > _______________________________________________ > Plplot-devel mailing list > Plplot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/plplot-devel ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today.http://sdm.link/xeonphi _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel