You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(14) |
Jun
(1) |
Jul
(3) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(16) |
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(13) |
Feb
(22) |
Mar
(7) |
Apr
(8) |
May
(8) |
Jun
(11) |
Jul
(2) |
Aug
|
Sep
(5) |
Oct
(31) |
Nov
(23) |
Dec
(3) |
2002 |
Jan
(1) |
Feb
(17) |
Mar
(10) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
|
Sep
(11) |
Oct
(5) |
Nov
(21) |
Dec
(20) |
2003 |
Jan
(27) |
Feb
(13) |
Mar
(20) |
Apr
(11) |
May
(12) |
Jun
(7) |
Jul
(16) |
Aug
(21) |
Sep
(9) |
Oct
(28) |
Nov
(24) |
Dec
(30) |
2004 |
Jan
(31) |
Feb
(5) |
Mar
|
Apr
(8) |
May
(12) |
Jun
(7) |
Jul
(13) |
Aug
(12) |
Sep
(2) |
Oct
(14) |
Nov
(42) |
Dec
(14) |
2005 |
Jan
|
Feb
|
Mar
(20) |
Apr
(17) |
May
(9) |
Jun
|
Jul
(7) |
Aug
(3) |
Sep
(17) |
Oct
(14) |
Nov
(9) |
Dec
|
2006 |
Jan
|
Feb
|
Mar
(13) |
Apr
(2) |
May
(46) |
Jun
(2) |
Jul
(20) |
Aug
(26) |
Sep
(31) |
Oct
(5) |
Nov
(9) |
Dec
(13) |
2007 |
Jan
(24) |
Feb
(22) |
Mar
(13) |
Apr
(25) |
May
(25) |
Jun
(9) |
Jul
(20) |
Aug
(9) |
Sep
(26) |
Oct
(3) |
Nov
(4) |
Dec
(3) |
2008 |
Jan
(92) |
Feb
(35) |
Mar
(39) |
Apr
(15) |
May
|
Jun
|
Jul
(18) |
Aug
(5) |
Sep
(5) |
Oct
(7) |
Nov
(10) |
Dec
(27) |
2009 |
Jan
(35) |
Feb
(34) |
Mar
(13) |
Apr
(9) |
May
(18) |
Jun
(9) |
Jul
(15) |
Aug
(13) |
Sep
(64) |
Oct
(7) |
Nov
(43) |
Dec
|
2010 |
Jan
(75) |
Feb
(22) |
Mar
(44) |
Apr
(34) |
May
(47) |
Jun
(77) |
Jul
(28) |
Aug
(7) |
Sep
(45) |
Oct
(1) |
Nov
(19) |
Dec
(7) |
2011 |
Jan
(14) |
Feb
|
Mar
(6) |
Apr
(12) |
May
(19) |
Jun
(3) |
Jul
(8) |
Aug
(4) |
Sep
(3) |
Oct
(21) |
Nov
(11) |
Dec
(4) |
2012 |
Jan
(2) |
Feb
(9) |
Mar
|
Apr
(1) |
May
(2) |
Jun
|
Jul
(1) |
Aug
(5) |
Sep
(5) |
Oct
(1) |
Nov
(18) |
Dec
(2) |
2013 |
Jan
(15) |
Feb
(16) |
Mar
(8) |
Apr
(5) |
May
|
Jun
(1) |
Jul
(17) |
Aug
(3) |
Sep
(17) |
Oct
(43) |
Nov
(25) |
Dec
(9) |
2014 |
Jan
(4) |
Feb
(8) |
Mar
(20) |
Apr
(14) |
May
(49) |
Jun
(1) |
Jul
|
Aug
(18) |
Sep
(2) |
Oct
(1) |
Nov
(22) |
Dec
(3) |
2015 |
Jan
(41) |
Feb
(2) |
Mar
(34) |
Apr
(30) |
May
(14) |
Jun
(17) |
Jul
(29) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(7) |
Dec
(4) |
2016 |
Jan
|
Feb
|
Mar
(1) |
Apr
(4) |
May
(1) |
Jun
|
Jul
(1) |
Aug
|
Sep
(25) |
Oct
(9) |
Nov
(14) |
Dec
(13) |
2017 |
Jan
(11) |
Feb
(8) |
Mar
(12) |
Apr
(4) |
May
(25) |
Jun
(2) |
Jul
|
Aug
(5) |
Sep
(10) |
Oct
(25) |
Nov
|
Dec
(6) |
2018 |
Jan
(18) |
Feb
(6) |
Mar
(6) |
Apr
(1) |
May
(7) |
Jun
(13) |
Jul
(8) |
Aug
|
Sep
(5) |
Oct
(2) |
Nov
(17) |
Dec
(3) |
2019 |
Jan
(11) |
Feb
(4) |
Mar
(13) |
Apr
(19) |
May
(1) |
Jun
(2) |
Jul
(8) |
Aug
(4) |
Sep
(32) |
Oct
(51) |
Nov
(1) |
Dec
(9) |
2020 |
Jan
(9) |
Feb
(6) |
Mar
|
Apr
|
May
(3) |
Jun
(2) |
Jul
(5) |
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(7) |
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(2) |
Nov
(3) |
Dec
|
2022 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: David B. <stu...@gm...> - 2019-09-09 19:39:07
|
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 <stu...@gm...> > *Sent:* Monday, September 9, 2019 7:37:47 PM > *To:* Phil Rosenberg <p.d...@gm...>; > plp...@li... > <plp...@li...> > *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...@gm...> > Date: 9/9/19 2:20 PM (GMT-05:00) > To: plp...@li..., David Bergman > <stu...@gm...> > 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 <stu...@gm...> > *Sent:* Monday, September 9, 2019 6:31:00 PM > *To:* Phil Rosenberg <p.d...@gm...>; > plp...@li... > <plp...@li...> > *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 <stu...@gm...> >> *Sent:* Friday, September 6, 2019 9:20:57 PM >> *To:* Phil Rosenberg <p.d...@gm...>; >> plp...@li... >> <plp...@li...> >> *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 <stu...@gm...> >>> *Sent:* Friday, September 6, 2019 6:17:59 PM >>> *To:* plp...@li... >>> <plp...@li...> >>> *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 >>> Plp...@li... >>> https://lists.sourceforge.net/lists/listinfo/plplot-general >> -- >> David Bergman >> David R Bergman Music LLC >> "Have Guitar Will Travel" >> Morristown NJ >> 551-655-4720 >> stu...@gm... >> www.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-4720 > stu...@gm... > www.davidrobertbergmanmusic.com -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm... www.davidrobertbergmanmusic.com |
From: Phil R. <p.d...@gm...> - 2019-09-09 19:34:12
|
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 <stu...@gm...> Sent: Monday, September 9, 2019 7:37:47 PM To: Phil Rosenberg <p.d...@gm...>; plp...@li... <plp...@li...> 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...@gm...> Date: 9/9/19 2:20 PM (GMT-05:00) To: plp...@li..., David Bergman <stu...@gm...> 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 <stu...@gm...> Sent: Monday, September 9, 2019 6:31:00 PM To: Phil Rosenberg <p.d...@gm...>; plp...@li... <plp...@li...> 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 <stu...@gm...><mailto:stu...@gm...> Sent: Friday, September 6, 2019 9:20:57 PM To: Phil Rosenberg <p.d...@gm...><mailto:p.d...@gm...>; plp...@li...<mailto:plp...@li...> <plp...@li...><mailto:plp...@li...> 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 <stu...@gm...><mailto:stu...@gm...> Sent: Friday, September 6, 2019 6:17:59 PM To: plp...@li...<mailto:plp...@li...> <plp...@li...><mailto:plp...@li...> 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 Plp...@li...<mailto:Plp...@li...> https://lists.sourceforge.net/lists/listinfo/plplot-general -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm...<mailto:stu...@gm...> www.davidrobertbergmanmusic.com<http://www.davidrobertbergmanmusic.com> [https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]<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-4720 stu...@gm...<mailto:stu...@gm...> www.davidrobertbergmanmusic.com<http://www.davidrobertbergmanmusic.com> |
From: stuntguitar1969 <stu...@gm...> - 2019-09-09 18:37:58
|
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...@gm...> Date: 9/9/19 2:20 PM (GMT-05:00) To: plp...@li..., David Bergman <stu...@gm...> 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 From: David Bergman <stu...@gm...> Sent: Monday, September 9, 2019 6:31:00 PM To: Phil Rosenberg <p.d...@gm...>; plp...@li... <plp...@li...> 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 From: David Bergman <stu...@gm...> Sent: Friday, September 6, 2019 9:20:57 PM To: Phil Rosenberg <p.d...@gm...>; plp...@li... <plp...@li...> 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: <!-- .EmailQuote {margin-left:1pt; padding-left:4pt; border-left:#800000 2px solid} --> 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 From: David Bergman <stu...@gm...> Sent: Friday, September 6, 2019 6:17:59 PM To: plp...@li... <plp...@li...> 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 Plp...@li... https://lists.sourceforge.net/lists/listinfo/plplot-general -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm... www.davidrobertbergmanmusic.com Virus-free. www.avast.com -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm... www.davidrobertbergmanmusic.com |
From: Phil R. <p.d...@gm...> - 2019-09-09 18:20:22
|
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 <stu...@gm...> Sent: Monday, September 9, 2019 6:31:00 PM To: Phil Rosenberg <p.d...@gm...>; plp...@li... <plp...@li...> 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 <stu...@gm...><mailto:stu...@gm...> Sent: Friday, September 6, 2019 9:20:57 PM To: Phil Rosenberg <p.d...@gm...><mailto:p.d...@gm...>; plp...@li...<mailto:plp...@li...> <plp...@li...><mailto:plp...@li...> 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 <stu...@gm...><mailto:stu...@gm...> Sent: Friday, September 6, 2019 6:17:59 PM To: plp...@li...<mailto:plp...@li...> <plp...@li...><mailto:plp...@li...> 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 Plp...@li...<mailto:Plp...@li...> https://lists.sourceforge.net/lists/listinfo/plplot-general -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm...<mailto:stu...@gm...> www.davidrobertbergmanmusic.com<http://www.davidrobertbergmanmusic.com> [https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]<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-4720 stu...@gm...<mailto:stu...@gm...> www.davidrobertbergmanmusic.com<http://www.davidrobertbergmanmusic.com> |
From: David B. <stu...@gm...> - 2019-09-09 17:31:22
|
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 <stu...@gm...> > *Sent:* Friday, September 6, 2019 9:20:57 PM > *To:* Phil Rosenberg <p.d...@gm...>; > plp...@li... > <plp...@li...> > *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 <stu...@gm...> >> *Sent:* Friday, September 6, 2019 6:17:59 PM >> *To:* plp...@li... >> <plp...@li...> >> *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 >> Plp...@li... >> https://lists.sourceforge.net/lists/listinfo/plplot-general > -- > David Bergman > David R Bergman Music LLC > "Have Guitar Will Travel" > Morristown NJ > 551-655-4720 > stu...@gm... > www.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-4720 stu...@gm... www.davidrobertbergmanmusic.com |
From: David B. <stu...@gm...> - 2019-09-08 15:49:35
|
Well, I checked and the d suffix was not in my previous file names, the new and old have identical names. I am not seeing all the same headers in this build as before but I do see all the ones you listed in your previous email. 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 <stu...@gm...> > *Sent:* Friday, September 6, 2019 9:20:57 PM > *To:* Phil Rosenberg <p.d...@gm...>; > plp...@li... > <plp...@li...> > *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 <stu...@gm...> >> *Sent:* Friday, September 6, 2019 6:17:59 PM >> *To:* plp...@li... >> <plp...@li...> >> *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 >> Plp...@li... >> https://lists.sourceforge.net/lists/listinfo/plplot-general > -- > David Bergman > David R Bergman Music LLC > "Have Guitar Will Travel" > Morristown NJ > 551-655-4720 > stu...@gm... > www.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-4720 stu...@gm... www.davidrobertbergmanmusic.com |
From: stuntguitar1969 <stu...@gm...> - 2019-09-07 17:54:44
|
I did build 64 bit. I wi double check the names. That may be it. I might have just changed the dir in the project and left the dll and lib names unchanged. Sent from my Verizon, Samsung Galaxy smartphone -------- Original message --------From: Phil Rosenberg <p.d...@gm...> Date: 9/7/19 3:34 AM (GMT-05:00) To: plp...@li..., David Bergman <stu...@gm...> Subject: Re: [Plplot-general] Problem with LNK2019 error unresolved external 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 From: David Bergman <stu...@gm...> Sent: Friday, September 6, 2019 9:20:57 PM To: Phil Rosenberg <p.d...@gm...>; plp...@li... <plp...@li...> 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: <!-- .EmailQuote {margin-left:1pt; padding-left:4pt; border-left:#800000 2px solid} --> 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 From: David Bergman <stu...@gm...> Sent: Friday, September 6, 2019 6:17:59 PM To: plp...@li... <plp...@li...> 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 Plp...@li... https://lists.sourceforge.net/lists/listinfo/plplot-general -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm... www.davidrobertbergmanmusic.com Virus-free. www.avast.com |
From: Phil R. <p.d...@gm...> - 2019-09-07 07:35:09
|
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 <stu...@gm...> Sent: Friday, September 6, 2019 9:20:57 PM To: Phil Rosenberg <p.d...@gm...>; plp...@li... <plp...@li...> 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 <stu...@gm...><mailto:stu...@gm...> Sent: Friday, September 6, 2019 6:17:59 PM To: plp...@li...<mailto:plp...@li...> <plp...@li...><mailto:plp...@li...> 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 Plp...@li...<mailto:Plp...@li...> https://lists.sourceforge.net/lists/listinfo/plplot-general -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm...<mailto:stu...@gm...> www.davidrobertbergmanmusic.com<http://www.davidrobertbergmanmusic.com> [https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]<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> |
From: David B. <stu...@gm...> - 2019-09-06 20:21:16
|
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 <stu...@gm...> > *Sent:* Friday, September 6, 2019 6:17:59 PM > *To:* plp...@li... > <plp...@li...> > *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 > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-general -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm... www.davidrobertbergmanmusic.com |
From: Phil R. <p.d...@gm...> - 2019-09-06 19:44:37
|
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 <stu...@gm...> Sent: Friday, September 6, 2019 6:17:59 PM To: plp...@li... <plp...@li...> 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 Plp...@li... https://lists.sourceforge.net/lists/listinfo/plplot-general |
From: David B. <stu...@gm...> - 2019-09-06 17:18:18
|
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 |
From: Xavier C. <car...@gm...> - 2019-09-05 18:15:53
|
That's great, thanks for the example Hazen ! I'll be implementing this in the following days On Thu, Sep 5, 2019 at 5:52 PM Hazen Babcock <hba...@ma...> wrote: > On 9/5/19 6:16 AM, Xavier Cardil wrote: > > Thank you for your responses. > > It took me a day to realize that this might be actually the best > > solution, as plotting to memory will be way faster than writing to disk. > > As long as we can plot to memory via plsmema( ) and then retrieve it, > > it should be possible to convert the plot to a Numpy array ? > > Keras takes images as arrays as per our requirement. In matplotlib this > > is done behind the covers with Pillow + Numpy if I'm not wrong. > > Pillow can store images as arrays in memory, so it's similar to what > > plsmema( ) does. I mentioned RGBA encoded string instead of Numpy array > > because I believe Pillow stores images in memory as RGBA strings, and I > > was trying to find a replacement for the whole procedure ( matplotlib is > > terribly slow ) > > > > It would be great to hear more comments from you about this, thanks ! > > > > Here is an example (using the "memqt" driver, but "memcairo" should also > work). > > #!/usr/bin/env python3 > > from PIL import Image > > import numpy > import plplot > > width = 480 > height = 320 > plot_buffer = numpy.zeros((height, width, 4), numpy.uint8) > > plplot.plsmema(width, height, plot_buffer) > > plplot.plstart("memqt", 1, 1) > plplot.plenv(0, 360, 0, 90, 0, 2) > plplot.plend1() > > plot_image = Image.frombytes("RGBA", (width, height), plot_buffer) > plot_image.save("image.png") > > > The final plot is available in the plot_buffer numpy array object, or in > the plot_image PIL/Pillow Image object. > > -Hazen > |
From: Hazen B. <hba...@ma...> - 2019-09-05 15:52:31
|
On 9/5/19 6:16 AM, Xavier Cardil wrote: > Thank you for your responses. > It took me a day to realize that this might be actually the best > solution, as plotting to memory will be way faster than writing to disk. > As long as we can plot to memory via plsmema( ) and then retrieve it, > it should be possible to convert the plot to a Numpy array ? > Keras takes images as arrays as per our requirement. In matplotlib this > is done behind the covers with Pillow + Numpy if I'm not wrong. > Pillow can store images as arrays in memory, so it's similar to what > plsmema( ) does. I mentioned RGBA encoded string instead of Numpy array > because I believe Pillow stores images in memory as RGBA strings, and I > was trying to find a replacement for the whole procedure ( matplotlib is > terribly slow ) > > It would be great to hear more comments from you about this, thanks ! > Here is an example (using the "memqt" driver, but "memcairo" should also work). #!/usr/bin/env python3 from PIL import Image import numpy import plplot width = 480 height = 320 plot_buffer = numpy.zeros((height, width, 4), numpy.uint8) plplot.plsmema(width, height, plot_buffer) plplot.plstart("memqt", 1, 1) plplot.plenv(0, 360, 0, 90, 0, 2) plplot.plend1() plot_image = Image.frombytes("RGBA", (width, height), plot_buffer) plot_image.save("image.png") The final plot is available in the plot_buffer numpy array object, or in the plot_image PIL/Pillow Image object. -Hazen |
From: Xavier C. <car...@gm...> - 2019-09-05 10:16:45
|
Thank you for your responses. It took me a day to realize that this might be actually the best solution, as plotting to memory will be way faster than writing to disk. As long as we can plot to memory via plsmema( ) and then retrieve it, it should be possible to convert the plot to a Numpy array ? Keras takes images as arrays as per our requirement. In matplotlib this is done behind the covers with Pillow + Numpy if I'm not wrong. Pillow can store images as arrays in memory, so it's similar to what plsmema( ) does. I mentioned RGBA encoded string instead of Numpy array because I believe Pillow stores images in memory as RGBA strings, and I was trying to find a replacement for the whole procedure ( matplotlib is terribly slow ) It would be great to hear more comments from you about this, thanks ! On Thu, Sep 5, 2019 at 12:14 PM Xavier Cardil <car...@gm...> wrote: > Thank you for your responses. > It took me a day to realize that this might be actually the best solution, > as plotting to memory will be way faster than writing to disk. > As long as we can plot to memory via plsmema( ) and then retrieve it, it > should be possible to convert the plot to a Numpy array ? > Keras takes images as arrays as per our requirement. In matplotlib this is > done behind the covers with Pillow + Numpy if I'm not wrong. > Pillow can store images as arrays in memory, so it's similar to what > plsmema( ) does. I mentioned RGBA encoded string instead of Numpy array > because I believe Pillow stores images in memory as RGBA strings, and I was > trying to find a replacement for the whole procedure ( matplotlib is > terribly slow ) > > It would be great to hear more comments from you about this, thanks ! > > On Thu, Sep 5, 2019 at 10:29 AM Alan W. Irwin <Ala...@gm...> > wrote: > >> On 2019-09-04 21:42-0400 Hazen Babcock wrote: >> >> > >> > >> > On 9/4/19 8:10 PM, Alan W. Irwin wrote: >> >> On 2019-09-04 21:32+0200 Xavier Cardil wrote: >> >> >> >>> Hi, we are using Plplot on a project with Keras, where we are >> required to >> >>> feed plots as RGBA encoded string plot. Is it possible to do this >> somehow >> >>> ? >> >>> >> >>> I have read about plsmema( ) >> >>> >> >>> >> http://plplot.sourceforge.net/docbook-manual/plplot-html-5.15.0/plsmema.html >> >>> >> >>> But this looks to be a way to input, not to output ? >> >> >> >> Hi Xavier: >> >> >> >> Yes, plsmema is input so I don't think it is suitable for your >> described >> >> needs. >> > >> > Sorry it isn't clear to me what is meant by input here, so I will plow >> ahead. >> > The function plsmema sets the memory space for the memcairo to use when >> > plotting. So it is input in the sense that you pass it a pointer to the >> > memory where you want the plot rendered. But it is also output in the >> sense >> > that the memcairo drive will fill this memory with the plot image. If >> you >> > then saved this block of memory as an (RGBA) image you would see the >> plot. If >> > you are looking to pass pictures of plots to Keras then might be what >> you are >> > looking for. >> > >> > Though not a "official example", there is a Python example that uses >> this >> > function: >> > >> > plplot/examples/python/test_plsmem.py.in >> >> To Hazen and Xavier: >> >> @Hazen: Good points which have convinced me I should not have dismissed >> plsmema quite so quickly. In fact, we can >> make no judgement about any of this until we know the exact needs of >> Keras. >> >> @Xavier: To help us understand those needs, what is exact format of >> what you call an "RGBA encoded string plot"? I have asked for this >> clarification because if you search for "RGBA encoded string" with >> those quotes there are only two (java) google hits. And there are no >> google hits at all for "RGBA encoded string plot" with those quotes. >> >> 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.org); 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 >> __________________________ >> > |
From: Alan W. I. <Ala...@gm...> - 2019-09-05 08:29:39
|
On 2019-09-04 21:42-0400 Hazen Babcock wrote: > > > On 9/4/19 8:10 PM, Alan W. Irwin wrote: >> On 2019-09-04 21:32+0200 Xavier Cardil wrote: >> >>> Hi, we are using Plplot on a project with Keras, where we are required to >>> feed plots as RGBA encoded string plot. Is it possible to do this somehow >>> ? >>> >>> I have read about plsmema( ) >>> >>> http://plplot.sourceforge.net/docbook-manual/plplot-html-5.15.0/plsmema.html >>> >>> But this looks to be a way to input, not to output ? >> >> Hi Xavier: >> >> Yes, plsmema is input so I don't think it is suitable for your described >> needs. > > Sorry it isn't clear to me what is meant by input here, so I will plow ahead. > The function plsmema sets the memory space for the memcairo to use when > plotting. So it is input in the sense that you pass it a pointer to the > memory where you want the plot rendered. But it is also output in the sense > that the memcairo drive will fill this memory with the plot image. If you > then saved this block of memory as an (RGBA) image you would see the plot. If > you are looking to pass pictures of plots to Keras then might be what you are > looking for. > > Though not a "official example", there is a Python example that uses this > function: > > plplot/examples/python/test_plsmem.py.in To Hazen and Xavier: @Hazen: Good points which have convinced me I should not have dismissed plsmema quite so quickly. In fact, we can make no judgement about any of this until we know the exact needs of Keras. @Xavier: To help us understand those needs, what is exact format of what you call an "RGBA encoded string plot"? I have asked for this clarification because if you search for "RGBA encoded string" with those quotes there are only two (java) google hits. And there are no google hits at all for "RGBA encoded string plot" with those quotes. 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.org); 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 __________________________ |
From: Hazen B. <hba...@ma...> - 2019-09-05 01:42:34
|
On 9/4/19 8:10 PM, Alan W. Irwin wrote: > On 2019-09-04 21:32+0200 Xavier Cardil wrote: > >> Hi, we are using Plplot on a project with Keras, where we are required to >> feed plots as RGBA encoded string plot. Is it possible to do this >> somehow ? >> >> I have read about plsmema( ) >> >> http://plplot.sourceforge.net/docbook-manual/plplot-html-5.15.0/plsmema.html >> >> >> But this looks to be a way to input, not to output ? > > Hi Xavier: > > Yes, plsmema is input so I don't think it is suitable for your described > needs. Sorry it isn't clear to me what is meant by input here, so I will plow ahead. The function plsmema sets the memory space for the memcairo to use when plotting. So it is input in the sense that you pass it a pointer to the memory where you want the plot rendered. But it is also output in the sense that the memcairo drive will fill this memory with the plot image. If you then saved this block of memory as an (RGBA) image you would see the plot. If you are looking to pass pictures of plots to Keras then might be what you are looking for. Though not a "official example", there is a Python example that uses this function: plplot/examples/python/test_plsmem.py.in -Hazen |
From: Alan W. I. <Ala...@gm...> - 2019-09-05 00:10:15
|
On 2019-09-04 21:32+0200 Xavier Cardil wrote: > Hi, we are using Plplot on a project with Keras, where we are required to > feed plots as RGBA encoded string plot. Is it possible to do this somehow ? > > I have read about plsmema( ) > > http://plplot.sourceforge.net/docbook-manual/plplot-html-5.15.0/plsmema.html > > But this looks to be a way to input, not to output ? Hi Xavier: Yes, plsmema is input so I don't think it is suitable for your described needs. I think a better option would be to use PLplot to produce plots in the standard SVG form. We have three device drivers that can do that, but the best one from your perspective (because it has no software dependencies) is the "svg" device driver. Then implement a converter from SVG to whatever non-standard plotting format Keras needs (if someone hasn't implemented such a converter already). Or using the svg device driver as a model, you could even implement a PLplot device driver that outputs data in the form required by Keras, but I think the converter idea is likely easier for you to implement. Good luck, and let us know how it goes with your Keras plotting needs. 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.org); 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 __________________________ |
From: Xavier C. <car...@gm...> - 2019-09-04 19:33:07
|
Hi, we are using Plplot on a project with Keras, where we are required to feed plots as RGBA encoded string plot. Is it possible to do this somehow ? I have read about plsmema( ) http://plplot.sourceforge.net/docbook-manual/plplot-html-5.15.0/plsmema.html But this looks to be a way to input, not to output ? Thanks ! |
From: David B. <stu...@gm...> - 2019-08-28 12:09:25
|
Phil, I force stopped the INSTALL and tried again. I do not have my previous notes but I thought ALL_BUILD may work (help). After running ALL_BUILD and then doing INSTALL I got the following errors. The release build seemed to work with the exception of the following error. 10>-- Install configuration: "Release" 10>CMake Error at cmake_install.cmake:44 (file): 10> file cannot create directory: C:/Program Files/plplot/share/doc/plplot. 10> Maybe need administrative privileges. The debug build stopped with the following error Error MSB3073 The command "setlocal "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd :VCEnd" exited with code 1. INSTALL C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 138 When I did the Cmake I pointed to C:\plplot-5.15.0\build as suggested in the instructions. So I am surprised something tried to write to Program Files. It is my computer, I do have admin privileged but did not build from an admin Command Prompt, I used a VS developer Command Prompt. I see quite a bit of stuff deposited in the build dir. There are dll's in both the Debug and Release folders, though no source code of headers in the include dir, just more projects and plhershey-unicode-gen applications. Based on my last build there should be a set of headers. They may be in a different folder. It is possible that I have all I need but will have to hunt for it. Any input on the above errors would be appreciated. David On 8/27/2019 8:05 PM, Phil Rosenberg wrote: > Hi David > Any chance you could report the exact cmake command you are using and > the exact error message you are getting? > > I also use plplot with wxwidgets and VS, so I'll see if I can help as > best as I can. > > Phil > > Get Outlook for Android <https://aka.ms/ghei36> > > ------------------------------------------------------------------------ > *From:* David Bergman <stu...@gm...> > *Sent:* Wednesday, August 28, 2019 12:27:21 AM > *To:* plp...@li... > <plp...@li...> > *Subject:* [Plplot-general] Problems with plPlot VS 2017 build > All, > > I had a drive fail recently, data is all backed up, but I am now > installing s/w and getting newer versions of wxWidgets and plPlot. > Unfortunately, following the plPlot instructions to the best of my > ability did not lead to success. > > The cmake seemed to work without a hitch, but would not install in my > build directory. I moved files into build and opened and ran the sln > from there. The sln reported 2 successful and 1 failed at the end of > the build. I see no dll or lib anywhere. > > I had similar issues with my first plplot install a couple years ago and > was able to get help from this forum and hope that I can again. > > I have Windows 8.1, wxWidgets-3.1.2, MS VS 2017 and am trying to build > plplot-5.15.0. > > Since my last request for help I have been developing quite a bit of > simulation software that is controlled by the wxWidgets GUI and displays > results using plplot. If you could please confirm that code written > will work once the new install is complete I would greatly appreciate > it. I of course expect to have to change paths to include directories > and point to new dll as needed but are there are major changes to plplot > functions, interfaces, or expected behavior? > > Thank you in advance for your help. > > David > > -- > David Bergman > David R Bergman Music LLC > "Have Guitar Will Travel" > Morristown NJ > 551-655-4720 > stu...@gm... > www.davidrobertbergmanmusic.com <http://www.davidrobertbergmanmusic.com> > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > > > _______________________________________________ > Plplot-general mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-general -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm... www.davidrobertbergmanmusic.com |
From: David B. <stu...@gm...> - 2019-08-28 01:59:10
|
Phil, You have been very helpful in the past and I thank you. I was just now trying to build again to get the error and the rebuild rebuild went better. There were no cmake errors last time, but the sln barked that not all projects were loaded and terminated with an error. I deleted the old build and tried again. this time a great many more files and folders appeared in the build dir and the sln opened w/o any warnings or errors. However, now it is hanging in the INSTALL phase. Here is the last few lines in the IDE output window: 9>------ Build started: Project: parity_bit_check, Configuration: Debug x64 ------ 9>Building Custom Rule C:/plplot-5.15.0/utils/CMakeLists.txt 9>CMake does not need to re-run because C:/plplot-5.15.0/build/utils/CMakeFiles/generate.stamp is up-to-date. 9>parity_bit_check.c 9>parity_bit_check.vcxproj -> C:\plplot-5.15.0\build\utils\Debug\parity_bit_check.exe 6>Building Custom Rule C:/plplot-5.15.0/include/CMakeLists.txt 6>CMake does not need to re-run because C:/plplot-5.15.0/build/include/CMakeFiles/generate.stamp is up-to-date. Not sure how long the install should take. David On 8/27/2019 8:05 PM, Phil Rosenberg wrote: > Hi David > Any chance you could report the exact cmake command you are using and > the exact error message you are getting? > > I also use plplot with wxwidgets and VS, so I'll see if I can help as > best as I can. > > Phil > > Get Outlook for Android <https://aka.ms/ghei36> > > ------------------------------------------------------------------------ > *From:* David Bergman <stu...@gm...> > *Sent:* Wednesday, August 28, 2019 12:27:21 AM > *To:* plp...@li... > <plp...@li...> > *Subject:* [Plplot-general] Problems with plPlot VS 2017 build > All, > > I had a drive fail recently, data is all backed up, but I am now > installing s/w and getting newer versions of wxWidgets and plPlot. > Unfortunately, following the plPlot instructions to the best of my > ability did not lead to success. > > The cmake seemed to work without a hitch, but would not install in my > build directory. I moved files into build and opened and ran the sln > from there. The sln reported 2 successful and 1 failed at the end of > the build. I see no dll or lib anywhere. > > I had similar issues with my first plplot install a couple years ago and > was able to get help from this forum and hope that I can again. > > I have Windows 8.1, wxWidgets-3.1.2, MS VS 2017 and am trying to build > plplot-5.15.0. > > Since my last request for help I have been developing quite a bit of > simulation software that is controlled by the wxWidgets GUI and displays > results using plplot. If you could please confirm that code written > will work once the new install is complete I would greatly appreciate > it. I of course expect to have to change paths to include directories > and point to new dll as needed but are there are major changes to plplot > functions, interfaces, or expected behavior? > > Thank you in advance for your help. > > David > > -- > David Bergman > David R Bergman Music LLC > "Have Guitar Will Travel" > Morristown NJ > 551-655-4720 > stu...@gm... > www.davidrobertbergmanmusic.com <http://www.davidrobertbergmanmusic.com> > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > > > _______________________________________________ > Plplot-general mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-general -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm... www.davidrobertbergmanmusic.com |
From: Phil R. <p.d...@gm...> - 2019-08-28 00:05:30
|
Hi David Any chance you could report the exact cmake command you are using and the exact error message you are getting? I also use plplot with wxwidgets and VS, so I'll see if I can help as best as I can. Phil Get Outlook for Android<https://aka.ms/ghei36> ________________________________ From: David Bergman <stu...@gm...> Sent: Wednesday, August 28, 2019 12:27:21 AM To: plp...@li... <plp...@li...> Subject: [Plplot-general] Problems with plPlot VS 2017 build All, I had a drive fail recently, data is all backed up, but I am now installing s/w and getting newer versions of wxWidgets and plPlot. Unfortunately, following the plPlot instructions to the best of my ability did not lead to success. The cmake seemed to work without a hitch, but would not install in my build directory. I moved files into build and opened and ran the sln from there. The sln reported 2 successful and 1 failed at the end of the build. I see no dll or lib anywhere. I had similar issues with my first plplot install a couple years ago and was able to get help from this forum and hope that I can again. I have Windows 8.1, wxWidgets-3.1.2, MS VS 2017 and am trying to build plplot-5.15.0. Since my last request for help I have been developing quite a bit of simulation software that is controlled by the wxWidgets GUI and displays results using plplot. If you could please confirm that code written will work once the new install is complete I would greatly appreciate it. I of course expect to have to change paths to include directories and point to new dll as needed but are there are major changes to plplot functions, interfaces, or expected behavior? Thank you in advance for your help. David -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm... www.davidrobertbergmanmusic.com<http://www.davidrobertbergmanmusic.com> --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus _______________________________________________ Plplot-general mailing list Plp...@li... https://lists.sourceforge.net/lists/listinfo/plplot-general |
From: David B. <stu...@gm...> - 2019-08-27 23:27:36
|
All, I had a drive fail recently, data is all backed up, but I am now installing s/w and getting newer versions of wxWidgets and plPlot. Unfortunately, following the plPlot instructions to the best of my ability did not lead to success. The cmake seemed to work without a hitch, but would not install in my build directory. I moved files into build and opened and ran the sln from there. The sln reported 2 successful and 1 failed at the end of the build. I see no dll or lib anywhere. I had similar issues with my first plplot install a couple years ago and was able to get help from this forum and hope that I can again. I have Windows 8.1, wxWidgets-3.1.2, MS VS 2017 and am trying to build plplot-5.15.0. Since my last request for help I have been developing quite a bit of simulation software that is controlled by the wxWidgets GUI and displays results using plplot. If you could please confirm that code written will work once the new install is complete I would greatly appreciate it. I of course expect to have to change paths to include directories and point to new dll as needed but are there are major changes to plplot functions, interfaces, or expected behavior? Thank you in advance for your help. David -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm... www.davidrobertbergmanmusic.com --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus |
From: Alan W. I. <Ala...@gm...> - 2019-07-12 19:53:23
|
On 2019-07-12 05:05-0700 Alan W. Irwin wrote: > I am virtually positive pkg-config has a way (likely with quotes) to > properly distinguish between these two cases, but I am going to have > to find what that is and adjust the above parsing logic accordingly > for the general fix. Hi Phil: It turns out that the correct *.pc file syntax to handle blanks in pathnames is to quote all -L and -I options, e.g., -L"whatever blank". Could you send me all the *.pc files (wrapped in a tarball for my convenience) for the external libraries used by PLplot that you have installed with " - " in the pathname? Unless I am missing something those *.pc files will have " - " embedded in every pathname mentioned in those files. And if so, then I want to check that those pathnames are all quoted correctly. 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.org); 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 __________________________ |
From: Alan W. I. <Ala...@gm...> - 2019-07-12 17:03:01
|
To Phil and Arjen: I just realized this development discussion is on the wrong mailing list (plplot-general that is normally used just for announcements and PLplot user support requests). So my further posts on this topic will CC the plplot-devel mailing list, and I would appreciate you both taking care to CC that list rather than plplot-general from now on as well when you post on this topic. 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.org); 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 __________________________ |
From: Alan W. I. <Ala...@gm...> - 2019-07-12 12:06:01
|
On 2019-07-12 09:10+0100 Phil Rosenberg wrote: [...] > I couldn't work out the full purpose of the function cmake_link_flags > yesterday, but I've just sat and looked again. My understanding is > that it's primary purpose is to take liker flags -L and -l, specifying > library directories and library names, then use find_library to > actually locate each library and get the full path to that library. > The -L and -l flags are therefore replaced by the full path. > > I think the splitting of flags with semicolons is what is known as a > side-effect (https://softwareengineering.stackexchange.com/questions/40297/what-is-a-side-effect), > or maybe against the "principle of least surprise", or some other > programming mantra. Anyway, I think the "bug" is that this function > should not be responsible for splitting flags, it should only convert > flags to paths. > > I think the best way to proceed would be to have a function which > splits flags, and we only pass flags to it (not paths), then this > function which deals with can deal with flags and paths without > worrying about delimiters. > Thoughts? Hi Phil: Thanks for your interest in helping me figure out this particular hyphen issue. The string parsing transformation logic in question is string(REGEX REPLACE " -" ";-" _link_flags_list "${_link_flags_in}") (See <https://cmake.org/cmake/help/latest/command/string.html> which includes documentation of the REGEX REPLACE form of the string command.) So the logic here is to transform each blank delimited link option (where each such option starts with a hyphen) into a semicolon-delimited link option where that delimiter means the string can be further interpreted (later in the macro) as a CMake list with elements which are link options. The above string logic correctly ignores unhyphenated blanks within -L options (i.e, just treats those blanks as part of the directory name referred to by the -L option). However, the logic obviously fails for your test case where you have " - " embedded within -L options. I am pretty sure from the above documentation that replacing the above logic with string(REGEX REPLACE " -([^ ])" ";-\\1" _link_flags_list "${_link_flags_in}") should address this issue. But this fix is too specialized for general use because the logic still breaks if the hyphen within the -L option is followed by a non-blank character. For example, the option string being parsed could be "-Lfirst_string -Lsecond_string" Are there two -L options here referring to the directory names "first_string" and "second-string" or is there just one -L option here referring to the directory name "first_string -Lsecond_string"? I am virtually positive pkg-config has a way (likely with quotes) to properly distinguish between these two cases, but I am going to have to find what that is and adjust the above parsing logic accordingly for the general fix. Hopefully most of the other hyphen issues that showed up in the Linux case will be much easier to fix than this particular issue. 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.org); 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 __________________________ |