Here are a set of instructions that seem to work for me to build a set of
dlls. I created a new user on my machine and a fresh directory structure
and from this clean setup I got good build results.

1. Download wxWidgets-3.0.4 to C:\test\src\ and use 7zip to extract to a
folder called wxWidgets-3.0.4
   C:\test\src\wxWidgets-3.0.4 now contains files called configure,
.gitattributes, etc
2. Open C:\test\src\wxWidgets-3.0.4\build\msw\wx_vc12.sln, I get asked
about retargetting projects. I leave everything ticked and hit OK
3. Select DLL Debug and x64 configurations. Hit f7 to build.
4. Change DLL Debug to DLL Release and keep x64. Hit f7 to build again.
5. Add C:\test\bin;C:\test\src\wxWidgets-3.0.4\lib\vc_x64_dll; to the path
variable.
6. Create a variable WXWIN with a value of C:\test\src\wxWidgets-3.0.4\
7. Download plplot-5.15.0 to C:\test\src\ and use 7zip to extract to a
folder called plplot-5.15.0. The folder C:\test\src\plplot-5.15.0 now
contains the ABOUT and INSTALL files etc.
8. Start a developer command prompt for VS 2017 and execute these commands
(if you started this already, close it and reopen to see the new
environment variables)
   cd C:\test\src\plplot-5.15.0
   mkdir build
   cd build
   set CXXFLAGS=/DUNICODE /D_UNICODE
   set CFLAGS=/DUNICODE /D_UNICODE
   cmake .. -G "Visual Studio 15 2017 Win64"
-DCMAKE_DINSTALL_PREFIX="C:\test" -DCMAKE_DEBUG_POSTFIX=d
   NOTE THE DEBUG POSTFIX IS TO ENABLE RELEASE AND DEBUG LIBS TO INHABIT
THE SAME DIRECTORY AS IT ADD d TO THE FILENAMES
9. Open the file C:\test\src\plplot-5.15.0\build\plplot.sln
10. Ensure Dubug and x64 configuration are selected. Right click the
INSTALL project and select build.
11. Change to Release, sticking with x64 configuration. Right click the
INSTALL project and select build.


I have never built the examples in the share/plplot/examples directory. But
Let me know how you get on with this setup.

Phil



On Mon, 9 Sep 2019 at 20:38, David Bergman <stuntguitar1...@gmail.com>
wrote:

