Quantcast
Channel: bugs, errors - openFrameworks
Viewing all 636 articles
Browse latest View live

Images not returning pixels

$
0
0

@michaelpromeo wrote:

Hello,
I recently tried downloading a few random images and then getting their pixel values via either mouse over the image or just printing out all the pixel values by looping through them. Just a note, display the image works fine.

What happens is with most images I get a return of 0-255 for RGBA values but certain images return 0,0,0,255 and the warning ofLog(OF_LOG_ERROR,"ofPixels: image type not supported"); both images I'm testing with are .jpg and when I open inspector on them they are both RGB. Here are the images I'm using:

image.resize(1);
image.load("test.jpg");
image.setImageType(OF_IMAGE_COLOR_ALPHA); // NOTE: I've tried running this and also commented out
   
unsigned char *data = image.getPixels().getData();

int components = image.getPixels().getBitsPerPixel() / 8;

for (int y=0; y<image.getHeight(); y++) {
    
    for (int x=0; x<image.getWidth(); x++) {
        
        int index = components * (x + image.getWidth() * y);
        int red = data[ index ];
        int green = data[ index + 1 ];
        int blue = data[ index + 2 ];
        
        cout << "Pixels: " << red << " " << green << " " << blue << endl;
    }
}

NOTE: here are the images I'm using where I see the problem LINK 1 WORKS and LINK 2 DOES NOT
* Link 1
* Link 2

To go further here are the printed out properties I find when running the 'file' command in terminal on MAC:

LINK 1 IMAGE
file moon1.jpg
moon1.jpg:
JPEG image data, JFIF standard 1.01,
resolution (DPI), density 72x72, segment length 16,
Exif Standard: [TIFF image data, big-endian, direntries=0],
comment: "NASA false color moon mosaic retouched by Kevin N. Haw, http://www.theHaws.org, to remove alia", baseline, precision 8, 2600x2910, frames 3

LINK 2 IMAGE
file landscape.jpg
landscape.jpg:
JPEG image data, JFIF standard 1.01,
resolution (DPI), density 300x300, segment length 16,
comment: "File source: https://commons.wikimedia.org/wiki/File:RUS-2016-Aerial-SPB-Tauride_Palace_(crop)", baseline, precision 8, 1920x1233, frames 3

Posts: 3

Participants: 2

Read full topic


ofSerial in OF10.0 bug

$
0
0

@teganscott wrote:

Hello,

In OF 9.8 a number such as 0 or 1 cannot be sent with ofSerial's wrieByte, but the same code in OF10.0 has the error "Call to member function 'writeByte' is ambiguous"

I am able to send information though quotes but numbers would be simpler.

Thanks, Tegan

Posts: 1

Participants: 1

Read full topic

ofxSvg possible memory leaks

$
0
0

@seb_ly wrote:

Hi everyone,

I'm running an app where I'm loading thousands of svgs and there seems to be a lot of memory allocated onto the stack that is not cleared when I delete the svg objects.

I'm going to look into this further and see if I can pinpoint it but I was wondering if anyone else has had this problem?

Thanks!

Seb

Posts: 4

Participants: 2

Read full topic

How can changing code that is not called break functionality?

$
0
0

@hamoid wrote:

Hi! One is for C++ experts:

This code is never called in my program. It would draw a few circles if it was.

std::vector<ofPolyline> loops;
ofFbo preview;

void LoopPreview::draw(u_long frm, const glm::vec2 & pos, const glm::vec2 & sz) {
    if(preview.isAllocated()) {
        ImDrawList * draw_list = ImGui::GetWindowDrawList();
        for(auto & loop : loops) {
            draw_list->AddCircleFilled(pos, 5, ImColor(255, 0, 255), 12);
        }
    }
}

The weird thing is, if I make a change to that unused code it breaks the whole GUI.

void LoopPreview::draw(u_long frm, const glm::vec2 & pos, const glm::vec2 & sz) {
    if(preview.isAllocated()) {
        ImDrawList * draw_list = ImGui::GetWindowDrawList();
        for(auto & loop : loops) {
            // access vertices in the "loop" polyline 
            draw_list->AddCircleFilled(pos 
                                       + loop[static_cast<int>(frm)], // THIS BREAKS THE GUI
                                       5, ImColor(255, 0, 255), 12);
        }
    }
}

How can a change to an unused method break the program?

I did put breakpoints and print to the console to make sure the code is never executed.

Posts: 2

Participants: 1

Read full topic

ofxIO / Poco / of_0.10_Nightly

$
0
0

@ayruos wrote:

Hi, I’m trying to get a project developed on 0.9.8 running on the new nightly build because I’m having problems with OF_FULLSCREEN (and/or ofSetFullScreen(true)). It project relies on ofxIO and I’m getting the error of Lexical or Preprocessor Issue, ‘Poco/FileStream.h’ file not found.

I noticed poco is no longer in the libs of openFrameworks directory on the nightly so I copied it from 0.9.8 into openFrameworks/libs and that didn’t solve the issue either - how do I get this working? @bakercp

Thanks!

Posts: 3

Participants: 2

Read full topic

Pulse audio fails to initialize on Pi

$
0
0

@DanBlackburn wrote:

I can’t get audio working on Pi. I’ve tried many combinations of hardware (Pi, Pi Zero, Pi 3) on both Jessie and Stretch using 0.9.8 and the nightly builds. Al Lib (WW) always fails to initialise pulse though.

I’ve install and configured pulse, and tested with paplay over HDMI, jack and DAC but oF won’t initialize it. I’m running pulse audio with the -D flag, does it need configuring differently for oF to initialize it?

I’m going round in circles with this, any advice much appreciated.
Is there something else I should be doing to get pulse audio to work on the pi?
Is there a way to not use pulse audio? An earlier version of oF?

Thanks,
Dan

Posts: 3

Participants: 2

Read full topic

Using minimal Openframeworks App Visual Studio reports hundreds of memory leaks on exit?

$
0
0

@Castaa wrote:

#define _CRTDBG_MAP_ALLOC  
#include <stdlib.h>  
#include <crtdbg.h>  
#include "ofMain.h"

class Test : public ofBaseApp
{
	void setup() { ofGetMainLoop()->setEscapeQuitsLoop(true); }
};

int main(int argc, char* args[])
{
	ofGLFWWindowSettings settings;
	auto window = ofCreateWindow(settings);
	Test* test = new Test();
	ofRunApp(test);

	// test object has been freed at this point, VS throws an exception if I try to delete test

	_CrtDumpMemoryLeaks();

	return 0;
}

I’m not 100% sure this is a bug but I’m not sure where else to post this. I apologize in advanced if this is my mistake on my end.

I’m using VS’s leak detection system and testing in Debug Mode in Visual Studio 2017 using OF 0.9.8.
https://msdn.microsoft.com/en-us/library/x98tx3cf.aspx

I don’t mind if OF has unfreed memory upon app exit as long as long as it’s of fixed size (and not a growing leak).

My issue is that the massive dump of leak message make it difficult for me to find reported memory leaks in my own code on exit which is obviously important to me.

I am doing something incorrectly?

Posts: 3

Participants: 2

Read full topic

ofNode::getGlobalPosition problems and glm::tmat4x4 has no member named ‘xyz’

$
0
0

@action wrote:

I’m having a weird behavior working with the position of a camera.
Somehow getGlobalPosition returns a different vector than the assigned on setGlobalPosition in the same node.

camera.setGlobalPosition( glm::vec3(0, 10, 200) );
camera.getGlobalPosition();  // => returns <200, 0, 10>

*The values are correct but the axes are disordered.

Have been checking the source code of ofNode. ofNode::getGlobalPosition is calling ofNode::getGlobalTransformMatrix which return a glm::mat4, then ofNode::getGlobalPosition gets the 3rd row and return the xyz points of the vector in a glm::vec3.

ofNode.cpp

glm::mat4 ofNode::getGlobalTransformMatrix() const {
	if(parent) return parent->getGlobalTransformMatrix() * getLocalTransformMatrix();
	else return getLocalTransformMatrix();
}

glm::vec3 ofNode::getGlobalPosition() const {
	return getGlobalTransformMatrix()[3].xyz();
}

When I try to get the getGlobalTransformMatrix by myself and select the 3rd row of the matrix, then I got the correct and organized values which I can cats on a glm :: vec3 and work with it.
But when I directly use the ofNode :: getGlobalPosition method, the vector is wrong.

// This works
glm::vec3 globalPosition = camera.getGlobalTransformMatrix()[3];

Then I try to use the xyz() method and check if this is what makes it fail. But instead I get the followinf error:

glm::vec3 globalPosition = camera.getGlobalTransformMatrix()[3].xyz();

error: ‘glm::tmat4x4<float, (glm::precision)0>::col_type {aka struct glm::tvec4<float, (glm::precision)0>}’ has no member named ‘xyz’
glm::vec3 test = cam.getGlobalTransformMatrix()[3].xyz();

Should be this the propperly behavior of the ‘getGlobalPosition’ function?
Have anybody had any similar behavior before?

I’m woring on Arch Linux, with the github version of OF, compied a week ago.

Posts: 1

Participants: 1

Read full topic


Error: cannot convert to bool in assignment

$
0
0

@flowingisart wrote:

Hello everyone!

I was trying to build OF 0.8.4 on Arch Linux;
The newer packages that are hosted by the AUR are going though some issues or I would install those to but the Cyril Live Coding system is based off OF 0.8.4 so I thought I would start there.

I’m following the installation guide from OF
http://openframeworks.cc/setup/linux-install/

Installing the dependencies gave me some gripe but after a few re-installs everything worked just fine.

After that when I go to run “./compileOF.sh -j3” I get the following error…

…/…/…/libs/openFrameworks/gl/ofVbo.cpp:330:45: error: cannot convert ‘ofPtr’ to ‘bool’ in assignment
supportVAOs = ofGetGLProgrammableRenderer();// || glewIsSupported(“GL_ARB_vertex_array_object”); <- this should work but has false positives on some cards like emulation in vm’s
^
make[1]: *** [makefileCommon/compile.core.mk:230: …/…/…/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/gl/ofVbo.o] Error 1
make: *** [makefileCommon/compile.core.mk:207: Debug] Error 2
there has been a problem compiling Debug OF library
please report this problem in the forums

I re-installed glew to see if that would do anything but alas it did not.

Any suggestions?

Posts: 2

Participants: 2

Read full topic

Linker errors with of_v0.9.8 + QtCreator 4.1

$
0
0

@Christof wrote:

I just upgraded from of_v0.9.3 to of_v0.9.8.

I can successfully build and run the examples from the command line but when I try to build a project with QtCreator (4.1.0) I get the following linker errors:

C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNetSSL.a(HTTPSClientSession.o): duplicate section .rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNetSSL.a(HTTPSClientSession.o): duplicate section.rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNetSSL.a(HTTPSClientSession.o): duplicate section .rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNetSSL.a(HTTPSStreamFactory.o): duplicate section.rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNetSSL.a(HTTPSStreamFactory.o): duplicate section .rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNetSSL.a(HTTPSStreamFactory.o): duplicate section.rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNetSSL.a(SecureStreamSocket.o): duplicate section .rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNetSSL.a(SecureStreamSocket.o): duplicate section.rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNetSSL.a(SecureStreamSocket.o): duplicate section .rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNetSSL.a(SecureStreamSocketImpl.o): duplicate section.rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNetSSL.a(SecureStreamSocketImpl.o): duplicate section .rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNetSSL.a(SecureStreamSocketImpl.o): duplicate section.rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNetSSL.a(SecureSocketImpl.o): duplicate section .rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNetSSL.a(SecureSocketImpl.o): duplicate section.rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNetSSL.a(SecureSocketImpl.o): duplicate section .rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(DNS.o): duplicate section.rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(DNS.o): duplicate section .rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(DNS.o): duplicate section.rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(SocketAddress.o): duplicate section .rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(SocketAddress.o): duplicate section.rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(SocketAddress.o): duplicate section .rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(SocketAddressImpl.o): duplicate section.rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(SocketAddressImpl.o): duplicate section .rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(SocketAddressImpl.o): duplicate section.rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(HTTPClientSession.o): duplicate section .rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(HTTPClientSession.o): duplicate section.rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(HTTPClientSession.o): duplicate section .rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(StreamSocket.o): duplicate section.rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(StreamSocket.o): duplicate section .rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(StreamSocket.o): duplicate section.rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(SocketImpl.o): duplicate section .rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(SocketImpl.o): duplicate section.rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(SocketImpl.o): duplicate section .rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(HTTPFixedLengthStream.o): duplicate section.rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(HTTPFixedLengthStream.o): duplicate section .rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(HTTPFixedLengthStream.o): duplicate section.rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(StreamSocketImpl.o): duplicate section .rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(StreamSocketImpl.o): duplicate section.rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(StreamSocketImpl.o): duplicate section .rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(HTTPHeaderStream.o): duplicate section.rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(HTTPHeaderStream.o): duplicate section .rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(HTTPHeaderStream.o): duplicate section.rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(HTTPSession.o): duplicate section .rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(HTTPSession.o): duplicate section.rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(HTTPSession.o): duplicate section .rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(HTTPStream.o): duplicate section.rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(HTTPStream.o): duplicate section .rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(HTTPStream.o): duplicate section.rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(HTTPIOStream.o): duplicate section .rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(HTTPIOStream.o): duplicate section.rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(HTTPIOStream.o): duplicate section .rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(HTTPStreamFactory.o): duplicate section.rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(HTTPStreamFactory.o): duplicate section .rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(HTTPStreamFactory.o): duplicate section.rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(Socket.o): duplicate section .rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(Socket.o): duplicate section.rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(Socket.o): duplicate section .rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(HTTPChunkedStream.o): duplicate section.rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]’ has different size
C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoNet.a(HTTPChunkedStream.o): duplicate section .rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]' has different size C:/of_v0.9.8/examples/gl/billboardRotationExample/../../../libs/poco/lib/msys2/libPocoNet.a(HTTPChunkedStream.o): duplicate section.rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]’ has different size

