Re: [Plplot-devel] [Plplot-general] More questions about install

2018-02-04 Thread Phil Rosenberg
Hmm, not sure.

Are you rebuilding the whole library? Did you clean out the old build
directory? How did you download? Are any cygwin binary directories on your
path?

Phil

On Feb 4, 2018 11:32, "David Bergman"  wrote:

I am building on windows, DOS cmd build instructions as per

https://sourceforge.net/p/plplot/wiki/Configure_PLplot_for_Visual_CXX_CLI/

as before. cmake, nmake, nmake install.

I downloaded from the link you sent, not sure what happened.






On Sunday, February 4, 2018, 4:45:29 AM EST, Phil Rosenberg <
p.d.rosenb...@gmail.com> wrote:


Hi David
Can I as what toolset you are using to build with?
Libltdl appears to be gnu related, but I thought you were building with the
standard windows toolset.

Phil

Get Outlook for Android 



From: David Bergman
Sent: Sunday, February 4, 03:41
Subject: Re: [Plplot-general] More questions about install
To: Phil Rosenberg


Scratch this last email, I discovered a typo in my cmake command.  However,
after getting past this I am now getting the following,

Could not open driver module wxwidgets
libltdl error: No error information
NMAKE : fatal error U1077: '..\dll\test-drv-info.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio\2017
\Community\VC\Tools\MSVC\14.11.25503\bin\HostX86\x86\nmake.exe"' : return
code '
0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio\2017
\Community\VC\Tools\MSVC\14.11.25503\bin\HostX86\x86\nmake.exe"' : return
code '
0x2'
Stop.



On Saturday, February 3, 2018, 8:59:14 PM EST, David Bergman <
davidrberg...@yahoo.com> wrote:


Phil,

I have the latest but I'm getting new build errors.
The IDE install failed for most projects and eventually hung.  This
occurred before but restarting usually fixes.
The DOS install failed on the nmake command,

NMAKE : fatal error U1073: don't know how to make 'C:\\all'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio\2017
\Community\VC\Tools\MSVC\14.11.25503\bin\HostX86\x86\nmake.exe"' : return
code '
0x2'
Stop.

There were no errors in the cmake command and I'm doing this the same as
before (after help from Arjen to turn off cairo devices).

Could I manually add the code snippet to the header or do the libs need to
be rebuilt with the change?

Thanks,
David




On Saturday, February 3, 2018, 4:12:57 PM EST, Phil Rosenberg <
p.d.rosenb...@gmail.com> wrote:


Hi David
I just had another look at the code comparing to the release you are using
and you were absolutely right, there is a bug there. I have just fixed that
and pushed the resulting code up to our git repo. You can pull the latest
code from there at https://sourceforge.net/p/
plplot
/
plplot
/
ci
/master/tree/
 in your browser,
or using git using the command

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

Let us know if you are having any difficulties grabbing it.

Phil
*From:* David Bergman 
*Sent:* Saturday, February 3, 2018 6:49:13 PM
*To:* Phil Rosenberg
*Subject:* Re: [Plplot-general] More questions about install

Phil,
Would the bug be in the header or the the call in the test code *.cpp?
If it's the header then I'd like the new version.  But if it's the driver
then would the documentation on wxWidgets classes be informative?
I notice typical declarations have wxTemplate * x = something(NULL),
to initialize the variable.
No such input appears in the driver.
Thanks,
David


On Saturday, February 3, 2018, 11:20:08 AM EST, Phil Rosenberg <
p.d.rosenb...@gmail.com> wrote:


Hi David
Can I just confirm which version of PLplot you are using or if it is a
version grabbed from the git repo?

I ask because the line numbers don't seem to match up with the version I
have. But looking at my code I have a feeling that bug has been fixed.

Phil


On Feb 3, 2018 15:56, "David Bergman" @yahoo.com > wrote:

I tried running the wxPLplotDemo example and got the following compilation
error:

error C4703: potentially uninitialized local pointer variable 'drawDc' used
on line 378 of wxplplotwindow.h

Looking through the code it appears that every declaration of drawDC is as
follows

wxDC *drawDc = m_memoryDc;

except the last function

void wxPLplotwindow:: setUseGraphicsContext( bool
useGraphicsContext )
{
wxDC *drawDc;
...
}

