Re: [Plplot-devel] How to use plplot in my own project?

2018-09-30 Thread Laurent Berger
In a small project https://github.com/LaurentBerger/AAPlus, I use this 
https://stackoverflow.com/questions/29971026/generator-expression-for-install-commands 




Le 29/09/2018 à 10:53, Phil Rosenberg a écrit :

Hi Laurent
Just a not about naming - I too expected a d suffix on the library
name to represent debug when I first started using plplot. There used
to be a cmake option to add a suffix to the name, but it is no longer
listed on https://sourceforge.net/p/plplot/wiki/CMake_options_for_PLplot/
- Alan do you know if it is still implemented and if so what it is?
There used to be a d suffix added to represent the fact that the
library was built with double precision floating point variables, but
I don't think this is the case any more.

I used to add the d suffix for debug builds, but in the end I stopped.
I came across too many libraries that didn't do it. I have a feeling
it is an inherently windows style thing (you only need debug libraries
if they are static rather than shared and Linux users never seem to
build static libraries), so many Linux-centric open source projects
don't do it. Maybe I'm wrong in saying this, it's only my thoughts.
Anyway, my solution was to install my debug libraries in a folder
specific to debug libraries. Almost every library has a way to specify
the install prefix. With plplot you can do this with the
-DCMAKE_LIBRARY_PATH or -DCMAKE_INSTALL_PREFIX

Whether you go for a prefix option or if a suffix is possible you will
need to run cmake twice, once for release and once for debug and once
for release by setting the -DCMAKE_CONFIGURATION_TYPES options to
"Debug" or "Release".

Phil
On Tue, 25 Sep 2018 at 22:08, Alan W. Irwin  wrote:

On 2018-09-25 22:05+0200 Laurent Berger wrote:


Hi,

I want to use plplot in my own project using cmake and I miss something. my
cmakelists.txt is see below and it works. But in include_directories cmake
command I must write :

include_directories(${plplot_DIR}/../../../include) and it is really weird.
what's variable name for include ?

[...]


CMakeLists.txt


[...]

find_package(plplot)

[...]

ADD_EXECUTABLE (${NomProjet} ${Projet_SRCS} )

[...]

if (plplot_FOUND)

 include_directories(${plplot_DIR}/../../../include)
 target_link_libraries( ${NomProjet} PUBLIC PLPLOT::plplotwxwidgets)
else (plplot_FOUND)
message( " PROBLEME" )
endif(plplot_FOUND)

Hi Laurent:

I have reviewed the redacted version above, and all seems well.  For
example, our installed examples are similarly built against the
installed version of PLplot, and what you have implemented above
follows that same method.  For example, you can see
"find_package(plplot)" (in the non-CORE_BUILD part of
examples/CMakeLists.txt), and a combination of add_executable,
include_directories (which refers to the installed location of PLplot
for the non-CORE_BUILD case just like you apparently have
implemented), and target_link_libraries in examples/c/CMakeLists.txt.

However, you were right to question that include_directories command
which is necessary now, but should not be necessary in future once I
set up the export of PLplot to handle compile options properly.  But
that implementation is a little tricky so although it is on my ToDo
list now, I am going to put it off until after the 5.14.0 release that
is coming soon.

Alan
__
Alan W. Irwin

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
__


___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


[Plplot-devel] How to use plplot in my own project?

2018-09-25 Thread Laurent Berger

Hi,

I want to use plplot in my own project using cmake and I miss something. 
my cmakelists.txt is see below and it works. But in include_directories 
cmake command I must write :


include_directories(${plplot_DIR}/../../../include) and it is really 
weird. what's variable name for include ?


Another strange behavior: in debug and release lib generated by cmake 
installation are the same plplot.lib  and it should be something like 
plplot.lib and plplotd.lib. I can find export_plplot-debug.cmake and 
export_plplot-release.cmake so i think it could be possible to add a d 
in export_plplot-debug.cmake for all libs



CMakeLists.txt

cmake_minimum_required(VERSION 3.0)

set(NomProjet examplePlplot)
PROJECT (${NomProjet})
find_package(OpenCV  REQUIRED)
find_package(wxWidgets COMPONENTS core base net adv aui html  qa 
richtext stc ribbon xml gl REQUIRED)

find_package(plplot)

file(GLOB Projet_SRCS
    "*.h"
    "*.cpp")

ADD_EXECUTABLE (${NomProjet} ${Projet_SRCS} )

if (wxWidgets_FOUND)
    include_directories(${wxWidgets_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS})
    target_link_libraries (${NomProjet} LINK_PUBLIC ${OpenCV_LIBS} 
${wxWidgets_LIBRARIES} )

endif (wxWidgets_FOUND)
if (plplot_FOUND)

    include_directories(${plplot_DIR}/../../../include)
    target_link_libraries( ${NomProjet} PUBLIC PLPLOT::plplotwxwidgets)
else (plplot_FOUND)
message( " PROBLEME" )
endif(plplot_FOUND)


SET(wxWidgets_DEFINITIONS WXUSINGDLL)
set_target_properties(${NomProjet} PROPERTIES  COMPILE_DEFINITIONS 
"${wxWidgets_DEFINITIONS};__WXMSW__;_CRT_SECURE_NO_WARNINGS")
set_target_properties(${NomProjet} PROPERTIES LINK_FLAGS_DEBUG 
"/SUBSYSTEM:CONSOLE")
set_target_properties(${NomProjet} PROPERTIES LINK_FLAGS_RELEASE 
"/SUBSYSTEM:CONSOLE")





Le 23/09/2018 à 12:12, Laurent Berger a écrit :

Hi,

https://sourceforge.net/p/plplot/plplot/ci/4a5f94a70ac259d696dfaa8117cead7ad89b13f3/ 
: It works thanks!



New file is now

// Headers needed for Rand
#ifdef _WIN32
// This include must occur before any other include of stdlib.h due to
// the #define _CRT_RAND_S
#define _CRT_RAND_S
#include 
#else
#include 
#endif

// wxwidgets headers
#include 
#include 
#include 
// PLplot headers
#include "plDevs.h"
#include "wxwidgets.h" // includes wx/wx.h


// std and driver headers
#include 
#include 


Le 23/09/2018 à 02:23, Alan W. Irwin a écrit :

On 2018-09-22 23:16+0100 Phil Rosenberg wrote:


Hi Laurent

I have implemented your first solution. If you could let me know that
things now work for you that would be great.


Hi Phil:

Although your question was addressed to Laurent, it should interest
you to know your fix causes no issues for Linux (i.e., building the
test_c_wxwidgets and test_wxPLplotDemo targets caused no obvious build
or run-time issues).

Alan
__
Alan W. Irwin

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
__




___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel




___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] Cannot compile plplot using VS 2017

2018-09-23 Thread Laurent Berger

Hi,

https://sourceforge.net/p/plplot/plplot/ci/4a5f94a70ac259d696dfaa8117cead7ad89b13f3/ 
: It works thanks!



New file is now

// Headers needed for Rand
#ifdef _WIN32
// This include must occur before any other include of stdlib.h due to
// the #define _CRT_RAND_S
#define _CRT_RAND_S
#include 
#else
#include 
#endif

// wxwidgets headers
#include 
#include 
#include 
// PLplot headers
#include "plDevs.h"
#include "wxwidgets.h" // includes wx/wx.h


// std and driver headers
#include 
#include 


Le 23/09/2018 à 02:23, Alan W. Irwin a écrit :

On 2018-09-22 23:16+0100 Phil Rosenberg wrote:


Hi Laurent

I have implemented your first solution. If you could let me know that
things now work for you that would be great.


Hi Phil:

Although your question was addressed to Laurent, it should interest
you to know your fix causes no issues for Linux (i.e., building the
test_c_wxwidgets and test_wxPLplotDemo targets caused no obvious build
or run-time issues).

Alan
__
Alan W. Irwin

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
__




___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] Cannot compile plplot using VS 2017

2018-09-22 Thread Laurent Berger

I tried  2 solutions :

FIRST solution

don't change wxwidgets_dev.cpp

and change include order in wxwidgets.h #include  after 
 and before  // plplot headers


then  $ git diff is
diff --git a/drivers/wxwidgets.h b/drivers/wxwidgets.h
index 884292d07..0818f357c 100644
--- a/drivers/wxwidgets.h
+++ b/drivers/wxwidgets.h
@@ -22,13 +22,14 @@

 #include 
 #include 
+#include 

 // plplot headers
 #include "plplotP.h"
 #include "wxwidgets_comms.h"

 // some special wxWidgets headers
-#include 
+//#include 
 #include 
 #include 

SECOND solution

add #include  in wxwidgets_dev.cpp at line 41

then $git diff is
diff --git a/drivers/wxwidgets_dev.cpp b/drivers/wxwidgets_dev.cpp
index 6351c6893..07089d83a 100644
--- a/drivers/wxwidgets_dev.cpp
+++ b/drivers/wxwidgets_dev.cpp
@@ -38,7 +38,7 @@
 #else
 #include 
 #endif
-
+#include 
 // PLplot headers
 #include "plDevs.h"
 #include "wxwidgets.h" // includes wx/wx.h



Le 22/09/2018 à 12:26, Phil Rosenberg a écrit :

Hi Laurent

Okay, well if your solution works, the I think we should add it in.

Could I please ask for you to check what the minimum list of headers
to be included needs to be? Would just adding wx/wx.h be sufficient or
do all those headers need to be added?

Phil

Phil
On Sat, 22 Sep 2018 at 10:24, Laurent Berger
 wrote:

Hi Phil, Alan,

I check everything this morning (local time) and I have got same errors.

I attached my cmakecache for plplot and cmakecache for wxwidgets

git diff

Laurent@PC-Laurent-Vision MINGW64 /g/lib/plplot (master)
$ git diff
diff --git a/drivers/wxwidgets_dev.cpp b/drivers/wxwidgets_dev.cpp
index 6351c6893..27b20750e 100644
--- a/drivers/wxwidgets_dev.cpp
+++ b/drivers/wxwidgets_dev.cpp
@@ -38,7 +38,15 @@
   #else
   #include 
   #endif
+#include 
+#include 
+#include 

+#include "plDevs.h"
+
+// plplot headers
+#include "plplotP.h"
+#include "drivers.h"
   // PLplot headers
   #include "plDevs.h"
   #include "wxwidgets.h" // includes wx/wx.h




Le 22/09/2018 à 01:37, Phil Rosenberg a écrit :

Hi Laurent
What a strange set of compilation errors. They are all from windows
sockets headers, rather than from wxWidgets.

Here is my guess at what is happening - but I have not been able to
reproduce the error (I am using VS 2015 still).

In the code before your edits following the #includes through, it
turns out we include  into wxwidgets_dev.cpp before any
wxWidgets headers. This is done via "wxwidgets.h", then
"wxwidgets_comms.h". The winsock related functions probably get pulled
in via windows.h. I have a feeling that one of the wx headers is then
pulling in alternate definitions of those winsock functions, but I'm
not sure from where.

By shuffling the headers round as you have, you include 
before we pull in . The  file will in turn pull in
 itself. then our include windows.h should get ignored.

I can't think how exectly it might work, but I bet there is some weird
inconsistency between how  is pulled in by us, vs how it is
pulled in by wxWidgets - maybe related to some #defines like DLLEXPORT
or extern "C".

Anyway I might guess that moving the headers around is simply masking
some other problem. Can I check that you have built wxWidgets with the
same virsion of visual studio? And that it is also built as a static
lib? Just a hunch but maybe something to do with the wxwidgets library
configuration is causing the issue.

Phil
On Fri, 21 Sep 2018 at 23:08, Alan W. Irwin  wrote:

On 2018-09-21 18:38+0200 Laurent Berger wrote:


Hi,

I have just done a git clone : (Date:   Thu Sep 20 22:36:48 2018 -0700
) commit caf4801dfef32207b74f5374eff52bf2a4c24e3d

and delete cmakecache.txt and I I'm trying to build plplot in static

BUILD_SHARED_LIBS:BOOL=OFF

and ENABLE_DYNDRIVERS:BOOL=OFF

and I have got 59 errors compiling wxwidgets_dev.cpp.

In git repo I can find this file
https://github.com/PLplot/PLplot/blob/14ecc4bd943caa40a830e0da066ff7a220b9d5e8/drivers/wxwidgets.cpp

I copy
https://github.com/PLplot/PLplot/blob/14ecc4bd943caa40a830e0da066ff7a220b9d5e8/drivers/wxwidgets.cpp#L28-L36
and insert those lines here
https://github.com/PLplot/PLplot/blob/master/drivers/wxwidgets_dev.cpp#L41

I can compile and link plplot.

Hi Laurent:

Thanks for your test of my recent PLplot development activity.

I have looked at commits 14ecc4bd94 (= plplot-5.13.0-59-g14ecc4bd9)
and caf4801dfe (current master tip), and your description of the
required change appears to correspond to copying some wxwidgets includes from
one part of the old commit (or alternatively the latest commit since
those lines haven't changed) to just after

#include "wxwidgets.h"

As far as I can tell such a copy of includes should have zero effect
so it appears either I misunderstood the change you described above or
else the github repo for PLplot is not properly up to date with the
definitive SourceForge repo.  So to r

[Plplot-devel] Cannot compile plplot using VS 2017

2018-09-21 Thread Laurent Berger

Hi,

I have just done a git clone : (Date:   Thu Sep 20 22:36:48 2018 -0700
) commit caf4801dfef32207b74f5374eff52bf2a4c24e3d

and delete cmakecache.txt and I I'm trying to build plplot in static

BUILD_SHARED_LIBS:BOOL=OFF

and ENABLE_DYNDRIVERS:BOOL=OFF

and I have got 59 errors compiling wxwidgets_dev.cpp.

In git repo I can find this file 
https://github.com/PLplot/PLplot/blob/14ecc4bd943caa40a830e0da066ff7a220b9d5e8/drivers/wxwidgets.cpp


I copy 
https://github.com/PLplot/PLplot/blob/14ecc4bd943caa40a830e0da066ff7a220b9d5e8/drivers/wxwidgets.cpp#L28-L36 
and insert those lines here 
https://github.com/PLplot/PLplot/blob/master/drivers/wxwidgets_dev.cpp#L41


I can compile and link plplot.




Errors list compiling wxwidgets_dev.cpp:

1>wxwidgets_dev.cpp
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\shared\ws2def.h(103): warning C4005: 
'AF_IPX': macro redefinition
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\um\winsock.h(457): note: see previous 
definition of 'AF_IPX'
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\shared\ws2def.h(147): warning C4005: 
'AF_MAX': macro redefinition
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\um\winsock.h(476): note: see previous 
definition of 'AF_MAX'
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\shared\ws2def.h(185): warning C4005: 
'SO_DONTLINGER': macro redefinition
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\um\winsock.h(399): note: see previous 
definition of 'SO_DONTLINGER'
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\shared\ws2def.h(235): error C2011: 
'sockaddr': 'struct' type redefinition
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\um\winsock.h(1007): note: see declaration 
of 'sockaddr'
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\shared\ws2def.h(437): error C2059: syntax 
error: 'constant'
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\shared\ws2def.h(437): error C3805: 
'constant': unexpected token, expected either '}' or a ','
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\shared\ws2def.h(572): warning C4005: 
'IN_CLASSA': macro redefinition
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\um\winsock.h(284): note: see previous 
definition of 'IN_CLASSA'
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\shared\ws2def.h(578): warning C4005: 
'IN_CLASSB': macro redefinition
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\um\winsock.h(290): note: see previous 
definition of 'IN_CLASSB'
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\shared\ws2def.h(584): warning C4005: 
'IN_CLASSC': macro redefinition
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\um\winsock.h(296): note: see previous 
definition of 'IN_CLASSC'
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\shared\ws2def.h(595): warning C4005: 
'INADDR_ANY': macro redefinition
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\um\winsock.h(301): note: see previous 
definition of 'INADDR_ANY'
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\shared\ws2def.h(597): warning C4005: 
'INADDR_BROADCAST': macro redefinition
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\um\winsock.h(303): note: see previous 
definition of 'INADDR_BROADCAST'
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\shared\ws2def.h(633): error C2011: 
'sockaddr_in': 'struct' type redefinition
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\um\winsock.h(1011): note: see declaration 
of 'sockaddr_in'
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\um\winsock2.h(136): error C2011: 'fd_set': 
'struct' type redefinition
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\um\winsock.h(1019): note: see declaration 
of 'fd_set'
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\um\winsock2.h(156): warning C4005: 
'FD_CLR': macro redefinition
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\um\winsock.h(94): note: see previous 
definition of 'FD_CLR'
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\um\winsock2.h(171): warning C4005: 
'FD_SET': macro redefinition
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\um\winsock.h(99): note: see previous 
definition of 'FD_SET'
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\um\winsock2.h(180): error C2011: 'timeval': 
'struct' type redefinition
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\um\winsock.h(1035): note: see declaration 
of 'timeval'
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\um\winsock2.h(236): error C2011: 'hostent': 
'struct' type redefinition
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299.0\um\winsock.h(1023): note: see declaration 
of 'hostent'
1>c:\program files (x86)\windows 
kits\10\include\10.0.16299

Re: [Plplot-devel] How to use plplot in my project using cmake ?

2017-09-26 Thread Laurent Berger

Hi alan,

Ok  in this folder http://perso.univ-lemans.fr/~berger/Afsd56/plplot/ 
you got everything from git clone to wxopencv build


In http://perso.univ-lemans.fr/~berger/Afsd56/plplot/ you can find 
result of plplot install
in http://perso.univ-lemans.fr/~berger/Afsd56/plplot/TXT_INFO/ you 've 
got cmakecache and cmakeoutput for plplot and same file for wxopencv 
project using plplot. In buildprocessplplot.txt you have results from 
git clone, build plplot in debug and release and install process.


In my wwxopencv project I use too ceres-solver glog and gflag and opencv 
and openscenegraph lib


my script command to install plplot and wxopencv are installplplot.sh 
and installwxopencv.sh


if something is missing tell me what



Le 26/09/2017 à 09:44, Alan W. Irwin a écrit :

On 2017-09-26 09:01+0200 Laurent Berger wrote:


Hi Alan,


I tried this

if (PLplot_FOUND)
message( " PATH0 ${PLplotwx_LIBS}" )
message( " PATH1  ${PLplot_INCLUDE_DIR}" )
message( " PATH3 ${PLplot_DIR}" )
message( " PATH4 ${PLplotcxx_LIBS}" )
get_target_property(PLplotwx_LIBS plplotwxwidgets 
INTERFACE_LINK_LIBRARIES)

get_target_property(PLplot_LIBS plplot INTERFACE_LINK_LIBRARIES)
get_target_property(PLplotcxx_LIBS plplotcxx INTERFACE_LINK_LIBRARIES)
message( " PATH0 ${PLplotwx_LIBS}" )
message( " PATH1  ${PLplot_INCLUDE_DIR}" )
message( " PATH3 ${PLplot_LIBS}" )
message( " PATH4 ${PLplotcxx_LIBS}" )
include_directories(${INCLUDE_DIR})
   include_directories(${PLplot_DIR}/../../../include/plplot)
   target_link_libraries( wxOpenCVMain ${PLplotwx_LIBS})
else (PLplot_FOUND)
message( " PROBLEME" )
endif(PLplot_FOUND)

and and cmake output is :

PATH0
PATH1
PATH3 C:/Program Files/plplot/lib/cmake/plplot
PATH4
PATH0 
plplot;plplotcxx;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxbase31ud.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxbase31u.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxmsw31ud_core.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxmsw31u_core.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxpngd.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxpng.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxtiffd.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxtiff.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxjpegd.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxjpeg.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxzlibd.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxzlib.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxregexud.lib>;$<$BUG>>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxregexu.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxexpatd.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxexpat.lib>;winmm;comctl32;oleacc;rpcrt4;shlwapi;version;wsock32 


PATH1
PATH3 
$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxbase31ud.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxbase31u.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxmsw31ud_core.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxmsw31u_core.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxpngd.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxpng.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxtiffd.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxtiff.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxjpegd.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxjpeg.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxzlibd.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxzlib.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxregexud.lib>;$<$>:G:/Lib/wxWi 
dgets-3.1.0/lib/vc_x64_lib/wxregexu.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxexpatd.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxexpat.lib>;winmm;comctl32;oleacc;rpcrt4;shlwapi;version;wsock32;csirocsa;qsastime 


PATH4 plplot
-- WINDOWS
-- G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib
-- Configuring done
-- Generating done
-- Build files have been written to: G:/Lib/build/wxOpenCV

In my project I got only this libs
C:\Program Files\plplot\lib\plplot.lib
C:\Program Files\plplot\lib\plplotcxx.lib
C:\Program Files\plplot\lib\csirocsa.lib
C:\Program Files\plplot\lib\qsastime.lib

plplotwxwidgets is missing

I think I miss something because my cmakelist is too complicated


Hi Laurent:

Please put yourself in my position of not knowing exactly how you
built and installed PLplot and not knowing the complete details of
your own project's build system.  Then send me _all_ the information
you think I might possibly need in order to help you further.

For example,

1. What is the complete cmake stdout and stderr output from your
PLplot configuration step?

2. What is the complete output when you built the "install" target
for PLplot?

3. Above you have only giv

Re: [Plplot-devel] How to use plplot in my project using cmake ?

2017-09-26 Thread Laurent Berger

Hi Alan,


I tried this

if (PLplot_FOUND)
message( " PATH0 ${PLplotwx_LIBS}" )
message( " PATH1  ${PLplot_INCLUDE_DIR}" )
message( " PATH3 ${PLplot_DIR}" )
message( " PATH4 ${PLplotcxx_LIBS}" )
get_target_property(PLplotwx_LIBS plplotwxwidgets INTERFACE_LINK_LIBRARIES)
get_target_property(PLplot_LIBS plplot INTERFACE_LINK_LIBRARIES)
get_target_property(PLplotcxx_LIBS plplotcxx INTERFACE_LINK_LIBRARIES)
message( " PATH0 ${PLplotwx_LIBS}" )
message( " PATH1  ${PLplot_INCLUDE_DIR}" )
message( " PATH3 ${PLplot_LIBS}" )
message( " PATH4 ${PLplotcxx_LIBS}" )
include_directories(${INCLUDE_DIR})
include_directories(${PLplot_DIR}/../../../include/plplot)
target_link_libraries( wxOpenCVMain ${PLplotwx_LIBS})
else (PLplot_FOUND)
message( " PROBLEME" )
endif(PLplot_FOUND)

and and cmake output is :

 PATH0
 PATH1
 PATH3 C:/Program Files/plplot/lib/cmake/plplot
 PATH4
 PATH0 
plplot;plplotcxx;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxbase31ud.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxbase31u.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxmsw31ud_core.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxmsw31u_core.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxpngd.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxpng.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxtiffd.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxtiff.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxjpegd.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxjpeg.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxzlibd.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxzlib.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxregexud.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxregexu.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxexpatd.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxexpat.lib>;winmm;comctl32;oleacc;rpcrt4;shlwapi;version;wsock32

 PATH1
 PATH3 
$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxbase31ud.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxbase31u.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxmsw31ud_core.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxmsw31u_core.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxpngd.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxpng.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxtiffd.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxtiff.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxjpegd.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxjpeg.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxzlibd.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxzlib.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxregexud.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxregexu.lib>;$<$:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxexpatd.lib>;$<$>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxexpat.lib>;winmm;comctl32;oleacc;rpcrt4;shlwapi;version;wsock32;csirocsa;qsastime

 PATH4 plplot
-- WINDOWS
-- G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib
-- Configuring done
-- Generating done
-- Build files have been written to: G:/Lib/build/wxOpenCV

In my project I got only this libs
C:\Program Files\plplot\lib\plplot.lib
C:\Program Files\plplot\lib\plplotcxx.lib
C:\Program Files\plplot\lib\csirocsa.lib
C:\Program Files\plplot\lib\qsastime.lib

plplotwxwidgets is missing

I think I miss something because my cmakelist is too complicated


Le 20/09/2017 à 08:03, Alan W. Irwin a écrit :

On 2017-09-19 19:36+0200 Laurent Berger wrote:


Hi Alan,


About lplot-devel posting issues : new subscribe solved problem


To install plplot I use install project (with admin right) to install 
plplot in C:\Program Files\plplot. A copy of my plplot folder is 
perso.univ-lemans.fr/~berger/Afsd56/plplot




[...]

But you need to give more details (i.e., the CMake logic you used to
determine the values of ${PLplot_INCLUDE_DIR} and ${PLplot_LIBS}, and
the actual locations on your disk for the PLplot headers and
libraries) before we can help you determine _why_ those variables are
empty.



I don't understand.


Hi Laurant,

From what you have said, my understanding is you have already built
and installed PLplot, and now you want to use the PLplot installed
headers and libraries in your own software project that you are
configuring with CMake.

PLplot solves a similar problem when it creates a CMake-based build
system for our installed examples that uses the PLplot headers
and libraries to build those examples.

So you should be adapting our logic (see
examples/CMakeLists.txt starting at

else(CORE_BUILD)

) for your own needs.  For example, following our logic, your project 
should set CMAKE_MODULE_PATH to get access

to the installed PLplot locations .../cmake/modules and
...

Re: [Plplot-devel] How to use plplot in my project using cmake ?

2017-09-19 Thread Laurent Berger

Hi Alan,


About lplot-devel posting issues : new subscribe solved problem


To install plplot I use install project (with admin right) to install 
plplot in C:\Program Files\plplot. A copy of my plplot folder is 
perso.univ-lemans.fr/~berger/Afsd56/plplot


I don't understand.


Le 19/09/2017 à 18:54, Alan W. Irwin a écrit :

On 2017-09-18 21:23+0200 Laurent Berger wrote:


Hi,

Thanks for new version (5.13.0). I have installed plplot and now I 
want to use it in my own project using cmake


my cmakelist is


if (wxWidgets_FOUND)
   include_directories(${wxWidgets_INCLUDE_DIRS})
   target_link_libraries (wxOpenCVMain ${wxWidgets_LIBRARIES} )
endif (wxWidgets_FOUND)
if (PLplot_FOUND)
message( " PATH  ${PLplot_INCLUDE_DIR} ${PLplot_LIBS}" )
message( " PATH ${PLplot_DIR} ${PLplot_LIBS}" )
   include_directories(${PLplot_INCLUDE_DIRS})
   target_link_libraries( wxOpenCVMain ${PLplot_LIBS} )
else (PLplot_FOUND)
message( " PROBLEME" )
endif(PLplot_FOUND)


I can see  in cmake output
OPENCV = 
G:/Lib/install/opencv/include;G:/Lib/install/opencv/include/opencv

PATH
PATH C:/Program Files/plplot/lib/cmake/plplot
-- WINDOWS
-- G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib
-- Configuring done
-- Generating done
-- Build files have been written to: G:/Lib/build/wxOpenCV


but nothing in variable PLplot_INCLUDE_DIR .

Where is my mistake ?


Hi Laurent:

I am glad you finally were able to figure out your plplot-devel posting
issues.

From your first message logic above, and the output shown, it appears
_both_ ${PLplot_INCLUDE_DIR} and ${PLplot_LIBS} are empty, while
${PLplot_DIR} is filled with C:/Program Files/plplot/lib/cmake/plplot.

But you need to give more details (i.e., the CMake logic you used to
determine the values of ${PLplot_INCLUDE_DIR} and ${PLplot_LIBS}, and
the actual locations on your disk for the PLplot headers and
libraries) before we can help you determine _why_ those variables are
empty.

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


[Plplot-devel] How to use plplot in my project using cmake ?

2017-09-18 Thread Laurent Berger

Hi,

Thanks for new version (5.13.0). I have installed plplot and now I want 
to use it in my own project using cmake


my cmakelist is


if (wxWidgets_FOUND)
include_directories(${wxWidgets_INCLUDE_DIRS})
target_link_libraries (wxOpenCVMain ${wxWidgets_LIBRARIES} )
endif (wxWidgets_FOUND)
if (PLplot_FOUND)
message( " PATH  ${PLplot_INCLUDE_DIR} ${PLplot_LIBS}" )
message( " PATH ${PLplot_DIR} ${PLplot_LIBS}" )
include_directories(${PLplot_INCLUDE_DIRS})
target_link_libraries( wxOpenCVMain ${PLplot_LIBS} )
else (PLplot_FOUND)
message( " PROBLEME" )
endif(PLplot_FOUND)


I can see  in cmake output
OPENCV = G:/Lib/install/opencv/include;G:/Lib/install/opencv/include/opencv
 PATH
 PATH C:/Program Files/plplot/lib/cmake/plplot
-- WINDOWS
-- G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib
-- Configuring done
-- Generating done
-- Build files have been written to: G:/Lib/build/wxOpenCV


but nothing in variable PLplot_INCLUDE_DIR .

Where is my mistake ?

thanks for your answer.


--
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] legend and label using wxWidgets

2017-01-08 Thread Laurent Berger

Hi phil,


I have updated all my repo wxwidgetts and plplot and now everything is 
OK using VS 2015 or MSYS2-mingw64. Thanks you very much.


Only one thing wxplplotdemo legend are small (may be tiny)

Le 05/01/2017 à 15:58, Phil Rosenberg a écrit :

Hi Laurent
Although I haven't upgraded to wxWidgets 3.1. I think I have isolated
and fixed the issue. It turned out to affect all wxDCs that support
transformations so I was able to reproduce your bad results on a
wxMemoryDc. If you grab the latest version from the Git repo then you
should find everything is working correctly again. If not then please
let me know.

Phil

On 5 January 2017 at 00:42,   wrote:

Hi Alan

I agree it would be good to look at this pre release. It's on my to do list
for asap.



Sent from my Windows 10 phone



From: Alan W. Irwin
Sent: 04 January 2017 20:37
To: Phil Rosenberg; Pedro Vicente; Laurent Berger; PLplot development list
Subject: Re: [Plplot-devel] legend and label using wxWidgets



On 2016-12-28 23:19+0100 Laurent Berger wrote:




wxwidgets commit 0bf38e1 x04 y axis label is good
(https://github.com/wxWidgets/wxWidgets/commit/0bf38e11a33005e289e30c8bc7c67563eae061be)
wxwidgets commit 49000def x04 y axis label is false
(https://github.com/wxWidgets/wxWidgets/commit/49000defcfb11b409d8935126981b14169ee62a3)



Hi Phil:



Assuming (subject to Pedro's further extensive testing) that you have

found a good fix for that bug he had discovered, then the only

remaining potentially release critical issue for the wxwidgets-related

components of PLplot is the issue discovered by Laurent above.



So to learn more about what Laurent reported above,

I described those two commits as follows:



software@raven> git clone https://github.com/wxWidgets/wxWidgets.git
wxwidgets.git

software@raven> cd wxwidgets.git

software@raven> git branch

* master

software@raven> git describe 0bf38e1

v3.1.0-620-g0bf38e1

software@raven> git describe 49000def

v3.1.0-621-g49000de



So it is clear from these results that Laurent already bisected this

issue with the 621st commit beyond the last official release (3.1.0)

of wxwidgets showing the issue for the first time.  And since this is

an issue that will not affect any user of an official wxwidgets

release at this time, that gives us a good excuse to do nothing at

this time if the potential fix is going to be intrusive.



Of course, this issue will affect our users as soon as the next

wxwidgets official release is out so it would be nice at this time for

you to (a) confirm the above results for 0bf38e1 and 49000def from

Laurent and figure out what the issue is.  If it turns out to be a

wxwidgets regression introduced for 49000def it would be good for you

to draw this quickly to the attention of the wxwidgets developers so

they can fix that regression before their next official release to

avoid making life difficult for PLplot wxwidgets users.  But if it

turns out to be our problem, then please prepare the fix and use your

best judgement (depending on, e.g., whether the fix is more or less

intrusive than the fix you just made) whether to push it now or wait

until after the release.



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] legend and label using wxWidgets

2016-12-28 Thread Laurent Berger
wxwidgets commit 0bf38e1 x04 y axis label is good 
(https://github.com/wxWidgets/wxWidgets/commit/0bf38e11a33005e289e30c8bc7c67563eae061be)


wxwidgets commit 49000def x04 y axis label is false 
(https://github.com/wxWidgets/wxWidgets/commit/49000defcfb11b409d8935126981b14169ee62a3)




Le 28/12/2016 à 22:28, Laurent Berger a écrit :


With your last message I have found  a way to solve problem

cd wxWiget-3.1.0git checkout cbb799b
Checking out files: 100% (1470/1470), done.
Note: checking out 'cbb799b'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b 

HEAD is now at cbb799b... Updates for 3.1.0 release

Build wxwidgets and build plplot and y axis label is good now.

Now  I think if you update your git wxwidgest repository you will able 
to see bad y label



Le 28/12/2016 à 20:11, p.d.rosenb...@gmail.com a écrit :


Thanks Laurent

You are a few commits ahead of me I think so I'll update, just in 
case it makes a difference. I use 64 bit, which I think is the same 
as you. Are you using wxWidgets 3.1? I am using 3.0 I think, but I'll 
check.


Phil

Sent from my Windows 10 phone

*From: *Laurent Berger <mailto:laurent.ber...@univ-lemans.fr>
*Sent: *28 December 2016 10:21
*To: *p.d.rosenb...@gmail.com <mailto:p.d.rosenb...@gmail.com>; Pedro 
Vicente <mailto:pedro.vice...@space-research.org>

*Cc: *PLplot development list <mailto:plplot-devel@lists.sourceforge.net>
*Subject: *Re: [Plplot-devel] legend and label using wxWidgets

git log

commit 26bc4bf13aa41dff0e19345e982eca00a0458578
Author: Alan W. Irwin  
<mailto:air...@users.sourceforge.net>

Date:   Sat Dec 24 14:32:48 2016 -0800

Apply spell checker to release notes

I have got a dual screen. I have check example on my laptop and 
problem exist too. Do you use 32 bit or 64 bits libs?


Le 28/12/2016 à 10:27, p.d.rosenb...@gmail.com 
<mailto:p.d.rosenb...@gmail.com> a écrit :


Hi Laurent

This is very strange. I see that y axis titles are rotated 180,
and the line label is rotated 90 degrees.

In fact it looks to me like the y axis coordinate has been
reversed for text direction. I have just tested my system which
is using commit 65e7b3c99809... Fix bug with plotting in
wxPLplotDemo and I don't see the issue. I'm not online right now
(emailing from phone) to get latest master, but could you do a
git log and let me know which commit you are at?

Also is there anything unusual about your screen setup that may
affect the usual y direction orientation or anything similar that
you can think of?

Phil

Sent from my Windows 10 phone

*From: *Laurent Berger <mailto:laurent.ber...@univ-lemans.fr>
*Sent: *28 December 2016 01:07
*To: *p.d.rosenb...@gmail.com <mailto:p.d.rosenb...@gmail.com>;
Pedro Vicente <mailto:pedro.vice...@space-research.org>
*Cc: *PLplot development list
<mailto:plplot-devel@lists.sourceforge.net>
*Subject: *Re: [Plplot-devel] legend and label using wxWidgets

Hi phil

I have already check it :

I have clean only wxPlLiewer and run x04 (click on x04) in cmd
window I have :


Plotting Options:
 < 1> ps PostScript File (monochrome)
 < 2> pscPostScript File (color)
 < 3> xfig   Xfig file
 < 4> null   Null device
 < 5> memUser-supplied memory device
 < 6> wxwidgets  wxWidgets DC
 < 7> svgScalable Vector Graphics (SVG 1.1)

Enter device number or keyword (stream 1): 6
wxPLDevice::SetupMemoryMap: nTries = 0, mapName =
plplotMemoryMapGTSRRSLXRW
wxPLDevice::SetupMemoryMap: nTries = 0, mutexName =
plplotMemoryMapGTSRRSLXRWmut

*** PLPLOT WARNING ***
Failed to run wxPLViewer - no plots will be shown

*** PLPLOT WARNING ***
wxPLViewer failed to signal it has found the shared memory.
plGetName: Maximum length of full pathname of file to be found is 39
plGetName: Full pathname of file to be found is
F:/Meteo/plplot\data\plxtnd5.fnt
plLibOpenPdfstr: Found file F:/Meteo/plplot\data\plxtnd5.fnt

Now I build wxPLviewer and run x04 (click )


cid:part1.C1B7F496.CFBC2D4D@univ-lemans.fr

now wxplotdemo x axis label is wrong too

cid:part2.D22974EA.D7519C63@univ-lemans.fr



Le 28/12/2016 à 00:41, p.d.rosenb...@gmail.com
<mailto:p.d.rosenb...@gmail.com> a écrit :

Hi Laurent

I know you have said you have cleaned and you have rebuilt.
However, there may be a build tree dependency issue catching
us out. C

Re: [Plplot-devel] legend and label using wxWidgets

2016-12-28 Thread Laurent Berger

With your last message I have found  a way to solve problem

cd wxWiget-3.1.0git checkout cbb799b
Checking out files: 100% (1470/1470), done.
Note: checking out 'cbb799b'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b 

HEAD is now at cbb799b... Updates for 3.1.0 release

Build wxwidgets and build plplot and y axis label is good now.

Now  I think if you update your git wxwidgest repository you will able 
to see bad y label



Le 28/12/2016 à 20:11, p.d.rosenb...@gmail.com a écrit :


Thanks Laurent

You are a few commits ahead of me I think so I'll update, just in case 
it makes a difference. I use 64 bit, which I think is the same as you. 
Are you using wxWidgets 3.1? I am using 3.0 I think, but I'll check.


Phil

Sent from my Windows 10 phone

*From: *Laurent Berger <mailto:laurent.ber...@univ-lemans.fr>
*Sent: *28 December 2016 10:21
*To: *p.d.rosenb...@gmail.com <mailto:p.d.rosenb...@gmail.com>; Pedro 
Vicente <mailto:pedro.vice...@space-research.org>

*Cc: *PLplot development list <mailto:plplot-devel@lists.sourceforge.net>
*Subject: *Re: [Plplot-devel] legend and label using wxWidgets

git log

commit 26bc4bf13aa41dff0e19345e982eca00a0458578
Author: Alan W. Irwin  
<mailto:air...@users.sourceforge.net>

Date:   Sat Dec 24 14:32:48 2016 -0800

Apply spell checker to release notes

I have got a dual screen. I have check example on my laptop and 
problem exist too. Do you use 32 bit or 64 bits libs?


Le 28/12/2016 à 10:27, p.d.rosenb...@gmail.com 
<mailto:p.d.rosenb...@gmail.com> a écrit :


Hi Laurent

This is very strange. I see that y axis titles are rotated 180,
and the line label is rotated 90 degrees.

In fact it looks to me like the y axis coordinate has been
reversed for text direction. I have just tested my system which is
using commit 65e7b3c99809... Fix bug with plotting in wxPLplotDemo
and I don't see the issue. I'm not online right now (emailing from
phone) to get latest master, but could you do a git log and let me
know which commit you are at?

Also is there anything unusual about your screen setup that may
affect the usual y direction orientation or anything similar that
you can think of?

Phil

Sent from my Windows 10 phone

*From: *Laurent Berger <mailto:laurent.ber...@univ-lemans.fr>
*Sent: *28 December 2016 01:07
*To: *p.d.rosenb...@gmail.com <mailto:p.d.rosenb...@gmail.com>;
Pedro Vicente <mailto:pedro.vice...@space-research.org>
*Cc: *PLplot development list
<mailto:plplot-devel@lists.sourceforge.net>
*Subject: *Re: [Plplot-devel] legend and label using wxWidgets

Hi phil

I have already check it :

I have clean only wxPlLiewer and run x04 (click on x04) in cmd
window I have :


Plotting Options:
 < 1> ps PostScript File (monochrome)
 < 2> pscPostScript File (color)
 < 3> xfig   Xfig file
 < 4> null   Null device
 < 5> memUser-supplied memory device
 < 6> wxwidgets  wxWidgets DC
 < 7> svgScalable Vector Graphics (SVG 1.1)

Enter device number or keyword (stream 1): 6
wxPLDevice::SetupMemoryMap: nTries = 0, mapName =
plplotMemoryMapGTSRRSLXRW
wxPLDevice::SetupMemoryMap: nTries = 0, mutexName =
plplotMemoryMapGTSRRSLXRWmut

*** PLPLOT WARNING ***
Failed to run wxPLViewer - no plots will be shown

*** PLPLOT WARNING ***
wxPLViewer failed to signal it has found the shared memory.
plGetName: Maximum length of full pathname of file to be found is 39
plGetName: Full pathname of file to be found is
F:/Meteo/plplot\data\plxtnd5.fnt
plLibOpenPdfstr: Found file F:/Meteo/plplot\data\plxtnd5.fnt

Now I build wxPLviewer and run x04 (click )


cid:part1.C1B7F496.CFBC2D4D@univ-lemans.fr

now wxplotdemo x axis label is wrong too

cid:part2.D22974EA.D7519C63@univ-lemans.fr



Le 28/12/2016 à 00:41, p.d.rosenb...@gmail.com
<mailto:p.d.rosenb...@gmail.com> a écrit :

Hi Laurent

I know you have said you have cleaned and you have rebuilt.
However, there may be a build tree dependency issue catching
us out. Can you ensure you specifically rebuild the wxPlviewer
project by right clicking it and selecting build in visual
studio? If you just right click an example and click build or
debug then this project doesn't get built/rebuilt. This means
in a previously used build tree you may be using a stale
  

Re: [Plplot-devel] legend and label using wxWidgets

2016-12-28 Thread Laurent Berger

git log

commit 26bc4bf13aa41dff0e19345e982eca00a0458578
Author: Alan W. Irwin 
Date:   Sat Dec 24 14:32:48 2016 -0800

Apply spell checker to release notes

I have got a dual screen. I have check example on my laptop and problem 
exist too. Do you use 32 bit or 64 bits libs?



Le 28/12/2016 à 10:27, p.d.rosenb...@gmail.com a écrit :


Hi Laurent

This is very strange. I see that y axis titles are rotated 180, and 
the line label is rotated 90 degrees.


In fact it looks to me like the y axis coordinate has been reversed 
for text direction. I have just tested my system which is using commit 
65e7b3c99809... Fix bug with plotting in wxPLplotDemo and I don't see 
the issue. I'm not online right now (emailing from phone) to get 
latest master, but could you do a git log and let me know which commit 
you are at?


Also is there anything unusual about your screen setup that may affect 
the usual y direction orientation or anything similar that you can 
think of?


Phil

Sent from my Windows 10 phone

*From: *Laurent Berger <mailto:laurent.ber...@univ-lemans.fr>
*Sent: *28 December 2016 01:07
*To: *p.d.rosenb...@gmail.com <mailto:p.d.rosenb...@gmail.com>; Pedro 
Vicente <mailto:pedro.vice...@space-research.org>

*Cc: *PLplot development list <mailto:plplot-devel@lists.sourceforge.net>
*Subject: *Re: [Plplot-devel] legend and label using wxWidgets

Hi phil

I have already check it :

I have clean only wxPlLiewer and run x04 (click on x04) in cmd window 
I have :



Plotting Options:
 < 1> ps PostScript File (monochrome)
 < 2> pscPostScript File (color)
 < 3> xfig   Xfig file
 < 4> null   Null device
 < 5> memUser-supplied memory device
 < 6> wxwidgets  wxWidgets DC
 < 7> svgScalable Vector Graphics (SVG 1.1)

Enter device number or keyword (stream 1): 6
wxPLDevice::SetupMemoryMap: nTries = 0, mapName = 
plplotMemoryMapGTSRRSLXRW
wxPLDevice::SetupMemoryMap: nTries = 0, mutexName = 
plplotMemoryMapGTSRRSLXRWmut


*** PLPLOT WARNING ***
Failed to run wxPLViewer - no plots will be shown

*** PLPLOT WARNING ***
wxPLViewer failed to signal it has found the shared memory.
plGetName: Maximum length of full pathname of file to be found is 39
plGetName: Full pathname of file to be found is 
F:/Meteo/plplot\data\plxtnd5.fnt

plLibOpenPdfstr: Found file F:/Meteo/plplot\data\plxtnd5.fnt

Now I build wxPLviewer and run x04 (click )


cid:part1.C1B7F496.CFBC2D4D@univ-lemans.fr

now wxplotdemo x axis label is wrong too

cid:part2.D22974EA.D7519C63@univ-lemans.fr


Le 28/12/2016 à 00:41, p.d.rosenb...@gmail.com 
<mailto:p.d.rosenb...@gmail.com> a écrit :


Hi Laurent

I know you have said you have cleaned and you have rebuilt.
However, there may be a build tree dependency issue catching us
out. Can you ensure you specifically rebuild the wxPlviewer
project by right clicking it and selecting build in visual studio?
If you just right click an example and click build or debug then
this project doesn't get built/rebuilt. This means in a previously
used build tree you may be using a stale wxplviewer executable or
in a fresh tree you may end up using the wxplviewer from your last
build of the INSTALL project as a local version may not be found.

Alan – I have mentioned this before. What is needed is for all
examples to depend upon the wxPLViewer executable, which in turn
depends upon plplot and the wxWidgets driver, so that if changes
are made to plplot or the driver then building of an example
triggers a rebuild of wxPLViewer.

Phil

Sent from my Windows 10 phone

*From: *Pedro Vicente <mailto:pedro.vice...@space-research.org>
*Sent: *27 December 2016 22:13
*To: *Laurent Berger <mailto:laurent.ber...@univ-lemans.fr>
*Cc: *PLplot development list
<mailto:plplot-devel@lists.sourceforge.net>
*Subject: *Re: [Plplot-devel] legend and label using wxWidgets

I am using wxwidgets 3.1 built with Visual Studio 2015 and plplot
from the

master branch

and using cmake with

cmake ".." -G "Visual Studio 14" -DPL_DOUBLE:BOOL=ON

-DBUILD_TEST:BOOL=ON -DCMAKE_CONFIGURATION_TYPES:STRING="Debug"

-DCMAKE_BUILD_TYPE:STRING="Debug" -DBUILD_SHARED_LIBS:BOOL=OFF

-DSTATIC_RUNTIME:BOOL=ON -DPLD_wxwidgets:BOOL=ON

-DwxWidgets_ROOT_DIR:PATH=%WXWIN%

-DwxWidgets_LIB_DIR:PATH=%WXWIN%\lib\vc_lib

-DwxWidgets_CONFIGURATION=mswud -DENABLE_MIX_CXX=ON

-DwxWidgets_EXCLUDE_COMMON_LIBRARIES:BOOL=OFF

- Original Message -

From: "Laurent Berger" 
<mailto:laurent.ber...@univ-lemans.fr>

To: "Pedro Vicente" 
<mailto:pedro.vice...@space-research.org>

Cc: "Alan W. Irwin" 
<mailto:ir...@beluga.phys.uvic.ca>; "PLplot development list"


<ma

Re: [Plplot-devel] legend and label using wxWidgets

2016-12-27 Thread Laurent Berger

Hi phil

I have already check it :

I have clean only wxPlLiewer and run x04 (click on x04) in cmd window I 
have :



Plotting Options:
 < 1> ps PostScript File (monochrome)
 < 2> pscPostScript File (color)
 < 3> xfig   Xfig file
 < 4> null   Null device
 < 5> memUser-supplied memory device
 < 6> wxwidgets  wxWidgets DC
 < 7> svgScalable Vector Graphics (SVG 1.1)

Enter device number or keyword (stream 1): 6
wxPLDevice::SetupMemoryMap: nTries = 0, mapName = plplotMemoryMapGTSRRSLXRW
wxPLDevice::SetupMemoryMap: nTries = 0, mutexName = 
plplotMemoryMapGTSRRSLXRWmut


*** PLPLOT WARNING ***
Failed to run wxPLViewer - no plots will be shown

*** PLPLOT WARNING ***
wxPLViewer failed to signal it has found the shared memory.
plGetName: Maximum length of full pathname of file to be found is 39
plGetName: Full pathname of file to be found is 
F:/Meteo/plplot\data\plxtnd5.fnt

plLibOpenPdfstr: Found file F:/Meteo/plplot\data\plxtnd5.fnt

Now I build wxPLviewer and run x04 (click )




now wxplotdemo x axis label is wrong too





Le 28/12/2016 à 00:41, p.d.rosenb...@gmail.com a écrit :


Hi Laurent

I know you have said you have cleaned and you have rebuilt. However, 
there may be a build tree dependency issue catching us out. Can you 
ensure you specifically rebuild the wxPlviewer project by right 
clicking it and selecting build in visual studio? If you just right 
click an example and click build or debug then this project doesn't 
get built/rebuilt. This means in a previously used build tree you may 
be using a stale wxplviewer executable or in a fresh tree you may end 
up using the wxplviewer from your last build of the INSTALL project as 
a local version may not be found.


Alan – I have mentioned this before. What is needed is for all 
examples to depend upon the wxPLViewer executable, which in turn 
depends upon plplot and the wxWidgets driver, so that if changes are 
made to plplot or the driver then building of an example triggers a 
rebuild of wxPLViewer.


Phil

Sent from my Windows 10 phone

*From: *Pedro Vicente <mailto:pedro.vice...@space-research.org>
*Sent: *27 December 2016 22:13
*To: *Laurent Berger <mailto:laurent.ber...@univ-lemans.fr>
*Cc: *PLplot development list <mailto:plplot-devel@lists.sourceforge.net>
*Subject: *Re: [Plplot-devel] legend and label using wxWidgets

I am using wxwidgets 3.1 built with Visual Studio 2015 and plplot from 
the


master branch

and using cmake with

cmake ".." -G "Visual Studio 14" -DPL_DOUBLE:BOOL=ON

-DBUILD_TEST:BOOL=ON -DCMAKE_CONFIGURATION_TYPES:STRING="Debug"

-DCMAKE_BUILD_TYPE:STRING="Debug" -DBUILD_SHARED_LIBS:BOOL=OFF

-DSTATIC_RUNTIME:BOOL=ON -DPLD_wxwidgets:BOOL=ON

-DwxWidgets_ROOT_DIR:PATH=%WXWIN%

-DwxWidgets_LIB_DIR:PATH=%WXWIN%\lib\vc_lib

-DwxWidgets_CONFIGURATION=mswud -DENABLE_MIX_CXX=ON

-DwxWidgets_EXCLUDE_COMMON_LIBRARIES:BOOL=OFF

- Original Message -

From: "Laurent Berger" 

To: "Pedro Vicente" 

Cc: "Alan W. Irwin" ; "PLplot development 
list"




Sent: Tuesday, December 27, 2016 4:32 PM

Subject: Re: [Plplot-devel] legend and label using wxWidgets

> Which version of wxwidgets do you use (can you give last commit 
using git


> log)?

>

>

> Le 27/12/2016 à 22:29, Pedro Vicente a écrit :

>>> error is still here. Now what patch should I apply?

>>

>> there is no patch for the scale issue.

>> the patch I send previously on the subject "Using wxWidgets" is for 
the


>> issue regarding the use

>> of templates. To test that, add and replace the 2 attached files on 
that


>> email to the master you just did the clone,

>> and report here if you have any errors on the master, or in your code

>> that uses it, please.

>>

>> regarding the scale issue, what compiler and cmake command are you 
using?


>> is it Visual Studio 2015 build 64bits, doing

>> cmake .. -G "Visual Studio 14 win64" ?

>>

>>

>>

>>

>> On 2016-12-27 16:04, Laurent Berger wrote:

>>> I always clean my build repo and my cmake cache. Now to be sure I

>>> have just clone plplot in another folder :

>>>

>>>

>>> $ git clone git://git.code.sf.net/p/plplot/plplot

>>> Cloning into 'plplot'...

>>> remote: Counting objects: 91527, done.

>>> remote: Compressing objects: 100% (29963/29963), done.

>>> remote: Total 91527 (delta 68265), reused 82342 (delta 60469)

>>> Receiving objects: 100% (91527/91527), 117.46 MiB | 109.00 KiB/s, 
done.


>>> Resolving deltas: 100% (68265/68265), done.

>>> Checking connectivity... done.

>>> Checking out files: 100% (1962/1962), done.

>>>

&

Re: [Plplot-devel] legend and label using wxWidgets

2016-12-27 Thread Laurent Berger
Which version of wxwidgets do you use (can you give last commit using 
git log)?


Le 27/12/2016 à 22:29, Pedro Vicente a écrit :
>> error is still here. Now what patch should I apply?
>
> there is no patch for the scale issue.
> the patch I send previously on the subject "Using wxWidgets" is for 
> the issue regarding the use
> of templates. To test that, add and replace the 2 attached files on 
> that email to the master you just did the clone,
> and report here if you have any errors on the master, or in your code 
> that uses it, please.
>
> regarding the scale issue, what compiler and cmake command are you using?
> is it Visual Studio 2015 build 64bits, doing
> cmake .. -G "Visual Studio 14 win64" ?
>
>
>
>
> On 2016-12-27 16:04, Laurent Berger wrote:
>> I always clean my build repo and my cmake cache. Now to be sure I
>> have just clone plplot in another folder :
>>
>>
>> $ git clone git://git.code.sf.net/p/plplot/plplot
>> Cloning into 'plplot'...
>> remote: Counting objects: 91527, done.
>> remote: Compressing objects: 100% (29963/29963), done.
>> remote: Total 91527 (delta 68265), reused 82342 (delta 60469)
>> Receiving objects: 100% (91527/91527), 117.46 MiB | 109.00 KiB/s, done.
>> Resolving deltas: 100% (68265/68265), done.
>> Checking connectivity... done.
>> Checking out files: 100% (1962/1962), done.
>>
>> Laurent@PC-Laurent-Vision MINGW64 /f/met
>> $ cd plplot
>>
>> Laurent@PC-Laurent-Vision MINGW64 /f/met/plplot (master)
>> $ git log
>> commit 26bc4bf13aa41dff0e19345e982eca00a0458578
>> Author: Alan W. Irwin 
>> Date:   Sat Dec 24 14:32:48 2016 -0800
>>
>> Apply spell checker to release notes
>>
>> build plplot in static using wxwidgets 3.1.0 :
>>
>>  git log(wxWidgets 3.1.0)
>> commit 9bb5d0435a4cce5bcb7b3956cb730f59c37ea5f6
>> Author: Paul Cornett 
>> Date:   Wed Nov 9 20:06:26 2016 -0800
>>
>> Fix non-default window background color with GTK+ >= 3.20
>>
>> GTK+ no longer automatically paints non-default window
>> background. See #17586
>>
>> commit b1a19e6b6c9f1a69821c0da773e2e3f94d554292
>>
>> error is still here. Now what patch should I apply?
>>
>>
>>
>> Le 27/12/2016 à 21:47, Alan W. Irwin a écrit :
>>> On 2016-12-27 15:27-0500 Pedro Vicente wrote:
>>>
>>>> ah, yes, that's right "Visual Studio 14" only  is for 32 bits
>>>>
>>>> I did not try with 64 bits libs
>>>
>>> @Laurent:
>>>
>>> Just to interject here, before getting too deeply into 64-bit versus
>>> 32-bit Windows differences between Pedro and you, it is important you
>>> answer our question whether the text issues you see are due to stale
>>> results left over from your previous builds.  So please make a
>>> completely fresh build and let us know whether those text issues
>>> persist for that fresh build.
>>>
>>> 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] legend and label using wxWidgets

2016-12-27 Thread Laurent Berger
I always clean my build repo and my cmake cache. Now to be sure I have 
just clone plplot in another folder :


$ git clone git://git.code.sf.net/p/plplot/plplot
Cloning into 'plplot'...
remote: Counting objects: 91527, done.
remote: Compressing objects: 100% (29963/29963), done.
remote: Total 91527 (delta 68265), reused 82342 (delta 60469)
Receiving objects: 100% (91527/91527), 117.46 MiB | 109.00 KiB/s, done.
Resolving deltas: 100% (68265/68265), done.
Checking connectivity... done.
Checking out files: 100% (1962/1962), done.

Laurent@PC-Laurent-Vision MINGW64 /f/met
$ cd plplot

Laurent@PC-Laurent-Vision MINGW64 /f/met/plplot (master)
$ git log
commit 26bc4bf13aa41dff0e19345e982eca00a0458578
Author: Alan W. Irwin 
Date:   Sat Dec 24 14:32:48 2016 -0800

 Apply spell checker to release notes

build plplot in static using wxwidgets 3.1.0 :

  git log(wxWidgets 3.1.0)
commit 9bb5d0435a4cce5bcb7b3956cb730f59c37ea5f6
Author: Paul Cornett 
Date:   Wed Nov 9 20:06:26 2016 -0800

 Fix non-default window background color with GTK+ >= 3.20

 GTK+ no longer automatically paints non-default window background. 
See #17586

commit b1a19e6b6c9f1a69821c0da773e2e3f94d554292

error is still here. Now what patch should I apply?



Le 27/12/2016 à 21:47, Alan W. Irwin a écrit :
> On 2016-12-27 15:27-0500 Pedro Vicente wrote:
>
>> ah, yes, that's right "Visual Studio 14" only  is for 32 bits
>>
>> I did not try with 64 bits libs
>
> @Laurent:
>
> Just to interject here, before getting too deeply into 64-bit versus
> 32-bit Windows differences between Pedro and you, it is important you
> answer our question whether the text issues you see are due to stale
> results left over from your previous builds.  So please make a
> completely fresh build and let us know whether those text issues
> persist for that fresh build.
>
> 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] legend and label using wxWidgets

2016-12-27 Thread Laurent Berger
No i think Visual Studio 14 is for 32 bits. Visual Studio 14 win 64 is 
for 64 bits libs. I don't use 32 bits libs. All my project are for 64 
bits platform. Have you checked x04 with 64 bits libs?


Le 27/12/2016 à 21:11, Pedro Vicente a écrit :
>>> "Visual Studio 14"
>> Does it mean that you use 32 bits libs?
>
> No, it means to use Visual Studio 2015 ("Visual Studio 14" is the 
> version number of Visual Studio 2015)
>
>
>
> On 2016-12-27 15:05, Laurent Berger wrote:
>> Does it mean that you use 32 bits libs?
>>
>>
>> Le 27/12/2016 à 21:00, Pedro Vicente a écrit :
>>> "Visual Studio 14"
>


--
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] legend and label using wxWidgets

2016-12-27 Thread Laurent Berger
Does it mean that you use 32 bits libs?


Le 27/12/2016 à 21:00, Pedro Vicente a écrit :
> "Visual Studio 14"


--
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] legend and label using wxWidgets

2016-12-27 Thread Laurent Berger
If you watch this video 
(http://perso.univ-lemans.fr/~berger/wxOpenCV/Portail/StatHistoSection/co/sequence.html#segment_yGYlRm4SzOeWIyROCQv5uc1)
 
you can see that labels are at right position I think it is plplot 
version august 2015

--
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] Using wxWidgets

2016-12-27 Thread Laurent Berger

Problem is my compiler said

3>c:\users\laurent.pc-laurent-visi\documents\visual studio 
2013\wxopencv\wxopencvmain\courbeplplot.h(55): error C2059: syntax error


Now syntax error I need two days to change my code. It was like this in 
previous version of plplot. I don't remember 5.xx.xx. I don't wan't to 
go back in my code. I will use 5.11.1


   yes

   but for the current (5.11.1) release compared to the new implemented
   examples,
   the effect is the same

   previously the way to start the demo was

   wxPLplotwindow *frame = new wxPLplotwindow();

   and now is

   wxPLplotwindow *frame = new wxPLplotwindow();

   and because wxPLplotwindow is a child of a wxFrame,
   the visible effect is exactly the same, a frame window that shows a
   plot.

   -Pedro


Le 27/12/2016 à 16:11, Pedro Vicente a écrit :

Laurent


I have installed last version of plplot and last patch (from pedro).
Can
you confirm me that wxPLplotwindow is now a non template  class?

yes, that is correct.

-Pedro


On 2016-12-27 10:04, Laurent Berger wrote:

Hi,

I have installed last version of plplot and last patch (from pedro).
Can
you confirm me that wxPLplotwindow is now a non template  class?

thanks for yours answers




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


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


[Plplot-devel] Uusing wxWidgets

2016-12-27 Thread Laurent Berger
Hi,

I have installed last version of plplot and last patch (from pedro). Can 
you confirm me that wxPLplotwindow is now a non template  class?

thanks for yours answers



--
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] legend and label using wxWidgets

2016-12-27 Thread Laurent Berger

Thanks for your answer.

I give you all command I done. I work on master (I made a copy on my 
previous folder). I build plplot in static using vs2015.


When I run x04 example problem is still here. Example seems slower now. 
I think that I applyed patch because legend are good now but axis labels 
are still wrong




$ git log
commit 26bc4bf13aa41dff0e19345e982eca00a0458578
Author: Alan W. Irwin 
Date:   Sat Dec 24 14:32:48 2016 -0800

Apply spell checker to release notes

commit dd178fd84c8e67e6c26c6248dc428d8302a0b744
Author: Alan W. Irwin 
Date:   Sat Dec 24 14:04:09 2016 -0800

Update the release notes for 5.12.0

N.B. The ChangeLog consisting of all the commit messages for the ~400
commits that are included in this release has been reviewed to help
insure that these release notes mention all the major PLplot
developments that have occurred for this release.  So virtually all
sections of these release notes should be ready for release. However,
my work on the large documentation update is still in progress so that
section of these release notes will likely require further revision.

commit 995e75e6086caaf04d65c307612b6edaa49f96bc
Author: Phil Rosenberg 
Date:   Tue Dec 20 13:33:43 2016 +


Laurent@PC-Laurent-Vision MINGW64 /g/lib/plplot (master)
$ git am < 
/c/Users/Laurent.PC-LAURENT-VISI/Desktop/patch/0001-wxwidgets-binding 
-fix-for-delayed-OnCreate-event.patch

Applying: wxwidgets binding: fix for delayed OnCreate event
.git/rebase-apply/patch:355: new blank line at EOF.
+
warning: 1 line adds whitespace errors.

Laurent@PC-Laurent-Vision MINGW64 /g/lib/plplot (master)
$ git am < 
/c/Users/Laurent.PC-LAURENT-VISI/Desktop/patch/0002-Reintroduce-OnCre 
ate-event.patch

Applying: Reintroduce OnCreate() event

Laurent@PC-Laurent-Vision MINGW64 /g/lib/plplot (master)

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

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

2016-12-10 Thread Laurent Berger
ND, 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}
&

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

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


Re: [Plplot-devel] The wxwidgets device driver speed/idle time

2016-11-15 Thread Laurent Berger
Hi Alan,

I haven't got qt installed.
My results looks like yours results :

lb@mp12-lb:~/plplot.git/examples/c++$ time ./x01 -dev wxwidgets -np
PLplot library version: 5.11.1
Fontconfig warning: "/etc/fonts/conf.d/65-droid-sans-fonts.conf", line 
103: Having multiple values in  isn't supported and may not work 
as expected
Fontconfig warning: "/etc/fonts/conf.d/65-droid-sans-fonts.conf", line 
138: Having multiple values in  isn't supported and may not work 
as expected
Fontconfig warning: "/etc/fonts/conf.d/65-droid-sans-fonts.conf", line 
103: Having multiple values in  isn't supported and may not work 
as expected
Fontconfig warning: "/etc/fonts/conf.d/65-droid-sans-fonts.conf", line 
138: Having multiple values in  isn't supported and may not work 
as expected

real0m0.407s
user0m0.108s
sys0m0.016s
lb@mp12-lb:~/plplot.git/examples/c++$ time ./x01 -dev wxwidgets -np
PLplot library version: 5.11.1
Fontconfig warning: "/etc/fonts/conf.d/65-droid-sans-fonts.conf", line 
103: Having multiple values in  isn't supported and may not work 
as expected
Fontconfig warning: "/etc/fonts/conf.d/65-droid-sans-fonts.conf", line 
138: Having multiple values in  isn't supported and may not work 
as expected
Fontconfig warning: "/etc/fonts/conf.d/65-droid-sans-fonts.conf", line 
103: Having multiple values in  isn't supported and may not work 
as expected
Fontconfig warning: "/etc/fonts/conf.d/65-droid-sans-fonts.conf", line 
138: Having multiple values in  isn't supported and may not work 
as expected

real0m10.997s
user0m0.064s
sys0m0.040s
lb@mp12-lb:~/plplot.git/examples/c++$ time ./x01 -dev xwin -np
PLplot library version: 5.11.1

real0m0.122s
user0m0.056s
sys0m0.020s
lb@mp12-lb:~/plplot.git/examples/c++$ time ./x01 -dev xwin -np
PLplot library version: 5.11.1

real0m0.122s
user0m0.060s
sys0m0.016s
lb@mp12-lb:~/plplot.git/examples/c++$ time ./x01 -dev xcairo -np
PLplot library version: 5.11.1
Fontconfig warning: "/etc/fonts/conf.d/65-droid-sans-fonts.conf", line 
103: Having multiple values in  isn't supported and may not work 
as expected
Fontconfig warning: "/etc/fonts/conf.d/65-droid-sans-fonts.conf", line 
138: Having multiple values in  isn't supported and may not work 
as expected

real0m0.125s
user0m0.088s
sys0m0.016s
lb@mp12-lb:~/plplot.git/examples/c++$ time ./x01 -dev xcairo -np
PLplot library version: 5.11.1
Fontconfig warning: "/etc/fonts/conf.d/65-droid-sans-fonts.conf", line 
103: Having multiple values in  isn't supported and may not work 
as expected
Fontconfig warning: "/etc/fonts/conf.d/65-droid-sans-fonts.conf", line 
138: Having multiple values in  isn't supported and may not work 
as expected

real0m0.128s
user0m0.084s
sys0m0.020s
lb@mp12-lb:~/plplot.git/examples/c++$






Le 14/11/2016 à 22:19, Alan W. Irwin a écrit :
> Hi Laurent:
>
> I have put my reply to you on list for obvious reasons.
>
> On 2016-11-14 14:26+0100 Laurent Berger wrote:
>
>> Hi Alan,
>>
>> I would try to help you
>
> Thanks in advance for that.
>
>> but I'm not familiar on linux (see attached file for version).
>
> From what you included, your Linux platform has access to wxwidgets
> version 3.0 (as do I).  But the rest of your platform (old Linux Mint
> distribution using a relatively old kernel version 3.2.0-2-amd64
> compared to my much more modern Debian Jessie using a fairly
> up-to-date kernel version 3.16.0-4-amd64) provides an extremely useful
> testing contrast in case the issue is some lameness in the IPC
> implementation for my particular Linux kernel.  (IPC, i.e.,
> interprocess communication is used to communicate between -dev
> wxwidgets and the wxPLViewer application that displays the results.)
>
>> I think it is this message 
>> (https://sourceforge.net/p/plplot/mailman/message/34744869/)
>
> Yes, that message and the following one that provided the screenshots 
> referred to
> in that message are the relevant ones.
>
>>
>> I have build plplot on linux using cmake 3.0.2 using "Unix Makefiles"
>> Then sudo make install. I have attached git log result and cmakecache
>> Then  I run in folder examples/c++
>> ./x01c -dev wxdrivers
>>
>> I can see a window with 4 curves. Windows title is wxPLviewer. No 
>> problem
>> Now what do you want to test ?
>
> Speed.
>
> You measure speed on linux using, e.g.,
>
> software@raven> time examples/c/x01c -dev wxwidgets -np
> PLplot library version: 5.11.1
>
> real0m0.652s
> user0m0.064s
> sys 0m0.016s
> software@raven> software@raven> time examples/c/x01c -dev wxwidgets -np
> PLplo

Re: [Plplot-devel] Finding wxWidgets

2016-11-13 Thread Laurent Berger
Hi,

I have just made a git pull git.code.sf.net/p/plplot/plplot. Using cmake 
3.7.0.rc2 and wxwidgets 3.1.0 and VS 2015. After pressing OK every 
where, all  is fine. thanks for this new version!



Le 12/11/2016 à 10:00, Alan W. Irwin a écrit :
> On 2016-11-12 00:08-0500 Pedro Vicente wrote:
>
>> Hi Alan
>>
>> it seems all is ok now
>
>> doing
>
>> $ cmake ".." -G "Visual Studio 14" -DPL_DOUBLE:BOOL=ON
>> -DBUILD_TEST:BOOL=ON -DCMAKE_CONFIGURATION_TYPES:STRING="Debug"
>> -DCMAKE_BUILD_TYPE:STRING="Deb ug" -DBUILD_SHARED_LIBS:BOOL=OFF
>> -DSTATIC_RUNTIME:BOOL=ON -DPLD_wxwidgets:BOOL=ON
>> -DwxWidgets_ROOT_DIR:PATH=%WXWIN% -DwxWidgets_LIB_DIR:PATH=%WXWIN%\
>> lib\vc_lib -DwxWidgets_CONFIGURATION=mswud -DENABLE_MIX_CXX=ON
>> -DwxWidgets_EXCLUDE_COMMON_LIBRARIES:BOOL=OFF > make.txt 2>&1
>
>
> Actually, there are still problems finding wxWidgets on your platform.
> Specifically, from the make.txt file you sent you have the following
> (bad) find results:
>
> -- wxWidgets_FOUND   : FALSE
> -- wxWidgets_INCLUDE_DIRS: -- wxWidgets_LIBRARY_DIRS: -- 
> wxWidgets_LIBRARIES   : -- wxWidgets_CXX_FLAGS   : -- 
> wxWidgets_USE_FILE: UsewxWidgets
> -- WARNING: wxWidgets or its libraries not found so setting all 
> wxwidgets devices to OFF.
>
> CMake is pretty good at finding libraries installed in standard
> locations so the first thing I suggest you try is to drop the options
> above that set wxWidgets_ROOT_DIR and wxWidgets_LIB_DIR.  But if that
> doesn't work (i.e., wxWidgets_FOUND is still FALSE). then you should
> consider the large likelihood that those variables are set incorrectly
> (i.e., do not point to the non-standard location where you have
> installed wxwidgets). For example, is WXWIN defined properly to the
> location where you have installed wxWidgets? (I have asked this key
> question before, but so far you have not responded.)
>
> 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
> __


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


Re: [Plplot-devel] Finding wxWidgets

2016-10-19 Thread Laurent Berger
Hi all,

I still use plplot  (PLplot Release 5.11.2) and wxwidgets (from github) 
using cmake with vs 2015. If you want to check something about detect 
wxwidgets feel free to ask me.

Laurent
Le 19/10/2016 à 21:39, Alan W. Irwin a écrit :
> On 2016-10-19 00:10-0400 Pedro Vicente wrote:
>
>> 2) wxWidgets not detected
>>
>>
>> I used
>>
>>
>>
>> M:\plplot-plplot\build>cmake ".." -G "Visual Studio 14" -DPL_DOUBLE:BOOL=ON
>> -DBUILD_TEST:BOOL=ON -DCMAKE_CONFIGURATION_TYPES:STRING="Debug"
>> -DCMAKE_BUILD_TYP
>> E:STRING="Debug" -DBUILD_SHARED_LIBS:BOOL=OFF -DSTATIC_RUNTIME:BOOL=ON
>> -DPLD_wxwidgets:BOOL=ON -DwxWidgets_ROOT_DIR:PATH=%WXWIN%
>> -DwxWidgets_LIB_DIR:PATH=%WX
>> WIN%\lib\vc_lib -DwxWidgets_CONFIGURATION=mswud -DENABLE_MIX_CXX=ON
>> -DwxWidgets_EXCLUDE_COMMON_LIBRARIES:BOOL=OFF
>> -DCMAKE_PREFIX_PATH:PATH=I:\qt-win32-msvc20
>> 15 -DPLPLOT_USE_QT5:BOOL=ON > a.txt 2>&1
>>
>> and the a.txt file is attached
> Hi Pedro:
>
> I think this topic deserves its own thread so note the subject line
> change.  I looked at your a.txt file, and indeed
>
> -- wxWidgets_FOUND   : FALSE
> -- wxWidgets_INCLUDE_DIRS:
> -- wxWidgets_LIBRARY_DIRS:
> -- wxWidgets_LIBRARIES   :
> -- wxWidgets_CXX_FLAGS   :
> -- wxWidgets_USE_FILE: UsewxWidgets
> -- WARNING: wxWidgets or its libraries not found so setting all wxwidgets 
> devices to OFF.
>
> But then you look near the end of that file, and you find this
> interesting tidbit.
>
> CMake Warning:
> Manually-specified variables were not used by the project:
>
>   ENABLE_MIX_CXX
>   wxWidgets_CONFIGURATION
>
> What did you mean to do with the -DENABLE_MIX_CXX=ON cmake
> command-line option?  I can find no reference
> at all to the string "_MIX" in our source tree or in the near-complete cmake
> documentation you get by running cmake --help-full so I suspect you
> have mispelled that option.
>
> In contrast to ENABLE_MIX_CXX, wxWidgets_CONFIGURATION is readily found
> in cmake/modules/FindwxWidgets.cmake, but you are obviously not getting
> to that part of the logic which is likely due to some incorrect setup
> of the search for wxWidgets that you are doing.  So I would carefully
> review the other wxWidgets command-line options you are using.  For
> example you specify
>
> -DwxWidgets_ROOT_DIR:PATH=%WXWIN%
>
> Is "WXWIN" set correctly?  For example, the
> find module documentation in cmake/modules/FindwxWidgets.cmake uses
> the example of C:/wxWidgets-2.6.3 so you should check that WXWIN
> translates to the equivalent for your wxWidgets-3.1.0 installation.
> And similarly for -DwxWidgets_LIB_DIR:PATH=%WXWIN%\lib\vc_lib
>
> Once you have WXWIN set correctly (or whatever is needed to change
> your wxWidgets cmake command-line options so that
> wxWidgets_CONFIGURATION is used), then my prediction is the rest
> of the wxWidgets find process will work as well.  But please let me
> know whether this prediction pans out.  :-)
>
> 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


--
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 with wxWidgets, Visual Studio

2016-09-17 Thread Laurent Berger

Hi Pedro,

I am using vs2013 and plplot (from github) with wxwidgets and I haven't 
got any problem. I think you should update findwxwidgets.cmake from 
https://sourceforge.net/p/plplot/plplot/ci/master/tree/cmake/modules/FindwxWidgets.cmake 
(see 
https://sourceforge.net/p/plplot/plplot/ci/5b9dd303b50061c8ed3a9f149aea4b2a6817eece/log/?path=/cmake/modules/FindwxWidgets.cmake)


May be you should clone plplot version but it is a develloper version.

I hope it will solve your problem.

Laurent


Le 17/09/2016 à 07:43, Pedro Vicente a écrit :

Hi
I am trying to build PLPlot with the wxWidgets driver , and I get some 
errors

https://sourceforge.net/p/plplot/wiki/WxWidgets/
This is for
wxwidgets-3.1.0
Visual Studio 2015
I used
cmake ".." -G "Visual Studio 14" -DPL_DOUBLE:BOOL=ON 
-DBUILD_TEST:BOOL=ON -DCMAKE_CONFIGURATION_TYPES:STRING="Debug" 
-DCMAKE_BUILD_TYPE:STRING="Debug" -DBUILD_SHARED_LIBS:BOOL=OFF 
-DSTATIC_RUNTIME:BOOL=ON -DPLD_wxwidgets:BOOL=ON 
-DwxWidgets_ROOT_DIR=%WXWIN% -DwxWidgets_LIB_DIR=%WXWIN%/lib/vc_lib 
-DwxWidgets_CONFIGURATION=mswud -DENABLE_MIX_CXX=ON 
-DwxWidgets_EXCLUDE_COMMON_LIBRARIES:BOOL=OFF

The wxwidgets Cmake output is
-- wxWidgets_FOUND   : FALSE
-- wxWidgets_INCLUDE_DIRS: 
M:/wx/wxwidgets-3.1.0/lib/vc_lib/mswud;M:/wx/wxwidgets-3.1.0/include

-- wxWidgets_LIBRARY_DIRS:
-- wxWidgets_LIBRARIES   : 
M:/wx/wxwidgets-3.1.0/lib/vc_lib/wxpngd.lib;M:/wx/wxwidgets-3.1.0/lib/vc_lib/wxtiffd.lib;M:/wx/wxwidgets-3.1.0/lib/vc_lib/wxjp

egd.lib;M:/wx/wxwidgets-3.1.0/lib/vc_lib/wxzlibd.lib;M:/wx/wxwidgets-3.1.0/lib/vc_lib/wxregexud.lib;M:/wx/wxwidgets-3.1.0/lib/vc_lib/wxexpatd.lib;winmm;comct
l32;rpcrt4;wsock32
-- wxWidgets_CXX_FLAGS   :
-- wxWidgets_USE_FILE: UsewxWidgets
-- WARNING: wxWidgets or its libraries not found so setting all 
wxwidgets devices to OFF.

-- WARNING: PLD_wxwidgets is OFF so setting ENABLE_wxwidgets to OFF.
-- WARNING: ENABLE_wxwidgets is OFF so setting all wxwidgets devices 
to OFF.

It seems some libraries are found, and these 2 lines here
-- wxWidgets_INCLUDE_DIRS: 
M:/wx/wxwidgets-3.1.0/lib/vc_lib/mswud;M:/wx/wxwidgets-3.1.0/include

-- wxWidgets_LIBRARY_DIRS:
seem to be mixed up.
How could  I debug the  PLPlot supplied Cmake script, 
"FindwxWidgets.cmake"?

thanks
-Pedro
--
Pedro Vicente
pedro.vice...@space-research.org
http://www.space-research.org/


--


___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


--
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] Uisng plplot with wxwidgets and vs 2015

2016-01-13 Thread Laurent Berger
Hi,

I need to resume before further insvestigations
on my computer
VS2013 wx3.1.0(commit 25-nov 2015)  plplot (commit 22 dec 2015) ==> no 
problem
VS2015 wx3.1.0(commit 25-nov 2015)  plplot (commit 22 dec 2015) ==> bug 
in closing window

on your computer
VS2013 wx3.0.2  plplot (commit 22 dec 2015)  ==> no problem
VS2015 wx3.0.2   plplot (commit 22 dec 2015)  ==> no problem

I think VS 2015 compiler is not like vs2013 compiler

I have comment line 2527 of plcore.c : plPTidy() and there is no 
exception. Of course it is not an answer to this problem but i think it 
helps to localize this problem.

As you are not able to reproduce my error  may be something is wrong in 
my configuration. I can stay with VS 2013

Laurent



Le 11/01/2016 18:54, Phil Rosenberg a écrit :
> Hi Laurent
> I am unfortunately so far unable to reproduce your error. I have tried
> checking out the same commit that you have and still I do not see the
> same error
>
> I can only think that this must be something to do with the new
> version of wxWidgets. I will try to look into it further, but I am not
> sure exactly when I will be able to upgrade to that version. Hopefully
> later this week.
>
> However, later on the 22nd Dec - the same day you checked out your
> version of PLPlot, I changed the destructor of wxPLplotwindow to
> virtual, which it should have been all the time, because wxWidgets is
> probably deleting it via a wxWindow * pointer. There is a chance this
> may have fixed your issue. Can you please check out the latest version
> of from the git repo and let me know if you still have the same
> problem.
>
> If the problem persists can I just confirm that you are getting the
> second stack trace twice identically? If you are then that is very
> strange as it means that  plend() is getting called twice somehow.
>
> Also it is worth noting that I have just made some commits that fix
> some not quite correct aspect ratio problems that the wxWidgets driver
> was having (although I'm not sure if they existed when you pass a wxDC
> in, maybe just when run from non-wxWidgets apps).
>
> Phil
>
> On 9 January 2016 at 09:11, Phil Rosenberg  wrote:
>> Hi Laurent
>> I am working with wxWidgets 3.0.2. Perhaps there have been some changes.
>>
>> However, looking at your two stack traces I think there is a plplot problem.
>> It looks like the wxPlplotwindow destructor is being called twice, once by
>> plplot and once by wxWidgets.
>>
>> I will look at this today and get back to you asap.
>>
>> Phil
>> 
>> From: Laurent Berger
>> Sent: ‎08/‎01/‎2016 21:35
>> To: Phil Rosenberg
>> Subject: Re: [Plplot-devel] Uisng plplot with wxwidgets and vs 2015
>>
>> Hi phil
>>
>> i use git from git://git.code.sf.net/p/plplot/plplot
>> Using git log I have got this :
>> commit b90635d9fcba816f5bdd75c547c18bfe25d67ec0
>> Author: Phil Rosenberg 
>> Date:   Tue Dec 22 11:52:17 2015 +
>> I'm working too with windows 10
>>
>> my wxWidgets is 3.1.0 with last commit from 8 jan 2016
>>
>> Le 08/01/2016 22:24, Phil Rosenberg a écrit :
>>
>> Hi Laurent
>> Are you using the latest development version or the latest release version?
>>
>> I have also just swapped to VS2015 and the current development version I
>> working for me on Windows 10.
>> 
>> From: Laurent Berger
>> Sent: ‎08/‎01/‎2016 20:23
>> To: plplot-devel@lists.sourceforge.net
>> Subject: [Plplot-devel]  Uisng plplot with wxwidgets and vs 2015
>>
>> Hi,
>>
>> I want to use VS2015 now with wxwidgets and plplot. When I wxPlplotDemo
>> It works fine until I press close box. An exception occurs at line 273
>> wxWidgets-3.1.0/src/common/dcgraph.cpp stack. When I set a breakpoint at
>> line 273 in dcgraph.cpp stack trace for first call
>>> wxPLplotDemo.exe!wxGCDCImpl::~wxGCDCImpl() Ligne 273C++
>>[Code externe]
>>wxPLplotDemo.exe!wxDC::~wxDC() Ligne 742C++
>>wxPLplotDemo.exe!wxGCDC::~wxGCDC() Ligne 122C++
>>[Code externe]
>> wxPLplotDemo.exe!wxPLplotwindow::~wxPLplotwindow()
>> Ligne 110C++
>>[Code externe]
>>wxPLplotDemo.exe!wxAppConsoleBase::DeletePendingObjects() Ligne
>> 637C++
>>wxPLplotDemo.exe!wxAppConsoleBase::ProcessIdle() Ligne 445 C++
>>wxPLplotDemo.exe!wxAppBase::ProcessIdle() Ligne 373C++
>>wxPLplotDemo.exe!wxEventLoopBase::ProcessIdle() Ligne 98C++
>>wxPLplotDemo.exe!wxEventLoopManual::DoRun() Ligne 263C++
>>wxPLplotDemo.exe!wxEventLo

[Plplot-devel] Uisng plplot with wxwidgets and vs 2015

2016-01-08 Thread Laurent Berger
Hi,

I want to use VS2015 now with wxwidgets and plplot. When I wxPlplotDemo 
It works fine until I press close box. An exception occurs at line 273 
wxWidgets-3.1.0/src/common/dcgraph.cpp stack. When I set a breakpoint at 
line 273 in dcgraph.cpp stack trace for first call
 >wxPLplotDemo.exe!wxGCDCImpl::~wxGCDCImpl() Ligne 273C++
  [Code externe]
  wxPLplotDemo.exe!wxDC::~wxDC() Ligne 742C++
  wxPLplotDemo.exe!wxGCDC::~wxGCDC() Ligne 122C++
  [Code externe]
wxPLplotDemo.exe!wxPLplotwindow::~wxPLplotwindow() 
Ligne 110C++
  [Code externe]
  wxPLplotDemo.exe!wxAppConsoleBase::DeletePendingObjects() Ligne 
637C++
  wxPLplotDemo.exe!wxAppConsoleBase::ProcessIdle() Ligne 445 C++
  wxPLplotDemo.exe!wxAppBase::ProcessIdle() Ligne 373C++
  wxPLplotDemo.exe!wxEventLoopBase::ProcessIdle() Ligne 98C++
  wxPLplotDemo.exe!wxEventLoopManual::DoRun() Ligne 263C++
  wxPLplotDemo.exe!wxEventLoopBase::Run() Ligne 76C++
  wxPLplotDemo.exe!wxAppConsoleBase::MainLoop() Ligne 380C++
  wxPLplotDemo.exe!wxAppConsoleBase::OnRun() Ligne 302C++
  wxPLplotDemo.exe!wxAppBase::OnRun() Ligne 312C++
  wxPLplotDemo.exe!wxEntryReal(int & argc, wchar_t * * argv) Ligne 
503C++
  wxPLplotDemo.exe!wxEntry(int & argc, wchar_t * * argv) Ligne 
181C++
  wxPLplotDemo.exe!wxEntry(HINSTANCE__ * hInstance, HINSTANCE__ * 
__formal, char * __formal, int nCmdShow) Ligne 290C++
  wxPLplotDemo.exe!WinMain(HINSTANCE__ * hInstance, HINSTANCE__ * 
hPrevInstance, char * __formal, int nCmdShow) Ligne 129C++
  [Code externe]

If i go on debugging I reach break point twice with this statck trace

 >wxPLplotDemo.exe!wxGCDCImpl::~wxGCDCImpl() Ligne 273C++
  [Code externe]
  wxPLplotDemo.exe!wxDC::~wxDC() Ligne 742C++
  wxPLplotDemo.exe!wxGCDC::~wxGCDC() Ligne 122C++
  [Code externe]
  wxPLplotDemo.exe!wxPLDevice::~wxPLDevice() Ligne 543C++
  [Code externe]
  wxPLplotDemo.exe!plD_tidy_wxwidgets(PLStream * pls) Ligne 383C++
  wxPLplotDemo.exe!plP_tidy() Ligne 235C
  wxPLplotDemo.exe!c_plend1() Ligne 2528C
  wxPLplotDemo.exe!plstream::~plstream() Ligne 347C++
  wxPLplotDemo.exe!wxPLplotstream::~wxPLplotstream() Ligne 91 C++
wxPLplotDemo.exe!wxPLplotwindow::~wxPLplotwindow() 
Ligne 111C++
  [Code externe]
  wxPLplotDemo.exe!wxAppConsoleBase::DeletePendingObjects() Ligne 
637C++
  wxPLplotDemo.exe!wxAppConsoleBase::ProcessIdle() Ligne 445 C++
  wxPLplotDemo.exe!wxAppBase::ProcessIdle() Ligne 373C++
  wxPLplotDemo.exe!wxEventLoopBase::ProcessIdle() Ligne 98C++
  wxPLplotDemo.exe!wxEventLoopManual::DoRun() Ligne 263C++
  wxPLplotDemo.exe!wxEventLoopBase::Run() Ligne 76C++
  wxPLplotDemo.exe!wxAppConsoleBase::MainLoop() Ligne 380C++
  wxPLplotDemo.exe!wxAppConsoleBase::OnRun() Ligne 302C++
  wxPLplotDemo.exe!wxAppBase::OnRun() Ligne 312C++
  wxPLplotDemo.exe!wxEntryReal(int & argc, wchar_t * * argv) Ligne 
503C++
  wxPLplotDemo.exe!wxEntry(int & argc, wchar_t * * argv) Ligne 
181C++
  wxPLplotDemo.exe!wxEntry(HINSTANCE__ * hInstance, HINSTANCE__ * 
__formal, char * __formal, int nCmdShow) Ligne 290C++
  wxPLplotDemo.exe!WinMain(HINSTANCE__ * hInstance, HINSTANCE__ * 
hPrevInstance, char * __formal, int nCmdShow) Ligne 129C++
  [Code externe]

An if press step exception occurs this->m_graphicContexthas been 
0xFFF7...

With VS 2013 there is no problem and setting breakpoint at same point 
this breakpoint is reach only once.
I have build plplot with static lib and shared  lib  using release or 
debug mode and that's change nothing.

Have you got an idea to help me solving  this problem?

Thanks in advance








--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] Screen coordinates to data coordinates withwxWidgets driver

2015-12-22 Thread Laurent Berger
Thanks it works:-)

Le 22/12/2015 13:00, Phil Rosenberg a écrit :
> Hi Laurent, Alan
> I have just committed the changes exposing plTranslateCursor in the
> C++ binding. I have also documented it in the main API section - Alan,
> please tell me if this is not appropriate as it will not be exposed in
> other bindings. Also I am not 100% sure about the plGraphicsIn::state
> variable. This doesn't appear to be documented anywhere, there are
> just references to X11/X.h. I found a copy of that online, but haven't
> had chance to read up in detail. We really should document it
> ourselves.
>
> Laurent, if you are making use of the wxPLplotwindow templated class,
> then the easiest way to catch the mouse position now using the latest
> source is to inherit from this class and overload the virtual function
> OnLocate, which accepts a const reference to a PLGraphicsIn. This
> structure will have already been passed to plTranslateCursor and will
> have all relevant variables filled in. You can check wxPLplotDemo for
> an example of how this works. Alternatively you can check out
> wxPLplotwindow.h (in particular the OnMouse method) to see how you can
> write your own event capture code if you prefer.
>
> Phil
>
>
>
> On 22 December 2015 at 08:21, Phil Rosenberg  wrote:
>> Okay Alan, will do. I was just a bit worried that there might be a reason
>> why pltranslatecursor had never been documented or propagated to other
>> bindings.
>> ________
>> From: Alan W. Irwin
>> Sent: ‎20/‎12/‎2015 19:51
>> To: Phil Rosenberg
>> Cc: Laurent Berger; plplot-devel@lists.sourceforge.net
>> Subject: Re: [Plplot-devel] Screen coordinates to data coordinates
>> withwxWidgets driver
>>
>> On 2015-12-20 12:07- Phil Rosenberg wrote:
>>
>>> Hi Laurent
>>> (Alan, please see my email below - I accidentally replied to Laurent
>>> instead of replying to all yesterday)
>>>
>>> I've just  had a look and you can use plTranslateCursor to get the
>>> coordinates. This function is listed as part of the API on p181 of the
>>> documentation, but it doesn't seem to be documented anywhere.
>>>
>>> This function isn't exposed in the C++ interface, so therefore isn't
>>> exposed by the wxWidgets interface. Hence I am not sure how you can
>>> access it unless you are using the C interface.
>>>
>>> Alan - I have just written some code to expose plTranslateCursor in
>>> the C++ interface and have added some code to the wxWidgets binding to
>>> capture mouse events and pass them back to the user easily.
>>>
>>> Are you happy for me to commit these changes?
>> Sure.  There won't be a freeze on such merges to master for quite some
>> time so go ahead.  Please also include a test that exercises your
>> changes.  Would examples/c++/wxPLplotDemo.cpp be suitable for such a
>> test?
>>
>> 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
>> __


--
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] Screen coordinates to data coordinates with wxWidgets driver

2015-12-20 Thread Laurent Berger
Hi phil,

Thanks you to waste time on my problem.

I have try something like this
void FenetreCourbe::OnLeftDown(wxMouseEvent& event)
{
 PLGraphicsIn g;
 wxPLplotstream* pls = GetStream();
 // pls->adv(0); uncomment this line does not change result
 g.dX = event.GetX();
 g.dY = event.GetY();
 g.subwindow=0;
 plTranslateCursor(&g);
}

g.wx, g.wy are always 0 I have used this 
http://plplot.sourcearchive.com/documentation/5.9.9-1/plpage_8c_aee8b46bbe61887f2fd8dec90a7338e0d.html#aee8b46bbe61887f2fd8dec90a7338e0d.
 
I do not understand why I must give g.dX, g.dy and not g.pX and g.pY

All others fields of PLGraphics structure are unitialized



Le 20/12/2015 13:07, Phil Rosenberg a écrit :
> Hi Laurent
> (Alan, please see my email below - I accidentally replied to Laurent
> instead of replying to all yesterday)
>
> I've just  had a look and you can use plTranslateCursor to get the
> coordinates. This function is listed as part of the API on p181 of the
> documentation, but it doesn't seem to be documented anywhere.
>
> This function isn't exposed in the C++ interface, so therefore isn't
> exposed by the wxWidgets interface. Hence I am not sure how you can
> access it unless you are using the C interface.
>
> Alan - I have just written some code to expose plTranslateCursor in
> the C++ interface and have added some code to the wxWidgets binding to
> capture mouse events and pass them back to the user easily.
>
> Are you happy for me to commit these changes?
>
> On 19 December 2015 at 21:46, Phil Rosenberg  wrote:
>> Hi Laurent
>>
>> It looks to me like you are writing a wxWidgets application yourself.
>> Is this correct? Unfortunately plGetCursor only works when you do not
>> provide your own wxDC to Plplot, in this case plplot uses wxPlViewer -
>> a separate wxWidgets executable which captures the mouse clicks and
>> reports them back to the library. It is wxPlViewer that is used when
>> you run the examples from the command line.
>>
>> If you are passing a wxDC into Plplot, plGetCursor doesn't work and
>> emits a warning, but you probably don't see the warning as it is sent
>> to stdout. In this case you must handle mouse events yourself and
>> plGetCursor will not work. You need something like
>>
>> void wxPlFrame::OnMouse( wxMouseEvent &event )
>>
>> {
>>
>> if(!event.ButtonDown())
>> return;
>> //get the mouse position
>> wxPoint cursorPosition = event.GetPosition();
>>
>> //some code to convert to plot coordinate
>> }
>>
>> Bind this function using the wxWidgets Bind() function or and event
>> table. Unfortunately the last bit, converting to plot coordinates you
>> may have to do yourself. I do not think there is a built in function
>> to do it - Alan, please correct me if this is wrong. However, if in
>> your wxWindow you remember the parameters passed into plwind then you
>> should be able to calculate the plot coordinates from the pixel values
>> returned from GetPosition().


--
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] Screen coordinates to data coordinates with wxWidgets driver

2015-12-19 Thread Laurent Berger
Thanks for your answer. I have missed option -locate and now I can see 
coordinate in example x01c. It's really a good idea to  insert example 
name with function description in doc:-) .
Now I want to get coordinates in a program like wxPLplotdemo and I don't 
know where to insert this function in my code. I have try to insert in 
mouse event( left button down) like this:

void FenetreCourbe::OnLeftDown(wxMouseEvent& event)
{
 PLGraphicsIn x;
 plGetCursor(&x);
 wxString s;
 s.Printf("%f %f %d %d",x.dX,x.dY,x.pX,x.pY);
 wxMessageBox(s);
}

but coordinates are always -1 -1 -1 -1 when I click in curve. I don't 
know what to modify to get this coordinates.



Le 18/12/2015 23:54, Alan W. Irwin a écrit :
> On 2015-12-18 23:03+0100 Laurent Berger wrote:
>
>> Hi,
>>
>> In plplot using wxwidgets driver which function must I use to get data
>> coordinates using mouse event?
>>
>> I have try  plGetCursor in an event callback but i connot retrieve
>> coordinate.
>
> Hi Laurent:
>
> Look at examples/c/x01c.c for an example of how plGetCursor should
> be used.
>
> If you get a good result with an interactive device accessible to you
> for example 1 with the -locate command-line option, but not -dev
> wxwidgets, that would be a bug in -dev wxwidgets.  However, although I
> don't have access to wxwidgets at the moment, I am pretty sure I have
> already made that check in the past, and there was no such bug in -dev
> wxwidgets compared to the good interactive results that occur for the
> xwin, xcairo, and qtwidget devices.
>
> 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
> __


--
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


[Plplot-devel] Screen coordinates to data coordinates with wxWidgets driver

2015-12-18 Thread Laurent Berger
Hi,

