Cabbage Logo
Back to Cabbage Site

Basic info about FLTK

What’s it all about with FLTK?

Whenever I try running any .csd files that make use of any FLTK-widget-opcodes I get errors like:

error: syntax error, unexpected STRING_TOKEN  (token """)
 from file G:\file.csd (1), line 51:
 >>>   <<<
Unexpected untyped word FLpanel when expecting a variable
Parsing failed due to invalid input!
Stopping on parser failure
cannot compile orchestra
end of score.

(I tried at least 5 different .csd files that use FLTK widgets, the error is always thrown on the very first line a FLTK-opcode is placed. Are the opcodes missing?)

  • I tried the csound version installed with cabbage and the one from csound.com’s download section ( 64bit Binaries v6.17.0 )
  • Is it still supported in the current csound version (6.17)?
  • I’m working under Windows 10.
  • Does it take any additional installation? A custom build maybe?
  • Should it work “out of the box”?

I read all I could find about it in the manual and google searching, not finding much about FLTK at all really.

It’s really not that I intend to use FLTK to build GUI, it’s only that several csound examples found on the internet use them (like some from Iain McCurdy’s marvellous catalog or ones that get shared here on the forum) and I would really love to run them when studying them :slight_smile:

Thank you in advance for any hints!

Kind regards,
Stefan Mayer

FLTK is no long part of the main Csound package. It was becoming a nightmare to maintain for the core devs. The simplest way to experiment with FLTK is to install an older version of Csound, maybe 6.15 or something like that. Before that however, you can try this package:


I can’t remember if I included the FLTK stuff in the windows installer. But check it out. I can’t guarantee good results, but it’s worth trying at least.

hi @rorywalsh
that explains a lot - and definitely deserves a mention in the manual, no? I’d volunteer. I have (basic) experience with versioning tools etc. :smile:

however, I didn’t get it working with older 6.x versions, also tried a 5 something version, no luck. I downloaded the windows .zip-packages from github. Could it be that I have to take even earlier versions? Are the packed binaries maybe generally different from the installer versions? I’ll try out some more tomorrow.

I also installed the plugins with the installer you mentioned, also no luck. I still have to find out where I can set / change the environment variables for csound (like the mentioned CS_USER_PLUGINDIR), didn’t have time for that today.

Did I understand it correctly, you’re not only THE driving force behind cabbage but you also take care of the csound code repo, building the release assets, installers and such?

In any case, thank you, once again, for your tireless efforts here on the forum. I wouldn’t have gotten so far without your help!

Kind regards,
stefan

That plugin opcodes should work with version 6.15 as far as I recall. What you can do is simply install them to someplace, and then copy the ones you want to place them into the Csound_x64 plugins folder. Csound will find them then on startup. (should find them…)

Oh God no! I merely help out when I can with Csound. A bit here or there, but nothing in comparison to the other developers.