Questions tagged [fltk]

FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and Mac OS X.

FLTK provides modern GUI functionality without the bloat and supports 3D graphics via OpenGL and its built-in GLUT emulation.

FLTK is designed to be small and modular enough to be statically linked, but works fine as a shared library. FLTK also includes an excellent UI builder called FLUID that can be used to create applications in minutes.

FLTK is provided under the terms of the GNU Library Public License, Version 2 with exceptions that allow for static linking, a fact that makes it attractive to anyone who wants to use it in proprietary applications.

NOTE:The platforms listed in the excerpt are not the only platforms FLTK works on, but you may see them as the only supported platforms (by the FLTK development team). FLTK is known to work on eComStation, QNX, AIX, IRIX, OpenVMS, and literally any platform with X Window System.

483 questions
-1
votes
1 answer

Need help refactoring class into separate header and cpp files

Could anyone break the MyWindow class out into separate MyWindow.h and MyWindow.cpp files from this excellent FLTK example? I have tried all afternoon. I am stuck on the (void*)this part in the Fl::add_timeout method. I am sure I have other things…
sadsquonk
  • 1
  • 3
-1
votes
1 answer

Getting my MacOS Catalina C++ coding environment set up with the FTLK library

I'm a complete beginner to programming, so I'm sorry if I get anything wrong in this question (please let me know if I do!). I'm reading Programming: Principles and Practice using C++ by Bjarne Stroustrup, and I've hit a roadblock at Ch12. After a…
Keeyan
  • 99
  • 1
  • 7
-1
votes
2 answers

How to make a point appear using fltk?

After creating a window and drawing some shapes in it, I realized I cant make a point and just appear it on the window. I've searched the manual but I cant make anything out of it. Im using the fltk 1.3.0. How can I do it ?
Antonis
  • 23
  • 3
-1
votes
1 answer

How to fix undefined reference to ... in c++

I am trying to compile mathgl with fltk on a linux debian. In the mathgl directory, I do the followin cmd to configure the compilation : cmake -Wno-dev -D enable-hdf5=on -D enable-jpeg=on -D enable-png=on -D enable-fltk=on -D enable-qt4=on and the…
-1
votes
1 answer

FLTK SIGSEGV Segmentation Fault when calling fl_line()

Calling fl_line() in my program immediately returns an SIGSEGV exception after drawing 1 line on the screen. I've checked vectors offset, nothing out of bounds: Here's how it looks like when it crashes Here's the call stack Why is fl_line() called…
-1
votes
1 answer

How to add FLTK lib into netbeans project

I'm studying Stroustrup Programming principles and practice and have a problem with using FLTK library with netbeans What I've done: downloaded library In netbeans: New project with existing sources (used path where I saved this lib), compiled it…
-1
votes
1 answer

Getting lots of error messages like "undefined reference to..." using FLTK with g++

I learn c++ following The Stroustroup's book (Programming: Principles and Practice), so I've been trying to run an example using FLTK libraries (I use Ubuntu 14.04). Actually, when I compiled the programm with Code::Blocks IDE everything worked…
Bloodred
  • 3
  • 1
  • 2
-1
votes
1 answer

Build FLTK Multi-threaded (MT) project with Visual studio

I use fltk lib in my project. My goal is to compile my project with all libraries dependencies in it (now problem is only with FLTK), so I don't need to install vcredist libraries on each machine, where I want to use it. So I read that for this I…
Eugene
  • 129
  • 2
  • 9
-1
votes
1 answer

How to build FLTK to using with Netbeans (Windows)

How to build FLTK to using with Netbeans (Windows), i have tried but not success. Help me
cdxf
  • 5,501
  • 11
  • 50
  • 65
-1
votes
1 answer

Linux: Constant is defined in a library, and I need to use another library that has the same constant redifined

I need to use a library with FLTK GUI. The new library has a defined constant that is already used by X11 and it is in X.H. the constant is "None" Because of that I cannot compile the project. The same project works on Windows just fine. The only…
Mariwan
  • 95
  • 1
  • 5
-1
votes
1 answer

Drawing Circle in C++ using FLTK and some oddness between the book (PPP) and the result of the system

In the PPP (http://www.stroustrup.com/programming1.html) book, Stroustrup has said the following subject about the Circle: "The main peculiarity of circle's implementation is that the point stored is not the center, but the top left corner of the…
zhiar
  • 113
  • 9
-1
votes
1 answer

I'm getting a linker error I don't understand with VC++ and FLTK

I'm trying to create a new project with FLTK and VC++2010. I haven't done this in a while. I set up the properties by memory as best I could. I'm getting a linker error though. Can anyone tell me how to fix this? 1>------ Build started: Project:…
-1
votes
1 answer

how to resolve an ambigious base class in c++

Both base classes, Arc and Lines, are derived from class Shape. The compiler says Ojbect b1 "error: shape is ambiguous". I know that two instances of Shape are being created, but don't know how to resolve it? Graph_lib::Box b1(Point,100,100),…
-1
votes
2 answers

Can I create windows on different threads with FLTK 1.3?

I'm currently working on a sound signal visualizer. After getting the signal, I need to plot both its waveform and spectrum on two different windows.Thus I implemented a Plotter class, which creates its own thread for each instance when constructed.…
babel92
  • 767
  • 1
  • 11
  • 21
-2
votes
1 answer

What is missing from the link that results in the undefined reference?

To investigate another problem (free() error at program end), I tried to override the destructor of the FLTK Fl_Input class. The code compiles but fails in the link with an undefined reference. I have looked at a number of examples but am not…
cbcalvin
  • 25
  • 1
  • 4
1 2 3
32
33