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? Zsolt Pajor-Gyulai Jan 25, 2023  
 
> What do you mean with "without producing any output"? Does an empty window appear or not?

Sorry, I should have made it clearer, no window appears whatsoever.

> 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.

Thanks, I will try 1.4.0. My best bet is that it only appears to hang
and it is "displaying the window somewhere" waiting for me to close
it. I will also try to ask on a bazel forum to see if it would be
blocking the output, I will post back here if I find a solution.

On Tue, Jan 24, 2023 at 8:09 AM Albrecht Schlosser
<AlbrechtS.fltk@online.de> wrote:
>
> 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 a topic in the Google Groups "fltk.general" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/fltkgeneral/miGhgA3y0xE/unsubscribe.
> To unsubscribe from this group and all its topics, 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.

-- 
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/CADaF38RzAL3du4OMgwQZ8sJbWK-_KsyC4wrD-M_QZmOH9CVWPQ%40mail.gmail.com.
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'.