C:/of_v0.9.8/examples/gl/billboardRotationExample/…/…/…/libs/poco/lib/msys2/libPocoFoundation.a(Timespan.o):Timespan.cpp:(.text+0xf0): multiple definition of `Poco::Timespan::~Timespan()’
C:/of_v0.9.8/libs/openFrameworksCompiled/lib/msys2/libopenFrameworksDebug.a(ofURLFileLoader.o):C:/msys64/mingw32/include/Poco/Timespan.h:295: first defined here
C:/of_v0.9.8/libs/openFrameworksCompiled/lib/msys2/libopenFrameworksDebug.a(ofURLFileLoader.o):ofURLFileLoader.cpp:

(.rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]+0x28): undefined reference to `Poco::Net::Impl::IPv6SocketAddressImpl::toStringabi:cxx11 const’

C:/of_v0.9.8/libs/openFrameworksCompiled/lib/msys2/libopenFrameworksDebug.a(ofURLFileLoader.o):ofURLFileLoader.cpp:(.rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]+0x28): undefined reference to `Poco::Net::Impl::IPv4SocketAddressImpl::toStringabi:cxx11 const’

collect2.exe: error: ld returned 1 exit status

what is going on? maybe there are different/conflicting compiler settings for the standard makefile and the qbs project?

Posts: 1

Participants: 1

Read full topic

If VS2017 IDE used, will any problem occurred?

$
0
0

@Strawberry9583 wrote:

I want to transplant the previous project from VS2015 to VS2017. I want to know the OF of version vs2015 whether to be compatible with the IDE VS2017. Any one have the experience on it? thx !

Posts: 1

Participants: 1

Read full topic

Ubuntu: Unable to compile, missing GLX_mesa

$
0
0

@Prof_Sparkles wrote:

I got some odd issue. I had to reinstall some desktop stuff on my Ubuntu machine and since then openFrameworks ~0.10.0 does not want to compile anymore because GLX_mesa is missing. I’m fairly certain that all Mesa stuff is installed but maybe I’m missing something. I was unable to locate the necessary package to install this library. Maybe someone here knows more?
I doubt it has anything to do with changes made in 0.10.0 though.

E: it seems the library comes from libglx-mesa0 which is installed. I tried to purge it and reinstall it but still the same issue.

of_v20180420_linux64gcc6_release/libs/tess2/lib/l
inux64/libtess2.a -lz -lgstapp-1.0 -lgstvideo-1.0
-lgstbase-1.0 -lgstreamer-1.0 -ludev -lfontconfig -l
freetype -lsndfile -lopenal -lcurl -lglfw -lrtaudio
-lpulse-simple -lpulse -lasound -lGLEW -lGLU -lGLX_m
esa -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -la
tk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgi
o-2.0 -lgobject-2.0 -lglib-2.0 -lmpg123 -lavformat -
lavcodec -lavutil -lswresample -lglut -lX11 -lXrandr
-lXxf86vm -lXi -lXcursor -ldl -lpthread -lfreeimage
-lboost_filesystem -lboost_system -lpugixml -luripa
rser -lXinerama
/usr/bin/x86_64-linux-gnu-ld: cannot find -lGLX_mesa

Posts: 1

Participants: 1

Read full topic

No datas when bin is uploaded and then downloaded

$
0
0

@hugohil wrote:

Hey folks,

I was trying to send my app to someone by compressing the bin/ folder and upload it to Google Drive, but when it’s downloaded and uncompressed, the app cannot access the data folder (no images displayed).

  • app is built with oF 0.9.8
  • xcode and manual make produces the same, debug or release
  • it’s sent from a macOS 10.13.x computer to another macOS 10.13.x computer
  • I’ve tried zip and tar.gz, same issue.
  • the app works as expected when builded and run on the my computer

The really weird thing is that it worked when the .app (as is) and the data/ (compressed) are downloaded separately and manually put together into a common directory. Same if I download the whole bin/ folder and manually move the twos into another folder … :thinking:

Here’s an example app simply displaying an image, that I’ve gzipped and uploaded to Google Drive:

Steps to reproduce:

  • download the whole tar.gzarchive
  • uncompress it, run the no-datasDebug.app and see no image
  • create a new folder anywhere
  • copy (or move) .app and data/ one at a time inside this new folder
  • ¿ black magic does its tricks ?
  • run the .app and see the image

One can easily get around this, with the steps I described, or by packaging the data inside the app contents (haven’t tested), but this is still some pretty weird thing happening here !

p.s: I haven’t tested with other platform.

Posts: 1

Participants: 1

Read full topic

OpenGL static objects destruction crahes

$
0
0

@chuckleplant wrote:

I’ve had situations in which OpenGL obejcts get destroyed after main thread exits, in which case the destruction crashes. Specifically the static ofVboMesh gradientMesh in ofGraphics.cpp.

It’s hard to reproduce this issue but shouldn’t it be avoided to have static OpenGL objects? I wanted to consult here first before posting an issue on github.

Posts: 1

Participants: 1

Read full topic

Font not Loading — even if it's in the data folder and declared

$
0
0

@federicollach wrote:

Hi,

I am having trouble with loading a Font.
The font is in the data folder and I am loading it in the setup().
I am even checking that it is loaded with .isLoaded() method.
Still, I get:

[ error ] ofTrueTypeFont: drawString(): font not allocated

If I start a project from scratch and load a font it works, so it must be something about my project.
It’s a project that communicates OSC messages with Ableton Live to produce visuals.
It has multiwindows, with GUI.

I’ll post my code. If you see something that might be causing the problem, or any ideas I can try please let me know! Thanks.

Here’s my main:

int main( ){
    
    ofGLFWWindowSettings settings;
    settings.width = 1280;
    settings.height = 720;
    settings.setPosition(ofVec2f(300,0));
    settings.resizable = true;
    shared_ptr<ofAppBaseWindow> mainWindow = ofCreateWindow(settings);
    
    settings.width = 300;
    settings.height = 800;
    settings.setPosition(ofVec2f(0,0));
    settings.resizable = false;
    // uncomment next line to share main's OpenGL resources with gui
    settings.shareContextWith = mainWindow;
    shared_ptr<ofAppBaseWindow> guiWindow = ofCreateWindow(settings);
    guiWindow->setVerticalSync(false);
    
    shared_ptr<ofApp> mainApp(new ofApp);
    mainApp->setupGui();
    ofAddListener(guiWindow->events().draw,mainApp.get(),&ofApp::drawGui);
    
    ofRunApp(mainWindow, mainApp);
    ofRunMainLoop();

}

ofApp.h:

#pragma once

#include "ofMain.h"
#include "OSC.hpp"
#include "store.hpp"

#include "ofxGui.h"
#include "ofxXmlSettings.h"
#include "ofxOsc.h"

#define portIN 2346
#define portOUT 1234
#define host "192.168.1.67"



class ofApp : public ofBaseApp{

	public:
		void setup();
        void setupGui();
		void update();
		void draw();
        void drawGui(ofEventArgs & args);

		void keyPressed(int key);
		void keyReleased(int key);
		void mouseMoved(int x, int y );
		void mouseDragged(int x, int y, int button);
		void mousePressed(int x, int y, int button);
		void mouseReleased(int x, int y, int button);
		void mouseEntered(int x, int y);
		void mouseExited(int x, int y);
		void windowResized(int w, int h);
		void dragEvent(ofDragInfo dragInfo);
		void gotMessage(ofMessage msg);
		
        ofParameterGroup allParameters;
    
        ofVideoPlayer video;
        ofFbo fboL, fboR;
        ofxPanel gui;
        OSC osc;

        ofTrueTypeFont verdana;
    
    
};

and ofApp.cpp:

#include "ofApp.h"

// This app works along with two M4L devices:

//      1. MultiMapperOSC device‚ for knob controllers
//      2. PMCA OSC MIDI Send on off‚ for MIDI notes


// 1. Input amount of desired controls to be mapped
// 2. Input the ID number of the M4L device
// 3. Input their labels
// 4. Input scaling factor (= maximum desired value for given parameter)

// HERE:

int connectionsNum = 5; // 1. AMOUNT of params. Set amount of params here
int initialID = 1; // 2. ID. Set ID of M4L device
string labels[2][5]  = {
    {"one", "two", "three", "four", "five"},
    {"1", "2", "3", "4", "5"}
};  // 3. LABELS. Input array's second dimension = connectionsNum. Set the labels here: first row is label of slider, second row is label of slider button
float scaling[5] = {10, 20, 30, 40, 50}; // SCALING. Input size of array = connectionsNum; then input desired maximum value for each parameter


// To map:
//      a. move a knob in M4L device, wait for one second
//      b. move the second slider of the desired parameter in openFrameworks' GUI window


float height, width, mouseX, mouseY;
int wA, hA, wB, hB;
//bool one, two, three, four, five, six, seven;
int smallFboNum = 5;
vector<float> times(5, 0);
vector<ofFbo> smallFbos;
bool guiSetup = false;
bool trigger;
int note, velocity;
bool loaded = false;



vector<string> text;
vector<OSC> connections;
vector<store> params;
vector<float> vals;
vector<store*> paramPointers;

string verses[] = {"THE INDIAN COULD NOT LIVE A LIFE",
    "THAT WAS HEMMED ABOUT BY WALLS",
    "AND ONE DAY",
    "HE WENT OFF IN SEARCH OF HIS WILDERNESS",
    "I WOULD LIKE TO KNOW",
    "WHAT HE FELT IN THAT MOMENT OF VERTIGO",
    "WHEN PAST AND PRESENT INTERMINGLED",
    "I WOULD LIKE TO KNOW",
    "WHETHER THE LOST SON",
    "REBORN AND DIED IN THAT ECSTATIC MOMENT",
    "AND WHETHER HE EVER MANAGED TO RECOGNIZE",
    "EVEN AS LITTLE AS A BABY OR A DOG MIGHT",
    "HIS PARENTS AND THE HOUSE",
};



//--------------------------------------------------------------
void ofApp::setup(){
    
    ofBackground(0, 0, 0);
    
//    verdana.load("verdana.ttf", 72, false);

    if (loaded == false) {
        bool test;
        verdana.load("verdana.ttf", 72);
        test = verdana.isLoaded();
        cout << "is verdana loaded?: " << test << endl;
 //        cout << "verdana loaded" << endl;
        loaded = true;
    }

    
    for (int i = 0; i < 2; i++) {
        cout << "row " << i << endl;
        for (int j = 0; j < 5; j++) {
            cout << "col " << j << endl;
            cout << labels[i][j] << endl;
        }
        cout << endl;
    }
    
    height = float(ofGetHeight());
    width = float(ofGetWidth());
    
    
    wA = ofGetWidth()/2;
    hA = ofGetHeight()/2;
    
    wB = ofGetWidth()/5;
    hB = ofGetHeight()/2;
    
    fboL.allocate(wA, hA);
    fboR.allocate(wA, hA);
    
    for (int i = 0; i < smallFboNum; i++) {
        ofFbo fbo;
        smallFbos.push_back(fbo);
        smallFbos[i].allocate(wB, hB);
        smallFbos[i].begin();
        ofBackground(0, 0, 0);
        //ofSetColor(0);
        //ofDrawRectangle(0, 0, wB, hB);
        smallFbos[i].end();
    }
    

    
    //  OSC stuff:
    
    osc.setup(portIN, portOUT, host);   //ofApp osc setup — needed?

    for (int i = 0; i < connectionsNum; i++) {
        store param;
        params.push_back(param);
        params[i].setup();      //     setup OSC for each param:
        params[i].setLabels(labels[0][i], labels[1][i]);     //     set their labels
        params[i].set(initialID, i);     //     set initial Mappings (M4L ID, knob number
        params[i].printLabel();         //     and print their labels into M4Live device in Ableton:
//        store* paramPointer;
//        paramPointers.push_back(paramPointer);
//        paramPointers[i] = &params[i];
    }
    
    
    cout << "INITIAL VALUES: " << endl;
    
    // initialize float values at arbitrary 0.7:
    for (int i = 0; i < connectionsNum; i++) {
        float val = 0.7; //intial value is arbitrary
        vals.push_back(val);
        cout << "value of vals at index " << i << ": "<< vals[i] << endl;
    }
    
    cout << endl;
    
    cout << "Params size: " << params.size() << endl;
//    cout << "paramPointers size: " << paramPointers.size() << endl;

    fboL.begin();
    ofBackground(0, 0, 0);
    fboL.end();
    
    fboR.begin();
    ofBackground(0, 0, 0);
    ofSetColor(256, 0, 0);
    ofDrawRectangle(0, 0, wA, hA);
    fboR.end();
  
    
    video.load("Jen.mov");
    video.play();
    
}

//--------------------------------------------------------------
void ofApp::setupGui() {
    ofBackground(255);
    

//        bool test;
//        verdana.load("verdana.ttf", 72);
//        test = verdana.isLoaded();
//        cout << "is verdana loaded?: " << test << endl;


    
    if (ofGetElapsedTimef() > 0.5) {
        for (int i = 0; i < connectionsNum; i++) {
            params[i].getLabels();
            params[i].setupGUI(scaling[i]/2, 0, scaling[i], 0, 0, 1);
            allParameters.add(params[i].parameterGroup);
            }
        }
    
    gui.setup(allParameters);
    ofSetBackgroundColor(0);
    
}

//--------------------------------------------------------------
void ofApp::update(){
    
    osc.update();
    int tempID = osc.getID();

    int tempKnob = osc.getKnob();
    float arg = osc.getArg();
    float time = osc.getTimeStamp();
    
    trigger = osc.getTrigger();
    note = osc.getNote();
    velocity = osc.getLastVelocity();

    
    if (ofGetElapsedTimef() > 4) {
        for (int i = 0; i < connectionsNum; i++) {
            vals[i] = params[i].update(tempID, tempKnob, arg, time, scaling[i]);
            }
    }

    video.update();
    
    fboL.begin();
    video.draw(0, 0, wA, hA);
    fboL.end();
    
        if (ofGetElapsedTimef() > 0.5 && guiSetup == false) {
            setupGui();
            guiSetup = true;
        }
  
    // INTENTAR DIBUJAR PARA FBOS PARA AQUELLAS NOTAS QUE ESTEN PRENDIDAS
    
    for (int i = 0; i < sizeof(verses); i++) {
        int theVelo = osc.getVelocity(i+37);
        if ( theVelo > 0) {
            int randomFbo = 4;
            cout << "randomFbo: " << randomFbo << endl;
            smallFbos[randomFbo].begin();
            ofSetColor(255, 255, 255);
            smallFbos[randomFbo].end();
        }
    }
    
    
}

//--------------------------------------------------------------
void ofApp::draw(){

    ofBackground(0, 0, 0);
    fboL.draw(0, 0);

    
    for (int i = 0; i < smallFboNum; i++) {
        smallFbos[i].draw(i*wB, hB);
    }



    ofSetColor(255, 255, 255);
    verdana.drawString("Hello", 100, 100);
    
    
    ofDrawBitmapString("frame rate" + ofToString(ofGetFrameRate()), 20, 20);
    ofDrawBitmapString("note: " + ofToString(note), 20, 35);
    ofDrawBitmapString("vel:  " + ofToString(velocity), 20, 50);
    ofDrawBitmapString("trig:  " + ofToString(trigger), 20, 65);
    
    
}

//--------------------------------------------------------------
void ofApp::drawGui(ofEventArgs & args){
    gui.draw();
    

    
    
}


//--------------------------------------------------------------
void ofApp::keyPressed(int key){
    if (key == 'x') {
        

        mouseX = float (ofGetMouseX()) / 1. / float(width) * 100.;
        mouseY = float(ofGetMouseY()) * 1.0 / float(height) * 1.0 * 5.0;

        cout << "mouseX is: " << mouseX << endl;
        cout << "mouseY is: " << mouseY << endl;
        int totalFrames = video.getTotalNumFrames();
        cout << "totalFrames is: " << totalFrames << endl;
        int newPos;
        newPos = int (mouseX * totalFrames / 100 );
        cout << "newPos is: " << newPos << endl;
        cout << endl;
        video.setFrame(newPos);
        video.setSpeed(mouseY);
        video.play();
    }

    if (key == 'y') {
        cout << "mouseY is: " << mouseY << endl;
    }

    
    if (key ==  'p') {
        cout << endl;
        cout << "ID: " << osc.getID() << endl;
        cout << "Knob: " << osc.getKnob() << endl;
        cout << "Value: " << osc.getArg() << endl;
        cout << "TimeStamp: " << osc.getTimeStamp() << endl;
        cout << "one: " << vals[0]  << endl;
        cout << "two: " << vals[1] << endl;
        cout << "three: " << vals[2] << endl;
        
    }
    
    
}

//--------------------------------------------------------------
void ofApp::keyReleased(int key){

}

//--------------------------------------------------------------
void ofApp::mouseMoved(int x, int y ){

}

//--------------------------------------------------------------
void ofApp::mouseDragged(int x, int y, int button){

}

//--------------------------------------------------------------
void ofApp::mousePressed(int x, int y, int button){

}

//--------------------------------------------------------------
void ofApp::mouseReleased(int x, int y, int button){

}

//--------------------------------------------------------------
void ofApp::mouseEntered(int x, int y){

}

//--------------------------------------------------------------
void ofApp::mouseExited(int x, int y){

}

//--------------------------------------------------------------
void ofApp::windowResized(int w, int h){

}

//--------------------------------------------------------------
void ofApp::gotMessage(ofMessage msg){

}

//--------------------------------------------------------------
void ofApp::dragEvent(ofDragInfo dragInfo){ 

}

Posts: 1

Participants: 1

Read full topic


Linker mess in Qt after VS2015 install

$
0
0

@joeseeba wrote:

I had to install VS2015 in the same machine I am working with Qt+oF.
For VS I had a separate oF folder since oF is compiled differently for VS, so there should be no conflicts between VS and Qt.
But actually if now I try to build an oF project in QT I get a ton of error messages from the linker, most of them are from Poco library. Here are some lines:

C:/of_v0.9.8/libs/poco/lib/msys2/libPocoNetSSL.a(HTTPSClientSession.o): duplicate section .rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]' has different size C:/of_v0.9.8/libs/poco/lib/msys2/libPocoNetSSL.a(HTTPSClientSession.o): duplicate section.rdata$_ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv4SocketAddressImplE]’ has different size
C:/of_v0.9.8/libs/poco/lib/msys2/libPocoNetSSL.a(HTTPSClientSession.o): duplicate section .rdata$_ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE[__ZTVN4Poco3Net4Impl21IPv6SocketAddressImplE]' has different size C:/of_v0.9.8/libs/poco/lib/msys2/libPocoNetSSL.a(HTTPSStreamFactory.o): duplicate section.rdata$_ZTIN4Poco3Net4Impl17SocketAddressImplE[__ZTIN4Poco3Net4Impl17SocketAddressImplE]’ has different size

I also get some FIND errors at the start of build:

building openFrameworks library
c:\msys64\usr\bin/make.exe -j4 Debug
FIND: formato del parametro non corretto
FIND: formato del parametro non corretto
FIND: formato del parametro non corretto
HOST_OS=MSYS_NT-10.0
checking pkg-config libraries: cairo zlib openssl glew
HOST_OS=MSYS_NT-10.0
checking pkg-config libraries: cairo zlib openssl glew
HOST_OS=MSYS_NT-10.0
checking pkg-config libraries: cairo zlib openssl glew
Done!

“formato del parametro non corretto” means “parameter format is wrong”.

Anyway, if i build the project from the command line of msys2 everything works fine.

Anyone knows what’s happening?..

Posts: 1

Participants: 1

Read full topic

ofxDatGui compilation errors on Windows Visual Studio 2015

$
0
0

@braedenf wrote:

Hi there,

I am having an issue compiling the ofxDatGui library on a windows machine using Visual Studio 2015 with the latest release version of Openframeworks. The issue is a whole bunch of syntax errors and signed/unsigned mismatch errors. I’ll just dump some of the output below:

2>c:\of_v20180227_vs2015_release\addons\ofxdatgui\src\libs\ofxsmartfont\ofxSmartFont.h(34): error C3646: 'file': unknown override specifier (compiling source file ..\..\..\addons\ofxDatGui\src\libs\ofxSmartFont\ofxSmartFont.cpp)
2>c:\of_v20180227_vs2015_release\addons\ofxdatgui\src\libs\ofxsmartfont\ofxSmartFont.h(34): 
...

2>..\..\..\addons\ofxDatGui\src\ofxDatGui.cpp(92): warning C4018: '<': signed/unsigned mismatch
2>..\..\..\addons\ofxDatGui\src\ofxDatGui.cpp(98): warning C4018: '<': signed/unsigned mismatch
2>..\..\..\addons\ofxDatGui\src\ofxDatGui.cpp(654): warning C4018: '<': signed/unsigned mismatch
2>..\..\..\addons\ofxDatGui\src\ofxDatGui.cpp(659): warning C4018: '<': signed/unsigned mismatch
2>..\..\..\addons\ofxDatGui\src\ofxDatGui.cpp(809): warning C4018: '<': signed/unsigned mismatch
2>..\..\..\addons\ofxDatGui\src\ofxDatGui.cpp(830): warning C4018: '<': signed/unsigned mismatch
2>..\..\..\addons\ofxDatGui\src\ofxDatGui.cpp(859): warning C4018: '<': signed/unsigned mismatch
2>..\..\..\addons\ofxDatGui\src\ofxDatGui.cpp(869): warning C4018: '<': signed/unsigned mismatch
2>..\..\..\addons\ofxDatGui\src\ofxDatGui.cpp(883): warning C4018: '<': signed/unsigned mismatch
2>..\..\..\addons\ofxDatGui\src\ofxDatGui.cpp(900): warning C4018: '<': signed/unsigned mismatch
2>..\..\..\addons\ofxDatGui\src\ofxDatGui.cpp(915): warning C4018: '<': signed/unsigned mismatch
2>..\..\..\addons\ofxDatGui\src\ofxDatGui.cpp(917): warning C4018: '<': signed/unsigned mismatch
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Posts: 2

Participants: 1

Read full topic

iOS projectGenerator generate MacOS project instead

ofxMidi no build in of_v0.10.0_linux64gcc6_release

$
0
0

@bernard_Del wrote:

./…/…/addons/ofxMidi/src/ofxMidiMessage.h:61:2: error: « vector »
vector bytes;

an idea of where the problem might come from?
Thank you for your ideas.
Bernard

.

Posts: 3

Participants: 2

Read full topic

C linkage errors in vs 2017

$
0
0

@jitterhorse wrote:

Hi,
I am trying to build the example from

https://github.com/bakercp/ofxIpVideoGrabber

with:

of_v0.10.0_vs2017_release
vs2017
on: win10@64bit

I have downloaded & linked via openFrameworksaddons:

ofxIPVideoGrabber
ofxPoco

But during the build-process I get a lot of

c2894 - templates cannot be declared to have ‘C’ linkage
and
e0800 - this declaration may not have extern ‘C’ linkage

Has anyone a clue what might be the problem? Thanks in advance.

Daniel

P.S.: I’m not really a 100% noob. I already worked on some easy projects in OF and i can remember that i once compiled the example from ofxIPVideoGrabber with oF 0.9 succesfully.

Posts: 3

Participants: 2

Read full topic

Viewing all 636 articles
Browse latest View live