Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio 2012 support #1651

Closed
bilderbuchi opened this issue Oct 8, 2012 · 12 comments
Closed

Visual Studio 2012 support #1651

bilderbuchi opened this issue Oct 8, 2012 · 12 comments

Comments

@bilderbuchi
Copy link
Member

Make sure OF supports VS2012. @ofZach would like to see this in 0073.
Relevant issue: #1544

@ofTheo
Copy link
Member

ofTheo commented Dec 14, 2012

Would be great to get this sorted.
Seems like it only really works if you have 2010 also installed, which doesn't seem like a good solution.
http://forum.openframeworks.cc/index.php/topic,10776.msg50893.html#msg50893

@danomatika
Copy link
Contributor

Also see this thread: http://forum.openframeworks.cc/index.php/topic,10758.new.html

I got OF 0073 to compile in VS2012 by:

  • replacing std::tr1 with std:: on lines 147 & 148 in ofTypes.h
  • adding #include <functional> to line 315 in ofConstants.h (doesn't matter where it goes in the file ...)

OF won't link however as the libs were built in VS2010 ... stupid Windows build system. All poco libs & qtmlClient throw link errors related to wrong compiler version.

@danomatika
Copy link
Contributor

Ok, I just downloaded and built Poco in VS2012 and found a version of qtmlClient built in VS2012 here. With the new libs and the aforementioned source changes, the OF 0073 windows VS zip release builds and runs fine.

I'm on a new Windows machine and haven't installed git etc yet, but I can try and make a PR tomorrow.

@ofZach
Copy link
Contributor

ofZach commented Jan 14, 2013

sweet ! is the poco the newest version or did you get the version which matches the one we have in OF? it probably makes good sense to update to the latest poco as we update these libs, but I get worried about headers getting misaligned (as they got with fmod, where the lib was updated but the headers were not).

@danomatika
Copy link
Contributor

I just downloaded whatever was on the Poco frontpage. Also, I don't think it makes sense to do a quick PR since the real fix is to put these libs into a vs2012 lib folder and update the PG to support that.

I can at least confirm the changes do work and OF can be built and used in VS2012 in all it's flat, minimal boringness.

@arturoc
Copy link
Member

arturoc commented Jan 14, 2013

in the rpi branch, we've had problems with the latest version of poco in examples that use ofThread (having the binaries with the last version and the headers with the current one we use, 1.4.3p)

an option would be to update poco to the latest version for all platforms

@elliotwoods
Copy link
Contributor

how long would we intend on supporting both vs2010 and vs2012 for?
until 2014? ;)
consider ditching vs2010 on next 007x if all works?
or do we need to keep it around for a while longer since everybody's using 3rd party lib's?

@markmarijnissen
Copy link

This is reported as closed, yet the latest download from OpenFrameworks.cc still has these issues. What is up with that? Should I install openframeworks directly from github?

@underdoeg
Copy link
Contributor

@markmarijnissen What version did you try from the downloads page? The official release is not compatible yet. But the nightly might work. http://www.openframeworks.cc/nightlybuilds.html

@markmarijnissen
Copy link

0.7.4; the visual-studio 2010 version (there is no 2012 version).

I tried the nightly build, but they lack the project/solution files so I can't open them?

@bilderbuchi
Copy link
Member Author

you should be able to generate the project files for the examples with the project generator in /apps/devApps/projectGenerator. Attention, don't take the one you may find in /apps/projectGenerator, that one is the user-visible, simpler one, which can't generate all example projects (yet).

@underdoeg
Copy link
Contributor

I checked the nightly download and it currently checks out arturos programmable gl branch: 5564ad9

This branch is actually almost ready for vs2012 the only thing missing is the glfw stuff. @arturoc why is that and do you need a PR for vs support? I have the compiled glfw libs here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants