From: hubin <fly...@ou...> - 2013-10-17 06:00:28
|
Hello,I'm a newcomers for plplot,I use vs2010,my PC is win7 x64,I want use the cmake(It's my first time use it) to bulid for .sln. I have read the article http://www.miscdebris.net/plplot_wiki/index.phptitle=Configure_PLplot_for_the_Visual_Studio_IDEI follow the way,but when i use: cmake "C:/USERS/BIN/DESKTOP/plplot" -G "VisualStudio 10 2010" -DPL_DOUBLE=ON -DLIB_TAG="sud" -DBUILD_TEST=ON -DCMAKE_INSTALL_PREFIX="C:\USERS\BIN\DESKTOP\plplotinstall"DCMAKE_CONFIGURATION_TYPES="Debug"-DBUILD_SHARED_LIBS=OFF -DSTATIC_RUNTIME=ON cmake show error :CMake Error: Could not create named generator Visual Studio 10 2010 The I google,people say I can ignore -G "Visual Studio 10 2010",The cmake will correctly detect the local(my computer) compiler;so I do that :cmake "C:/USERS/BIN/DESKTOP/plplot" -DPL_DOUBLE=ON -DLIB_TAG="sud" -DBUILD_TEST=ON -DCMAKE_INSTALL_PREFIX="C:\USERS\BIN\DESKTOP\plplotinstall" DCMAKE_CONFIGURATION_TYPES="Debug"-DBUILD_SHARED_LIBS=OFF -DSTATIC_RUNTIME=ON The cmake run ,about 1 minutes,cmake run over,The last info is:-- Configuring incomplete, errors occurred! I know i fail.so I want to ask for help, I use cmake 2.8.11.2,and plplot 5.9.10 in SVN; Fly |
From: Arjen M. <Arj...@de...> - 2013-10-17 06:39:31
|
Hello Hubin, the proper name for the generator is "Visual Studio 10". You need to run CMake with the MS Visual Studio environment correctly set up. That is: select the MS Visual Studio Command Prompt from the Start menu, go to the correct directory and then run the CMake command. Regards, Arjen From: hubin [mailto:fly...@ou...] Sent: Thursday, October 17, 2013 8:00 AM To: Plp...@li... Subject: [Plplot-general] cmake bulid for .sln error Hello,I'm a newcomers for plplot,I use vs2010,my PC is win7 x64,I want use the cmake(It's my first time use it) to bulid for .sln. I have read the article http://www.miscdebris.net/plplot_wiki/index.phptitle=Configure_PLplot_for_the_Visual_Studio_IDE<http://www.miscdebris.net/plplot_wiki/index.php?title=Configure_PLplot_for_the_Visual_Studio_IDE> I follow the way,but when i use: cmake "C:/USERS/BIN/DESKTOP/plplot" -G "VisualStudio 10 2010" -DPL_DOUBLE=ON -DLIB_TAG="sud" -DBUILD_TEST=ON -DCMAKE_INSTALL_PREFIX="C:\USERS\BIN\DESKTOP\plplotinstall" DCMAKE_CONFIGURATION_TYPES="Debug" -DBUILD_SHARED_LIBS=OFF -DSTATIC_RUNTIME=ON cmake show error : CMake Error: Could not create named generator Visual Studio 10 2010 The I google,people say I can ignore -G "Visual Studio 10 2010",The cmake will correctly detect the local(my computer) compiler;so I do that : cmake "C:/USERS/BIN/DESKTOP/plplot" -DPL_DOUBLE=ON -DLIB_TAG="sud" -DBUILD_TEST=ON -DCMAKE_INSTALL_PREFIX="C:\USERS\BIN\DESKTOP\plplotinstall" DCMAKE_CONFIGURATION_TYPES="Debug"-DBUILD_SHARED_LIBS=OFF -DSTATIC_RUNTIME=ON The cmake run ,about 1 minutes,cmake run over,The last info is: -- Configuring incomplete, errors occurred! I know i fail. so I want to ask for help, I use cmake 2.8.11.2,and plplot 5.9.10 in SVN; Fly DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. |
From: hubin <fly...@ou...> - 2013-10-17 08:47:39
|
hello,I will show all my step :First,I click Start memu->MVS2010->VS tools->Visual Studio Command Prompt(2010)->RUN as Administrator,Then show :D:\Software\Vs2010\VC>(I install VS2010 in D:\Software\Vs2010)Because the release directory is in D:\plplot_staticbuild_release,Then i edit cd D:\plplot_staticbuild_releaseThen show:D:\plplot_staticbuild_release> ,I edit set CXXFLAGS=/DUNICODE /D_UNICODEset CFLAGS=/DUNICODE /D_UNICODEThen I edit cmake "C:/USERS/BIN/DESKTOP/plplot" -G "VisualStudio 10 2010" -DPL_DOUBLE=ON -DLIB_TAG="sud" -DBUILD_TEST=ON -DCMAKE_INSTALL_PREFIX="C:\USERS\BIN\DESKTOP\plplotinstall" -DCMAKE_CONFIGURATION_TYPES="Debug"-DBUILD_SHARED_LIBS=OFF -DSTATIC_RUNTIME=ON Then camke errorCMake Error: Could not create named generator Visual Studio 10 2010I ingore -G "Visual Studio 10 2010",it's to say ,Then I edit cmake "C:/USERS/BIN/DESKTOP/plplot" -DPL_DOUBLE=ON -DLIB_TAG="sud" -DBUILD_TEST=ONDCMAKE_INSTALL_PREFIX="C:\USERS\BIN\DESKTOP\plplotinstall"DCMAKE_CONFIGURATION_TYPES="Debug"-DBUILD_SHARED_LIBS=OFF -DSTATIC_RUNTIME=ONThe cmake run ,it run about 1 minutes the last info is -- Configuring incomplete, errors occurred!Do you read the article http://www.miscdebris.net/plplot_wiki/index.phptitle=Configure_PLplot_for_the_Visual_Studio_IDEThe article show how to build in Visual_Studio_IDE with cmake ,all my step follow the way he show us ,but i failso if you follow the way he tell us ,can you build correctly ? The website is plplot wiki ,so I think if i follow the way he tell us ,I can build correctly,so what cause the error ? |
From: Arjen M. <Arj...@de...> - 2013-10-17 09:14:42
|
Hi Hubin, you seem to be using the same wrong CMake generator. Use "Visual Studio 10" instead. Regards, Arjen From: hubin [mailto:fly...@ou...] Sent: Thursday, October 17, 2013 10:48 AM To: Arjen Markus; plp...@li... Subject: RE: [Plplot-general] cmake bulid for .sln error hello,I will show all my step : First,I click Start memu->MVS2010->VS tools->Visual Studio Command Prompt(2010)->RUN as Administrator,Then show : D:\Software\Vs2010\VC>(I install VS2010 in D:\Software\Vs2010) Because the release directory is in D:\plplot_staticbuild_release,Then i edit cd D:\plplot_staticbuild_release Then show: D:\plplot_staticbuild_release> ,I edit set CXXFLAGS=/DUNICODE /D_UNICODE set CFLAGS=/DUNICODE /D_UNICODE Then I edit cmake "C:/USERS/BIN/DESKTOP/plplot" -G "Visual Studio 10 2010" -DPL_DOUBLE=ON -DLIB_TAG="sud" -DBUILD_TEST=ON -DCMAKE_INSTALL_P REFIX="C:\USERS\BIN\DESKTOP\plplotinstall" -DCMAKE_CONFIGURATION_TYPES="Debug" -DBUILD_SHARED_LIBS=OFF -DSTATIC_RUNTIME=ON Then camke error CMake Error: Could not create named generator Visual Studio 10 2010 I ingore -G "Visual Studio 10 2010",it's to say ,Then I edit cmake "C:/USERS/BIN/DESKTOP/plplot" -DPL_DOUBLE=ON -DLIB_TAG="sud" -DBUILD_TEST=ONDCMAKE_INSTALL_PREFIX="C:\USERS\BIN\DESKTOP\plplotinstall" DCMAKE_CONFIGURATION_TYPES="Debug" -DBUILD_SHARED_LIBS=OFF -DSTATIC_RUNTIME=ON The cmake run ,it run about 1 minutes the last info is -- Configuring incomplete, errors occurred! Do you read the article http://www.miscdebris.net/plplot_wiki/index.phptitle=Configure_PLplot_for_the_Visual_Studio_IDE The article show how to build in Visual_Studio_IDE<http://www.miscdebris.net/plplot_wiki/index.phptitle=Configure_PLplot_for_the_Visual_Studio_IDE> with cmake ,all my step follow the way he show us ,but i fail so if you follow the way he tell us ,can you build correctly ? The website is plplot wiki ,so I think if i follow the way he tell us ,I can build correctly,so what cause the error ? DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. |
From: hubin <fly...@ou...> - 2013-10-17 10:56:33
|
oh, thank you ,I should use "Visual Studio 10" rather than " Visual Studio 10 2010";but when i use "Visual Studio 10" ,so I use cmake "C:/USERS/BIN/DESKTOP/plplot" -G "VisualStudio 10"-DPL_DOUBLE=ON -DLIB_TAG="sud" -DBUILD_TEST=ONDCMAKE_INSTALL_PREFIX="C:\USERS\BIN\DESKTOP\plplotinstall"DCMAKE_CONFIGURATION_TYPES="Debug"-DBUILD_SHARED_LIBS=OFF -DSTATIC_RUNTIME=ON 1 minutes later , it still show-- Configuring incomplete, errors occurred!I ignore the error,and i continue edit cmake "C:/USERS/BIN/DESKTOP/plplot" -G "VisualStudio 10"-DPL_DOUBLE=ON -DLIB_TAG="sud" -DBUILD_TEST=ONDCMAKE_INSTALL_PREFIX="C:\USERS\BIN\DESKTOP\plplotinstall"DCMAKE_CONFIGURATION_TYPES="Debug"-DBUILD_SHARED_LIBS=OFF -DSTATIC_RUNTIME=ONThen it show :-- Generating done-- Build files have been written to: D:/plplot_staticbuild_releaseI know I success,but i edit the command line twice,BTW ,I think we should update our wiki website http://www.miscdebris.net/plplot_wiki/index.php?title=Configure_PLplot_for_the_Visual_Studio_IDE the sample command line "D:/SourceCode/Libraries/plplot trunk" -G "Visual Studio 9 2008" -DPL_DOUBLE=ON -DLIB_TAG="sud" -DBUILD_TEST=ON -DCMAKE_INSTALL_PREFIX="D:\SourceCode\Libraries\plplotinstall" -DCMAKE_CONFIGURATION_TYPES="Debug" -DBUILD_SHARED_LIBS=OFF -DSTATIC_RUNTIME=ONshould fix by "D:/SourceCode/Libraries/plplot trunk" -G "Visual Studio 9 " -DPL_DOUBLE=ON -DLIB_TAG="sud" -DBUILD_TEST=ON -DCMAKE_INSTALL_PREFIX="D:\SourceCode\Libraries\plplotinstall" -DCMAKE_CONFIGURATION_TYPES="Debug" -DBUILD_SHARED_LIBS=OFF -DSTATIC_RUNTIME=ON |
From: Arjen M. <Arj...@de...> - 2013-10-17 11:19:06
|
Hi Hubin, I think the generator "Visual Studio 10 2010" has been changed in recent versions of CMake to "Visual Studio 10". (I found the generator "Visual Studio 9 2008" in one of my batch files, so at some point that must have been valid.) Anyway we will change the example in the Wiki. Thanks for reporting that. On the other hand, your report about your success surprises me a bit: the two command-lines look identical. It is rather strange that you should run CMake twice in succession. I will have a look at this myself later. Regards, Arjen From: hubin [mailto:fly...@ou...] Sent: Thursday, October 17, 2013 12:57 PM To: Arjen Markus; plp...@li... Subject: RE: [Plplot-general] cmake bulid for .sln error oh, thank you ,I should use "Visual Studio 10" rather than " Visual Studio 10 2010"; but when i use "Visual Studio 10" , so I use cmake "C:/USERS/BIN/DESKTOP/plplot" -G "Visual Studio 10"-DPL_DOUBLE=ON -DLIB_TAG="sud" -DBUILD_TEST=ONDCMAKE_INSTALL_PREFIX="C:\USERS\BIN\DESKTOP\plplotinstall" DCMAKE_CONFIGURATION_TYPES="Debug" -DBUILD_SHARED_LIBS=OFF -DSTATIC_RUNTIME=ON 1 minutes later , it still show -- Configuring incomplete, errors occurred! I ignore the error,and i continue edit cmake "C:/USERS/BIN/DESKTOP/plplot" -G "Visual Studio 10"-DPL_DOUBLE=ON -DLIB_TAG="sud" -DBUILD_TEST=ONDCMAKE_INSTALL_PREFIX="C:\USERS\BIN\DESKTOP\plplotinstall" DCMAKE_CONFIGURATION_TYPES="Debug" -DBUILD_SHARED_LIBS=OFF -DSTATIC_RUNTIME=ON Then it show : -- Generating done -- Build files have been written to: D:/plplot_staticbuild_release I know I success,but i edit the command line twice,BTW ,I think we should update our wiki website http://www.miscdebris.net/plplot_wiki/index.php?title=Configure_PLplot_for_the_Visual_Studio_IDE the sample command line "D:/SourceCode/Libraries/plplot trunk" -G "Visual Studio 9 2008" -DPL_DOUBLE=ON -DLIB_TAG="sud" -DBUILD_TEST=ON -DCMAKE_INSTALL_PREFIX="D:\SourceCode\Libraries\plplotinstall" -DCMAKE_CONFIGURATION_TYPES="Debug" -DBUILD_SHARED_LIBS=OFF -DSTATIC_RUNTIME=ON should fix by "D:/SourceCode/Libraries/plplot trunk" -G "Visual Studio 9 " -DPL_DOUBLE=ON -DLIB_TAG="sud" -DBUILD_TEST=ON -DCMAKE_INSTALL_PREFIX="D:\SourceCode\Libraries\plplotinstall" -DCMAKE_CONFIGURATION_TYPES="Debug" -DBUILD_SHARED_LIBS=OFF -DSTATIC_RUNTIME=ON DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. |
From: Arjen M. <Arj...@de...> - 2013-10-17 11:34:39
|
Hi Hubin, my mistake: "Visual Studio 9 2008" is still a valid generator name, but the naming scheme has changed with the newer version of VS: "Visual Studio 10", "Visual Studio 10 IA64", ... indicate the processor architecture as the last component in the name. So the Wiki page does not need adjusting. Regards, Arjen From: Arjen Markus [mailto:Arj...@de...] Sent: Thursday, October 17, 2013 1:19 PM To: hubin; plp...@li... Subject: Re: [Plplot-general] cmake bulid for .sln error Hi Hubin, I think the generator "Visual Studio 10 2010" has been changed in recent versions of CMake to "Visual Studio 10". (I found the generator "Visual Studio 9 2008" in one of my batch files, so at some point that must have been valid.) DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. |
From: hubin <fly...@ou...> - 2013-10-17 12:29:28
|
hello, thank you ,I suggest that we should add notes for VS2010 or later ,you know,when people first time use cmake,and they install VS2010 or later,They will just change VS 9 2008 to VS 10 2010 like me,Then they find cmakeshow error,people will feel confused,so we should add notes"if you use VS2010 or later,you should use "-G VS 10 "rather than "-G VS 10 2010" |
From: hubin <fly...@ou...> - 2013-10-17 14:36:10
|
When you check all works fine with VS2010;please add into wiki;I will complete the compilation just like you do in your tutorial in wiki;it's time for sleep;See you tomorrow;Regards; Fly From: Arj...@de... To: fly...@ou... Subject: RE: [Plplot-general] cmake bulid for .sln error Date: Thu, 17 Oct 2013 12:35:43 +0000 Hi Hubin, (off list) Yes, I agree but first I want to check that all works fine with VS 2010. On the CMake list I have seen some questions about the newer versions. egards, Arjen From: hubin [mailto:fly...@ou...] Sent: Thursday, October 17, 2013 2:29 PM To: Arjen Markus; plp...@li... Subject: RE: [Plplot-general] cmake bulid for .sln error hello, thank you ,I suggest that we should add notes for VS2010 or later ,you know,when people first time use cmake,and they install VS2010 or later,They will just change VS 9 2008 to VS 10 2010 like me,Then they find cmake show error,people will feel confused,so we should add notes "if you use VS2010 or later,you should use "-G VS 10 "rather than "-G VS 10 2010" DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. |
From: Alan W. I. <ir...@be...> - 2013-10-17 16:24:08
|
On 2013-10-17 06:00-0000 hubin wrote: > Hello,I'm a newcomers for plplot,I use vs2010,my PC is win7 x64,I want use the cmake(It's my first time use it) to bulid for .sln. I have read the article http://www.miscdebris.net/plplot_wiki/index.phptitle=Configure_PLplot_for_the_Visual_Studio_IDEI follow the way,but when i use: > cmake "C:/USERS/BIN/DESKTOP/plplot" -G "VisualStudio 10 2010" -DPL_DOUBLE=ON -DLIB_TAG="sud" -DBUILD_TEST=ON -DCMAKE_INSTALL_PREFIX="C:\USERS\BIN\DESKTOP\plplotinstall"DCMAKE_CONFIGURATION_TYPES="Debug"-DBUILD_SHARED_LIBS=OFF -DSTATIC_RUNTIME=ON > cmake show error :CMake Error: Could not create named generator Visual Studio 10 2010 > The I google,people say I can ignore -G "Visual Studio 10 2010",The cmake will correctly detect the local(my > computer) compiler;so I do that :cmake "C:/USERS/BIN/DESKTOP/plplot" -DPL_DOUBLE=ON -DLIB_TAG="sud" -DBUILD_TEST=ON -DCMAKE_INSTALL_PREFIX="C:\USERS\BIN\DESKTOP\plplotinstall" DCMAKE_CONFIGURATION_TYPES="Debug"-DBUILD_SHARED_LIBS=OFF -DSTATIC_RUNTIME=ON > The cmake run ,about 1 minutes,cmake run over,The last info is:-- Configuring incomplete, errors occurred! > I know i fail.so I want to ask for help, I use cmake 2.8.11.2,and plplot 5.9.10 in SVN; > Fly You have not specified the correct generator string (which has to be exact). To see the possibilities look at the bottom of what you get from the command cmake --help I notice for 2.8.11.2, that list of generators includes "Visual Studio 10" (not "Visual Studio 10 2010"). I have no experience with that generator myself, but it appears from the way you describe your system as "vs2010", it is that generator that you want. Good luck, and thanks for your interest in PLplot. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |
From: hubin <fly...@ou...> - 2013-10-18 04:37:18
|
Hello,Alan W.Irwin,I have noticed that I should use "Visual Studio 10" instead of " Visual Studio 10 2010";Arjen Markus help me solve the problem;But thank you anyway;Arjen Markus say that he find some question about the plplot 5.9.10(build for .sln);and I wait for his result;oh, I like plplot,The beautiful mathematics graph attract me;and I can't wait to show it in my windows PC;Regards |
From: Arjen M. <Arj...@de...> - 2013-10-18 06:32:57
|
Hi Fly, well, good to hear that. I have not had a chance to check this myself yet, but it does sound promising. I will adapt the Wiki page today. Regards, Arjen From: hubin [mailto:fly...@ou...] Sent: Thursday, October 17, 2013 4:36 PM To: Arjen Markus; plp...@li... Subject: RE: [Plplot-general] cmake bulid for .sln error When you check all works fine with VS2010;please add into wiki; I will complete the compilation just like you do in your tutorial in wiki; it's time for sleep;See you tomorrow; Regards; Fly ________________________________ From: Arj...@de...<mailto:Arj...@de...> To: fly...@ou...<mailto:fly...@ou...> Subject: RE: [Plplot-general] cmake bulid for .sln error Date: Thu, 17 Oct 2013 12:35:43 +0000 Hi Hubin, (off list) Yes, I agree - but first I want to check that all works fine with VS 2010. On the CMake list I have seen some questions about the newer versions. egards, Arjen From: hubin [mailto:fly...@ou...]<mailto:[mailto:fly...@ou...]> Sent: Thursday, October 17, 2013 2:29 PM To: Arjen Markus; plp...@li...<mailto:plp...@li...> Subject: RE: [Plplot-general] cmake bulid for .sln error hello, thank you ,I suggest that we should add notes for VS2010 or later ,you know,when people first time use cmake,and they install VS2010 or later,They will just change VS 9 2008 to VS 10 2010 like me,Then they find cmake show error,people will feel confused,so we should add notes "if you use VS2010 or later,you should use "-G VS 10 "rather than "-G VS 10 2010" DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. |
From: hubin <fly...@ou...> - 2013-10-18 14:00:35
|
you know that I have got the .sln(vs2010),when i open the .sln ,click the INSTALL project then select build ,oh my god,I see 58 errors,i can't get the many useful info from the errors,the most important errors i think is" can't open file ..\..\dll\Debug-DBUILD_SHARED_LIBS=OFF\plplotsudd.lib";you know i edit the command line twice,Then I got the .sln;you say you are also shocked by the fact,so I think I got the wrong .sln;Any idea?Regards |
From: Arjen M. <Arj...@de...> - 2013-10-18 14:03:39
|
Hi Fly, it looks to me you forgot a space in the command line. Now the configuration that was created is "Debug-DBUILD_SHARED_LIBS=OFF'. And that would lead to a subdirectory of that name. Add a space in the command-line just before -DBUILD_SHARED_LIBS=OFF and try again. Regards, Arjen From: hubin [mailto:fly...@ou...] Sent: Friday, October 18, 2013 4:00 PM To: Arjen Markus; plp...@li... Subject: RE: [Plplot-general] cmake bulid for .sln error you know that I have got the .sln(vs2010),when i open the .sln ,click the INSTALL project then select build ,oh my god,I see 58 errors,i can't get the many useful info from the errors,the most important errors i think is" can't open file ..\..\dll\Debug-DBUILD_SHARED_LIBS=OFF\plplotsudd.lib";you know i edit the command line twice,Then I got the .sln;you say you are also shocked by the fact,so I think I got the wrong .sln;Any idea? Regards DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. |
From: hubin <fly...@ou...> - 2013-10-18 15:10:52
|
oh, I really found that i for a space before"-DBUILD_SHARED_LIBS=OFF";after i add a space before it , i edit command line twice ,then i see:-- Configuring done-- Generating done-- Build files have been written to: D:/plplot_staticbuild_releasejust you show in wiki,i think i got the right .slnI build in vs2010 againI Find the error "can't open file..\..\src\release\plplotsudd.lib "again. |
From: Arjen M. <Arj...@de...> - 2013-10-18 15:16:29
|
Hi Fly, I will have to have a closer look at this. Hopefully this weekend. Regards, Arjen From: hubin [mailto:fly...@ou...] Sent: Friday, October 18, 2013 5:11 PM To: Arjen Markus; plp...@li... Subject: RE: [Plplot-general] cmake bulid for .sln error oh, I really found that i for a space before"-DBUILD_SHARED_LIBS=OFF";after i add a space before it , i edit command line twice ,then i see: -- Configuring done -- Generating done -- Build files have been written to: D:/plplot_staticbuild_release just you show in wiki,i think i got the right .sln I build in vs2010 again I Find the error "can't open file..\..\src\release\plplotsudd.lib "again. DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. |
From: Arjen M. <Arj...@de...> - 2013-10-19 19:25:20
|
Hi Fly, could you try again WITHOUT the option -DLIB_TAG=sud I have tested VS 2010 and while some strange things do occur, they did not interfer with the build process, (One thing: I did set the number of threads in the build to 1 - Tools/Options/Projects and Solution/Build and Run - having bad experiences with parallel builds before) An alternative is to use the “Nmake Makefile” generator together with nmake. Regards, Arjen From: hubin [mailto:fly...@ou...] Sent: Friday, October 18, 2013 5:11 PM To: Arjen Markus; plp...@li... Subject: RE: [Plplot-general] cmake bulid for .sln error oh, I really found that i for a space before"-DBUILD_SHARED_LIBS=OFF";after i add a space before it , i edit command line twice ,then i see: -- Configuring done -- Generating done -- Build files have been written to: D:/plplot_staticbuild_release just you show in wiki,i think i got the right .sln I build in vs2010 again I Find the error "can't open file..\..\src\release\plplotsudd.lib "again. DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. |
From: hubin <fly...@ou...> - 2013-10-20 10:17:32
|
Thank you;thank-you;I see the math graph;oh my god,I do see it !I use NMake, The IDE is too hard for me,Nmake work fine,now i want to share my experience with you ;i got some error with nmake ,and I try solve some,I'm a Chinese college student, When i use Nmake just like you show in wiki;i got error with"..... examples\c\x18c.c line 82(I use notepad++ open it ),the fourth parameter "." is error,I think because I come from china ,so the character"." show error in my PC when i open it with notepad++,the character"." turn into "口",I edit it to ".", so it's build fine,work fine; the second error is x24c.c,it's a word "peace" use different language; in my PC,I can't see some language "peace ";they just show"口" ;because i use windows;so i change the code char * peace[]->wchar_t *peace[];and i use API WideCharToMultiByte change UNICODE to Utf-8,So it build fine ,but work error, It can't show non-English character; the third error is "x33c.c",you define some "special_symbols",It's wrong when nmake build ; I got a warning and a error with each of the three ".c" files in nmake ,the warning is c4819 and the error is c2001I find if I open ".c" files and save them with "Unicode",Then all three files build fine.but just get a warning c4566;Then i find ".cc" files is same as the ".c",Now ,How do you think about it?and I want to know why don't use Unicode to replace of ASCII,Unicode have big bugs? |
From: Alan W. I. <ir...@be...> - 2013-10-20 18:14:02
|
On 2013-10-20 10:17-0000 hubin wrote: > Thank you;thank-you;I see the math graph;oh my god,I do see it !I use NMake, The IDE is too hard for me,Nmake work fine,now i want to share my experience with you ;i got some error with nmake ,and I try solve some,I'm a Chinese college student, When i use Nmake just like you show in wiki;i got error with"..... examples\c\x18c.c line 82(I use notepad++ open it ),the fourth parameter "." is error,I think because I come from china ,so the character"." show error in my PC when i open it with notepad++,the character"." turn into "口",I edit it to ".", so it's build fine,work fine; > the second error is x24c.c,it's a word "peace" use different language; in my PC,I can't see some language "peace ";they just show"口" ;because i use windows;so i change the code char * peace[]->wchar_t *peace[];and i use API WideCharToMultiByte change UNICODE to Utf-8,So it build fine ,but work error, It can't show non-English character; > the third error is "x33c.c",you define some "special_symbols",It's wrong when nmake build ; > I got a warning and a error with each of the three ".c" files in nmake ,the warning is c4819 and the error is c2001I find if I open ".c" files and save them with "Unicode",Then all three files build fine.but just get a warning c4566;Then i find ".cc" files is same as the ".c",Now ,How do you think about it?and I want to know why don't use Unicode to replace of ASCII,Unicode have big bugs? Hi Fly: I am glad to hear you have been making good progress with Arjen's help. But I thought I would jump in here with an answer to your unicode questions. PLplot's design is that _all_ strings in our API are interpreted as the UTF-8 encoding of unicode when we translate those results into our internal representation of unicode. We chose the UTF-8 encoding over all the other encoding alternatives for the strings in our API because UTF-8 has a huge advantage over the others; ordinary ascii characters are a subset. So such strings can contain just single-byte ascii characters or a mixture of those and multi-byte UTF-8 characters to give complete access to all of unicode. So adjust your unicode encoding to UTF-8 for all strings you use for PLplot, and all our code should just build without issues. Also, you should note that most of our standard examples just use the ascii subset of UTF-8. And example 23 demonstrates you can work exclusively in ascii if you are willing to input a lot of numerical escape codes. But ultimately that is a rather clumsy approach to get access to unicode so some of our examples (18, 24, 26, and 33) are written to take advantage of the multi-byte subset of UTF-8. I notice it is those examples where you are having trouble. For them, you should not change anything other than to convince Windows that the encoding is UTF-8, and then all builds of all our libraries, devices, and examples should proceed smoothly with no changes in the code required. Once, everything has been built properly, then the further question is which of our device drivers can properly use our unicode technology. The answer is only our modern unicode-aware device drivers (svg, psttf, cairo, qt, and wxwidgets) can render the results correctly for examples 18, 23, 24, 26, and 33 with appropriate system font glyphs. (The wxwidgets device has some unicode limitations we are currently trying to overcome, but the rest are fine.) Note that all the unicode-aware devices other than svg requre certain external libraries be installed. (The psttf device driver requires the libLASi, Pango, and Cairo external libraries; the cairo device driver requires the Pango and Cairo external libraries; the qt device driver requires the Qt4 external libraries, and the wxwidgets device requires the external wxwidgets library.) Those libraries are readily available on Linux and Mac OS X, but can be an issue on Windows. One excellent option to get access to a lot of this unicode PLplot functionality on Windows is to use Cygwin since that distribution of software does contain the Pango, Cairo, and Qt4 external libraries required by our cairo and qt device drivers, which are our two best unicode-aware device drivers with many different devices to use. Arjen has recently tested that platform in detail, and largely gotten good results with it. See his recent comments in our Wiki. However, if you prefer not to install Cygwin on Windows, and still want access to the unicode part of PLplot (i.e., be able to use the functionality that is presented for examples 18, 23, 24, 26, and 33) then one good choice is the svg device which does not depend on any external library. However, for that case you will need good svg viewing software (e.g., the firefox browser) to view the svg results. Another possibility is to build libLASi, Pango, Cairo, Qt4, and/or the external wxwidgets library yourself. Normally, that is difficult, but I am working on a project (see cmake/build_projects) whose long-term goal is to make such builds convenient on all platforms. The build_projects project is not ready at the moment but watch this space for future announcements concerning it. A final Windows possibility, of course, is simply to stick with the ascii subset of UTF-8 and ignore the additional PLplot string capabilities that are demonstrated by examples 18, 23, 24, 26, and 33. But in my opinion that is a defeatist attitude, and I would advise instead to (1) look carefully at the svg device results for those examples with the firefox browser or some other good svg viewer to see what you are missing, (2) install Cygwin to take advantage of the many unicode-aware cairo and qt devices, or (3) in the long-term wait for a convenient building solution from build_projects for all the external libraries that are required by our unicode-aware devices. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |
From: hubin <fly...@ou...> - 2013-10-20 16:53:33
|
Hello,Arjen,When i want use the plplot in my own project,I get plInitDispatchTable: Could not open drivers directory, aborting operation in my own Win32 console App;my own app is simple;i just copy x00c.c into my test"test.cpp";and i copy all the "C:\build-plplot\dll" directory files into my own app directory,and i copy "drive.h","plcdemos.h","plconfig.h","pldevs.h","pldll.h","plhershey-unicode.h","plplot.h" into my app directory.Then i add all "lib" files in my VS project; |
From: Arjen M. <Arj...@de...> - 2013-10-21 10:48:22
|
Hi Hubin, this is due to your program not being located in the build tree. PLplot uses a fixed directory structure to locate the drivers, but you can influence that via the environment variable PLPLOT_DRV_DIR. Set it to the directory containing the driver info files (*.info). Regards, Arjen From: hubin [mailto:fly...@ou...] Sent: Sunday, October 20, 2013 6:53 PM To: Arjen Markus; plp...@li... Subject: plInitDispatchTable error in my own project Hello,Arjen,When i want use the plplot in my own project,I get plInitDispatchTable: Could not open drivers directory, aborting operation in my own Win32 console App; my own app is simple;i just copy x00c.c into my test "test.cpp";and i copy all the "C:\build-plplot\dll" directory files into my own app directory,and i copy "drive.h","plcdemos.h","plconfig.h","pldevs.h","pldll.h","plhershey-unicode.h","plplot.h" into my app directory.Then i add all "lib" files in my VS project; DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. |
From: hubin <fly...@ou...> - 2013-10-23 09:08:02
|
i'm sorry that i reply the message too late ;I have solved the problem,Now i'm learning the API and the example;when i finish my project.I want to write a simple tutorials for people those who first use plplotin windows;if i do that ;may i ask your help if i do need ?thank you againregards; |
From: Arjen M. <Arj...@de...> - 2013-10-23 09:16:10
|
Hi Hubin, congratulations, that is good to hear! Of course we are all quite prepared to help out and the project could definitely use a simple tutorial :). Us developers focus so much on the build aspects, that we often do not pay attention to the aspects of simply learning to use it. The Wiki may be a good place to put it once it is in a decent shape. Regards, Arjen From: hubin [mailto:fly...@ou...] Sent: Wednesday, October 23, 2013 11:08 AM To: Arjen Markus; plp...@li... Subject: RE: plInitDispatchTable error in my own project i'm sorry that i reply the message too late ;I have solved the problem,Now i'm learning the API and the example;when i finish my project.I want to write a simple tutorials for people those who first use plplot in windows;if i do that ;may i ask your help if i do need ?thank you again regards; DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. |
From: hubin <fly...@ou...> - 2013-11-03 07:40:32
|
HI Arjen, I have learn plplot almost a week,I find some problem ,my APP is WIN32 GUI APP,plplot seem to unfriendly with GUI app.The first problem is the func "plio_fgets" in \src\plstdio.c;the func "plio_fgets" use "stdin";"stdin" can work fine in a CUI app.But in a GUI APP,how can i send my string buffer to a console?because the "plio_fgets" just want to get user's option(1,2,3 etc) and set the "response" parameter ,so i want to modify the code and don'tcall "plio_fgets",Then i built plplot again ,i get a new "plplotd.dll"and "plplotd.lib",but i find the "plplotd.dll" stillcontain the "plio_fgets",i guess may be the cmake ignore my modification; so i have to use "hook",I spent threeday to make "hook" work fine ,then i see the math graph again;but when i click the "open"button again,oh my god,it close my app ;so i decide debug it again ,and i find the error,it's the func "plD_init_wingcc"in "wingcc.c";when CreateWindowEx call twice,second time the CreateWindowEx will return null;so CreateWindowEx fails.i try to solve it ,but after 2 days .i still can't have any idea about it .Can you test x02c.c in you GUI app,you use a button,and click it twice;Thank you |
From: Arjen M. <Arj...@de...> - 2013-11-05 11:41:07
|
Hi Hubin, I have not had time yet to look into your question. I will try to do so tomorrow. Regards, Arjen From: hubin [mailto:fly...@ou...] Sent: Sunday, November 03, 2013 8:40 AM To: Arjen Markus; plp...@li... Subject: RE: some error in GUI app HI Arjen, I have learn plplot almost a week,I find some problem ,my APP is WIN32 GUI APP,plplot seem to unfriendly with GUI app.The first problem is the func "plio_fgets" in \src\plstdio.c;the func "plio_fgets" use "stdin";"stdin" can work fine in a CUI app.But in a GUI APP,how can i send my string buffer to a console?because the "plio_fgets" just want to get user's option(1,2,3 etc) and set the "response" parameter ,so i want to modify the code and don't call "plio_fgets",Then i built plplot again ,i get a new "plplotd.dll"and "plplotd.lib",but i find the "plplotd.dll" still contain the "plio_fgets",i guess may be the cmake ignore my modification; so i have to use "hook",I spent three day to make "hook" work fine ,then i see the math graph again;but when i click the "open"button again,oh my god,it close my app ;so i decide debug it again ,and i find the error,it's the func "plD_init_wingcc"in "wingcc.c"; when CreateWindowEx call twice,second time the CreateWindowEx will return null;so CreateWindowEx fails.i try to solve it ,but after 2 days .i still can't have any idea about it .Can you test x02c.c in you GUI app,you use a button,and click it twice;Thank you DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. |