Best Build Environment For Juce on Windows


#1

Until now I have always used VisualStudio 2005 on an old XP machine for project compilation to make 100% sure my applications will be backwards compatible for XP users. My fear was, that if I built with a newer VC version on Windows 7, I would be required to add lots of runtime libs, DLLs, .NET frameworks, and whatnot to my installer, just to get the application running on XP. Or even worst: Need to build different targets and installers for XP and Vista/Win7, as there are a couple audio features that were introduced after XP.

Now that I need to make the move to 64 bit, I am pretty sure this paranoia is unnecessary and I wonder what build environment and configuration other Juce developers are using if they want to ensure (32 bit) backwards compatibility with XP.

Should I move to the latest VisualStudio and compile on Win7? (I think for 64 bit targets I need to do so anyway)

How are you ensuring XP backwards compatibility?

I would be very interested in learning about your build setups and experiences! Thanks!


#2

[quote=“ans”]Should I move to the latest VisualStudio and compile on Win7? (I think for 64 bit targets I need to do so anyway)

How are you ensuring XP backwards compatibility? [/quote]

still on VS2005 + VisualAssist on a 64-bit Win7. Stuff built there runs fine on XP, and you can build 64 bit - just make sure to enable the 64-bit component option in the visual studio installer (or is it a separate package? I don’t remember)


#3

Thanks, sounds motivating, although I could not yet seem to get it 2005 working on Windows 7. This “Run as Administrator” thing, only working from the context menu, feels very shaky. There seem to be serious compatibility issues. I also suspect the old PlatformSDK might no longer be optimal.

I am inclined to order the 2010 studio, but it is so bloated with loads of features and weird web and whatnot proprietary platforms that I don’t want. I’m less concerned about the wasted money, it’s just that I don’t want my products to depend on all that bloat.

Those of you who are on 2010 already, how does it work for you? Do you have any issues deploying to XP?


#4

Just get the free version of VC++ 2010 - if you’re doing c++ you don’t need all the other crap that they put in the ‘pro’ version.


#5

You can do 64bits binary with the VC2010 express version ?


#6

AFAIK it’s the same compiler, but I have to admit that I’ve not checked.


#7

After a quick Google search, it seems possible but not out of the box

http://social.msdn.microsoft.com/Forums/en-GB/vssetup/thread/4386e9db-61bf-418e-940e-b561c2cbbebf


#8

Thanks for the tips.

I downloaded and installed VisualStudio C++ 2010 Express and must say, on Win7 it’s a vastly better experience than 2005. The Introjucer project exporter does a good job for 2010 and, after setting a few user-level defaults in VC, my projects compile just fine! :smiley:

A quick check on a few XP virtual machines that I am keeping around for testing does not show any “Can not find DLL in hell” errors or anything when I start my apps. Wow.

Although I could not find a 100% virgin XP install to test on, I am confident that a Win32 Juce project built with 2010 on Win7 does not have any dependencies beyond what’s available in a default XP install.

Cool. I am pretty sure this is thanks to Jules’ clean and careful library design.

Will test now if I can get a 64 bit build and report back.


#9

Hah! Building for x64 with Visual C++ 2010 Express works exactly as described in the above linked article.

There’s one extra thing, though: A “Platform Toolset” setting on the user-level configuration pages (“Properties Manager”), which defaults to “v100” and needs to be changed to name the SDK 7.1.

Hurray! :smiley:


#10

Did you installed the vs2010 sp1 successfully, maybe this is not a good idea?

http://social.msdn.microsoft.com/Forums/br/vcgeneral/thread/a724a367-1ed0-4109-a7af-3f4c51c8cab7


#11

If you use the latest introjucer, it should be able to generate 64-bit projects that work just fine in VS2010.


#12

Not always! I installed VS2010 EXPRESS and SP1 and learned the hard way :evil:
Trying to repair my SDK 7.1 now :roll:

WARNING: DO NOT INSTALL VS2010 SP1 if you want to use the SDK 7.1 WITH EXPRESS EDITION!

http://msdn.microsoft.com/en-us/vstudio/gg697159/

It would be great to also support x64 in VS2008, because it works flawless here…


#13

I have no issues with VS 2010 Express, SP1 and 7.1 SDK. It just works, for 64 bit too.

You need to install in exactly the following order:

  1. VS 2010 Express (iso)
  2. GRMSDKX_EN_DVD (iso)
  3. VC-Compiler-KB2519277.exe
  4. VS2010SP1dvd1.iso

#14

Thanks for your feedback! I used the webinstallers and a different order (installed the framework before VC 2010)
The “repair” manual from MS seems to work (but as the forum guy says, you have to reinstall the C++ Compilers from the SDK install-dialog , not repair the whole SDK (I have done first),
i will try to reinstall the SP1 now again - and fiddle here and there … will give a feedback…