I am not familiar with the details of the code but it appears that the
variable is set to something before it is used.  This is not modified code.

Please advise.
Thanks,
David








On Saturday, February 3, 

Re: [Plplot-devel] [Plplot-general] More questions about install

2018-02-04 Thread Phil Rosenberg
Hi David
Can I as what toolset you are using to build with?
Libltdl appears to be gnu related, but I thought you were building with the 
standard windows toolset.

Phil

Get Outlook for Android



From: David Bergman
Sent: Sunday, February 4, 03:41
Subject: Re: [Plplot-general] More questions about install
To: Phil Rosenberg


Scratch this last email, I discovered a typo in my cmake command.  However, 
after getting past this I am now getting the following,

Could not open driver module wxwidgets
libltdl error: No error information
NMAKE : fatal error U1077: '..\dll\test-drv-info.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017
\Community\VC\Tools\MSVC\14.11.25503\bin\HostX86\x86\nmake.exe"' : return code '
0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017
\Community\VC\Tools\MSVC\14.11.25503\bin\HostX86\x86\nmake.exe"' : return code '
0x2'
Stop.



On Saturday, February 3, 2018, 8:59:14 PM EST, David Bergman 
 wrote:


Phil,

I have the latest but I'm getting new build errors.
The IDE install failed for most projects and eventually hung.  This occurred 
before but restarting usually fixes.
The DOS install failed on the nmake command,

NMAKE : fatal error U1073: don't know how to make 'C:\\all'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017
\Community\VC\Tools\MSVC\14.11.25503\bin\HostX86\x86\nmake.exe"' : return code '
0x2'
Stop.

There were no errors in the cmake command and I'm doing this the same as before 
(after help from Arjen to turn off cairo devices).

Could I manually add the code snippet to the header or do the libs need to be 
rebuilt with the change?

Thanks,
David




On Saturday, February 3, 2018, 4:12:57 PM EST, Phil Rosenberg 
 wrote:


Hi David
I just had another look at the code comparing to the release you are using and 
you were absolutely right, there is a bug there. I have just fixed that and 
pushed the resulting code up to our git repo. You can pull the latest code from 
there at 
https://sourceforge.net/p/plplot/plplot/ci/master/tree/
 in your browser, or using git using the command

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

Let us know if you are having any difficulties grabbing it.

Phil
From: David Bergman 
Sent: Saturday, February 3, 2018 6:49:13 PM
To: Phil Rosenberg
Subject: Re: [Plplot-general] More questions about install

Phil,
Would the bug be in the header or the the call in the test code *.cpp?
If it's the header then I'd like the new version.  But if it's the driver then 
would the documentation on wxWidgets classes be informative?
I notice typical declarations have wxTemplate * x = something(NULL), to 
initialize the variable.
No such input appears in the driver.
Thanks,
David


On Saturday, February 3, 2018, 11:20:08 AM EST, Phil Rosenberg 
 wrote:


Hi David
Can I just confirm which version of PLplot you are using or if it is a version 
grabbed from the git repo?

I ask because the line numbers don't seem to match up with the version I have. 
But looking at my code I have a feeling that bug has been fixed.

Phil


On Feb 3, 2018 15:56, "David Bergman" 
@yahoo.com>
 wrote:
I tried running the wxPLplotDemo example and got the following compilation 
error:

error C4703: potentially uninitialized local pointer variable 'drawDc' used on 
line 378 of wxplplotwindow.h

Looking through the code it appears that every declaration of drawDC is as 
follows

wxDC *drawDc = m_memoryDc;

except the last function

void wxPLplotwindow:: setUseGraphicsContext( bool useGraphicsContext )
{
wxDC *drawDc;
...
}

I am not familiar with the details of the code but it appears that the variable 
is set to something before it is used.  This is not modified code.

Please advise.
Thanks,
David








On Saturday, February 3, 2018, 4:01:05 AM EST, Phil Rosenberg 
> wrote:


Hi David
Yes, that's exactly what you need to do.  can be pretty much any wxWidget 
window class, although I suggest using wxPanel. Using wxFrame works on Windows, 
but is apparently not good practice and some things don't work properly if you 
render directly to a wxFrame on Linux.

In terms of a demo, check out wxPLplotDemo.cpp in the PLplot source code. It is 
in examples/c++

Phil

From: David Bergman