In plplot using wxwidgets driver which function must I use to get data 
coordinates using mouse event?

I have try  plGetCursor in an event callback but i connot retrieve 
coordinate.

Thanks for your help

--
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


[Plplot-devel] memory leaks in wxWidgets driver?

2015-04-21 Thread laurent Berger
Hi,

I look fo memory leaks in my program using plplot 5.11. I am using vs 
2013 with Visual leak detector.
This tools finds two memory leaks in my plplot code in wxPlplotWindow.h 
at line 187(m_memory_dc) and line 195 (m_gcDc).
When I close wxPlplotwindow<> this two pointers are not deleted. May be 
I don't use good function to close wxPlplotwindow<>. Can you tell me how 
can I close it?

Thanks you for yours answers and for new version of plplot.




--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


[Plplot-devel] Installing plplot on windows

2015-03-18 Thread Laurent Berger
After building plplot I want to install it on my computer with VS 2012  
Win64. I install it using INSTALL project which in Plplot.sn solution  
for VS 2012. Plplot is installed in program files .

In my own project I used cmake looking for opencv openscenegraph and plplot :
find_package(OpenSceneGraph  3.2.1 REQUIRED osgDB osgUtil osgGA  
osgViewer osgText osgSim)
find_package(OpenCV  REQUIRED)
find_package(wxWidgets COMPONENTS core base net adv aui html  qa  
richtext stc ribbon xml gl REQUIRED)
find_package(PLplot  REQUIRED)

CMake cannot find plplot on my computer.
I think cmake cannot find plplot because system variables are not set  
: PLPLOT_HOME does not exist.
Must I set myself ?
Is it possible to set this variable in PLplot CMakeLists.txt install?
Is it possible to set env PATH in PLplot CMakeLists.txt to add program  
files/plplot/bin?
I think previous questions are not important but maybe it could be  
useful for new users.


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] Call for testing of the PLplot git master tip version VS2012, shared libraries

2015-03-18 Thread laurent Berger
I have done a git pull to update my repository and use cmake to update 
sharelibs and staticlib project and now
everything is OK : no test_plbuf error!

Some errors are still here but it's not relative to plplot. May be some 
unix command are missing on my computer. I have tried some examples and 
it works.


Example :
5>  Building Custom Rule 
F:/Lib/test/plplot-plplot/www/announce/CMakeLists.txt
5>  CMake does not need to re-run because 
F:\Lib\test\plplot-plplot\buildstatic\www\announce\CMakeFiles\generate.stamp 
is up-to-date.
5>  Generating announce-plplot-5.3.0.html
5>  'xmlto' is unknown s internal command
5>  extern, executable file or command file.
5>C:\Program Files 
(x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(172,5): error 
MSB6006: Arrêt de "cmd.exe" avec le code 9009.



Le 18/03/2015 12:18, Alan W. Irwin a écrit :
> On 2015-03-18 10:04+0100 Laurent Berger wrote:
>
>> but how can I set COMPILE_DEFINITIONS?
>> At line 68-69 of CmakeLists.txt i can find
>>  SET_SOURCE_FILES_PROPERTIES(${plplot_LIB_SRCS}
>>PROPERTIES COMPILE_FLAGS "-DUSINGDLL" )
>> but (may be I'm wrong) it's only for plplot_LIB_SRCS and test_plbuf.c 
>> it's not in the list.
>
> Hi Laurant:
>
> Oops, you are right, and that might be the key for
> solving this issue.
>
> I was completely focussed on the shared library because it is
> important to export all symbols from there (which requires USINGDLL to
> be set for the library).  Nothing special has to be done to import
> symbols into a C example for the gcc case with --visibility=hidden
> (All Unices, Cygwin, MinGW/MSYS, MinGW-w64/MSYS2) so I completely
> forgot about that issue for MSVC where apparently (from the CMake
> logic in include/pldll.h.in) something special does have to be done to
> import symbols, and that only happens if USINGDLL is set for all
> the C examples.  That had already been done for examples/c/x??c,
> but not for several other C examples including test_plbuf.
>
> So I have now made sure that USINGDLL has been set for all examples in
> examples/c (commit id = ac66c44, the current master tip) so please
> give that a try and let us know if that completely solves the issues 
> with shared libraries that you have been experiencing with
> MSVC and test_plbuf.
>
> @Phil, Arjen, and Jim:
>
> I have a feeling you guys have only been doing MSVC tests for the
> static library case because you saw some unresolved symbols for the
> shared library case.  But please don't be so polite by keeping those
> build system issues to yourselves.  :-) I really do want to know about
> and completely solve issues like that on Linux, and I hope to inspire
> you guys to have a similar "zero tolerance" attitude for build system
> issues on Windows.
>
> N.B. With luck commit id ac66c44 should be a complete cure for MSVC
> symbol visibility issues for the C examples case.  However, I am sure
> there are also such issues for C++, Tcl, Tk, etc. examples so I will
> fix those after I get some sleep (unless you give me a nice surprise
> and beat me to that fix now I have shown what needs to be done for
> every add_executable command in examples/c++/CMakeLists.txt, etc.)
>
> 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
> __


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] Call for testing of the PLplot git master tip version VS2012, shared libraries

2015-03-18 Thread Laurent Berger
For CMake I use Cmake-gui
Now I'm working at office with windows 7-32 bits and msvc 2012.
Results are exactely like windows7-64 bits and msvc 2012-Win64:
no problem with static lib BUILD_SHARED_LIBS:BOOL=OFF. I can see 
wxplotdemo running while building plplot
same problem with shared lib BUILD_SHARED_LIBS:BOOL=ON error LNK2001: 
unresolved external symbol _plsc
command line for compile is :
/GS /TC /analyze- /W3 /Zc:wchar_t /I"D:\lib\test\plplot-plplot\include" 
/I"D:\lib\test\plplot-plplot\buildshare\include" 
/I"D:\lib\test\plplot-plplot\lib\qsastime" /Zi /Gm- /Od /Ob0 
/Fd"test_plbuf.dir\Debug\vc110.pdb" /fp:precise /D "WIN32" /D "_WINDOWS" 
/D "_DEBUG" /D "_CRT_SECURE_NO_DEPRECATE" /D "CMAKE_INTDIR=\"Debug\"" /D 
"_MBCS" /errorReport:prompt /WX- /Zc:forScope /RTC1 /Gd /Oy- /MDd 
/Fa"Debug/" /nologo /Fo"test_plbuf.dir\Debug\" 
/Fp"test_plbuf.dir\Debug\test_plbuf.pch"
Now If I add USINGDLL command line become :
/GS /TC /analyze- /W3 /Zc:wchar_t /I"D:\lib\test\plplot-plplot\include" 
/I"D:\lib\test\plplot-plplot\buildshare\include" 
/I"D:\lib\test\plplot-plplot\lib\qsastime" /Zi /Gm- /Od /Ob0 
/Fd"test_plbuf.dir\Debug\vc110.pdb" /fp:precise /D "USINGDLL" /D "WIN32" 
/D "_WINDOWS" /D "_DEBUG" /D "_CRT_SECURE_NO_DEPRECATE" /D 
"CMAKE_INTDIR=\"Debug\"" /D "_MBCS" /errorReport:prompt /WX- 
/Zc:forScope /RTC1 /Gd /Oy- /MDd /Fa"Debug/" /nologo 
/Fo"test_plbuf.dir\Debug\" /Fp"test_plbuf.dir\Debug\test_plbuf.pch"
And there is no problem.

Now I want to modify src/makelists.txt :
"That's why I asked you to edit src/CMakeLists.txt in the source tree
to try the alternative of setting the COMPILE_DEFINITIONS property,
and, of course, that test should be run _without_ setting USINGDLL by
hand, and for a completely new build with no stale results left
over from an old build to confuse issues. "
I can open the file beginning by
"# src/CMakeLists.txt for PLplot
###
### Process this file with cmake to produce Makefile
###
# Copyright (C) 2006-2014 Alan W. Irwin
"
but how can I set COMPILE_DEFINITIONS?
At line 68-69 of CmakeLists.txt i can find
   SET_SOURCE_FILES_PROPERTIES(${plplot_LIB_SRCS}
     PROPERTIES COMPILE_FLAGS "-DUSINGDLL" )
