FLTK logo

Re: [fltk.general] FLTK as an external dependency in Bazel?

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.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: FLTK as an external dependency in Bazel? Albrecht Schlosser Jan 24, 2023  
 
On 1/24/23 07:56 Zsolt Pajor-Gyulai wrote:
I've been trying to integrate FLTK with my Bazel project on a MacOS Ventura 13.0.1.

I'm sceptical that anybody here can help you with a Bazel project. We suggest to use CMake.

However, I may be wrong and someone can help. Please be patient...

I'm using the following file to test whether I succeeded:
 - test.cpp

OK, that would open an empty window. If you want to display the text in the box you should assign a boxtype, like
```
  box.box(FL_FLAT_BOX);
```

But that doesn't seem to be your issue (maybe).

If I do 
```
brew install fltk
```
and use a makefile: [...]
then everything works fine and my window pops up. However, if I now try to replicate it in bazel, for example by following this approach, then I can get everything to build successfully with the exception that `Fl::run()` just hangs without producing any output.

What do you mean with "without producing any output"? Does an empty window appear or not?

Sorry, I can't help with bazel. I looked at your document but I can't tell what exactly it is doing.

One hint may be to use the FLTK source (downloaded from Git) to build the development version 1.4.0 (master), build it yourself, and try with that. But using the latest FLTK version wouldn't explain why it (homebrew, FLTK 1.3.8) works with a Makefile and not with bazel.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/30973393-b4e5-65d5-0459-9b1a07b8ce71%40online.de.
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'.