RSS

Category Archives: openFrameworks

fatal error LNK1104: cannot open file ‘PocoFoundation.lib’


When using openframeworks and building the application, occasionally you may encounter the below error:

fatal error LNK1104: cannot open file ‘PocoFoundation.lib’

Searching the internet, and there seems to be no satisfactory solutions. While there is a simple trick:

  1. Right click the project in Visual Studio
  2. Select Properties
  3. Go to Linker Tab
  4. In the Ignore Specific Libraries, type in “PocoFoundations.lib”
  5. Rebuild, done.

image

Advertisements
 
2 Comments

Posted by on June 14, 2012 in openFrameworks, Programming

 

Tags: ,

ofEnableAlphaBlending()/ofSetVerticalSync(true) results in program crashing: access violation and troubleshooting


In a recent project using openFramework, the program crashes on startup. Debugging into the program shows that the program halts when the functions ofEnableAlphaBlending() or ofSetVerticalSync(true); is called. A Google searching shows that this is most probably due to the fact that OpenGL driver of the display adapter is too low, e.g. OpenGL 1.1 is used, whereas OpenGL 1.3 or above is expected to make the program run smoothly.

To trouble shoot this, update the display driver to support OpenGL 1.3 or above:

Read the rest of this entry »

 
Leave a comment

Posted by on December 17, 2011 in openFrameworks

 

openFramework in VisualStudio: “error C2001: newline in constant” or “IntelliSense: too many characters in character constant” error


When compiling the examples in the openFramework, if you encounter the below errors:

  • “IntelliSense: too many characters in character constant    …icons.h” or
  • error C2001: newline in constant (see below Fig.1)

imageFig.1

Read the rest of this entry »

 
Leave a comment

Posted by on December 4, 2011 in openFrameworks

 

openFramework in VisualStudio: “error C2001: newline in constant” or “IntelliSense: too many characters in character constant” error


When compiling the examples in the openFramework, if you encounter the below errors:

  • “IntelliSense: too many characters in character constant    …icons.h” or
  • error C2001: newline in constant (see below Fig.1)

imageFig.1

Read the rest of this entry »

 
Leave a comment

Posted by on December 4, 2011 in openFrameworks

 

Learning openFramework from a MFC-er’s perspective


Recently I began learning openFramework and ever talked with my colleagues about how to adapt to it as quickly as possible. As a programmer who started programming along the path C –> C++/MFC –> .Net/C#, I found the below analogy is quite useful to digest and use the framework.

ofBaseApp CWinApp
setup() InitInstance()
draw() OnDraw()
exit ExitInstance()

If you are willing to accept these new words/expressions, it will be trivial to get started with openFramework! I will update this as my project progresses.

Happy coding!

 
Leave a comment

Posted by on December 4, 2011 in openFrameworks

 

Tags: , ,

Learning openFramework from a MFC-er’s perspective


Recently I began learning openFramework and ever talked with my colleagues about how to adapt to it as quickly as possible. As a programmer who started programming along the path C –> C++/MFC –> .Net/C#, I found the below analogy is quite useful to digest and use the framework.

ofBaseApp CWinApp
setup() InitInstance()
draw() OnDraw()
exit ExitInstance()

If you are willing to accept these new words/expressions, it will be trivial to get started with openFramework! I will update this as my project progresses.

Happy coding!

 
Leave a comment

Posted by on December 4, 2011 in openFrameworks

 

Tags: , ,