Softimage 2013, boost 1.51

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
Post Reply
Transporter
Minaton
Posts: 933
Joined: Mon Mar 05, 2012 11:37 am
Location: Germany
x 110

Softimage 2013, boost 1.51

Post by Transporter »

Autodesk released Softimage 2013 so it's necessary to update FindSoftimage.cmake
diff -r 913dc0cabd9b CMake/Packages/FindSoftimage.cmake
--- a/CMake/Packages/FindSoftimage.cmake Fri Jun 01 00:41:14 2012 -0500
+++ b/CMake/Packages/FindSoftimage.cmake Mon Jun 04 10:34:02 2012 +0200
@@ -32,6 +32,7 @@
"$ENV{ProgramFiles}/Autodesk/Softimage 2011 SP1/XSISDK"
"$ENV{ProgramFiles}/Autodesk/Softimage 2012/XSISDK"
"$ENV{ProgramFiles}/Autodesk/Softimage 2012 SP1/XSISDK"
+ "$ENV{ProgramFiles}/Autodesk/Softimage 2013/XSISDK"
"C:/Softimage/XSI_6.0_x64/XSISDK"
"C:/Softimage/XSI_6.01_x64/XSISDK"
"C:/Softimage/XSI_6.02_x64/XSISDK"
@@ -45,6 +46,7 @@
"$ENV{ProgramW6432}/Autodesk/Softimage 2011 SP1/XSISDK"
"$ENV{ProgramW6432}/Autodesk/Softimage 2012/XSISDK"
"$ENV{ProgramW6432}/Autodesk/Softimage 2012 SP1/XSISDK"
+ "$ENV{ProgramW6432}/Autodesk/Softimage 2013/XSISDK"
)

if (CMAKE_CL_64)
EDIT 1:
boost 1.50 is available. I've posted a boost-dependency problem in the past (boost system required for thread). I can prove this now: Have a look at the jamfile to build the boost thread library (http://svn.boost.org/svn/boost/trunk/li ... Jamfile.v2):
: usage-requirements # pass these requirement to dependents (i.e. users)
<link>static:<define>BOOST_THREAD_STATIC_LINK=1
<link>shared:<define>BOOST_THREAD_DYN_LINK=1
<define>BOOST_SYSTEM_NO_DEPRECATED
<library>/boost/system//boost_system
;
EDIT 2:
Since the release of boost 1.50 the version of the boost trunk is set to 1.51. The new boost patch
ogre-boost-1.51.patch
Patch to fix boost 1.50 and add support for dev version 1.51
(4.83 KiB) Downloaded 194 times
fix the chrono/system problem in all related files add add support for version 1.50 and 1.51.
Attachments
softimage2013.patch
Patch for Softimage 2013
(828 Bytes) Downloaded 122 times
Last edited by Transporter on Fri Jul 13, 2012 1:36 pm, edited 1 time in total.
Transporter
Minaton
Posts: 933
Joined: Mon Mar 05, 2012 11:37 am
Location: Germany
x 110

Re: Softimage 2013, boost 1.50

Post by Transporter »

There is a bug in the included XSI-Exporter:
diff -r 913dc0cabd9b Tools/XSIExport/include/OgreXSIMeshExporter.h
--- a/Tools/XSIExport/include/OgreXSIMeshExporter.h Fri Jun 01 00:41:14 2012 -0500
+++ b/Tools/XSIExport/include/OgreXSIMeshExporter.h Mon Jun 04 15:00:32 2012 +0200
@@ -33,6 +33,7 @@
#include "OgreVector3.h"
#include "OgreColourValue.h"
#include "OgreMesh.h"
+#include "OgreProgressiveMesh.h"
#include "OgreXSIHelper.h"
#include <xsi_x3dobject.h>
#include <xsi_string.h>
diff -r 913dc0cabd9b Tools/XSIExport/src/OgreXSIMeshExporter.cpp
--- a/Tools/XSIExport/src/OgreXSIMeshExporter.cpp Fri Jun 01 00:41:14 2012 -0500
+++ b/Tools/XSIExport/src/OgreXSIMeshExporter.cpp Mon Jun 04 15:00:32 2012 +0200
@@ -146,7 +146,7 @@

if (lod)
{
- mMesh->generateLodLevels(lod->distances, lod->quota, lod->reductionValue);
+ ProgressiveMesh::generateLodLevels(mMesh.get(), lod->distances, lod->quota, lod->reductionValue);
// progress report
ProgressManager::getSingleton().progress();
}
Attachments
ogrexsiexporter.patch
Patch for LOD in XSI-Exporter
(968 Bytes) Downloaded 182 times
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4304
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 135
Contact:

Re: Softimage 2013, boost 1.50

Post by spacegaier »

Can you please attach this patch to our patch tracker, so it doesn't get lost here in the forums? Thanks!
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
Transporter
Minaton
Posts: 933
Joined: Mon Mar 05, 2012 11:37 am
Location: Germany
x 110

Re: Softimage 2013, boost 1.50

Post by Transporter »

spacegaier wrote:Can you please attach this patch to our patch tracker, so it doesn't get lost here in the forums? Thanks!
Done!

https://sourceforge.net/tracker/?func=d ... tid=302997
https://sourceforge.net/tracker/?func=d ... tid=302997
User avatar
Cygon
Halfling
Posts: 70
Joined: Thu Nov 07, 2002 9:36 pm
Location: Germany
x 5
Contact:

Re: Softimage 2013, boost 1.50

Post by Cygon »

The Boost 1.50 system requirement has already hit my Boost port to WinRT hard. It uses its own declarations instead of Windows.h (I had to define BOOST_USE_WINDOWS_H to actually get it to use the WinRT functions) and since 1.50, Boost's thread library uses Boost.Chrono, which relies on Boost.System calling GetProcessTimes() and GetThreadTimes(). Both methods aren't available unter WinRT.

I'm really looking forward to a future Ogre version using std::future, std::promise from C++11 :)
Transporter
Minaton
Posts: 933
Joined: Mon Mar 05, 2012 11:37 am
Location: Germany
x 110

Re: Softimage 2013, boost 1.50

Post by Transporter »

Cygon wrote:It uses its own declarations instead of Windows.h (I had to define BOOST_USE_WINDOWS_H to actually get it to use the WinRT functions) and since 1.50, Boost's thread library uses Boost.Chrono, which relies on Boost.System calling GetProcessTimes() and GetThreadTimes().
Thank you for that! Nobody believes me that chrono and system are required, too. :D Ogres CMake are already partly fixed for that: http://bitbucket.org/sinbad/ogre/changeset/61acf2b6e44e

Code: Select all

	if (Boost_FOUND AND WIN32 AND Boost_USE_STATIC_LIBS)
		if(Boost_VERSION GREATER 104700)
			set(OGRE_BOOST_COMPONENTS thread date_time system)
		endif()
		if(Boost_VERSION GREATER 104900)
			set(OGRE_BOOST_COMPONENTS thread date_time system chrono)
		endif()
		find_package(Boost COMPONENTS ${OGRE_BOOST_COMPONENTS} QUIET)
	endif()
The original patch from me (http://sourceforge.net/tracker/?func=de ... tid=302997) add this part to all required ogre files.
Transporter
Minaton
Posts: 933
Joined: Mon Mar 05, 2012 11:37 am
Location: Germany
x 110

Re: Softimage 2013, boost 1.51

Post by Transporter »

I've added a new patch for boost and updated the bug-tracker as well.
  • In CMake/Templates/SDK_CMakeLists.txt.in is boost 1.50 still missing
  • Added fix for chrono/system
  • Added support for boost 1.51
Post Reply