I have an update.  I wiped everything and started over, thinking that I may have moved items to new directories between the widgets and plplot installs.  Now I am getting a fatal error in the plplot build when I run |mingw32-make the first time, before the install.|

|I've attached files containing the exact commands executed and their source (websites), and a file containing the error.|

|Thank you for your help.|

|David|

|
|

On 10/11/2019 4:04 PM, David Bergman wrote:
Hi all,

I have been trying to work past some issues with plplot + wxwxidgets + visual studio on Windows 8 for longer than it's worth.  I seem to have everything built w/o issue but examples crash on closing and I cannot figure out why.

I am trying to do a complete install now on a windows 10 machine and I'm using Code Blocks and MinGW compiler.

wxWidgets installed without issue and now I'm trying to build the plplot with the wxwidgets driver.

I've followed the instructions on https://sourceforge.net/p/plplot/wiki/Configure_PLplot_for_MinGW_CLI/

The install "seemed" to work but it claims that there is no wxwidgets driver present, it missed it.  The dir to the correct lib is in the system path.  I may have misinterpreted the instructions but I cannot figure out the detail.  Please help.

My plplot and widgets folders are in C:\temp\src\<folder> and the commands issued were.

starting in the plplot dir:

mkdir buildmingw

set WXWIN=C:\temp\src\wxWidgets-3.1.2\

cd buildmingw

cmake .. -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX="C:\temp\src\plplot-5.15.0\buildmingw" -DBUILD_TEST=ON

No fatal errors occurred, it just didn't pick up the widgets.

Thanks in advance for your help.

David



--
David Bergman
David R Bergman Music LLC
"Have Guitar Will Travel"
Morristown NJ
551-655-4720
stuntguitar1...@gmail.com
www.davidrobertbergmanmusic.com



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
wxWidgets build/install (wiki.codeblocks.org/index.php?title=WxWindowsQuickRef)

mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 
CXXFLAGS=-fno-keep-inline-dllexport

plplot build/install 
(htps://sourceforge.net/p/pplplot/wiki/Configure_PLplot_for_MinGW_CLI)

cmake -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=install 
-DwxWidgets_LIB_DIR=%WXWIN%\lib\gcc_lib -DwxWidgets_CONFIGURATION=mswu 
-DwxWidgets_MONOLITHIC=ON -DwxWidgets_USE_UNICODE=ON -DBUILD_TEST=ON ..
[ 36%] Building C object examples/c/CMakeFiles/x01c.dir/x01c.c.obj
C:\temp\src\plplot-5.15.0\examples\c\x01c.c: In function 'plot1':
C:\temp\src\plplot-5.15.0\examples\c\x01c.c:308:25: error: storage size of 'ts' 
isn't known
         struct timespec ts;
                         ^
C:\temp\src\plplot-5.15.0\examples\c\x01c.c:317:17: warning: implicit 
declaration of function 'nanosleep' [-Wimplicit-function-declaration]
                 nanosleep( &ts, NULL );         // wait a little
                 ^
examples\c\CMakeFiles\x01c.dir\build.make:62: recipe for target 
'examples/c/CMakeFiles/x01c.dir/x01c.c.obj' failed
mingw32-make[2]: *** [examples/c/CMakeFiles/x01c.dir/x01c.c.obj] Error 1
CMakeFiles\Makefile2:2974: recipe for target 
'examples/c/CMakeFiles/x01c.dir/all' failed
mingw32-make[1]: *** [examples/c/CMakeFiles/x01c.dir/all] Error 2
Makefile:161: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

C:\temp\src\plplot-5.15.0\buildmingw>
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to