I believe the manta trunk already compiles on os x 10.7. Take a
look at the most recent CMake/ConfigCompilerFlags.cmake to see how
we handled this.
Thiago
On 1/29/13 7:25 AM, David E DeMarle
wrote:
"
type="cite">Moving the discussion back to the manta mailing list
so everyone can benefit.
vtkManta more or less requires Manta r2439.
So start by (svn up -r 2439)
Then, to make that old version of manta compile on >10.6,
you have to apply patches.
On 10.7, the following is probably sufficient:
Index: CMake/ConfigCompilerFlags.cmake
===================================================================
--- CMake/ConfigCompilerFlags.cmake (revision 2439)
+++ CMake/ConfigCompilerFlags.cmake (working copy)
@@ -173,7 +173,7 @@
SET(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.5.sdk"
CACHE STRING "OS X Sysroot" FORCE)
COMPARE_VERSION_STRINGS(${APPLE_VERSION} "10"
APPLE_SNOW_LEOPARD_CMP)
IF (APPLE_SNOW_LEOPARD_CMP GREATER -1)
- SET(CMAKE_OSX_SYSROOT
"/Developer/SDKs/MacOSX10.6.sdk" CACHE STRING "OS X Sysroot"
FORCE)
+ SET(CMAKE_OSX_SYSROOT
"/Developer/SDKs/MacOSX10.7.sdk" CACHE STRING "OS X Sysroot"
FORCE)
ENDIF(APPLE_SNOW_LEOPARD_CMP GREATER -1)
ELSE(MANTA_TARGET_LEOPARD)
SET(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.4u.sdk"
CACHE STRING "OS X Sysroot" FORCE)
Index: Core/Util/CPUTime.cc
===================================================================
--- Core/Util/CPUTime.cc (revision 2439)
+++ Core/Util/CPUTime.cc (working copy)
@@ -2,7 +2,7 @@
#include <Core/Thread/ThreadError.h>
#if defined(__APPLE__)
-#include <ppc_intrinsics.h>
+//#include <ppc_intrinsics.h>
#include <mach/mach.h>
#include <mach/mach_time.h>
#elif _WIN32
If not, see the patches that we applied for the
ParaViewSuperbuild:
look in ParaViewSuperbuild/Projects/patches/Manta.*
good luck,
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
On Fri, Jan 25, 2013 at 11:51 AM, Tom
Haeck <
" target="_blank">
>
wrote:
Moreover, the building process of Manta itself on a Mac
OS X system does not go smoothly either:-s I get the
following error:
Scanning dependencies of target Manta_Engine
[ 79%] Building CXX object
Engine/CMakeFiles/Manta_Engine.dir/Control/RTRT.o
In file included from
/Users/thaeck0/Development/Manta/Engine/Control/RTRT.cc:30:
/Users/thaeck0/Development/Manta/Engine/Control/RTRT.h:319:24:
error: expected
member name or ';' after declaration
specifiers
struct MANTA_ALIGN(8)
When I check the file RTRT.h, there is an
if-statement that applies for Apple. But there is
something corrupted about it. Do you have any clues
perhaps?
Sorry to bother you again:s
Greetings,
Tom
Don't know.
You might want to nm | grep _glFinish in
those libs to see which one
has it defined in the T (text) section.
That's the one you need for
sure.
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
On Thu, Jan 24, 2013 at 10:22 AM, Tom Haeck
<
"
target="_blank">
>
wrote:
I'm now linking to
practically every library that is related
to libGL, i.e.:
"/Users/thaeck0/Development/cmake/cmake-2.8.10.1-Darwin64-universal/CMake
2.8-10.app/Contents/bin/cmake" -E
cmake_link_script
CMakeFiles/vtkMantaPython.dir/link.txt
--verbose=1
/usr/bin/c++ -bundle
-Wl,-headerpad_max_install_names -o
bin/libvtkMantaPython.so
CMakeFiles/vtkMantaPython.dir/vtkMantaPythonInit.o
-L/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
-L/System/Library/Frameworks/GLUT.framework
-L/System/Library/Frameworks/OpenGL.framework
Is there any library I forget to take into
account?
tom
On 24 Jan 2013, at 15:44, David E DeMarle
<
"
target="_blank">
>
wrote:
For some reason cmake isn't putting libGL
on the link line for the
python wrapped vtkManta library in your
build. I don't know why that
might be.
You can run make VERBOSE=1 and compile the
link lines for that and the
standard libvtkManta library and manually
add what is missing. But you
shouldn't have to do that as their is a
target_link_libraries
dependency in the cmakelist.txt that
should do that automatically.
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
On Thu, Jan 24, 2013 at 9:39 AM, Tom Haeck
<
"
target="_blank">
>
wrote:
Thanks for the fast reply! I struggled
somewhat further through the
installation process, but now I'm stuck at
the following error:
Linking CXX shared module
bin/libvtkMantaPython.so
Undefined symbols for architecture x86_64:
"_glFinish", referenced from:
vtkMantaRenderer::LayerRender() in
libvtkManta.a(vtkMantaRenderer.o)
ld: symbol(s) not found for architecture
x86_64
Do you have any clues on this one?
I'm sorry for the inconvenience
Greetings,
Tom
On 23 Jan 2013, at 20:37, David E DeMarle
<
"
target="_blank">
>
wrote:
Try using vtkManta from ParaView 3.14.1.
<= 3.14.1 vtkManta's cmake scripts were
tooled for VTK 5.x's "kit" cmake
macros.
3.14.1 (ie 3.98 and 4.x ...) were retooled
for the upcoming VTK 6.x's
"module" macros.
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
On Wed, Jan 23, 2013 at 2:31 PM, Tom Haeck
<
"
target="_blank">
>
wrote:
Dear all,
I am trying to configure, make and install
vtkManta, following the
instructions on
http://www.kitware.com/media/html/RenderedRealismAtNearlyRealTimeRates.html
:
vtkManta is currently only available from
within the ParaView source tree,
but we expect to move it into VTK proper
when it matures a bit more. Until
then, obtain the ParaView source tree and
then point CMake directly at the
ParaView/Plugins/Manta/VTK directory when
you make your initial build
configuration
However, CMake was unable to configure
correctly. I got the following
error:
Unknown CMake command
"vtk_module_library".
When I check the CMakeLists.txt in the
directory of the Manta Plugin in the
ParaView source tree, I encounter indeed
this unknown CMake command. What
do I have to do in order that CMake
recognizes this command? (I suppose I
do have to build my VTK binary
differently?) I suppose that other people
encounter the same problem?
Thanks in advance,
Greetings,
Tom Haeck
PhD Student
KULeuven
|