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

Error compiling PG from Github version

$
0
0

@Gil_Fuser wrote:

Hi to all.
The error message said to report this in the forums, so here I am.
This is the whole message:

/home/gilfuser/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:304: recipe for target '/home/gilfuser/openFrameworks/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/utils/Utils.o' failed
make[1]: *** [/home/gilfuser/openFrameworks/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/utils/Utils.o] Error 1
make[1]: Leaving directory '/home/gilfuser/openFrameworks/apps/projectGenerator/commandLine'
/home/gilfuser/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:124: recipe for target 'Release' failed
make: *** [Release] Error 2
make: Leaving directory '/home/gilfuser/openFrameworks/apps/projectGenerator/commandLine'
There has been a problem compiling the command line projectGenerator.
Please report this problem in the forums.

I'm on Linux Ubuntu Studio 17.04.

I hope that helps the oF_devs.

bests,
Gil

Posts: 4

Participants: 2

Read full topic


I keep getting these error codes when I run any Audio related examples - how to solve?

$
0
0

@Anthony_Dunphy wrote:

Hello

Anytime I run an audio related example from the Openframeworks examples, I get the error codes -

error (hardware input or output is not present or available.)

How can I solve this issue? Is it related to the rtAudio library?

Thanks

Posts: 1

Participants: 1

Read full topic

ofxFern : Missing frameworks on macOS 10.13

$
0
0

@TheronBurger wrote:

Hi there.

Just to jot this down for the next person.
Had an issue with the ofxFernCameraDemo like so :

Undefined symbols for architecture i386:
"_CVDisplayLinkGetNominalOutputVideoRefreshPeriod", referenced from:
vidmodeFromCGDisplayMode in glfw3.a(cocoamonitor.m.o)
"_CVDisplayLinkCreateWithCGDisplay", referenced from:
_glfwSetVideoMode in glfw3.a(cocoamonitor.m.o)
_glfwPlatformGetVideoModes in glfw3.a(cocoamonitor.m.o)
"_CVDisplayLinkRelease", referenced from:
_glfwSetVideoMode in glfw3.a(cocoamonitor.m.o)
_glfwPlatformGetVideoModes in glfw3.a(cocoamonitor.m.o)
"_kCVPixelBufferPixelFormatTypeKey", referenced from:
-[OSXVideoGrabber initCapture:capWidth:capHeight:] in openFrameworksDebug.a(ofAVFoundationGrabber.o)
".objc_class_name_AVCaptureSession", referenced from:
pointer-to-literal-objc-class-name in openFrameworksDebug.a(ofAVFoundationGrabber.o)
".objc_class_name_AVCaptureVideoDataOutput", referenced from:
pointer-to-literal-objc-class-name in openFrameworksDebug.a(ofAVFoundationGrabber.o)
".objc_class_name_AVCaptureDevice", referenced from:
pointer-to-literal-objc-class-name in openFrameworksDebug.a(ofAVFoundationGrabber.o)
"_kCVPixelBufferHeightKey", referenced from:
-[OSXVideoGrabber initCapture:capWidth:capHeight:] in openFrameworksDebug.a(ofAVFoundationGrabber.o)
"_CVPixelBufferLockBaseAddress", referenced from:
-[OSXVideoGrabber captureOutput:didOutputSampleBuffer:fromConnection:] in openFrameworksDebug.a(ofAVFoundationGrabber.o)
".objc_class_name_AVCaptureDeviceInput", referenced from:
pointer-to-literal-objc-class-name in openFrameworksDebug.a(ofAVFoundationGrabber.o)
".objc_class_name_AVFrameRateRange", referenced from:
pointer-to-literal-objc-class-name in openFrameworksDebug.a(ofAVFoundationGrabber.o)
"_CVPixelBufferGetBytesPerRow", referenced from:
-[OSXVideoGrabber captureOutput:didOutputSampleBuffer:fromConnection:] in openFrameworksDebug.a(ofAVFoundationGrabber.o)
"_CVPixelBufferGetWidth", referenced from:
-[OSXVideoGrabber captureOutput:didOutputSampleBuffer:fromConnection:] in openFrameworksDebug.a(ofAVFoundationGrabber.o)
"_CVPixelBufferGetBaseAddress", referenced from:
-[OSXVideoGrabber captureOutput:didOutputSampleBuffer:fromConnection:] in openFrameworksDebug.a(ofAVFoundationGrabber.o)
"_kCVPixelBufferWidthKey", referenced from:
-[OSXVideoGrabber initCapture:capWidth:capHeight:] in openFrameworksDebug.a(ofAVFoundationGrabber.o)
"_CMSampleBufferGetImageBuffer", referenced from:
-[OSXVideoGrabber captureOutput:didOutputSampleBuffer:fromConnection:] in openFrameworksDebug.a(ofAVFoundationGrabber.o)
"vImageConvertBGRA8888toRGB888", referenced from:
-[OSXVideoGrabber captureOutput:didOutputSampleBuffer:fromConnection:] in openFrameworksDebug.a(ofAVFoundationGrabber.o)
"_AVMediaTypeVideo", referenced from:
-[OSXVideoGrabber initCapture:capWidth:capHeight:] in openFrameworksDebug.a(ofAVFoundationGrabber.o)
-[OSXVideoGrabber listDevices] in openFrameworksDebug.a(ofAVFoundationGrabber.o)
"_CMVideoFormatDescriptionGetDimensions", referenced from:
-[OSXVideoGrabber initCapture:capWidth:capHeight:] in openFrameworksDebug.a(ofAVFoundationGrabber.o)
"_CVPixelBufferGetHeight", referenced from:
-[OSXVideoGrabber captureOutput:didOutputSampleBuffer:fromConnection:] in openFrameworksDebug.a(ofAVFoundationGrabber.o)
"_CMTimeMake", referenced from:
-[OSXVideoGrabber initCapture:capWidth:capHeight:] in openFrameworksDebug.a(ofAVFoundationGrabber.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -
v to see invocation)

Managed to get it working by adding the following frameworks to the project

  • CoreMedia
  • Accelerate
  • CoreVideo
  • AVFoundation
  • AVKit

like so

Im not sure why but it also complained about the system architecture, and I had to delete X86 here

I also set all the targets to 10.13 but im not sure if this was necessary
like so

hope this helps someone.

Posts: 1

Participants: 1

Read full topic

I use of and kinect to make a 3d build ,but the outcome is not good ,is something wrong in my setup function and draw function?thanks

$
0
0

@justyoi wrote:

#include "ofApp.h"
#include <opencv2\core\core.hpp>
#include <opencv2\imgproc\imgproc.hpp>
#include <opencv2\highgui\highgui.hpp>
#include "Kinect.h"

using namespace cv;


#define DEPTH_IMAGE_WIDTH 512
#define DEPTH_IMAGE_HEIGHT 424

#define POINT_CLOUD_SCALE 2
#define CLUSTER_DISTANCE 0.04f*POINT_CLOUD_SCALE
template<class Interface>      //函数模板
inline void SafeRelease(Interface *& pInterfaceToRelease)
{
	if (pInterfaceToRelease != NULL)
	{
		pInterfaceToRelease->Release();
		pInterfaceToRelease = NULL;
	}
}
//--------------------------------------------------------------
void ofApp::setup() {
	//Do some environment settings.
	ofSetVerticalSync(true);
	ofSetWindowShape(512, 424);
	ofBackground(0);

	//Turn on depth test for OpenGL.
	glEnable(GL_DEPTH_TEST);
	glDepthFunc(GL_LEQUAL);
	glShadeModel(GL_SMOOTH);

	//Put a camera in the scene.
	m_camera.setDistance(1);
	m_camera.setNearClip(0.1f);

	//Turn on the light.
	m_light.enable();

	//Allocate memory to store point cloud and normals.
	m_cloud_map.Resize(DEPTH_IMAGE_WIDTH, DEPTH_IMAGE_HEIGHT);
	//m_normal_map.Resize(DEPTH_IMAGE_WIDTH, DEPTH_IMAGE_HEIGHT);
	//Initialize Kinect.
	InitKinect();

}

void ofApp::exit()
{
	//Exit!! Clean all up.
	if (pSensor != NULL)
	{
		pSensor->Release();
		pSensor = NULL;
	}
}

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

	//Get a new depth frame from Kinect.
	//m_new_depth = UpdateDepthFrame();

	HRESULT hResult;
	IDepthFrame* pDepthFrame;
	int width = 512;
	int height = 424;
	/*int width = 320;
	int height = 240;*/
	unsigned int bufferSize = width * height * sizeof(unsigned short);
	Mat bufferMat(height, width, CV_16SC1);
	Mat depthMat(height, width, CV_8UC1);
	//Mat smothDepthMat(height, width, CV_8UC1);
	Mat smothDepthMat(height, width, CV_16SC1);
	hResult = pDepthReader->AcquireLatestFrame(&pDepthFrame);
	while (FAILED(hResult))
	{
		SafeRelease(pDepthFrame);
		SafeRelease(pDepthReader);
		hResult = pDepthSource->OpenReader(&pDepthReader);
		Sleep(60);
		if (SUCCEEDED(hResult))
		{
			hResult = pDepthReader->AcquireLatestFrame(&pDepthFrame);
		}
	}
	if (SUCCEEDED(hResult))
	{
		hResult = pDepthFrame->AccessUnderlyingBuffer(&bufferSize,
			reinterpret_cast<UINT16**>(&bufferMat.data));//中断处,m_depth_buffer为空
		//cout << "AccessUnderlyingBuffer successsful!!" << endl;

		//bufferMat.convertTo(depthMat, CV_8U, -255.0f / 4500.0f, 255.0f);
		//bufferMat.convertTo(depthMat, CV_8U);

	}
	if (!SUCCEEDED(hResult))
	{
		cout << "AccessUnderlyingBuffer error!!" << endl;
	}

	//Copy depth data to our own buffer.
	//Release frame.
	//SafeRelease(pDepthFrame);
	imshow("depth", bufferMat);
	medianBlur(bufferMat, smothDepthMat, 5);
	imshow("Smoothed Depth", smothDepthMat);
	SafeRelease(pDepthFrame);
	m_cloud_map.Create(smothDepthMat, 2500, POINT_CLOUD_SCALE);//1200为取样的最深距离1.2m

	//Calculate normals for every point in the cloud.
	//为点云中的每一个点计算法线
	//m_normal_map.Create(m_cloud_map, CLUSTER_DISTANCE);

	//Make normal vectors direct toward the camera!
	//使法向量指向相机
//	m_normal_map.FlipNormalsToVector(ofVec3f(0, 0, 1));


}

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

	if (!m_init_succeeded) {
		cout << "draw error!!" << endl; return;
	}
	m_camera.begin();
	//cout << "draw begin!!" << endl;

	ofVec3f* points_line = m_cloud_map.m_points;
	ofVec3f* points_next_line = points_line + DEPTH_IMAGE_WIDTH;
	ofVec3f* normals_line = m_normal_map.m_normals;

	bool mesh_break = true;

	for (int y = 0; y < 424 - 1; y++)
	{
		for (int x = 0; x < 512-1; x++)
		{
			ofVec3f& space_point1 = points_line[x];
			ofVec3f& space_point2 = points_next_line[x];

			if (abs(space_point1.z) <= FLT_EPSILON*POINT_CLOUD_SCALE ||
				abs(space_point2.z) <= FLT_EPSILON*POINT_CLOUD_SCALE)
			{
				if (!mesh_break)
				{
					//If there's no point here, the mesh should break.
					mesh_break = true;
					glEnd();
				}
				continue;
			}

			if (mesh_break)
			{
				//Start connecting points to form mesh.
				glBegin(GL_TRIANGLE_STRIP);
				mesh_break = false;
			}

			//Draw the point and set its normal.
			glColor3f(0.8, 0.8, 0.8);
		//	glNormal3f(normals_line[x].x, normals_line[x].y, normals_line[x].z);
			glVertex3f(space_point1.x, space_point1.y, space_point1.z);

			//Draw the point below the prior one to form a triangle.
			glColor3f(0.8, 0.8, 0.8);
			glVertex3f(space_point2.x, space_point2.y, space_point2.z);
		}
		if (!mesh_break)
		{
			//We break the mesh at the end of the line,.
			glEnd();
			mesh_break = true;
		}
		points_line += DEPTH_IMAGE_WIDTH;
		points_next_line += DEPTH_IMAGE_WIDTH;
		normals_line += DEPTH_IMAGE_WIDTH;
	}

	m_camera.end();

	//Draw frame rate for fun!
	ofSetColor(255);
	ofDrawBitmapString(ofToString(ofGetFrameRate()), 10, 20);

}
//--------------------------------------------------------------
void ofApp::keyPressed(int key) {

}

//--------------------------------------------------------------
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::windowResized(int w, int h) {

}

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

}

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

}
//初始化kinect,并开辟空间为存储深度图做准备
void ofApp::InitKinect()
{
	m_init_succeeded = false;
	pSensor = NULL;
	HRESULT hResult;
	hResult = GetDefaultKinectSensor(&pSensor);
	if (FAILED(hResult)) { cout << "No kinect sensor was found!!" << endl;
		goto Final;
	}
	hResult = pSensor->Open();
	if (FAILED(hResult))
	{cerr << "kinect sensor open error!!" << endl;
		goto Final;
	}
	//We only just need depth data.
	hResult = pSensor->get_DepthFrameSource(&pDepthSource);
	if (FAILED(hResult)) {cout << "create depthFrameSoure error!!" << endl;
		goto Final;
	}
	hResult = pDepthSource->OpenReader(&pDepthReader);
	if (FAILED(hResult)) {cout << "depthSource open Reader error!!" << endl;
		goto Final;
	}
	pDepthSource->Release();
	//Resolution of 320x240 is good enough to reconstruct a 3D model.
	//Allocate memory to store depth data.
	m_init_succeeded = true;
	m_depth_buffer = new USHORT[DEPTH_IMAGE_WIDTH*DEPTH_IMAGE_HEIGHT];
	Final:
		if (FAILED(hResult)){
			if (pSensor!= NULL){
				pSensor->Release();
				pSensor = NULL;
			}
		}

}
bool ofApp::UpdateDepthFrame()
{
	if (!m_init_succeeded)return false;
	HRESULT hResult;
	IDepthFrame* pDepthFrame ;
	int width = 512;
	int height = 424;
	/*int width = 320;
	int height = 240;*/
	unsigned int bufferSize = width * height * sizeof(unsigned short);
	Mat bufferMat(height, width, CV_16SC1);
	Mat depthMat(height, width, CV_8UC1);
	Mat smothDepthMat(height, width, CV_8UC1);
	hResult = pDepthReader->AcquireLatestFrame(&pDepthFrame);
	while (FAILED(hResult))
	{
		SafeRelease(pDepthFrame);
		SafeRelease(pDepthReader);
		hResult = pDepthSource->OpenReader(&pDepthReader);
		Sleep(60);
		if (SUCCEEDED(hResult))
		{
			hResult = pDepthReader->AcquireLatestFrame(&pDepthFrame);
		}
	}
	if (SUCCEEDED(hResult))
	{
		hResult = pDepthFrame->AccessUnderlyingBuffer(&bufferSize,
			reinterpret_cast<UINT16**>(&bufferMat.data));//中断处,m_depth_buffer为空
		cout << "AccessUnderlyingBuffer successsful!!" << endl;

			bufferMat.convertTo(depthMat, CV_8U, -255.0f / 4500.0f, 255.0f);

	}
	if (!SUCCEEDED(hResult))
	{
		cout << "AccessUnderlyingBuffer error!!" << endl;
	}

	//Copy depth data to our own buffer.
	//Release frame.
	//SafeRelease(pDepthFrame);
	imshow("depth", bufferMat);
	imshow("depth2", depthMat);
	medianBlur(depthMat, smothDepthMat, 5);
	imshow("Smoothed Depth", smothDepthMat);
	m_cloud_map.Create(depthMat, 1200, POINT_CLOUD_SCALE);

	//Calculate normals for every point in the cloud.
	//为点云中的每一个点计算法线
	m_normal_map.Create(m_cloud_map, CLUSTER_DISTANCE);

	//Make normal vectors direct toward the camera!
	//使法向量指向相机
	m_normal_map.FlipNormalsToVector(ofVec3f(0, 0, 1));
	SafeRelease(pDepthFrame);
	if (SUCCEEDED(hResult))return true;
	return false;
}

Posts: 1

Participants: 1

Read full topic

Raspberry Pi Poco error

$
0
0

@fresla wrote:

I just went to setup a fresh pi for OF. I get an error in the install dependencies that I cannot solve. I followed the steps from the setup guide for the RPI 2, however I am using an RPI 3.

http://openframeworks.cc/setup/raspberrypi/raspberry-pi-getting-started/

The whole readout from the installs scripts is here

https://pastebin.com/RM9z0GJy

But I am pretty sure this is the offending section

/    home/pi/openFrameworks/scripts/apothecary/build/poco/Crypto/obj/Linux/armv7l/debug_static/RSAKeyImpl.o
src/CipherImpl.cpp:80:21: error: field '_ctx' has incomplete type 'EVP_CIPHER_CTX {aka evp_cipher_ctx_st}'
   EVP_CIPHER_CTX    _ctx;
                     ^~~~
In file included from /usr/include/openssl/crypto.h:31:0,
                 from include/Poco/Crypto/OpenSSLInitializer.h:26,
                 from include/Poco/Crypto/CipherKeyImpl.h:24,
                 from include/Poco/Crypto/CipherKey.h:24,
                 from include/Poco/Crypto/CipherImpl.h:25,
                 from src/CipherImpl.cpp:17:
/usr/include/openssl/ossl_typ.h:90:16: note: forward declaration of 'EVP_CIPHER_CTX {aka struct evp_cipher_ctx_st}'
 typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX;
                ^~~~~~~~~~~~~~~~~