> No it is not.
>
>
> On 9/9/2019 3:33 PM, Phil Rosenberg wrote:
>
> Is the directory containing your old dlls listed in your path variable. If
> so, the old ones can be found by mistake and erroneously used.
>
> Get Outlook for Android <https://aka.ms/ghei36>
>
> ------------------------------
> *From:* stuntguitar1969 <stuntguitar1...@gmail.com>
> <stuntguitar1...@gmail.com>
> *Sent:* Monday, September 9, 2019 7:37:47 PM
> *To:* Phil Rosenberg <p.d.rosenb...@gmail.com> <p.d.rosenb...@gmail.com>;
> plplot-gene...@lists.sourceforge.net
> <plplot-gene...@lists.sourceforge.net>
> <plplot-gene...@lists.sourceforge.net>
> *Subject:* Re: [Plplot-general] Problem with LNK2019 error unresolved
> external
>
> I will double check everything.   Past issues in the thread have resolved
> by rebuilding and making sure x64 is chosen everywhere.   I cannot rule out
> that something might be 32 bit but I tried to be thorough in the last build
> and install of everything.   I do have my old libs and dlls but they are in
> a different dir which is not used in the project.  I'll try the example
> again just to be sure.
>
>
>
> Sent from my Verizon, Samsung Galaxy smartphone
>
> -------- Original message --------
> From: Phil Rosenberg <p.d.rosenb...@gmail.com> <p.d.rosenb...@gmail.com>
> Date: 9/9/19 2:20 PM (GMT-05:00)
> To: plplot-gene...@lists.sourceforge.net, David Bergman
> <stuntguitar1...@gmail.com> <stuntguitar1...@gmail.com>
> Subject: Re: [Plplot-general] Problem with LNK2019 error unresolved
> external
>
> Corrupt file error sounds like you are mixing 64 and 32 bit exes and dlls.
> I think I've had that error with some libraries before and found that was
> my mistake.
>
> Is your install bin directory on your path? Do you have any old dlls
> somewhere that might be on your path?
>
> I usually use static libs. I used a dll version of wxwidgets about 6
> months ago, so I know things worked back then. But I'm back to using static
> libs again. I will build a dll version of plplot this evening and send you
> exactly the commands I used.
>
> Get Outlook for Android <https://aka.ms/ghei36>
>
> ------------------------------
> *From:* David Bergman <stuntguitar1...@gmail.com>
> <stuntguitar1...@gmail.com>
> *Sent:* Monday, September 9, 2019 6:31:00 PM
> *To:* Phil Rosenberg <p.d.rosenb...@gmail.com> <p.d.rosenb...@gmail.com>;
> plplot-gene...@lists.sourceforge.net
> <plplot-gene...@lists.sourceforge.net>
> <plplot-gene...@lists.sourceforge.net>
> *Subject:* Re: [Plplot-general] Problem with LNK2019 error unresolved
> external
>
>
> Phil,
>
> I've gotten a little further.  I tried to run one of the examples building
> a VS project and sln.  Making sure everything was aligned w/r to he choice
> x64 I got a corrupted file error.
>
> Error    LNK1107    invalid or corrupt file: cannot read at 0x310
> plplotExamples    C:\build-plplot-new-man\dll\csirocsa.dll    1
>
> I am not sure what to do.  Looking through some of the old blog posts of
> the issues I had last year it seems that is was also an issue then.
>
> When you do your build were you able to get everything using the sln or
> did you have to install at the command prompt too.  That rings a bell and I
> think I wound up using nmake.
>
> Can you confirm your build/install procedure and perhaps shed some light
> on why csirocsa.dll would be corrupted?
>
> Thank you for your help.
>
> David
>
>
>
> On 9/7/2019 3:34 AM, Phil Rosenberg wrote:
>
> Hi David
> Sounds like either one of the libs has been forgotten, or you are building
> a 32bit exe and trying to link to the 64 bit libs you just built.
>
> Might be worth noting that I think the naming convention of the libs
> changed at some point. They used to have a d suffix to indicate using
> double precision. This has been dropped I think. So you might need to
> update the lib names in your project.
>
> Phil
>
> Get Outlook for Android <https://aka.ms/ghei36>
>
> ------------------------------
> *From:* David Bergman <stuntguitar1...@gmail.com>
> <stuntguitar1...@gmail.com>
> *Sent:* Friday, September 6, 2019 9:20:57 PM
> *To:* Phil Rosenberg <p.d.rosenb...@gmail.com> <p.d.rosenb...@gmail.com>;
> plplot-gene...@lists.sourceforge.net
> <plplot-gene...@lists.sourceforge.net>
> <plplot-gene...@lists.sourceforge.net>
> *Subject:* Re: [Plplot-general] Problem with LNK2019 error unresolved
> external
>
>
> Phil,
>
> As per our last correspondence I had succeeded in getting the widgets
> headers and drivers built when I changed from Win64 to no Win64.  But I
> still got an install error in the IDE (sent in a previous email).  You had
> suggested that perhaps I didn't build widgets using 64bit so I decided to
> purge everything and start over.  I built the widgets files using their sln
> with x64 set.  Then built plplot with cmake no problem and widgets was
> declared ON as expected.  Using the IDE and the sln to INSTALL led to
> hanging and errors three times in a row.  After the 3rd time I just looked
> in the folders and figured if I can find everything I might be okay.  My
> recollection is that this happened last time too (back in 2017).
>
> The example I was trying to run was a simple one of my own that plotted
> various 3-dim mesh surfaces.
>
> I did not try to build the official plplot examples yet.  Perhaps I should
> try that first.
>
> I don't know if what I've written is helpful in helping you help me get it
> working.
>
> David
>
>
>
> On 9/6/2019 3:44 PM, Phil Rosenberg wrote:
>
>
> Is this building the examples? Sounds like the libs are not being linked
> to properly.
>
> Did you get past the wxwidgets problem?
>
> Get Outlook for Android <https://aka.ms/ghei36>
>
> ------------------------------
> *From:* David Bergman <stuntguitar1...@gmail.com>
> <stuntguitar1...@gmail.com>
> *Sent:* Friday, September 6, 2019 6:17:59 PM
> *To:* plplot-gene...@lists.sourceforge.net
> <plplot-gene...@lists.sourceforge.net>
> <plplot-gene...@lists.sourceforge.net>
> *Subject:* [Plplot-general] Problem with LNK2019 error unresolved external
>
> All,
>
> I have made some progress with building and installing the new plplot
> with a new wxwidets using VS 2017.
>
> I still have not gone past the install process in the IDE w/o an error
> but I seem to have all the headers and dll I need (though I'm not sure
> if they are corrupted).
>
> At present I've decided to move forward with what I have and try a
> simple example I wrote that worked with my previous config.
>
> I get unresolved externals, 14 to be exact.  Basically every plplot
> function I call seems to cause this.  A few example are provided.
>
> plAlloc2dGrid
>
> and all the plstream functions like box3, col0, font, etc.
>
> Typically what I cause this it's due to a function declaration in a
> class that is not defined elsewhere.
>
> It "seems like" my new build has the same files as the old one and the
> projects are comparable (with only diffs being the location of the new
> folders).
>
> Thanks in advance for your help.
>
> David
>
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
>
>
>
> _______________________________________________
> Plplot-general mailing list
> plplot-gene...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-general
>
> --
> David Bergman
> David R Bergman Music LLC
> "Have Guitar Will Travel"
> Morristown NJ
> 551-655-4720stuntguitar1...@gmail.comwww.davidrobertbergmanmusic.com
>
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=icon>
>  Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=link>
>
> --
> David Bergman
> David R Bergman Music LLC
> "Have Guitar Will Travel"
> Morristown NJ
> 551-655-4720stuntguitar1...@gmail.comwww.davidrobertbergmanmusic.com
>
> --
> David Bergman
> David R Bergman Music LLC
> "Have Guitar Will Travel"
> Morristown NJ
> 551-655-4720stuntguitar1...@gmail.comwww.davidrobertbergmanmusic.com
>
>
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to