Greetings,
We’re working on an official OF release for VS 2010 but in the meantime, since there’s now a free version of VS2010, it makes sense to explain how to compile the version of OF that’s online (VS2008) in VS2010. There are a few steps and things that can trip you up.
First, download these libraries:
http://www.openframeworks.cc/files/vs20-…-vs2010.zip
they are poco libraries compiled for vs2010. You will need to swap them for the libraries that have the same name in libs/poco/lib.
Next, there are few things to do when you import a project. There are a few things that I’d thought I’d point out about setting up VS2010 to work nicer.
[attachment=4:3b7seroa]a.png[/attachment:3b7seroa]
**(a) setup expert view (optional) **
First I recommend using the expert view – this gives the menu more options, like cleaning the project, etc.
[attachment=3:3b7seroa]b.png[/attachment:3b7seroa]
(b) add run without debugging to the toolbar (optional)
in addition, I’d add the “run without debugging” to your toolbar. This is an important button since if you compile in release you don’t always want to debug.
[attachment=2:3b7seroa]c.png[/attachment:3b7seroa]
(c) open a vs 2008 solution, it will ask you to convert it.
let’s do it! Since the project that builds openframeworks (the samples are dependent on the OF library project) is part of each solution it may access if you want to convert again, you can safely say no.
[attachment=1:3b7seroa]d.png[/attachment:3b7seroa]
(d) set VS to run the app from the right directory.
right click the project (on the left side, in the solution viewer) and click properties and bring up the properties dialog. make sure you are altering for *both* release and debug here. Add the /bin as pictured here, ie,
Properties > Configuration Profiles > debugging > Working Directory
should now say
$(ProjectDir)/bin
[attachment=0:3b7seroa]e.png[/attachment:3b7seroa]
(e) add the right name for the debug target
now, in the same properties window, make sure you are editing for only debug here (see the top left of that window, “configuration”). Add _debug to the TargetName,
Properties > Configuration Profiles > General > Target Name
should now say:
$(ProjectName)_debug
I know this is kind of janky : ) – we just wanted to throw up some instructions on how to do this until we post up an official vs 2010 release which should be **very** soon.
take care,
zach