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

fltk part build error ... #74

Open
Randrianasulu opened this issue May 28, 2023 · 1 comment
Open

fltk part build error ... #74

Randrianasulu opened this issue May 28, 2023 · 1 comment

Comments

@Randrianasulu
Copy link

this time I started as instructed, in 'build' directory and not in src root.

Build nearly finishes, but ..

[ 83%] Building CXX object src/tools/CMakeFiles/oyranos-xforms-fltk.dir/oforms/oyranos_xforms_fltk.cxx.o
In file included from /home/guest/botva/src/src/oyranos/src/include_private/Oy_Fl_Double_Window.h:5,
                 from /home/guest/botva/src/src/oyranos/src/tools/oforms/oyranos_xforms_fltk.cxx:33:
/home/guest/botva/src/src/oyranos/src/include_private/Oy_Fl_Window_Base.h: In static member function 'static float Oy_Fl_Window_Base::getScaleFactor()':
/home/guest/botva/src/src/oyranos/src/include_private/Oy_Fl_Window_Base.h:93:7: error: 'Fl_Preferences' was not declared in this scope
   93 |       Fl_Preferences pref( Fl_Preferences::USER, *scale_factor_pref_org(), *scale_factor_pref_app() );
      |       ^~~~~~~~~~~~~~
/home/guest/botva/src/src/oyranos/src/include_private/Oy_Fl_Window_Base.h:94:22: error: expected ';' before 'app_pref'
   94 |       Fl_Preferences app_pref( pref, *scale_factor_pref_app() );
      |                      ^~~~~~~~
/home/guest/botva/src/src/oyranos/src/include_private/Oy_Fl_Window_Base.h:95:7: error: 'app_pref' was not declared in this scope
   95 |       app_pref.get(  "user_scale", scale_factor_(), 1.0f );
      |       ^~~~~~~~
/home/guest/botva/src/src/oyranos/src/include_private/Oy_Fl_Window_Base.h: In static member function 'static void Oy_Fl_Window_Base::setScaleFactor(float)':
/home/guest/botva/src/src/oyranos/src/include_private/Oy_Fl_Window_Base.h:103:7: error: 'Fl_Preferences' was not declared in this scope
  103 |       Fl_Preferences pref( Fl_Preferences::USER, *scale_factor_pref_org(), *scale_factor_pref_app() );
      |       ^~~~~~~~~~~~~~
/home/guest/botva/src/src/oyranos/src/include_private/Oy_Fl_Window_Base.h:104:22: error: expected ';' before 'app_pref'
  104 |       Fl_Preferences app_pref( pref, *scale_factor_pref_app() );
      |                      ^~~~~~~~
/home/guest/botva/src/src/oyranos/src/include_private/Oy_Fl_Window_Base.h:105:7: error: 'app_pref' was not declared in this scope
  105 |       app_pref.set(  "user_scale", scale_factor_() );
      |       ^~~~~~~~
make[2]: *** [src/tools/CMakeFiles/oyranos-xforms-fltk.dir/build.make:104: src/tools/CMakeFiles/oyranos-xforms-fltk.dir/oforms/oyranos_xforms_fltk.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:4782: src/tools/CMakeFiles/oyranos-xforms-fltk.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

fltk-config --version
1.1.9

@Randrianasulu
Copy link
Author

Updating to fltk-1.3.8 fixes this, but make be Cmake can check fltk version and disable this part if fltk too old ...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant