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 28, 2023  
 
On 1/28/23 22:01 Mohammed wrote:
It’s a peculiar thing I’ll admit. it was reported in the fltk-rs repo:

Oh, that's getting funny! ;-)

??? Not really.

Long story short: building FLTK inside/below /tmp on macOS Ventura 13.1 (MacBook Air M1) and launching apps works ... sometimes. Crazy!

OK, to test this, my first step was:
```
git worktree add /tmp/fltk
cd /tmp/fltk/
make -j7
test/hello
open test/hello.app/
```

Worked like a charm! Note that the first command checks out a "worktree" from the current Git working tree to /tmp/fltk.

So, why does it work here?

Checked: this was an older Git commit: 4bff15278e83616e4da6be9d36ed05c0c949545b from Jan 5, 2023.

OK, checking out the latest commit: 86a0a288152da0d3891ae67f56fd88014f6787f5, then running:
```
make distclean
make -j7
...
Generating keyboard_ui.cxx ... etc.  --- HANGS
```

Hmm, running `make -j1` or `make -k -j5` and other variations reveals: it hangs in `fluid` (as expected).
Even `make -j77` hangs.

Running `fluid -c any.fl` manually hangs too.

So what ... ?

Next try: Building with CMake and Ninja (default configuration): works flawlessly. I can run all test and demo programs I tested, including glpuzzle. `fluid -c` and interactive `fluid` work fine.

Conclusion: I don't know. Strange things are going on. Did I find a bug in macOS? Maybe, since I **can** run GUI programs built in /tmp with CMake ! ;-)

One more point: building with CMake + make (instead of ninja) works as well. I have no idea what's going on.

Sorry, that's it for tonight from me. Maybe someone else who knows more about macOS (Manolo?) can take a look.

Good night from here.


Also check the linked issue in vcpkg (C++). 

Sent from my iPhone

On 28 Jan 2023, at 23:53, Albrecht Schlosser <AlbrechtS.fltk@online.de> wrote:

On 1/28/23 20:47 Mo_Al_ wrote:
Are you perhaps launching the gui or running the build from the /tmp dir?

Hmm, now I'm curious. Do you think that this might change anything, is there anything we should know?

I just started an FLTK program from the /tmp dir and it worked as expected. I'm puzzled.

--
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/0c2b538e-3bf9-4ce2-3741-87c549a3458a%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'.