Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Build of trunk
PostPosted: Tue Mar 06, 2012 5:42 pm 
Offline

Joined: Tue Mar 06, 2012 5:38 pm
Posts: 6
From checking out the latest from trunk if I turn on via cmake building Nvidia :

BUILD_NVIDIA_OPENCL_DEMOS:BOOL=ON


I get the following result:

Quote:
Scanning dependencies of target AppParticlesOCL_Nv
[ 94%] Building CXX object Demos/ParticlesOpenCL/NVidia/CMakeFiles/AppParticlesOCL_Nv.dir/__/__/SharedOpenCL/btOpenCLUtils.o
/home/mdriftmeyer/DeveloperProjects/Bullet-Library/trunk/Demos/SharedOpenCL/btOpenCLUtils.cpp:41:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/mdriftmeyer/DeveloperProjects/Bullet-Library/trunk/Demos/SharedOpenCL/btOpenCLUtils.cpp: In static member function ‘static _cl_context* btOpenCLUtils::createContextFromPlatform(cl_platform_id, cl_device_type, cl_int*, void*, void*, int, int)’:
/home/mdriftmeyer/DeveloperProjects/Bullet-Library/trunk/Demos/SharedOpenCL/btOpenCLUtils.cpp:125:12: error: ‘CL_GL_CONTEXT_KHR’ was not declared in this scope
/home/mdriftmeyer/DeveloperProjects/Bullet-Library/trunk/Demos/SharedOpenCL/btOpenCLUtils.cpp:127:12: error: ‘CL_WGL_HDC_KHR’ was not declared in this scope
make[2]: *** [Demos/ParticlesOpenCL/NVidia/CMakeFiles/AppParticlesOCL_Nv.dir/__/__/SharedOpenCL/btOpenCLUtils.o] Error 1
make[1]: *** [Demos/ParticlesOpenCL/NVidia/CMakeFiles/AppParticlesOCL_Nv.dir/all] Error 2
make: *** [all] Error 2



With: BUILD_NVIDIA_OPENCL_DEMOS:BOOL=OFF

Quote:
[ 97%] Built target AppThreadingDemo
Scanning dependencies of target MiniCL
[ 97%] Building CXX object src/MiniCL/CMakeFiles/MiniCL.dir/MiniCL.o
[ 97%] Building CXX object src/MiniCL/CMakeFiles/MiniCL.dir/MiniCLTaskScheduler.o
[ 98%] Building CXX object src/MiniCL/CMakeFiles/MiniCL.dir/MiniCLTask/MiniCLTask.o
Linking CXX static library libMiniCL.a
[ 98%] Built target MiniCL
Scanning dependencies of target BulletSoftBodySolvers_OpenCL_Mini
[ 98%] Building CXX object src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/MiniCL/CMakeFiles/BulletSoftBodySolvers_OpenCL_Mini.dir/__/btSoftBodySolver_OpenCL.o
Linking CXX static library libBulletSoftBodySolvers_OpenCL_Mini.a
[ 98%] Built target BulletSoftBodySolvers_OpenCL_Mini
Scanning dependencies of target AppOpenCLClothDemo_Mini
[ 98%] Building CXX object Demos/OpenCLClothDemo/MiniCL/CMakeFiles/AppOpenCLClothDemo_Mini.dir/__/cl_cloth_demo.o
[ 99%] Building CXX object Demos/OpenCLClothDemo/MiniCL/CMakeFiles/AppOpenCLClothDemo_Mini.dir/__/gl_win.o
[ 99%] Building CXX object Demos/OpenCLClothDemo/MiniCL/CMakeFiles/AppOpenCLClothDemo_Mini.dir/__/clstuff.o
[ 99%] Building CXX object Demos/OpenCLClothDemo/MiniCL/CMakeFiles/AppOpenCLClothDemo_Mini.dir/__/__/__/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/MiniCL/MiniCLTaskWrap.o
[100%] Building CXX object Demos/OpenCLClothDemo/MiniCL/CMakeFiles/AppOpenCLClothDemo_Mini.dir/__/__/SharedOpenCL/btOpenCLUtils.o
/home/mdriftmeyer/DeveloperProjects/Bullet-Library/trunk/Demos/SharedOpenCL/btOpenCLUtils.cpp:37:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
Linking CXX executable AppOpenCLClothDemo_Mini
[100%] Built target AppOpenCLClothDemo_Mini


On a side note, I see I need to buy a newer system for the upcoming Bullet 3.x release. Thanks for that heads up.


Top
 Profile  
 
 Post subject: Re: Build of trunk
PostPosted: Thu Mar 08, 2012 3:06 am 
Offline

Joined: Thu Sep 08, 2011 2:49 am
Posts: 4
I get the same error when building the nvidia opencl demos. I'm using cmake with 64-bit linux.

I get a different error when I enable the intel opencl demos. Looks like the build only works for windows.

[ 90%] Built target AppThreadingDemo
make[2]: *** No rule to make target `../Glut/glew32.lib', needed by `Demos/ParticlesOpenCL/Intel/AppParticlesOCL_Intel'. Stop.
make[1]: *** [Demos/ParticlesOpenCL/Intel/CMakeFiles/AppParticlesOCL_Intel.dir/all] Error 2


Top
 Profile  
 
 Post subject: Re: Build of trunk
PostPosted: Sun Mar 11, 2012 10:12 pm 
Offline

Joined: Tue Mar 06, 2012 5:38 pm
Posts: 6
Hopefully they'll address this in a configuration for CMake that if your GPGPU isn't OpenGL 4.x ready that they disable some of the configurations, if that is what it takes.


Top
 Profile  
 
 Post subject: Re: Build of trunk
PostPosted: Mon Mar 12, 2012 7:19 pm 
Offline
Site Admin
User avatar

Joined: Sun Jun 26, 2005 6:43 pm
Posts: 3744
Location: California, USA
For the NVIDIA issue, did you install the latest NVIDIA CUDA SDK (4.x) and does the CMAKE build system detect its location properly?

We haven't done much testing on the Intel SDK yet, and wait until GPU OpenCL support is done (Ivy bridge)
We replaced glew32 by glew32s under Windows. For now, please do a comparison of the CMakeLists.txt with the AMD version?

Thanks,
Erwin


Top
 Profile  
 
 Post subject: Re: Build of trunk
PostPosted: Tue May 22, 2012 3:44 pm 
Offline

Joined: Tue May 22, 2012 3:30 pm
Posts: 1
Same error here( Demos/SharedOpenCL/btOpenCLUtils.cpp:125:12: error: ‘CL_GL_CONTEXT_KHR’ was not declared in this scope)
on archlinux 64bit with Nvidia

I made it compiling by including "CL/cl_gl.h" (removing the #ifdef WIN32 in btOpenCLINclude.h)

cmake output for info:
Code:
-- The C compiler identification is GNU 4.7.0
-- The CXX compiler identification is GNU 4.7.0
-- Check for working C compiler: /usr/lib/colorgcc/bin/gcc
-- Check for working C compiler: /usr/lib/colorgcc/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/colorgcc/bin/c++
-- Check for working CXX compiler: /usr/lib/colorgcc/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
INTEL OPENCL NOT FOUND
NVidia OPENCL FOUND
/usr/lib/libOpenCL.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Found OpenGL: /usr/lib/libGL.so 
OPENGL FOUND
/usr/lib/libGLU.so/usr/lib/libGL.so/usr/lib/libSM.so/usr/lib/libICE.so/usr/lib/libX11.so/usr/lib/libXext.so
-- WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead
-- Found GLUT: /usr/lib/libglut.so 
GLUT FOUND
/usr/lib/libglut.so
-- WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead
-- Configuring done
-- Generating done


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group