Menu ▾ ▴

#79 Visual Studio 2012 Solution supporting batch builds

None
closed
None
5
2015-03-15
2012-10-10
Anonymous
No

The attached archive contains a set of solution and project files for Visual Studio 2012. However, it also changes three things about how the compile is done.

Firstly, the intermediate directories are changed from Release, Debug, x64\Release and x64\Debug to $(Platform)\$(Configuration); so, Win32\Release, x64\Debug, etc. This is done to normalise where stuff goes.

Secondly, the output files are stored in Dist\$(Platform)\$(Configuration). This makes it possible to perform batch builds of the project for multiple platforms (which is the situation I am in). Just "select everything" in the batch build screen and off you go.

Finally, the debug libraries no longer have a 'd' on the end of the name. The reason for this is that it makes it impossible to configure Visual Studio projects using FreeImage uniformly; the Debug configuration has to be configured separately to the Release configuration. Combine this with lots of other libraries, and it quickly becomes a complete mess. This allows other projects to use FreeImage more easily.

I should note that the project files attached are what you get if you load the 2008 solution in Visual Studio 2012 and then perform the changes listed above. If you want to retain the current naming structure, you don't need to do anything. I just thought that since I went through the trouble of making these projects, someone else might like them. :)

Discussion

  • Anonymous

    Anonymous - 2012-10-10

    VS2012 solution and projects

     
    • Anonymous

      Anonymous - 2015-03-01

      Actually this doesn't build out of the box with FreeImage 3.16.0. There are errors in LibOpenJPEG. Comparing the vcxproj files (2008 vs. this one), it appears some files ("ClCompile Include") have changed. I've attached the updated project file.

       
      • Anonymous

        Anonymous - 2015-03-01

        Err... this is way out of date. The solution is missing projects, etc. Needs to be redone completely.

         
  • Anonymous

    Anonymous - 2015-03-01

    Thank you!

     
  • Hervé Drolon

    Hervé Drolon - 2015-03-15

    fixed in release 3.17.0 using VS2013 project files

     
  • Hervé Drolon

    Hervé Drolon - 2015-03-15
    • status: open --> closed
    • assigned_to: Hervé Drolon
    • Group: -->
     

Anonymous
Anonymous

Add attachments
Cancel