Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

ofxNetwork error and tips for sending an image between two laptops?

$
0
0

@juss wrote:

Hi, I am trying to send FBO pixels from my app to another OF app in my second laptop. As the first approach I am testing this sender app from Mastering openFrameworks: Creative Coding Demystified book:

However when compiling, I get an error from the setup of pbNetWork.cpp:

void pbNetworkReceiver::setup( int port, int packetSize, bool threaded )
{
    _threaded = threaded;
    _wantRestart = false;

    _port = port;
    _packetSize = packetSize;

    _frame = -1;
    _size = 0;

    maxN = 1000000;        //TODO Parameter
    _buffer.resize( maxN );
    _N = 0;

    _data.resize( maxN );

    startTCP();

    if ( _threaded ) {
        startThread( true, false );   //ERROR HERE: "No matching member function for call to 'startThread'"
    }
}

I was suspecting this has something to do with the fact that example apps are 5 years old and I am using brand new ofxNetwork addon. If anyone has ideas for fixing this they are more than welcome!

However, I would be happy to know about other solutions for this. I am familiar with OSC messaging but sending images is too heavy for that. My idea is quite simple itself: I want to display the FBO contents of my app A in app B (just showing an image that gets updated). Thanks for any tips!

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles