Re: [Plplot-devel] build plplot using CMAKE using MSYS makefiles on windows 10

2016-12-15 Thread Greg Jung
So I found a reference to the discussion about the unicode patching in wx:
https://groups.google.com/forum/#!topic/wx-dev/MTYzgOqLdfU

And here is discussion on including the replacement file in MSYS2:

https://github.com/Alexpux/MINGW-packages/pull/727

On Thu, Dec 15, 2016 at 2:40 PM, Greg Jung  wrote:

>
>
> On Tue, Dec 13, 2016 at 2:13 AM, Laurent Berger <
> laurent.ber...@univ-lemans.fr> wrote:
>
>> Thanks Greg,
>>
>> with your patch linking problem is solved. Can you post an answer in this
>> question https://forums.wxwidgets.org/viewtopic.php?f=19&t=42882&p=17
>> 4262#p174262
>>
>>
>> https://github.com/maynardGK/wxWidgets/commit/
> cb28fe5c5c49be4467a5d044f6fa4f7885972931
>
> I first submitted the patch in github around jul 30, 2015 and it went to a
> discussion somewhere in the bowels of the wxwidgets,  where after several
> back-and-forth about what the issue was, the wx guy decided it was
> "worthwhile"
> to consider a fix of somesort - or maybe he just wanted to leave that
> impression so I would stop replying.  I also suggested it be included in
> the MSYS2 repo mash-up but since it was no one else's problem, evidently
> not worthy.
> So providing me another example of the fuitility of propogating patches
> into a well-worn package.
>
>> Now there is still a problem in cmake process because I have to modify
>> file 
>> plplot\buildmingw64\examples\c++\CMakeFiles\wxPLplotDemo.dir\linklibs.rsp
>> to link wxPlplotDemo
>>
>> in this file I have changed all  /f/lib/wxWidgets-3.1.0 in
>> f:/lib/wxWidgets-3.1.0. May be it is not a bug in plot cmake but in cmake.
>>
>>
>> Yes the references in the .rsp file are in native format for me because I
> have edited the wxconfig file as follows:
>
>> # Determine the base directories we require.
>>
>> prefix=${input_option_prefix-${this_prefix:-/mingw32}}
>>
>> if [ "x${MSYSTEM}" = "xMINGW32" ] || [ "x${MSYSTEM}" = "xMINGW64" ]; then
>>
>> prefix=$(cygpath -m ${prefix})
>>
>> fi
>>
>> exec_prefix=${input_option_exec_prefix-${input_option_
>>> prefix-${this_exec_prefix:-${prefix
>>
>> wxconfdir="${exec_prefix}/lib/wx/config"
>>
>>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] build plplot using CMAKE using MSYS makefiles on windows 10

2016-12-15 Thread Greg Jung
On Tue, Dec 13, 2016 at 2:13 AM, Laurent Berger <
laurent.ber...@univ-lemans.fr> wrote:

> Thanks Greg,
>
> with your patch linking problem is solved. Can you post an answer in this
> question https://forums.wxwidgets.org/viewtopic.php?f=19&t=42882&p=
> 174262#p174262
>
>
>
https://github.com/maynardGK/wxWidgets/commit/cb28fe5c5c49be4467a5d044f6fa4f7885972931

I first submitted the patch in github around jul 30, 2015 and it went to a
discussion somewhere in the bowels of the wxwidgets,  where after several
back-and-forth about what the issue was, the wx guy decided it was
"worthwhile"
to consider a fix of somesort - or maybe he just wanted to leave that
impression so I would stop replying.  I also suggested it be included in
the MSYS2 repo mash-up but since it was no one else's problem, evidently
not worthy.
So providing me another example of the fuitility of propogating patches
into a well-worn package.

> Now there is still a problem in cmake process because I have to modify
> file plplot\buildmingw64\examples\c++\CMakeFiles\wxPLplotDemo.dir\linklibs.rsp
> to link wxPlplotDemo
>
> in this file I have changed all  /f/lib/wxWidgets-3.1.0 in
> f:/lib/wxWidgets-3.1.0. May be it is not a bug in plot cmake but in cmake.
>
>
> Yes the references in the .rsp file are in native format for me because I
have edited the wxconfig file as follows:

> # Determine the base directories we require.
>
> prefix=${input_option_prefix-${this_prefix:-/mingw32}}
>
> if [ "x${MSYSTEM}" = "xMINGW32" ] || [ "x${MSYSTEM}" = "xMINGW64" ]; then
>
> prefix=$(cygpath -m ${prefix})
>
> fi
>
>
>> exec_prefix=${input_option_exec_prefix-${input_option_prefix-${this_exec_prefix:-${prefix
>
> wxconfdir="${exec_prefix}/lib/wx/config"
>
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] build plplot using CMAKE using MSYS makefiles on windows 10

2016-12-13 Thread Alan W. Irwin
On 2016-12-11 02:23-0800 Alan W. Irwin wrote:

> @Laurent:
>
> My apologies for not answering sooner but I was otherwise occupied with
> other issues currently being discussed on the PLplot devel list.
>
> The short explanation of the message you were getting is that our build
> system gets a list of libraries from the official find module.  Some of
> those are actual locations, and some are in the -L...-l... form.  So we
> transform the latter to actual location by looking for the library
> using the find_library command, and for some reason some of those
> could not be found.  The cure for this is to identify the libraries
> that were not found from comparing the old and transformed lists, then
> installing the relevant libraries or adjust environment variables
> such as PATH and/or CMAKE_LIBRARY_PATH to help CMake find the
> relevant libraries.
>
> I must say, however, that the comparison of the two lists given to you
> is a far less than optimal way to find what libraries could not be
> found so I plan in the next few days to update that part of our build
> system to make this WARNING message a lot clearer.

DONE as of commit 8566ee8.  Look at that commit message to see an
example of the new format for this set of warning messages.

Alan
__
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__

Linux-powered Science
__

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] build plplot using CMAKE using MSYS makefiles on windows 10

2016-12-13 Thread Laurent Berger

Thanks Greg,

with your patch linking problem is solved. Can you post an answer in 
this question 
https://forums.wxwidgets.org/viewtopic.php?f=19&t=42882&p=174262#p174262



Now there is still a problem in cmake process because I have to modify 
file 
plplot\buildmingw64\examples\c++\CMakeFiles\wxPLplotDemo.dir\linklibs.rsp 
to link wxPlplotDemo


in this file I have changed all  /f/lib/wxWidgets-3.1.0 in 
f:/lib/wxWidgets-3.1.0. May be it is not a bug in plot cmake but in cmake.



I can execute wxPlplotDemo.




Le 13/12/2016 à 07:18, Greg Jung a écrit :
I recognize one aspect of your problems in that winundef.h is 
imperfectly written and will fail in the case
of using the unicode wxwidgets without explicitly already being 
unicode through-and-through - which is what winundef tries to do. 
Attached is a fixed version of that file from wx-3.0/wx/msw/ - I 
haven't gone to 3.1 yet, it is probably the same for that.

Greg

On Sat, Dec 10, 2016 at 6:58 AM, Laurent Berger 
mailto:laurent.ber...@univ-lemans.fr>> 
wrote:


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/w

Re: [Plplot-devel] build plplot using CMAKE using MSYS makefiles on windows 10

2016-12-12 Thread Greg Jung
I recognize one aspect of your problems in that winundef.h is imperfectly
written and will fail in the case
of using the unicode wxwidgets without explicitly already being unicode
through-and-through - which is what winundef tries to do. Attached is a
fixed version of that file from wx-3.0/wx/msw/ - I haven't gone to 3.1 yet,
it is probably the same for that.
Greg

On Sat, Dec 10, 2016 at 6:58 AM, Laurent Berger <
laurent.ber...@univ-lemans.fr> wrote:

> 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)'
>   

Re: [Plplot-devel] build plplot using CMAKE using MSYS makefiles on windows 10

2016-12-12 Thread Phil Rosenberg
Hmm
And the fact that the wx libraries that were found have the suffix u,
suggests they were built with Unicode support. Perhaps the compile
issue you had was because plplot was not built with the Unicode flag
on. As I said instructions are on the wiki to do this for a visual
studio build at
https://sourceforge.net/p/plplot/wiki/Configure_PLplot_for_the_Visual_Studio_IDE/,
but I don't know how one would do it in MSYS. Perhaps setting the same
flags would do it.

Phil

On 11 December 2016 at 10:23, Alan W. Irwin  wrote:
> On 2016-12-10 01:11- Phil Rosenberg wrote:
>
>> 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?
>
>
> @ Phil and Laurent:
>
> Yes, we are using the absolutely latest official CMake wxWidgets find
> module that is heavily maintained by the CMake developers.  So I doubt
> there are any obvious bugs in that find module.
>
> @Laurent:
>
> My apologies for not answering sooner but I was otherwise occupied with
> other issues currently being discussed on the PLplot devel list.
>
> The short explanation of the message you were getting is that our build
> system gets a list of libraries from the official find module.  Some of
> those are actual locations, and some are in the -L...-l... form.  So we
> transform the latter to actual location by looking for the library
> using the find_library command, and for some reason some of those
> could not be found.  The cure for this is to identify the libraries
> that were not found from comparing the old and transformed lists, then
> installing the relevant libraries or adjust environment variables
> such as PATH and/or CMAKE_LIBRARY_PATH to help CMake find the
> relevant libraries.
>
> I must say, however, that the comparison of the two lists given to you
> is a far less than optimal way to find what libraries could not be
> found so I plan in the next few days to update that part of our build
> system to make this WARNING message a lot clearer.
>
> For now, though, you are stuck with correlating the following two
> lists (i.e., search for a NOTFOUND result on the second list and find
> from its position what -l form it corresponded to in the orignal list)
> to find what libraries are missing.
>
>>> 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
>
>
> To make the explanation simpler, let me break down both lists at the
> semicolons:
>
> That means original =
>
>
> -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
>
> Transformed = -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/

Re: [Plplot-devel] build plplot using CMAKE using MSYS makefiles on windows 10

2016-12-11 Thread Alan W. Irwin
On 2016-12-10 01:11- Phil Rosenberg wrote:

> 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?

@ Phil and Laurent:

Yes, we are using the absolutely latest official CMake wxWidgets find
module that is heavily maintained by the CMake developers.  So I doubt
there are any obvious bugs in that find module.

@Laurent:

My apologies for not answering sooner but I was otherwise occupied with
other issues currently being discussed on the PLplot devel list.

The short explanation of the message you were getting is that our build
system gets a list of libraries from the official find module.  Some of
those are actual locations, and some are in the -L...-l... form.  So we
transform the latter to actual location by looking for the library
using the find_library command, and for some reason some of those
could not be found.  The cure for this is to identify the libraries
that were not found from comparing the old and transformed lists, then
installing the relevant libraries or adjust environment variables
such as PATH and/or CMAKE_LIBRARY_PATH to help CMake find the
relevant libraries.

I must say, however, that the comparison of the two lists given to you
is a far less than optimal way to find what libraries could not be
found so I plan in the next few days to update that part of our build
system to make this WARNING message a lot clearer.

For now, though, you are stuck with correlating the following two
lists (i.e., search for a NOTFOUND result on the second list and find
from its position what -l form it corresponded to in the orignal list)
to find what libraries are missing.

>> 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

To make the explanation simpler, let me break down both lists at the
semicolons:

That means original =

-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

Transformed = 
-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

The empty list elements in the first list are simply ignored.  But
from the above broken down versions, I hope it is now clear that you
have to install (or help CMake find) the libraries corresponding to

-lwxregexu-3.1;
-lwxexpat-3.1;
-lwxtiff-3.1;
-lwxjpeg-3.1;
-lwxpng-3.1;

and
-luuid;
-lwinspool;

in the first list which ended up as _library_pathname-NOTFOUND; (i.e.,
the corresponding library from the first list could not be found) in
the transformed list.

Alan
__
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Pro

Re: [Plplot-devel] build plplot using CMAKE using MSYS makefiles on windows 10

2016-12-10 Thread Laurent Berger
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/w

Re: [Plplot-devel] build plplot using CMAKE using MSYS makefiles on windows 10

2016-12-10 Thread Laurent Berger
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/w

Re: [Plplot-devel] build plplot using CMAKE using MSYS makefiles on windows 10

2016-12-09 Thread Phil Rosenberg
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
 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


[Plplot-devel] build plplot using CMAKE using MSYS makefiles on windows 10

2016-12-08 Thread Laurent Berger

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