but (may be I'm wrong) it's only for plplot_LIB_SRCS and test_plbuf.c 
it's not in the list.
so how can i set COMPILE_DEFINITIONS for test_plbuf.c in cmakelists.txt?









Le 18/03/2015 07:47, Alan W. Irwin a écrit :
> Hi laurent:
>
> On 2015-03-18 03:56+0100 laurent Berger wrote:
>
> [out of order]
>
>> With a no shared lib and with Windows 7-64 bits and MSVC 2012 Win64 
>> bits:
>> //Build shared libraries
>> BUILD_SHARED_LIBS:BOOL=OFF
>> there is no error
>
> That good result makes sense because BUILD_SHARED_LIBS:BOOL=OFF means
> the static form of PLplot libraries is built where
> symbol visibility (e.g., whether plsc is externally accessible from the
> library) should not be an issue.
>
> However, if you are willing to help more with testing the MSVC 2012 Win64
> bits shared libraries case until you are satisfied with it, then 
> please read on
>
>> Now I forget MSVC 2013
>> My cmake version is 3.1.2.
>
> See remarks below about CMake version.  Also, could you let us
> know what CMake generator you are using?  (Sorry, I forgot to
> ask for this key information before.)
>
>> I have build all versions DEBUG MinSizeRel Release RelWithDebInfo 
>> with Windows 7-64 bits and MSVC 2012 Win64 bits
>> I have build too with Windows 7-64 bits but with MSVC 2012-32bits
>> CMakeCache.txt is
>> ***
>> //Build shared libraries
>> BUILD_SHARED_LIBS:BOOL=ON
>>
>> Always results is
>>> test_plbuf.obj : error LNK2001: unresolved external _plsc
>> 1>F:\Lib\test\plplot-plplot\build2012-32\examples\c\RelWithDebInfo\test_plbuf.exe
>>  
>> : fatal error LNK1120: 1 externes non résolus
>>
>
> Note the whole point of the USINGDLL macro for the shared library case
> is to sort out symbol visibility issues when the PLplot libraries are
> being built so because USINGDLL was not set my hypothesis was the plsc
> symbol was not visible ==> build error.  For your first report of
> results, when USINGDLL was being set (#defined) when you built shared
> PLplot libraries you had success.  Is that still _always_ the case?
>
> @Arjen, Phil, and Jim:
>
> If on the contrary laurent replies that shared library results are
> sometimes bad even when USINGDLL is set by hand, then you should step
> in to see whether you can confirm larent&#x

Re: [Plplot-devel] Call for testing of the PLplot git master tip version VS2013

2015-03-17 Thread laurent Berger
Now I forget MSVC 2013
My cmake version is 3.1.2.
I have build all versions DEBUG MinSizeRel Release RelWithDebInfo with 
Windows 7-64 bits and MSVC 2012 Win64 bits
I have build too with Windows 7-64 bits but with MSVC 2012-32bits
CMakeCache.txt is
***

# EXTERNAL cache entries


//Add extra source-tree consistency checking targets that require
// special tools
ADD_SPECIAL_CONSISTENCY_CHECKING:BOOL=OFF

//Build doxygen documentation
BUILD_DOX_DOC:BOOL=OFF

//Build Hershey fonts?
BUILD_HERSHEY_FONTS:BOOL=OFF

//Build shared libraries
BUILD_SHARED_LIBS:BOOL=ON

//Compile examples in the build tree and enable ctest
BUILD_TEST:BOOL=ON

//Build the testing tree.
BUILD_TESTING:BOOL=ON
*

Always results is
 >test_plbuf.obj : error LNK2001: unresolved external _plsc
1>F:\Lib\test\plplot-plplot\build2012-32\examples\c\RelWithDebInfo\test_plbuf.exe
 
: fatal error LNK1120: 1 externes non résolus

With a no shared lib and with Windows 7-64 bits and MSVC 2012 Win64 bits:
***

# EXTERNAL cache entries


//Add extra source-tree consistency checking targets that require
// special tools
ADD_SPECIAL_CONSISTENCY_CHECKING:BOOL=OFF

//Build doxygen documentation
BUILD_DOX_DOC:BOOL=OFF

//Build Hershey fonts?
BUILD_HERSHEY_FONTS:BOOL=OFF

//Build shared libraries
BUILD_SHARED_LIBS:BOOL=OFF

//Compile examples in the build tree and enable ctest
BUILD_TEST:BOOL=ON

//Build the testing tree.
BUILD_TESTING:BOOL=ON
***

there is no error
1>  Building Custom Rule F:/Lib/test/plplot-plplot/examples/c/CMakeLists.txt
1>  CMake does not need to re-run because 
F:\Lib\test\plplot-plplot\buildstatic\examples\c\CMakeFiles\generate.stamp 
is up-to-date.
1>  test_plbuf.c
1>F:\Lib\test\plplot-plplot\examples\c\test_plbuf.c(69): warning C4101: 
'ver' : variable locale non référencée
1>  test_plbuf.vcxproj -> 
F:\Lib\test\plplot-plplot\buildstatic\examples\c\Debug\test_plbuf.exe
== Régénération globale : 1 a réussi, 0 a échoué, 0 a été ignoré 
== (1 success)



Le 17/03/2015 23:49, Alan W. Irwin a écrit :
> On 2015-03-17 22:38+0100 laurent Berger wrote:
>
>> with VS2013 like yesterday there is no problem but same error (like 
>> vs2012) is in test_plbuf project
>>
>> 1>  Building Custom Rule 
>> F:/Lib/test/plplot-plplot/examples/c/CMakeLists.txt
>> 1>  CMake does not need to re-run because 
>> F:\Lib\test\plplot-plplot\build\examples\c\CMakeFiles\generate.stamp 
>> is up-to-date.
>> 1>  test_plbuf.c
>> 1>F:\Lib\test\plplot-plplot\examples\c\test_plbuf.c(69): warning 
>> C4101: 'ver' : variable locale non référencée
>> 1>test_plbuf.obj : error LNK2001: symbole externe non résolu plsc 
>> (unresolved external symbol plsc)
>>
>>
>> I have investigate this error :
>> plsc is defined at line 167 of plplotp.h : extern PLDLLIMPEXP_DATA( 
>> PLStream * ) plsc;
>> Hence I have append Preprocessor definition USINGDLL and plsc is 
>> resolved now.
>> **
>> With error preprocessor definition are :
>> WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_DEPRECATE;CMAKE_INTDIR="Debug";%(PreprocessorDefinitions)
>>  
>>
>> ***
>> without error preprocessor definition are :
>> USINGDLL;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_DEPRECATE;CMAKE_INTDIR="Debug";%(PreprocessorDefinitions)
>>  
>>
>>
>
> Hi laurant:
>
> We use the following cmake logic (see src/CMakeFiles.txt) to specify
> that the -DUSINGDLL compiler option is used for the shared library
> case.
>
> if(BUILD_SHARED_LIBS)
>   SET_SOURCE_FILES_PROPERTIES(${plplot_LIB_SRCS}
> PROPERTIES COMPILE_FLAGS "-DUSINGDLL" )
> endif(BUILD_SHARED_LIBS)
>
> This has generally worked fine for many years, but apparently not for
> your "with error preprocessor" case for the MSVC compiler.
>
> This issue might well be a CMake bug for the MSVC case since the
> COMPILE_FLAGS property should "just work".
>
> To investigate that possible CMake bug further what cmake version are
> you using, and exactly what CMake option are you using to specify the
> "With error preprocessor definition" case?  I would like to quote that
> information if I forward a description of the issue to the CMake list
> for further help there.
>
> Also, suppose you change the above logic to
>
> if(BUILD_SHARED_LIBS)
>   SET_SOURCE_FILES_PROPERTIES(${plplot_LIB_SRCS}
> PROPERTIES
> COMPILE_DEFINITIONS "USINGDLL" )
> #Maybe? COMPILE_DEFINITIONS_ "USINGDLL" )
> endif(BUILD_SHARED_LIBS)
>
> where  is one of DEBUG, 

Re: [Plplot-devel] Call for testing of the PLplot git master tip version VS2013

2015-03-17 Thread laurent Berger
with VS2013 like yesterday there is no problem but same error (like 
vs2012) is in test_plbuf project

1>  Building Custom Rule F:/Lib/test/plplot-plplot/examples/c/CMakeLists.txt
1>  CMake does not need to re-run because 
F:\Lib\test\plplot-plplot\build\examples\c\CMakeFiles\generate.stamp is 
up-to-date.
1>  test_plbuf.c
1>F:\Lib\test\plplot-plplot\examples\c\test_plbuf.c(69): warning C4101: 
'ver' : variable locale non référencée
1>test_plbuf.obj : error LNK2001: symbole externe non résolu plsc 
(unresolved external symbol plsc)


I have investigate this error :
plsc is defined at line 167 of plplotp.h : extern PLDLLIMPEXP_DATA( 
PLStream * ) plsc;
Hence I have append Preprocessor definition USINGDLL and plsc is 
resolved now.
**
With error preprocessor definition are :
WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_DEPRECATE;CMAKE_INTDIR="Debug";%(PreprocessorDefinitions)
***
without error preprocessor definition are :
USINGDLL;WIN32;_WINDOWS;_DEBUG;_CRT_SECURE_NO_DEPRECATE;CMAKE_INTDIR="Debug";%(PreprocessorDefinitions)


PS
I cannot run wxPLplotdemo because on my computer I used vs2012 for 
wxwidgets library.
If you want I can test it but I need time to change all library on my 
computer.



Le 17/03/2015 21:51, Alan W. Irwin a écrit :
> On 2015-03-17 13:25-0400 Jim Dishaw wrote:
>
>> On Mar 17, 2015, at 1:13 PM, "Alan W. Irwin"
>>  wrote:
>>> Your patch is based on a rather old version of src/plmetafile.c so
>>> does not apply.  Please regenerate the patch based on master tip.
>> [...]I did a "git fetch" followed by "git merge origin/master --ff-only"
>>
>> I started a new topic branch and have attached a new patch
>
> @Jim:
>
> That applied, but I then modified your commit (using "git commit
> --amend") to remove the redundant plhrsh function prototype and also
> to style the result.  See commit id 0bfe721 for the amended result.
>
> I still have quite a bit to do before I can get this release out the
> door so your quick help on this issue was very much appreciated!
>
> @laurant:
>
> This fix from Jim should deal with the missing lround issue, but I
> would appreciate you testing PLplot master tip again on your VS 2012
> platform to see if there are any remaining PLplot issues on that
> platform.  And similar tests for VS 2013 would be appreciated as well.
>
> 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
> __
>
>
>
>
>
>
>
>> 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
>> __
>
>
>
>
> --
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
>
>
> ___
> Plplot-devel mailing list
> Plplot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-devel


--
Dive into the World of Parallel Programming The Go Parallel Website, 
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub 
for all
things parallel software development, from weekly thought leadership 
blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

--
Dive in

Re: [Plplot-devel] Call for testing of the PLplot git master tip version VS2012

2015-03-17 Thread laurent Berger
with VS2012 problem is solved I can run wxPlplotdemo.exe

I have seen an another error in test_plbuf
1>  Building Custom Rule F:/Lib/test/plplot-plplot/examples/c/CMakeLists.txt
1>  CMake does not need to re-run because 
F:\Lib\test\plplot-plplot\build\examples\c\CMakeFiles\generate.stamp is 
up-to-date.
1>  test_plbuf.c
1>F:\Lib\test\plplot-plplot\examples\c\test_plbuf.c(69): warning C4101: 
'ver' : variable locale non référencée
1>test_plbuf.obj : error LNK2001: symbole externe non résolu plsc 
(unresolve external symbol plsc)







Le 17/03/2015 21:51, Alan W. Irwin a écrit :
> On 2015-03-17 13:25-0400 Jim Dishaw wrote:
>
>> On Mar 17, 2015, at 1:13 PM, "Alan W. Irwin" 
>>  wrote:
>>> Your patch is based on a rather old version of src/plmetafile.c so
>>> does not apply.  Please regenerate the patch based on master tip.
>> [...]I did a "git fetch" followed by "git merge origin/master --ff-only"
>>
>> I started a new topic branch and have attached a new patch
>
> @Jim:
>
> That applied, but I then modified your commit (using "git commit
> --amend") to remove the redundant plhrsh function prototype and also
> to style the result.  See commit id 0bfe721 for the amended result.
>
> I still have quite a bit to do before I can get this release out the
> door so your quick help on this issue was very much appreciated!
>
> @laurant:
>
> This fix from Jim should deal with the missing lround issue, but I
> would appreciate you testing PLplot master tip again on your VS 2012
> platform to see if there are any remaining PLplot issues on that
> platform.  And similar tests for VS 2013 would be appreciated as well.
>
> 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
> __
>
>
>
>
>
>
>
>> 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
>> __
>
>
>
>
> --
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
>
>
> ___
> Plplot-devel mailing list
> Plplot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-devel


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] Call for testing of the PLplot git master tip version

2015-03-16 Thread laurent Berger
with vs2012 I think problem is here 
:http://stackoverflow.com/questions/21568140/lround-on-visual-studio-not-being-recognized

with vs2013 there is no problem
Le 16/03/2015 20:16, Alan W. Irwin a écrit :
> For everybody on this list, I am in the very late stages of bringing
> out a PLplot release (hopefully by late this week) based on the git
> master tip version of PLplot. To access that version with git follow
> the directions in sf.net/projects/plplot -> Code.  Any feedback on
> that version would be much appreciated.  You should note the backwards
> incompatibilities mentioned in the release notes (see README.relase).
> You should also note that I am in the "deep freeze" final stages of
> this release process so I will tend to be very cautious about further
> changes for this release unless someone demonstrates an important
> regression (aside from the designed backwards incompatibilities)
> compared to previous PLplot releases.
>
> 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
> __
>
> --
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> ___
> Plplot-devel mailing list
> Plplot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-devel


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] Call for testing of the PLplot git master tip version

2015-03-16 Thread laurent Berger
Hi,

I'm very happy to help you for testing.
So I have clone :
$ git clone git://git.code.sf.net/p/plplot/plplot plplot-plplot
Cloning into 'plplot-plplot'...
remote: Counting objects: 85651, done.
remote: Compressing objects: 100% (25299/25299), done.
remote: Total 85651 (delta 63155), reused 81235 (delta 59337)
Receiving objects: 100% (85651/85651), 118.99 MiB | 1.67 MiB/s, done.
Resolving deltas: 100% (63155/63155), done.
Checking connectivity... done.

After I have used cmake 3.1.2 with VS 2012 and windows 7 64 bits
and I have got some errors. I think this one it's important :
9> Création de la bibliothèque 
F:/Lib/test/plplot-plplot/build/dll/Debug/plplot.lib et de l'objet 
F:/Lib/test/plplot-plplot/build/dll/Debug/plplot.exp
29>plmetafile.obj : error LNK2019: symbole externe non résolu lround 
référencé dans la fonction read_line
29>F:\Lib\test\plplot-plplot\build\dll\Debug\plplot.dll : fatal error 
LNK1120: 1 externes non résolus








All messages are (sorry it's a frenc VS 2012):

1>-- Début de la régénération globale : Projet : ZERO_CHECK, 
Configuration : Debug x64 --
2>-- Régénération globale ignorée : Projet : RUN_TESTS, 
Configuration : Debug x64 --
2>Projet non sélectionné dans le cadre d'une génération pour cette 
configuration de solution
1>  Checking Build System
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/fonts/CMakeFiles/generate.stamp is 
up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/lib/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/lib/csa/CMakeFiles/generate.stamp is 
up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/lib/nn/CMakeFiles/generate.stamp is 
up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/lib/qsastime/CMakeFiles/generate.stamp 
is up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/lib/nistcd/CMakeFiles/generate.stamp is 
up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/include/CMakeFiles/generate.stamp is 
up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/src/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/data/CMakeFiles/generate.stamp is 
up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/bindings/CMakeFiles/generate.stamp is 
up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/bindings/swig-support/CMakeFiles/generate.stamp 
is up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/bindings/c++/CMakeFiles/generate.stamp 
is up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/bindings/f95/CMakeFiles/generate.stamp 
is up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/bindings/tcl/CMakeFiles/generate.stamp 
is up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/bindings/tk/CMakeFiles/generate.stamp is 
up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/bindings/tk-x-plat/CMakeFiles/generate.stamp 
is up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/bindings/python/CMakeFiles/generate.stamp is 
up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/bindings/octave/CMakeFiles/generate.stamp is 
up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/bindings/java/CMakeFiles/generate.stamp 
is up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/bindings/gnome2/CMakeFiles/generate.stamp is 
up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/bindings/gnome2/lib/CMakeFiles/generate.stamp 
is up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/bindings/gnome2/python/CMakeFiles/generate.stamp
 
is up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/bindings/wxwidgets/CMakeFiles/generate.stamp 
is up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/bindings/ada/CMakeFiles/generate.stamp 
is up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/bindings/d/CMakeFiles/generate.stamp is 
up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/bindings/ocaml/CMakeFiles/generate.stamp 
is up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plplot-plplot/build/bindings/lua/CMakeFiles/generate.stamp 
is up-to-date.
1>  CMake does not need to re-run because 
F:/Lib/test/plp

Re: [Plplot-devel] PL_MAX_OPT_TABLES PL_NSTREAMS wxWidgets Driver

2015-02-14 Thread laurent Berger
Finally I think that's may be interesting for you the other bug in my code.
In wxPlplotDemo.cpp you have to replace constructor with this new 
constructor ond plplot crash :

//! Constructor of our custom frame, where the Menu is created and a
//  a wxPLplotwindow is inserted into the frame. We plot some easy functions
//  just to show how it works. wxPLplotwindow takes care of all the setup
//  for the use of PLplot library.
//
MyFrame::MyFrame( const wxString& title ) : wxFrame( NULL, wxID_ANY, title )
{
 bgcolor = false;

 // add menu
 wxMenu *fileMenu = new wxMenu;
 fileMenu->Append( wxPLplotDemo_BGColor, _T( "&Change background 
color...\tAlt-C" ), _T( "Change background color" ) );
 fileMenu->Append( wxPLplotDemo_About, _T( "&About...\tF1" ), _T( 
"Show about dialog" ) );
 fileMenu->Append( wxPLplotDemo_Quit, _T( "E&xit\tAlt-X" ), _T( 
"Quit this program" ) );

 wxMenuBar *menuBar = new wxMenuBar();
 menuBar->Append( fileMenu, _T( "&File" ) );
 SetMenuBar( menuBar );
 SetIcon( wxIcon( graph ) );

 // add the wxPLplot
 wxPanel   * panel = new wxPanel( this );
 wxBoxSizer* box   = new wxBoxSizer( wxVERTICAL );
 plotwindow = new MyPlotwindow( this, panel, -1, wxDefaultPosition, 
wxDefaultSize, wxWANTS_CHARS,
#if wxUSE_GRAPHICS_CONTEXT
 wxPLPLOT_BACKEND_GC | wxPLPLOT_DRAW_TEXT );
#else
 wxPLPLOT_BACKEND_AGG | wxPLPLOT_DRAW_TEXT );
#endif
  wxPLplotstream* pls=plotwindow->GetStream();

static int  locate_mode=1;
static int  test_xor;
static int  fontset;
static char *f_name;
static const char   *notes[] = { "Make sure you get it right!", "" };
static PLOptionTable options[] = {
 {
 "locate",   /* Turns on test of API locate function */
 NULL,
 NULL,
 &locate_mode,
 PL_OPT_BOOL,
 "-locate",
 "Turns on test of API locate function"
 },
 {
 "xor",  /* Turns on test of xor function */
 NULL,
 NULL,
 &test_xor,
 PL_OPT_BOOL,
 "-xor",
 "Turns on test of XOR"
 },
 {
 "font", /* For switching between font set 1 & 2 */
 NULL,
 NULL,
 &fontset,
 PL_OPT_INT,
 "-font number",
 "Selects stroke font set (0 or 1, def:1)"
 },
 {
 "save", /* For saving in postscript */
 NULL,
 NULL,
 &f_name,
 PL_OPT_STRING,
 "-save filename",
 "Save plot in color postscript `file'"
 },
 {
 NULL,   /* option */
 NULL,   /* handler */
 NULL,   /* client data */
 NULL,   /* address of variable to set */
 0,  /* mode flag */
 NULL,   /* short syntax */
 NULL
 }   /* long syntax */
 };
 pls->MergeOpts( options, "x01c options", notes);


 plotwindow->Connect( wxEVT_CHAR, wxKeyEventHandler( 
MyPlotwindow::OnChar ) );
 box->Add( plotwindow, 1, wxALL | wxEXPAND, 0 );
 panel->SetSizer( box );
 SetSize( 640, 500 );  // set frame size
 SetSizeHints( 220, 150 ); // set minimum frame size

 wxString m_title = title;
 switch ( plotwindow->getBackend() )
 {
 case wxPLPLOT_BACKEND_DC:
 m_title += wxT( " (basic)" );
 break;
 case wxPLPLOT_BACKEND_GC:
 m_title += wxT( " (wxGC)" );
 break;
 case wxPLPLOT_BACKEND_AGG:
 m_title += wxT( " (AGG)" );
 break;
 default:
 break;
 }
 SetTitle( m_title );

 Plot();
}


Le 14/02/2015 15:57, laurent Berger a écrit :
> Hi phil,
>
> Sorry I make a mistake about PL_MAX_OPT_TABLES there is no problem it
> was in my code. About PL_NSTREAMS limits it's a problem.
> you can reproduce problem with PL_NSTREAMS changing some lines codes in
> wxPlplotDemo.cpp :
> original :
> MyFrame *frame = new MyFrame( _T( "wxPLplot demo" ) );
> frame->Show( true );
>
> modified code
> for (int i=0;i<99;i++)
> {
> MyFrame *frame = new MyFrame( _T( "wxPLplot demo" ) );
> frame->Show( true );
> }
> wxMessageBox("100 wxplplot windows opened");
> wxMessageBox("and one more");
> MyFrame *frame = new MyFrame( _T( "wxPLplot demo" ) );
> frame->Show( true );
>
>
>
> and sorry for my mistake.
> Le 14/02/2015 15:40, Phil Rosenberg a écrit :
>> Hell

Re: [Plplot-devel] PL_MAX_OPT_TABLES PL_NSTREAMS wxWidgets Driver

2015-02-14 Thread laurent Berger
Hi phil,

Sorry I make a mistake about PL_MAX_OPT_TABLES there is no problem it 
was in my code. About PL_NSTREAMS limits it's a problem.
you can reproduce problem with PL_NSTREAMS changing some lines codes in 
wxPlplotDemo.cpp :
original :
MyFrame *frame = new MyFrame( _T( "wxPLplot demo" ) );
frame->Show( true );

modified code
for (int i=0;i<99;i++)
{
MyFrame *frame = new MyFrame( _T( "wxPLplot demo" ) );
frame->Show( true );
}
wxMessageBox("100 wxplplot windows opened");
wxMessageBox("and one more");
MyFrame *frame = new MyFrame( _T( "wxPLplot demo" ) );
frame->Show( true );



and sorry for my mistake.
Le 14/02/2015 15:40, Phil Rosenberg a écrit :
> Hello Laurent
> Yes I agree that if such a limit does exist on the number of plplot 
> windows which you have in an application then this needs addressing.
> I will try to look at this as soon as I can. You could speed up the 
> process by sending a minimal example which displays the problem. From 
> your description I imagine this will be something like a wxMyApp which 
> creates 11 wxFrames, each with a plot?
> Thanks for the report and as I said I will look into this asap.
>
> Phil
> 
> From: laurent Berger <mailto:laurent.ber...@univ-lemans.fr>
> Sent: ‎14/‎02/‎2015 10:16
> To: plplot-devel@lists.sourceforge.net 
> <mailto:plplot-devel@lists.sourceforge.net>
> Subject: Re: [Plplot-devel] PL_MAX_OPT_TABLES PL_NSTREAMS wxWidgets Driver
>
> I think that my previous thread was wrong.
>
> Finally I'm not sure that my code uses in a rigth way plplot( sorry for
> my bad english)
> In my program I open many windows with images. If I open 10 windows
> there is no problem but with 11 windows my program crash
> For each image I open a panel which include 6 windows like :"class
> FenetreCourbe : public wxPLplotwindow"
> I think first PL_NSTREAMS limits was a problem but now I think it is
> PL_MAX_OPT_TABLES. My program crash :
> plplotd.dll!ParseOpt(int * p_myargc, const char * * * p_argv, int
> * p_argc, const char * * * p_argsave, PLOptionTable * option_table)
> Ligne 1017 C
> plplotd.dll!c_plparseopts(int * p_argc, const char * * argv, int
> mode) Ligne 908 C
> plplotd.dll!c_plsetopt(const char * opt, const char * opt_arg)
> Ligne 758 C
> plplotcxxd.dll!plstream::setopt(const char * opt, const char *
> optarg) Ligne 2593 C++
> plplotwxwidgetsd.dll!wxPLplotstream::Create(wxDC * dc, int width,
> int height, int style) Ligne 85 C++
> plplotwxwidgetsd.dll!wxPLplotstream::wxPLplotstream(wxDC * dc, int
> width, int height, int style) Ligne 37 C++
> plplotwxwidgetsd.dll!wxPLplotwindow::wxPLplotwindow(wxWindow *
> parent, int id, const wxPoint & pos, const wxSize & size, long style,
> int pl_style) Ligne 62 C++
> wxOpenCVMain.exe!FenetreCourbe::FenetreCourbe(wxFrame * frame,
> wxWindow * parent, int id, const wxPoint & pos, const wxSize & size,
> long style, int pl_style) Ligne 25 C++
>
> In plplparseopts(int * p_argc, const char * * argv, int mode) Ligne 908
> variables tables is equal to 11 . i think that is a problem because
> PL_MAX_OPT_TABLES is limited to 10.
> My questions is how can I open eleven windows?
>
> thanks for yours answers.
>
> PS
> ploptions_info is
> - ploption_info 0x07fee792c750
> {{options=0x07fee792cf00 {plplotd.dll!PLOptionTable
> ploption_table[47]} {opt=...} ...}, ...} PLOptionInfo[10]
> - [0] {options=0x07fee792cf00 {plplotd.dll!PLOptionTable
> ploption_table[47]} {opt=0x07fee792cef8 "showall" ...} ...}
> PLOptionInfo
> + options 0x07fee792cf00 {plplotd.dll!PLOptionTable
> ploption_table[47]} {opt=0x07fee792cef8 "showall" ...} PLOptionTable *
> + name 0x07fee792c840 "PLplot options" const char *
> + notes 0x07fee792c658 {plplotd.dll!const char
> *plplot_notes[3]} {0x07fee792c670 "All parameters must be
> white-space delimited. Some options are driver"} const char * *
> - [1] {options=0x00013f768700
> {wxOpenCVMain.exe!PLOptionTable options[5]} {opt=0x00013f6c1224
> "locate" ...} ...} PLOptionInfo
> + options 0x00013f768700 {wxOpenCVMain.exe!PLOptionTable
> options[5]} {opt=0x00013f6c1224 "locate" handler=...} PLOptionTable *
> + name 0x00013f6c1370 "x01c options" const char *
> + notes 0x00013f7686e8 {wxOpenCVMain.exe!const char
> *notes[2]} {0x00013f6c1230 "Make sure you get it right!"} const 
> char * *
> - [2] {options=0x00013f768700
> {wxOpenCVMain.exe!PLOptionTable options[5]} {opt=0x00013f6c1224
> "locate" ...} ...} PLOptionInfo
> + opt

Re: [Plplot-devel] PL_MAX_OPT_TABLES PL_NSTREAMS wxWidgets Driver

2015-02-14 Thread laurent Berger
 {opt=0x00013f6c1224 "locate" handler=...}PLOptionTable *
+name0x00013f6c1370 "x01c options"const char *
+notes0x00013f7686e8 {wxOpenCVMain.exe!const char 
*notes[2]} {0x00013f6c1230 "Make sure you get it right!"} const char * *
-[6]{options=0x00013f768700 
{wxOpenCVMain.exe!PLOptionTable options[5]} {opt=0x00013f6c1224 
"locate" ...} ...}PLOptionInfo
+options0x00013f768700 {wxOpenCVMain.exe!PLOptionTable 
options[5]} {opt=0x00013f6c1224 "locate" handler=...}PLOptionTable *
+name0x00013f6c1370 "x01c options"const char *
+notes0x00013f7686e8 {wxOpenCVMain.exe!const char 
*notes[2]} {0x00013f6c1230 "Make sure you get it right!"} const char * *
-[7]{options=0x00013f768700 
{wxOpenCVMain.exe!PLOptionTable options[5]} {opt=0x00013f6c1224 
"locate" ...} ...}PLOptionInfo
+options0x00013f768700 {wxOpenCVMain.exe!PLOptionTable 
options[5]} {opt=0x00013f6c1224 "locate" handler=...}PLOptionTable *
+name0x00013f6c1370 "x01c options"const char *
+notes0x00013f7686e8 {wxOpenCVMain.exe!const char 
*notes[2]} {0x00013f6c1230 "Make sure you get it right!"} const char * *
-[8]{options=0x00013f768700 
{wxOpenCVMain.exe!PLOptionTable options[5]} {opt=0x00013f6c1224 
"locate" ...} ...}PLOptionInfo
+options0x00013f768700 {wxOpenCVMain.exe!PLOptionTable 
options[5]} {opt=0x00013f6c1224 "locate" handler=...}PLOptionTable *
+name0x00013f6c1370 "x01c options"const char *
+notes0x00013f7686e8 {wxOpenCVMain.exe!const char 
*notes[2]} {0x00013f6c1230 "Make sure you get it right!"} const char * *
-[9]{options=0x00013f768700 
{wxOpenCVMain.exe!PLOptionTable options[5]} {opt=0x00013f6c1224 
"locate" ...} ...}PLOptionInfo
+options0x00013f768700 {wxOpenCVMain.exe!PLOptionTable 
options[5]} {opt=0x00013f6c1224 "locate" handler=...}PLOptionTable *
+name0x00013f6c1370 "x01c options"const char *
+notes0x00013f7686e8 {wxOpenCVMain.exe!const char 
*notes[2]} {0x00013f6c1230 "Make sure you get it right!"} const char * *


Le 13/02/2015 23:58, Jim Dishaw a écrit :
> There should be no problem if you increased that number. I have to ask if you 
> need more than 100 simultaneous plots. You can use pladv() or the 
> plbop()/pleop() functions to advance to a new page. If you really want a 
> fresh state you can do a plend1() call and then start over.
>
> A better solution would be to make the number of plot streams dynamic, which 
> is a pretty easy fix. That way a library user doesn't have to worry about a 
> fixed limit.
>
>
>
>> On Feb 13, 2015, at 4:00 PM, laurent Berger  
>> wrote:
>>
>> Hi,
>>
>> I am using plplot for image processing with many plplot windows more
>> than 100. In source plplot streams seems limited to 100 (#define
>> PL_NSTREAMS 100 // Max number of concurrent streams. plplotP.h line 289).
>> Is it possible to increase this values?
>> Thanks for yours answers
>>
>>
>>
>> --
>> Dive into the World of Parallel Programming. The Go Parallel Website,
>> sponsored by Intel and developed in partnership with Slashdot Media, is your
>> hub for all things parallel software development, from weekly thought
>> leadership blogs to news, videos, case studies, tutorials and more. Take a
>> look and join the conversation now. http://goparallel.sourceforge.net/
>> ___
>> Plplot-devel mailing list
>> Plplot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/plplot-devel
> --
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> ___
> Plplot-devel mailing list
> Plplot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-devel


--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


[Plplot-devel] wxWidgets Driver

2015-02-13 Thread laurent Berger
Hi,

I am using plplot for image processing with many plplot windows more 
than 100. In source plplot streams seems limited to 100 (#define 
PL_NSTREAMS 100 // Max number of concurrent streams. plplotP.h line 289).
Is it possible to increase this values?
Thanks for yours answers



--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


[Plplot-devel] using renewplot with plplot

2015-01-23 Thread Laurent Berger
Hi,

I have got a program using plplot wxwidgets and opencv on windows and 
linux mint.
I use valgrind to check memory on linux. I have got some memory leak 
(definitely lost) :

==19342== 128 bytes in 13 blocks are definitely lost in loss record 
14,252 of 17,211
==19342==at 0x4C2935B: malloc (vg_replace_malloc.c:270)
==19342==by 0x1008661F: rdbuf_text (in 
/usr/local/lib/libplplot.so.12.0.1)
==19342==by 0x10085FBC: rdbuf_esc (in 
/usr/local/lib/libplplot.so.12.0.1)
==19342==by 0x10086A9C: plbuf_control (in 
/usr/local/lib/libplplot.so.12.0.1)
==19342==by 0x100869B9: plRemakePlot (in 
/usr/local/lib/libplplot.so.12.0.1)
==19342==by 0x10057EC3: c_plreplot (in 
/usr/local/lib/libplplot.so.12.0.1)
==19342==by 0xB8146F5: plstream::replot() (in 
/usr/local/lib/libplplotcxx.so.11.0.0)
==19342==by 0xB5FE151: wxPLplotstream::RenewPlot() (in 
/usr/local/lib/libplplotwxwidgets.so.0.0.0)
==19342==by 0xB6001FE: wxPLplotwindow::RenewPlot() (in 
/usr/local/lib/libplplotwxwidgets.so.0.0.0)
==19342==by 0x495D04: FenetreCoupe::Plot(bool) (in 
/home/lb/Documents/wxOpenCV/wxOpenCVMain/wxOpenCVMain)
==19342==by 0x4B70E0: ImageStatistiques::MAJCoupe(wxRect&) (in 
/home/lb/Documents/wxOpenCV/wxOpenCVMain/wxOpenCVMain)
==19342==by 0x48737B: ZoneImage::OnLeftButtonUp(wxMouseEvent&) (in 
/home/lb/Documents/wxOpenCV/wxOpenCVMain/wxOpenCVMain)

My code to plot the curve is here 
perso.univ-lemans.fr/~berger/Afsd56/FenetreCoupe.cpp and sa screencopy 
of the curve perso.univ-lemans.fr/~berger/Afsd56/copie.jpg

Is it really a memory leak ? If yes Have you got any idea to solve this 
problem?
Thanks you for your answer.

-- 
Laurent Berger
Enseignant-chercheur I.U.T. du Mans
Département Gestion des Entreprises et des Administrations
Département Mesures Physiques
Tél 02 43 83 37 09


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] About svg

2014-08-14 Thread laurent Berger
Thanks you for your answer.
plplot 5.9.10, wxwidgets 3.0.0 visual studio 2012 C++
with  pls->width( 2.0 ); nothing changes.
You can download source file and svg, ps and xfig  here : 
perso.univ-lemans.fr/~berger/aqzersPLPLOT
My source code is :
wxPLplotstream* pls=plotwindow->GetStream();
int iMin=0,iMax=16383;

const size_t np=65536;
if (x[0]==NULL)
 for (int i=0;i<3;i++)
 {
 x[i]=new PLFLT[np];
 y[i]=new PLFLT[np];
 yFiltre[i]=new PLFLT[np];
 }
PLFLT xmin=iMin, xmax=iMax;
PLFLT ymin=1e30, ymax=-1e30;


pls->adv( 0 );
pls->scol0 (3, 0,0,255);
pls->scol0 (4, 0,0,128);
pls->scol0 (5, 0,255,0);
pls->scol0 (6, 0,128,0);
pls->scol0 (7, 255,0,0);
pls->scol0 (8, 128,0,0);

if(bgcolor)
 {
 pls->scol0( 0, 255, 255, 255 );
 pls->scol0( 15, 0, 0, 0 );
 }
else
 {
 pls->scol0( 15, 255, 255, 255 );
 pls->scol0( 0, 0, 0, 0 );
 }
pls->col0( 1 );
pls->env( xmin, xmax, ymin*.99, ymax*1.01, 0, 0 );
pls->col0( 2 );
pls->lab( "x", "y", "Histogram");
for (int j=0;jcol0( 3+2*j);
 pls->width( 2.0 );
 pls->line( nbGraines[j], x[j], y[j] );
 pls->col0( 4+2*j);
 pls->width( 3.0 );
 pls->line( nbGraines[j], x[j], yFiltre[j] );
 }
pls->RenewPlot();
Refresh();
plotwindow->SavePlot(wxString("svg"),wxString("tt.svg"));
plotwindow->SavePlot(wxString("xfig"),wxString("tt.xfig"));
plotwindow->SavePlot(wxString("ps"),wxString("tt.ps"));
//plotwindow->SavePlot(wxString("wxpng"),wxString("tt.png")); BUG


--
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


[Plplot-devel] About svg

2014-08-14 Thread laurent Berger
Hi,

My program plot histogram using plplot and wxwidgets driver. On my 
screen plot is nice. When plot is saved in svg format I cannot see 
histogram with Inkscape.
I don't know svg format but If I change all stroke-width="0.00e+000" 
with stroke-width="1" svg is OK in Inkscape.
In program I have define a width of  2( pls->width( 2 );) so
how can I solve this ?
Thanks for yours answers



In PS file histogram is good but it is a black white plot.




--
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


[Plplot-devel] OnInit call in wxpng driver

2014-08-14 Thread laurent Berger
Hi,

I have got a programm in C++ with wxwidgets using plplot on windows 7. i 
want to save my plplot graph in a fucntion called FenetreHistogramme::Plot :
plotwindow->SavePlot(wxString("svg"),wxString("tt.svg"));
plotwindow->SavePlot(wxString("xfig"),wxString("tt.xfig"));
plotwindow->SavePlot(wxString("ps"),wxString("tt.ps"));
plotwindow->SavePlot(wxString("wxpng"),wxString("tt.png"));
svg, xfig and ps files are saved. With png my program because OnInit is 
called twice. Stack trace is
>   wxOpenCV.exe!wxOsgApp::OnInit() Ligne 498   C++
wxbase30ud_vc_custom.dll!wxAppConsoleBase::CallOnInit() Ligne 93
C++
wxwidgets.dll!install_buffer(PLStream * pls) Ligne 1301 C++
wxwidgets.dll!plD_line_wxwidgets(PLStream * pls, short x1a, short 
y1a, short x2a, short y2a) Ligne 630C++
plplotd.dll!grline(short * x, short * y, int UNUSED_npts) Ligne 1272
C
plplotd.dll!plP_pllclp(int * x, int * y, int npts, int xmin, int 
xmax, int ymin, int ymax, void (short *, short *, int) * draw) Ligne 680
C
plplotd.dll!plP_line(short * x, short * y) Ligne 382C
plplotd.dll!rdbuf_line(PLStream * pls) Ligne 481C
plplotd.dll!plbuf_control(PLStream * pls, unsigned char c) Ligne 1035   
C
plplotd.dll!plRemakePlot(PLStream * pls) Ligne 993  C
plplotd.dll!c_plreplot() Ligne 3361 C
plplotwxwidgetsd.dll!wxPLplotwindow::SavePlot(const wxString & 
devname, const wxString & filename) Ligne 179   C++
wxOpenCV.exe!FenetreHistogramme::Plot(char fenetreActive) Ligne 544 
C++

How can I avoid this second call of OnInit?

Thanks for yours answers




--
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] Deploying programs that use PLplot with wxWidgets

2010-07-12 Thread Laurent Berger
Hi,

I have found the problem : It was Microsoft.VC90.DebugCRT.dll

Problem is in CMAKE. I don't know If it's a bug or I have make a mistake 
using CMAKE.

In VC++9 generate with CMAKE when you use release configuration and 
select one file of wxwidgets project wxwidgets_app.cpp. In compile 
option for DEFINE I have  WXDEBUG and DEBUG.

Thanks for your help



Werner Smekal a écrit :
> Hi Laurent,
> 
> sorry, I overlooked your email.
> 
> On 7/2/10 2:29 PM, Laurent Berger wrote:
>> Sorry I have forgotten to say that all dll are in same folder :
>>
>> 02/07/2010  14:24  .
>> 02/07/2010  14:24  ..
>> 24/11/2009  14:04 2ÿ695ÿ680 Atmcd32d.dll
>> 02/07/2010  13:5059ÿ904 csirocsa.dll
>> 02/07/2010  14:24 0 list.txt
>> 02/07/2010  13:5095ÿ232 plplotcxxd.dll
>> 02/07/2010  13:50   452ÿ608 plplotd.dll
>> 02/07/2010  13:5586ÿ016 plplotwxwidgetsd.dll
>> 02/07/2010  13:5162ÿ464 ps.dll
>> 02/07/2010  13:5056ÿ320 qsastime.dll
>> 02/07/2010  13:5145ÿ568 svg.dll
>> 02/07/2010  13:55   101ÿ888 wxPLplotDemo.exe
>> 02/07/2010  13:55   241ÿ152 wxwidgets.dll
>> 02/07/2010  13:5149ÿ664 x01.exe
>> 02/07/2010  13:5138ÿ400 xfig.dll
>>
>> When x01 is launched with ps driver everything is OK but with widgets 
>> program crashed.
> 
> Looks ok. But where are the wxWidgets libraries? wxWidgets must be
> compiled as shared library not static. In addition you could try to
> compile the wxWidgets driver into the plplot library with the
> ENABLE_DYNDRIVERS=OFF option. Then there is no need to open
> wxwidgets.dll driver since it's compiled in the plplot library. You
> still need the dynamic wxWidgets library though.
> 
> Regards,
> Werner
> 
>> I have found something in wxwiddgets.dll manifest. If I open 
>> wxwidgets.dll with notepad I have found at the end of file something like
>>
>> 
>>
>>  
>>
>>  > uiAccess="false">
>>
>>  
>>
>>
>>  
>>> version="9.0.21022.8" processorArchitecture="x86" 
>> publicKeyToken="1fc8b3b9a1e18e3b">
>>  
>>
>>
>>  
>>> name="Microsoft.Windows.Common-Controls" version="6.0.0.0" 
>> processorArchitecture="x86" publicKeyToken="6595b64144ccf1df" 
>> language="*">
>>  
>>
>> 
>>
>> In your own dll have you got a reference to "Microsoft.VC90.DebugCRT" ?
>>
>> I think that it could be a crash cause for x01.exe.
>>
>> thanks for your answer
>>
>>
>> Werner Smekal a écrit :
>>> Hi,
>>>
>>> On 7/1/10 12:55 PM, Laurent Berger wrote:
>>>> Hi,
>>>>
>>>> I use PLPLOT 5.9.6 on windows xp with visual C++ 9.0 with wxWidgets.
>>>> With my computer and program x01.exe (the first sample proram) 
>>>> everythings work with ps or wxwidgets drivers.
>>>> I have installed x01 on another computer. I have defined environement 
>>>> variable PLPLOT and PLPLOT_DRV_LIB. Program x01 works with ps drivers 
>>>> but crashs when I  want to use wxwidgets driver.
>>> Did you copy the shared wxWidgets plplot driver with the x01 example?
>>> Did you copy the wxWidgets library (if it was shared as well)? You could
>>> run x01.exe with the option "-debug -verbose" and then some debug
>>> messages should be printed on the screen. Could you send this messages
>>> to the list?
>>>
>>> HTH,
>>> Werner
>>>
>>>> i have done something wrong but i cannot find it.
>>>>
>>>> thanks you answer.
>>>>
>>>> --
>>>> This SF.net email is sponsored by Sprint
>>>> What will you do first with EVO, the first 4G phone?
>>>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>>>> ___
>>>> Plplot-devel mailing list
>>>> Plplot-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/plplot-devel
>>>
>>
>>
>> --
>> This SF.net email is sponsored by Sprint
>> What will you do first with EVO, the first 4G phone?
>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>> ___
>> Plplot-devel mailing list
>> Plplot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/plplot-devel
> 
> 


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] Deploying programs that use PLplot with wxWidgets

2010-07-02 Thread Laurent Berger
Sorry I have forgotten to say that all dll are in same folder :

02/07/2010  14:24  .
02/07/2010  14:24  ..
24/11/2009  14:04 2ÿ695ÿ680 Atmcd32d.dll
02/07/2010  13:5059ÿ904 csirocsa.dll
02/07/2010  14:24 0 list.txt
02/07/2010  13:5095ÿ232 plplotcxxd.dll
02/07/2010  13:50   452ÿ608 plplotd.dll
02/07/2010  13:5586ÿ016 plplotwxwidgetsd.dll
02/07/2010  13:5162ÿ464 ps.dll
02/07/2010  13:5056ÿ320 qsastime.dll
02/07/2010  13:5145ÿ568 svg.dll
02/07/2010  13:55   101ÿ888 wxPLplotDemo.exe
02/07/2010  13:55   241ÿ152 wxwidgets.dll
02/07/2010  13:5149ÿ664 x01.exe
02/07/2010  13:5138ÿ400 xfig.dll

When x01 is launched with ps driver everything is OK but with widgets 
program crashed.

I have found something in wxwiddgets.dll manifest. If I open 
wxwidgets.dll with notepad I have found at the end of file something like


   
 
   
 
   
 
   
   
 
   
 
   
   
 
   
 
   


In your own dll have you got a reference to "Microsoft.VC90.DebugCRT" ?

I think that it could be a crash cause for x01.exe.

thanks for your answer


Werner Smekal a écrit :
> Hi,
> 
> On 7/1/10 12:55 PM, Laurent Berger wrote:
>> Hi,
>>
>> I use PLPLOT 5.9.6 on windows xp with visual C++ 9.0 with wxWidgets.
>> With my computer and program x01.exe (the first sample proram) 
>> everythings work with ps or wxwidgets drivers.
>> I have installed x01 on another computer. I have defined environement 
>> variable PLPLOT and PLPLOT_DRV_LIB. Program x01 works with ps drivers 
>> but crashs when I  want to use wxwidgets driver.
> 
> Did you copy the shared wxWidgets plplot driver with the x01 example?
> Did you copy the wxWidgets library (if it was shared as well)? You could
> run x01.exe with the option "-debug -verbose" and then some debug
> messages should be printed on the screen. Could you send this messages
> to the list?
> 
> HTH,
> Werner
> 
>> i have done something wrong but i cannot find it.
>>
>> thanks you answer.
>>
>> --
>> This SF.net email is sponsored by Sprint
>> What will you do first with EVO, the first 4G phone?
>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>> ___
>> Plplot-devel mailing list
>> Plplot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/plplot-devel
> 
> 



--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] Deploying programs that use PLplot with wxWidgets

2010-07-01 Thread Laurent Berger
With debug and verbose option for x01 results are

C:\PROGRA~1\plplot\bin>x01 -debug -verbose
PLplot library version: 5.9.6

Plotting Options:
  < 1> ps PostScript File (monochrome)
  < 2> pscPostScript File (color)
  < 3> xfig   Fig file
  < 4> null   Null device
  < 5> memUser-supplied memory device
  < 6> wxwidgets  wxWidgets Driver
  < 7> wxpng  wxWidgets PNG Driver
  < 8> svgScalable Vector Graphics (SVG 1.1)

Enter device number or keyword (stream 1): 6
plLoadDriver: Device not loaded!
plLoadDriver: tag=wxwidgets, drvidx=4
plLoadDriver: Trying to load wxwidgets on wxwidgets
plLoadDriver: lt_dlopenext failed because of the following reason:
No error information
Unable to load driver: wxwidgets.

*** PLPLOT ERROR, IMMEDIATE EXIT ***
Unable to load driver
Program aborted




Werner Smekal a écrit :
> Hi,
> 
> On 7/1/10 12:55 PM, Laurent Berger wrote:
>> Hi,
>>
>> I use PLPLOT 5.9.6 on windows xp with visual C++ 9.0 with wxWidgets.
>> With my computer and program x01.exe (the first sample proram) 
>> everythings work with ps or wxwidgets drivers.
>> I have installed x01 on another computer. I have defined environement 
>> variable PLPLOT and PLPLOT_DRV_LIB. Program x01 works with ps drivers 
>> but crashs when I  want to use wxwidgets driver.
> 
> Did you copy the shared wxWidgets plplot driver with the x01 example?
> Did you copy the wxWidgets library (if it was shared as well)? You could
> run x01.exe with the option "-debug -verbose" and then some debug
> messages should be printed on the screen. Could you send this messages
> to the list?
> 
> HTH,
> Werner
> 
>> i have done something wrong but i cannot find it.
>>
>> thanks you answer.
>>
>> --
>> This SF.net email is sponsored by Sprint
>> What will you do first with EVO, the first 4G phone?
>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>> ___
>> Plplot-devel mailing list
>> Plplot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/plplot-devel
> 
> 


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


[Plplot-devel] Deploying programs that use PLplot with wxWidgets

2010-07-01 Thread Laurent Berger
Hi,

I use PLPLOT 5.9.6 on windows xp with visual C++ 9.0 with wxWidgets.
With my computer and program x01.exe (the first sample proram) 
everythings work with ps or wxwidgets drivers.
I have installed x01 on another computer. I have defined environement 
variable PLPLOT and PLPLOT_DRV_LIB. Program x01 works with ps drivers 
but crashs when I  want to use wxwidgets driver.

i have done something wrong but i cannot find it.

thanks you answer.

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel