Hi,
I just compiled osgCompute trunk with the latest OSG trunk and Cuda 4.0
on a 64-bit machine with gcc/g++ 4.4.
I had to make some minor changes, I think the diff below should be OK to
notice them. gl->GL for case sensitive Linux and cstring or string.h is
needed for memcpy.
Also, I had to manually set the path to the cudart library to point to
lib64 (/usr/local/cuda/lib64/libcudart.so) on my machine instead of lib.
I think this probably needs to be fixed in FindCUDA, but I can't look at
it now.
rgds
jp
---8<---
$ svn diff
Index: src/osgCuda/Computation.cpp
===================================================================
--- src/osgCuda/Computation.cpp (revision 426)
+++ src/osgCuda/Computation.cpp (working copy)
@@ -1,4 +1,4 @@
-#include <osg/gl>
+#include <osg/GL>
#include <cuda_runtime.h>
#include <builtin_types.h>
#include <cuda_gl_interop.h>
Index: examples/osgGeometryDemo/src/Warp.cpp
===================================================================
--- examples/osgGeometryDemo/src/Warp.cpp (revision 426)
+++ examples/osgGeometryDemo/src/Warp.cpp (working copy)
@@ -12,6 +12,7 @@
*
* The full license is in LICENSE file included with this distribution.
*/
+#include <cstring>
#include <osg/Array>
#include <osgCuda/Memory>
#include <osgCuda/Geometry>
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org