FLTK logo

Re: [fltk/fltk] Opengl on windows 10 with shared library (#136)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Opengl on windows 10 with shared library (#136) Albrecht Schlosser Sep 15, 2020  
 

Thanks for the very good report including the demo program, and sorry for this known issue.

The shared library build of FLTK 1.3.5 with CMake using MSVC is currently broken, i.e. shared libs don't import/export the correct symbols. The only shared library that works is fltk_SHARED alone; you can't link with fltk_images or fltk_gl. It is correct that the non-shared build works as you also noticed. The bundled MSVC project should also build correctly (only one shared library), but this would lack the CMake import files.

This issue is (should be) fixed in FLTK 1.4, but it's not yet clear if this can or will be backported to 1.3 and whether there will be a release 1.3.6 in the future.

Please pull the master branch from Git, build the shared libs and confirm that it works for you. This would be very helpful for our development. It's all API compatible.

Note that some of the option names may be different in 1.4 and the library file names are different, but you should be able to build and run your program just fine. The CMake library names fltk_SHARED fltk_gl_SHARED are still the same though so your program should hopefully build just fine.

Any feedback would be appreciated. TIA.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.