Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation KO with -DWIDGETS=of #1381

Closed
alaingdl opened this issue Oct 18, 2022 · 1 comment
Closed

compilation KO with -DWIDGETS=of #1381

alaingdl opened this issue Oct 18, 2022 · 1 comment
Labels
needs more information! Further information is requested

Comments

@alaingdl
Copy link
Contributor

alaingdl commented Oct 18, 2022

I cannot compile current Git version without Widgets
cmake .. -DWXWIDGETS=off -DQHULL=off

[ 21%] Built target xwin
/obs/alaingdl/GDL/gdl-1.0.1-git221018CMake/src/plplotdriver/deprecated_wxwidgets.cpp:27:10: fatal error: wx/wx.h: Aucun fichier ou dossier de ce type
 #include <wx/wx.h>
          ^~~~~~~~~
compilation terminated.
make[2]: *** [src/plplotdriver/CMakeFiles/wxwidgets.dir/build.make:63: src/plplotdriver/CMakeFiles/wxwidgets.dir/deprecated_wxwidgets.cpp.o] Error 1
make[2]: *** Attente des tâches non terminées....
/obs/alaingdl/GDL/gdl-1.0.1-git221018CMake/src/plplotdriver/deprecated_wxwidgets_dc.cpp:28:10: fatal error: wx/wx.h: Aucun fichier ou dossier de ce type
 #include <wx/wx.h>
          ^~~~~~~~~
compilation terminated.
/obs/alaingdl/GDL/gdl-1.0.1-git221018CMake/src/plplotdriver/deprecated_wxwidgets_app.cpp:25:10: fatal error: wx/wx.h: Aucun fichier ou dossier de ce type
 #include "wx/wx.h"
          ^~~~~~~~~
compilation terminated.
/obs/alaingdl/GDL/gdl-1.0.1-git221018CMake/src/plplotdriver/deprecated_wxwidgets_gc.cpp:27:10: fatal error: wx/wx.h: Aucun fichier ou dossier de ce type
 #include <wx/wx.h>
          ^~~~~~~~~
compilation terminated.
make[2]: *** [src/plplotdriver/CMakeFiles/wxwidgets.dir/build.make:89: src/plplotdriver/CMakeFiles/wxwidgets.dir/deprecated_wxwidgets_dc.cpp.o] Error 1
make[2]: *** [src/plplotdriver/CMakeFiles/wxwidgets.dir/build.make:76: src/plplotdriver/CMakeFiles/wxwidgets.dir/deprecated_wxwidgets_app.cpp.o] Error 1
make[2]: *** [src/plplotdriver/CMakeFiles/wxwidgets.dir/build.make:102: src/plplotdriver/CMakeFiles/wxwidgets.dir/deprecated_wxwidgets_gc.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:196: src/plplotdriver/CMakeFiles/wxwidgets.dir/all] Error 2
make[1]: *** Attente des tâches non terminées....
[ 21%] Building CXX object src/CMakeFiles/gdl.dir/gdl.cpp.o
/obs/alaingdl/GDL/gdl-1.0.1-git221018CMake/src/gdl.cpp: In function ‘int main(int, char**)’:
/obs/alaingdl/GDL/gdl-1.0.1-git221018CMake/src/gdl.cpp:255:18: error: ‘GDLGStream’ has not been declared
   bool driversOK=GDLGStream::checkPlplotDriver("wxwidgetsgdl");
                  ^~~~~~~~~~
/obs/alaingdl/GDL/gdl-1.0.1-git221018CMake/src/gdl.cpp:267:5: error: ‘plend’ was not declared in this scope
     plend(); //this is necessary to reset PLPLOT to a state that will read again the driver configuration at PLPLOT_DRV_DIR
     ^~~~~
/obs/alaingdl/GDL/gdl-1.0.1-git221018CMake/src/gdl.cpp:267:5: note: suggested alternative: ‘rl_end’
     plend(); //this is necessary to reset PLPLOT to a state that will read again the driver configuration at PLPLOT_DRV_DIR
     ^~~~~
     rl_end
@GillesDuvert
Copy link
Contributor

The problem with plend() and GDLGstream undefined has nothing to do (in principle) with wxWidgets being used or not. This is strange. Did you do a full build from scratch, i.e., not using any leftover of a previous cMake?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more information! Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants