openFrameworks | openFrameworks is a community-developed cross platform toolkit for creative coding in C++ | Video Utils library
kandi X-RAY | openFrameworks Summary
kandi X-RAY | openFrameworks Summary
openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of openFrameworks
openFrameworks Key Features
openFrameworks Examples and Code Snippets
Community Discussions
Trending Discussions on openFrameworks
QUESTION
I'm building an openFrameworks project (using the project generator which generates VS2017 solutions) but am receiving the "build tools for v142 cannot be found" error. Answers across Stack Overflow say to go into Project > Properties > Configuration Properties > General and set Platform Toolset to v141 in order to downgrade, however my project fails to build with the same error even after doing this. See this screenshot for details:
Here's what I installed from the installer:
I do have VS 2019 installed as well, and I cannot uninstall it.
How can I resolve this error and build on VS 2017?
...ANSWER
Answered 2021-Jan-07 at 00:40As @dxiv mentioned in the comments: "The error references one project, but the Property Pages refer to another." Every project in the solution (there should be two for OF projects, yourProjectName and openframeworksLib) needs to be individually downgraded. Instead of going to Project > Properties via the top toolbar, right click on each project in the Solution Explorer and get to the Properties menu for each of them from there.
And I just realized the top toolbar's Project menu item coincides with whatever item you currently have selected from the Solution explorer.
QUESTION
I downloaded the MinGW Installation Manager and installed most of the packages available there in trying to find the 'devpropdef.h' file.
This file is needed by the openframeworks library and without it, I cannot compile the most basic project.
This file was listed by one of the contributors in this thread, but I don't know what happened to it.
Does anyone know which package it is in from the MinGW installation manager? Or how I can get my hands on it?
...ANSWER
Answered 2020-Dec-10 at 20:06The http://winlibs.com/ build of GCC/MinGW-w64 has a very recent version of MinGW-w64 which contains devpropdef.h
.
QUESTION
cc1plus: error: bad value (‘tigerlake’) for ‘-march=’ switch
cc1plus: note: valid arguments to ‘-march=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 btver1 btver2 native
cc1plus: error: bad value (‘tigerlake’) for ‘-mtune=’ switch
cc1plus: note: valid arguments to ‘-mtune=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm intel x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 btver1 btver2 generic native
make[2]: *** [makefileCommon/compile.core.mk:240: /home/josue/Documents/of_v0.11.0_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Release/libs/openFrameworks/events/ofEvents.o] Error 1
make[1]: *** [makefileCommon/compile.core.mk:204: Release] Error 2
make[1]: Leaving directory '/home/josue/Documents/of_v0.11.0_linux64gcc6_release/libs/openFrameworksCompiled/project'
make: *** [/home/josue/Documents/of_v0.11.0_linux64gcc6_release/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:125: Release] Error 2
...ANSWER
Answered 2020-Oct-23 at 15:56Solved installing g++-10 and gcc-10 using:
QUESTION
I'm making a small generative video layering software using openframeworks and c++. To this effect I have one main class, one layer class and a lot of different types of video/simulations class. I need to make it so that when I press a key, a different simulation is loaded.
I have two questions :
- How can I access a list of all my simulation classes ?
- Following up, how can I feed one choice from this list into a function that can take any type of object and initiate it ?
I made a drawing instead of using to code brackets to have all 3 blocks on the same horizontal level (actual code is underneath).
Here's the main.cpp and the layer.cpp in code for clarity :
...ANSWER
Answered 2020-May-14 at 14:05Best method to do this is to use something called the factory pattern.
Basically, define a function that takes an argument of some defined type that can be used to figure out what kind of simulation you want, and then create that simulation and return a pointer to it.
A simple version of it might look like this:
QUESTION
Hi I'm trying to implement the Diffusion Limited Aggregation algorithm in c++ inside openframeworks. I have a class where I define a two vectors, called walkers and fixed, respectively containing the dead and living/moving and not moving particles. My update function goes like this :
...ANSWER
Answered 2020-May-13 at 12:15It's this loop
QUESTION
I am trying to include the Boost Library in my OpenFrameworks project, in particular it is
When I add the boost root directory to the Additional Include Directories
of a new project, I see the error LNK1104 cannot open file 'libboost_filesystem-vc141-mt-gd-x32-1_72.lib'
, although I don't even need the filesystem library.
However, when I added the boost root directory to the Additional Include Directories
of a freshly create c++ console project, the error does not show, and I can make use of the library without problems.
Runtime Library is /MDd.
What might cause this problem? A broken build of boost?
One
...ANSWER
Answered 2020-Mar-03 at 14:33Taken from the comments to the question. Although this is unusual it could be that a header in one of the dependencies of your project has the same name as a header in the filesystem library. And since you put boost first in the Additional Include Directories
the boost header was included instead of a header from a different library. By default with Visual Studio
boost automatically inserts link commands using a #pragma comment(lib, libname)
so including this header will cause a link dependency.
A solution to try in this case is to move boost to the end of the Additional Include Directories
so when the compiler searches for the header it will find the one from the previous dependency first.
QUESTION
I was reading up on "openFrameworks" and I found a peace of code where I fail to understand the meaning of a colon, i.e. directly behind ofApp
...ANSWER
Answered 2020-Feb-12 at 13:59It's a typo. :
should be ::
. You can see it being correct in the fourth code block of the linked examples, while the previous two were, presumably, copy-pasted with the same error.
It may, however, be confused as a label, but a label cannot be placed in such contexts.
QUESTION
I'm a new learner of C++ and just downloaded Visual Studio 2017 last week.
I'm trying to run a simple function on Visual Studio but can't seem to get Debugging to run. When I pressed on the green arrow for debugging, Attach to Process appeared. There is no MSVSMON.EXE option under the Connection Target: [my laptop id] and no other option when I switched Connection type to Default. I couldn't find an option for MSVSMON.EXE to be downloaded separately online. Attach to Process Window In Debug options, it showed that Start Debugging is grey out. Solution Configurations and Solution Platforms are empty and can't be changed. Debug Window I'm using Visual Studio 2017 to learn OpenFrameworks but ran into the trouble above. I tried running the same code in Visual Studio Code and it debugged like normal but I need the 2017 version for a class. The example I'm running in the .cpp file is the followings:
...ANSWER
Answered 2020-Feb-10 at 15:10I tried running the same code in Visual Studio Code and it debugged like normal but I need the 2017 version for a class.
First, please check whether you have opened a solution or a project rather than a cpp
file. In general, all the debug configuration info are stored in the xxxx.vcxproj
file and .vs hidden folder which belog to the whole project.
Solution
First, try to click File-->Open-->Porject/Solution to open .sln
or xxx.vcxproj
file. Besides, right-click on the project which you want to debug to click Set as StartUp Project.
Note: each project can only has one main cpp file. Or you can just add these codes into the main cpp file directly.
If the steps above did not work, please try these:
1) exclude this project from your solution(remove it) and then build your solution without it.
2) you should again add your project into the current solution and then build your solution and set it as Start Up Application.
In addition, if you cretae the OpenFrameworks
project with other third party tool to generate it and then open the project in VS2017, I think you cannot do this. Incompatibilities and other issues can arise because the project itself generated by other tools is not the same as the project structure created by VS2017.
So try these steps to create OpenFrameworks projects with VS2017:
1) install openFrameworks extension on Tools
-->Extension and Updates
.
2) After that, when you create the openFrameworks project in VS2017, do not forget to add the folder path of of_v0.11.0_vs2017_release
which is downloaded from this link.
You can follow this guidance to get more detailed steps.
3) After that, you can try to add these codes in main.cpp
file.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install openFrameworks
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page