/home/pi/openFrameworks/scripts/apothecary/build/poco/build/rules/compile:37: recipe for target '/home/pi/openFrameworks/scripts/apothecary/build/poco/Crypto/obj/Linux/armv7l/debug_static/CipherImpl.o' failed
make[1]: *** [/home/pi/openFrameworks/scripts/apothecary/build/poco/Crypto/obj/Linux/armv7l/debug_static/CipherImpl.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make -C /home/pi/openFrameworks/scripts/apothecary/build/poco/MongoDB
make[1]: Entering directory '/home/pi/openFrameworks/scripts/apothecary/build/poco/MongoDB'
src/RSAKeyImpl.cpp: In member function 'Poco::Crypto::RSAKeyImpl::ByteVec Poco::Crypto::RSAKeyImpl::modulus() const':
src/RSAKeyImpl.cpp:210:31: error: invalid use of incomplete type 'RSA {aka struct rsa_st}'
  return convertToByteVec(_pRSA->n);
                               ^~
In file included from /usr/include/openssl/crypto.h:31:0,
                 from include/Poco/Crypto/OpenSSLInitializer.h:26,
                 from include/Poco/Crypto/RSAKeyImpl.h:24,
                 from src/RSAKeyImpl.cpp:17:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'RSA {aka struct rsa_st}'
 typedef struct rsa_st RSA;
                ^~~~~~
src/RSAKeyImpl.cpp: In member function 'Poco::Crypto::RSAKeyImpl::ByteVec Poco::Crypto::RSAKeyImpl::encryptionExponent() const':
src/RSAKeyImpl.cpp:216:31: error: invalid use of incomplete type 'RSA {aka struct rsa_st}'
  return convertToByteVec(_pRSA->e);
                               ^~
In file included from /usr/include/openssl/crypto.h:31:0,
                 from include/Poco/Crypto/OpenSSLInitializer.h:26,
                 from include/Poco/Crypto/RSAKeyImpl.h:24,
                 from src/RSAKeyImpl.cpp:17:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'RSA {aka struct rsa_st}'
 typedef struct rsa_st RSA;
                ^~~~~~
src/RSAKeyImpl.cpp: In member function 'Poco::Crypto::RSAKeyImpl::ByteVec Poco::Crypto::RSAKeyImpl::decryptionExponent() const':
src/RSAKeyImpl.cpp:222:31: error: invalid use of incomplete type 'RSA {aka struct rsa_st}'
  return convertToByteVec(_pRSA->d);
                               ^~
In file included from /usr/include/openssl/crypto.h:31:0,
                 from include/Poco/Crypto/OpenSSLInitializer.h:26,
                 from include/Poco/Crypto/RSAKeyImpl.h:24,
                 from src/RSAKeyImpl.cpp:17:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'RSA {aka struct rsa_st}'
 typedef struct rsa_st RSA;

If anyone knows how to solve this it would be great.

Cheers

Fred

Posts: 3

Participants: 2

Read full topic

Msys64\usr\include not in the include path

$
0
0

@lilive wrote:

Hi,
Using QtCreator on windows 7, I create a new project including ofxOsc.
The compilation fail:

of_v0.9.8_msys2_release\addons\ofxOsc\libs\oscpack\src\ip\posix\UdpSocket.cpp:43: erreur : netdb.h: No such file or directory
#include <netdb.h>

I find this file here C:\msys64\usr\include\netdb.h
But this folder is not in the included paths, as I can see in the compiler call:

C:/msys64/mingw32/bin/g++.exe
-m32
-O2
-pipe
-fexceptions
-mms-bitfields
-Wno-unused-parameter
"-std=gnu++14"
-DNDEBUG
-DUNICODE
-D_UNICODE
-DGCC_HAS_REGEX
-DPOCO_STATIC
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/openFrameworks
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/openFrameworks/.settings
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/openFrameworks/3d
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/openFrameworks/app
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/openFrameworks/communication
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/openFrameworks/events
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/openFrameworks/gl
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/openFrameworks/graphics
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/openFrameworks/math
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/openFrameworks/sound
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/openFrameworks/types
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/openFrameworks/utils
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/openFrameworks/video
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/fmodex/include
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/glfw/include
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/glfw/include/GLFW
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/glu/include
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/quicktime/include
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/rtAudio/include
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/tess2/include
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/utf8cpp/include
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/utf8cpp/include/utf8
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/videoInput/include
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/libs/poco/include
-IC:/msys64/mingw32/include/cairo
-IC:/msys64/mingw32/include/pixman-1
-IC:/msys64/mingw32/include
-IC:/msys64/mingw32/include/freetype2
-IC:/msys64/mingw32/include/libpng16
-IC:/msys64/mingw32/include/harfbuzz
-IC:/msys64/mingw32/include/glib-2.0
-IC:/msys64/mingw32/lib/glib-2.0/include
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/addons/ofxGui/src
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/addons/ofxOsc/src
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/addons/ofxOsc/libs/oscpack
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/addons/ofxOsc/libs/oscpack/src
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/addons/ofxOsc/libs/oscpack/src/ip
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/addons/ofxOsc/libs/oscpack/src/ip/posix
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/addons/ofxOsc/libs/oscpack/src/ip/win32
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/addons/ofxOsc/libs/oscpack/src/osc
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/addons/ofxXmlSettings/src
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/addons/ofxXmlSettings/libs
-IC:/msys64/home/devine/of_v0.9.8_msys2_release/apps/myApps/Julie/Player/src
-o C:/msys64/home/devine/of_v0.9.8_msys2_release/apps/myApps/Julie/build-Player-Desktop-Release/qtc_Desktop_b4451270-release/Player.qtc-Desktop-b4451270.71c00875/.obj/8c9ed3e3b5b976cd/UdpSocket.cpp.o
-c C:/msys64/home/devine/of_v0.9.8_msys2_release/addons/ofxOsc/libs/oscpack/src/ip/posix/UdpSocket.cpp

Does anybody know what I have to modify ?
Thank you.

Posts: 1

Participants: 1

Read full topic

Emscripten: compiling GPU error

$
0
0

@nvassalo wrote:

HI, I'm trying to run emscripten on Mac OS High SIerra and constantly get a error when trying to compile a project. No solution whatsoever so far in Emscripten forums. WOndering if anyone's been through this recently too?

 [11508:39171:1021/172917.283168:ERROR:browser_gpu_channel_host_factory.cc(103)]
 Failed to launch GPU process. missing function:
_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj
 -1
 -1

Posts: 1

Participants: 1

Read full topic

Ofxaddons server is down


ofImage::setFromPixels() causes crash on iOS

$
0
0

@cuinjune wrote:

Hi, I just figured out calling ofImage::setFromPixels() causes crash on iOS while it works fine on MacOS.

Here's my test code.

ofFbo fbo;
ofImage img;

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

    ofSetBackgroundColor(0);

    //allocate an image space
    img.allocate(ofGetWidth(), ofGetHeight(), OF_IMAGE_COLOR_ALPHA);

    //clear and allocate a fbo
    fbo.begin();
    ofClear(0,0,0,0);
    fbo.end();
    fbo.allocate(ofGetWidth(), ofGetHeight(), GL_RGBA);

    //draw an ellipse to the fbo
    fbo.begin();
    ofClear(0,0,0,0);
    ofSetColor(255);
    ofDrawEllipse(ofGetWidth()/2, ofGetHeight()/2, ofGetWidth(), ofGetHeight());
    fbo.end();

    //copy pixels from fbo to image
    ofPixels pixels;
    fbo.getTexture().readToPixels(pixels);
    img.setFromPixels(pixels);
}

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

}

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

    //draw the image
    img.draw(0, 0, ofGetWidth(), ofGetHeight());
}

And this is the result you will see if you run the code on MacOS.

However, if you run the same code on iOS, it crashes on startup with the following error.

It doesn't produce any error if I comment out img.setFromPixels(pixels);

Should I report this on github?
And Is there any other way to copy pixels from ofFbo to ofImage?
Thanks!

Posts: 12

Participants: 2

Read full topic

Visual Studio 2017 compiling problems

$
0
0

@Gui96 wrote:

Hi there !
I'm trying to compile the polygonExample with a freshly new install of Visual Studio 2017, installed as follows:

When compiling i got loads of erros like this:


Sorry for the french version but it generally says that a caracter is missing or is unexpected in a source file

Can anyone help me ?

Posts: 7

Participants: 3

Read full topic

ofxMSATensorflow addon is not working in Ubuntu 16.04 i.e link errors (undefined reference errors)

$
0
0

@saael_ayaz wrote:

Hi there folks,

I have been working with this i.e ofxMSATensorflow addon, when whenever I try to make any of the example, example-basic for instance I end up with compilation (link) error. This is basically a addon for Google's tensorflow. But apparently I am not able to try any of the examples given in the addon by the creator. I tried various things (can't mention everything here), but nothing seem to work.

Here is the screenshot of the errors I am getting:

Side_Note: We are to link .so library, it's pretty painful to compile tensorflow. So I used NOPT pre-compiled library for the addon by creator. It was release 1. May be that has something to do with issue.

Thanks for reading this atleast :wink: Bunches of thanks in advance if you can help me out too with this.

Posts: 1

Participants: 1

Read full topic

Hang in ofAVFoundationVideoPlayer

$
0
0

@chaosct wrote:

Hi there!

I am having ocasional hangs (like 3 times a day) in an application using OF 0.9.8. The traces show that the hang is located in -[ofAVFoundationVideoPlayer seekToTime:withTolerance:] coming from -[ofAVFoundationVideoPlayer playerItemDidReachEnd].

I can't reproduce myself the hang, but someone else using the app is, so I have some hang reports from him. The app can use a high number of video players, only few of them simultaneously playing.

Here a stacktrace (i replaced the relevant parts at the end with real symbols I got with atos ). The ones at the beginning is just ofApp going to pollEvents().

Heaviest stack for the main thread of the target process:
  10  start + 1 (libdyld.dylib + 21077) [0x7fffe1d04255]
  10  main + 526 (ProtoPixel + 6002142) [0x10806e5de]
  10  ??? (<9B56096C-857F-3177-A053-D57F65C74064> + 670678) [0x1085e4bd6]
  10  ??? (<9B56096C-857F-3177-A053-D57F65C74064> + 670949) [0x1085e4ce5]
  10  ??? (<9B56096C-857F-3177-A053-D57F65C74064> + 671325) [0x1085e4e5d]
  10  ??? (<9B56096C-857F-3177-A053-D57F65C74064> + 729000) [0x1085f2fa8]
  10  ??? (<9B56096C-857F-3177-A053-D57F65C74064> + 731954) [0x1085f3b32]
  10  std::__1::function<void ()>::operator()() const + 126 (ProtoPixel + 3759598) [0x107e4adee]
  10  ??? (<9B56096C-857F-3177-A053-D57F65C74064> + 684057) [0x1085e8019]
  10  ??? (<9B56096C-857F-3177-A053-D57F65C74064> + 684330) [0x1085e812a]
  10  ??? (<9B56096C-857F-3177-A053-D57F65C74064> + 678697) [0x1085e6b29]
  10  ??? (<9B56096C-857F-3177-A053-D57F65C74064> + 8307189) [0x108d2d1f5]
  10  -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1637 (AppKit + 7698667) [0x7fffcb06e8eb]
  10  _DPSNextEvent + 1093 (AppKit + 292341) [0x7fffca95e5f5]
  10  _BlockUntilNextEventMatchingListInModeWithFilter + 71 (HIToolbox + 199638) [0x7fffcc267bd6]
  10  ReceiveNextEventCommon + 184 (HIToolbox + 199849) [0x7fffcc267ca9]
  10  RunCurrentEventLoopInMode + 240 (HIToolbox + 200556) [0x7fffcc267f6c]
  10  CFRunLoopRunSpecific + 420 (CoreFoundation + 554420) [0x7fffcccc65b4]
  10  __CFRunLoopRun + 2205 (CoreFoundation + 557229) [0x7fffcccc70ad]
  10  __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 (CoreFoundation + 814217) [0x7fffccd05c89]
  10  _dispatch_main_queue_callback_4CF + 925 (libdispatch.dylib + 64435) [0x7fffe1cdbbb3]
  10  _dispatch_client_callout + 8 (libdispatch.dylib + 8488) [0x7fffe1cce128]
  10  _dispatch_call_block_and_release + 12 (libdispatch.dylib + 44895) [0x7fffe1cd6f5f]
  10  __avplayeritem_fpItemNotificationCallback_block_invoke + 4981 (AVFoundation + 566207) [0x7fffc96d13bf]
  10  _CFXNotificationPost + 604 (CoreFoundation + 367068) [0x7fffccc989dc]
  10  -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1827 (CoreFoundation + 371107) [0x7fffccc999a3]
  10  ___CFXNotificationPost_block_invoke + 50 (CoreFoundation + 643746) [0x7fffcccdc2a2]
  10  _CFXRegistrationPost + 427 (CoreFoundation + 644411) [0x7fffcccdc53b]
  10  __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12 (CoreFoundation + 644668) [0x7fffcccdc63c]
  10  -[ofAVFoundationVideoPlayer playerItemDidReachEnd] (in libopenFrameworks.dylib) + 115 [0x10893db63]
  10  -[ofAVFoundationVideoPlayer seekToStart] (in libopenFrameworks.dylib) + 150 [0x10893f5e6]
  10  -[ofAVFoundationVideoPlayer seekToTime:withTolerance:] (in libopenFrameworks.dylib) + 170 [0x10893f7ea]
  10  -[AVAssetReader cancelReading] + 284 (AVFoundation + 106231) [0x7fffc9660ef7]
  10  -[AVAssetReader _transitionToStatus:failureError:] + 359 (AVFoundation + 102368) [0x7fffc965ffe0]
  10  -[AVAssetReader _tearDownFigAssetReader] + 79 (AVFoundation + 603057) [0x7fffc96da3b1]
  10  FigMetadataReaderCreateForAVCHDMetadata + 7310 (MediaToolbox + 3504986) [0x7fffd01afb5a]
  10  FigMetadataReaderCreateForAVCHDMetadata + 7884 (MediaToolbox + 3505560) [0x7fffd01afd98]
  10  FigVideoRenderPipelineCreateWithVisualContext + 458 (MediaToolbox + 1278150) [0x7fffcff900c6]
  10  VMC2Invalidate + 103 (MediaToolbox + 420958) [0x7fffcfebec5e]
  10  VMC2WaitUntilCompletelyStopped + 159 (MediaToolbox + 421755) [0x7fffcfebef7b]
  10  VTDecompressionSessionInvalidate + 73 (VideoToolbox + 33958) [0x7fffd36ee4a6]
  10  ??? (VideoToolbox + 688169) [0x7fffd378e029]
  10  FigSemaphoreWaitRelative + 160 (CoreMedia + 273156) [0x7fffcda37b04]
  10  WaitOnConditionTimed + 85 (CoreMedia + 275164) [0x7fffcda382dc]
  10  __psynch_cvwait + 10 (libsystem_kernel.dylib + 105610) [0x7fffe1e32c8a]
 *10  psynch_cvcontinue + 0 (pthread + 39170) [0xffffff7f810a0902]

This seems to me of a weird race condition problem with videos when stoping? The only related thing I found was this topic but id didn't seem to lead anywhere.

Any Idea on how to track this? I might have to change the video player if I can't solve this issue... Which seems very complex in OSX :stuck_out_tongue:

Posts: 1

Participants: 1

Read full topic

ofVideoplayer - movies have green/grey stripe on edge

$
0
0

@steeley wrote:

Playing videos on RPI3 most video formats/containers/codecs I have tried do play but they have a grey/green stripe down the right hand side. All play perfectly in OSX, but not on RPI.

Some movies do work ok but there is no obvious reason where the difference is. In fact I had 2 which are exactly the same format size etc - one is ok, but one has the stripes!

Anyone got a solution/workaround?

I may use OMXplayer addon but it has its own issues and I am porting an existing app. from OS X
and wanted to avoid a total rewrite and new issues.

Posts: 1

Participants: 1

Read full topic

ofxPanel.setup("title") doesn't display panel title

$
0
0

@noine wrote:

As the title says, ofxPanel.setup("title") doesn't display panel title.
According to this issue it should've been fixed.

I am using the same test code as in the issue: examples/gui/guiExample/ofApp.cpp, line 11:

gui.setup("test"); // most of the time you don't need a name
gui.setup(); // most of the time you don't need a name

I tested in v0.9.8 on Windows with Visual Studio 2017.

Posts: 1

Participants: 1

Read full topic

Project Generator will not import

$
0
0

@rjx-ray wrote:

I'm having a problem with projectGenerator.exe refusing to import any project.
I'm using of_v0.9.8_vs_release with VS2015 under Windows 10

It shows me the folder selection window, I choose the folder and it comes back without any of the addons imported.

It does this for any of my projects, so its not related to a particular project.
I have it on two different machines and its the same on both.
I have an old installation of of_v0.9.7_vs_release and it works OK on that.
I'm pretty sure I have used it without any problem since updating to v0.9.8 several months ago

Anyone have any ideas what might be happening or how I could debug it?

Posts: 1

Participants: 1

Read full topic


Ofxkinect drivers problem

$
0
0

@Julian_Puppo wrote:

So i´ve been trying to use Ofxkinect addon to use the kinect device.

I was trying to install the drivers following this guide :

but when I point out the driver folder I got this:

And I select the individual .inf file I get this :

At first I was getting the can´t find libus0.dll file. So i´ve copyed the "libus0.dll" and "libusb0.sys" to the following folders :

amd64\libusb0.dll
Windows\system32\drivers\
Windows\syswow64\

Now when I try to start the app i get this message :

The code is the one from the examples.

My system info is :

AMD Ryzen 5 1600 Six-Core Processor 3.20hz
16.GB RAM
Windows 10 64-bit operating system.

Openframeworks version : of_v0.9.8
Visual studio 2017

Any ideas or anything that I can try?

Posts: 1

Participants: 1

Read full topic

Difference between ofPolyline::getCentroid2D() and ofMesh::getCentroid()

$
0
0

@cuinjune wrote:

Hi, I just found out the two functions return different values.
Shouldn't they do the same thing in 2d space?

Here's my test code.

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

    ofPath path;
    path.moveTo(100, 100);
    path.lineTo(200, 100);
    path.lineTo(200, 200);
    path.lineTo(100, 200);
    path.lineTo(150, 150);
    path.close();

    polyline = path.getOutline()[0];
    mesh = path.getTessellation();

    cout << polyline.getCentroid2D() << endl;
    cout << mesh.getCentroid() << endl;
}

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

}

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

    polyline.draw();
    ofTranslate(200, 0);
    mesh.draw();
}

If you run the code, it outputs

161.111, 150, 0
150, 150, 0

The shapes look exactly the same though.

Why does the two functions return different values and which one is correct?

Thanks in advance!

Posts: 1

Participants: 1

Read full topic

ofPolyline::getArea() returns negative value

$
0
0

@cuinjune wrote:

I just figured out calling ofPolyline::getArea() returns a negative value if the polyline is set in CCW order.

Here's my test code.

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

    polyline.addVertex(0, -58);
    polyline.addVertex(-50, 29);
    polyline.addVertex(50, 29);
    polyline.close();

    cout << polyline.getArea() << endl;
}

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

}

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

    ofTranslate(ofGetWidth()/2, ofGetHeight()/2);
    polyline.draw();
}

Result:

-4350

Shouldn't it always return positive values or is it intensionally designed this way?

Posts: 1

Participants: 1

Read full topic

com.apple.audio.IOThread.client(8) EXC BAD ACCESS

ofSetFullscreen() automatically clears the screen once?

$
0
0

@cuinjune wrote:

If I disable automatic background clearing by calling ofSetBackgroundAuto(false);, and then if I call ofSetFullscreen(true); to enter the fullscreen mode, it seems to clear out the previous drawings.

Here's my simple test code.

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

    ofSetBackgroundAuto(false);
}

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

}

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

    ofTranslate(ofGetWidth()/2, ofGetHeight()/2);
    ofRotateZ(ofGetFrameNum()/2);
    ofTranslate(ofGetHeight()/4, 0);
    ofDrawCircle(0, 0, ofGetHeight()/40);
}

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

    if (key == '1')
        ofSetFullscreen(true);
    else if (key == '2')
        ofSetFullscreen(false);
}

If you run the program and press '1' to enter the fullscreen mode, you will see the previous drawings getting cleared.

Is this natural behaviour or could this be a bug?
Thanks in advance!

Posts: 2

Participants: 2

Read full topic

Viewing all 636 articles
Browse latest View live