jstrecker's picture

Jaymie (@jstrecker)

Groups

  • Vuo Founder
  • Team Vuo
jstrecker's picture
Jaymie commented on Teo's Discussion, “Cannot include <iostream> with vuo-compile

Can you explain the process of compiling a node?

  • First, vuo-compile invokes Clang to convert the .c or .cc file to an LLVM module. It passes along the header search paths from the vuo-compile arguments and adds a few additional arguments.
  • Then, it alters the LLVM module, renaming global variables and functions so that they are unique to the node class. For example, nodeEvent would be renamed to example_stateless_vuoize__nodeEvent.
  • Finally, it saves the altered LLVM module to file.
jstrecker's picture
Jaymie commented on Teo's Discussion, “Cannot include <iostream> with vuo-compile

Hmm, we tested the same thing (renamed to example.stateless.vuoize.cc and added #include <iostream>) and it worked OK.

Maybe you're missing the C++ standard headers. Do you have both Xcode and the Xcode Command Line Tools installed? One of those provides the headers, offhand I don't know which.

Or here is an alternative implementation in C.

jstrecker's picture
Jaymie commented on Teo's Discussion, “Cannot include <iostream> with vuo-compile

iostream is a C++ library. Try changing your node class's file extension from .c to .cc so it will be compiled as C++ instead of C.

jstrecker's picture
Jaymie commented on Joe's Feature Request, “OpenCV create contours from image/colour

Joe, are you looking to create a contour image (in which case would the Outline Image node work for you?), a list of contour lines, or something else?

What would you like to use the proposed contour node for? As we plan nodes, it always helps to have a use case or example.

Pages