Front Page › Forums › Installing and compiling › Examples not running!
- This topic has 5 replies, 2 voices, and was last updated 9 years, 2 months ago by Markus.
-
AuthorPosts
-
January 15, 2015 at 2:00 pm #736921arahionParticipant
Hello,
First of all I am new in Hapics and a middle experianced programmer, so I may have some stupid questions. Thank you in advance for helping me.
I installed visual studio 2013 and after that, I installed Cmake following the H3dApi’s documentation:
[img width=300]https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-xpf1/v/t1.0-9/10891519_1527785204141452_4183162189092417828_n.jpg?oh=539500df786fe90636c753928bf8fe93&oe=552A4033&__gda__=1428464908_35ee08d78fd0f89c55879f448805f8ca[/img]
[img width=300]https://scontent-b-mxp.xx.fbcdn.net/hphotos-xpf1/v/t1.0-9/1526731_1527788054141167_3071598174703357702_n.jpg?oh=742c3705acd2c0c30bc282ec064fa76d&oe=5530F3EF[/img]
Here is the Output:
[code]Including H3DAPI
Including HAPI
Including H3DUtil
DCMTK was not found. Make sure all cmake variables with prefix DCMTK_ set, see each one for description. If you do not have the Dicom Toolkit libraries and headers you will not be able to load dicom images.
OPENHAPTICS [hapi] was not found. Make sure to set OPENHAPTICS_HL_LIBRARY, OPENHAPTICS_HD_LIBRARY, OPENHAPTICS_HDU_LIBRARY and OPENHAPTICS_INCLUDE_DIR. If you do not have it you will not be able to use haptics devices from SensAble Technologies such as the Phantom.
CMake Warning (dev) at C:/H3D/HAPI/build/modules/TestIfVCExpress.cmake:5 (IF):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run “cmake –help-policy CMP0054” for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.Quoted variables like “CMake_HAVE_MFC” will no longer be dereferenced when
the policy is set to NEW. Since the policy is not set the OLD behavior
will be used.
Call Stack (most recent call first):
C:/H3D/HAPI/build/modules/FindChai3D.cmake:12 (TestIfVCExpress)
C:/H3D/HAPI/build/CMakeLists.txt:130 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.CHAI3D was not found. Make sure to set CHAI3D_LIBRARY and CHAI3D_INCLUDE_DIR. If you do not have chai3d you will not be able to use the Chai3DRenderer.
The Novint Falcon API(HDAL SDK) was not found. Make sure to set FALCONAPI_HDL_LIBRARY and FALCONAPI_INCLUDE_DIR. If you do not have it you will not be able to use the Novint Falcon Haptics device. NOVINT HAS NOT RELEASED A 64 BIT VERSION OF HDAL SDK YET.
Could NOT find Boost
The HAPTIK API was not found. Make sure to set HAPTIK_LIBRARY and HAPTIK_INCLUDE_DIR to the location of the library. If you do not have it you will not be able to use the haptik device.
The SimballMedical API was not found. Make sure to set SIMBALLMEDICAL_LIBRARY and SIMBALLMEDICAL_INCLUDE_DIR. If you do not have the SimballMedicalHID library you will not be able to use the Simball device.
The MLHI API was not found. Make sure to set MLHI_LIBRARY and MLHI_INCLUDE_DIR. If you do not have the MLHI library you will not be able to use the MLHI devices.
WxWidgets was not found. Make sure wxWidgets_core_LIBRARY, wxWidgets_base_LIBRARY and wxWidgets_INCLUDE_DIR are set and other requested libs are set.
Could NOT find wxWidgets (missing: wxWidgets_FOUND)
CMake Warning at C:/H3D/HAPI/examples/build/CMakeLists.txt:39 (MESSAGE):
wxWidgets was not found. HAPIDemo will not be generated.Including HAPI SpringExample
Including HAPI SurfaceExample
Including HAPI FeedbackBufferCollectionExample
Including HAPI ThreadExamples
DirectX was not found. Make sure to set DirectX_d3d9_LIBRARY and DirectX_d3dx9_LIBRARY and DirectX_INCLUDE_DIR to the location of the library and include files. If you do not have it you will not be able to build the DirectXExample of HAPI.
DirectX headers and libraries were not found. DirectXExample will not be generated.
CMake Warning (dev) at C:/H3D/H3DAPI/build/modules/FindSixenseSDK.cmake:13 (SET):
Policy CMP0053 is not set: Simplify variable reference and escape sequence
evaluation. Run “cmake –help-policy CMP0053” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.For input:
‘$ENV{ProgramFiles(x86)}/Steam/SteamApps/common/Sixense SDK/SixenseSDK’
the old evaluation rules produce:
‘C:Program Files (x86)/Steam/SteamApps/common/Sixense SDK/SixenseSDK’
but the new evaluation rules produce an error:
Syntax error in cmake code at
C:/H3D/H3DAPI/build/modules/FindSixenseSDK.cmake:13
when parsing string
$ENV{ProgramFiles(x86)}/Steam/SteamApps/common/Sixense SDK/SixenseSDK
Invalid character (‘(‘) in a variable name: ‘ProgramFiles’Using the old result for compatibility since the policy is not set.
Call Stack (most recent call first):
C:/H3D/H3DAPI/build/CMakeLists.txt:341 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.SIXENSE was not found. Make sure SIXENSE_LIBRARY and SIXENSE_INCLUDE_DIR are set to where you have your sixense sdk header and lib files. If you do not have the library you will not be able to use the HydraSensor.
CMake Warning (dev) at C:/H3D/H3DAPI/build/modules/TestIfVCExpress.cmake:5 (IF):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run “cmake –help-policy CMP0054” for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.Quoted variables like “CMake_HAVE_MFC” will no longer be dereferenced when
the policy is set to NEW. Since the policy is not set the OLD behavior
will be used.
Call Stack (most recent call first):
C:/H3D/H3DAPI/build/modules/FindDirectShow.cmake:8 (TestIfVCExpress)
C:/H3D/H3DAPI/build/CMakeLists.txt:372 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.Directshow was not found. Set DIRECTSHOW_INCLUDE_DIR_STREAMS_H, DIRECTSHOW_INCLUDE_DIR_INTSAFE_H, DIRECTSHOW_INCLUDE_DIR_DDRAW_H and DIRECTSHOW_LIBRARY to enable Directshow (DSHOW) support.
DCMTK was not found. Make sure all cmake variables with prefix DCMTK_ set, see each one for description. If you do not have the Dicom Toolkit libraries and headers you will not be able to load dicom images.
VirtualHand was not found. Make sure VirtualHand_Device_LIBRARY, VirtualHand_Core_LIBRARY and VirtualHand_INCLUDE_DIR are set.
Including H3DLoad
WxWidgets was not found. Make sure wxWidgets_core_LIBRARY, wxWidgets_base_LIBRARY and wxWidgets_INCLUDE_DIR are set and other requested libs are set.
Could NOT find wxWidgets (missing: wxWidgets_FOUND)
CMake Warning at C:/H3D/H3DAPI/build/CMakeLists.txt:704 (MESSAGE):
wxWidgets was not found. H3DViewer will not be generated.Including H3DAPI manual Examples
Including H3DAPI ThreadExample
Including UI
Including H3DPhysics
SOFA was not found. Could not find the include files. Try setting SOFA_INSTALL_DIR to the root of the SOFA installation.
PHYSX was not found. Make sure PHYSX_LIBRARY and PHYSX_INCLUDE_DIR are set.
PHYSX3 was not found. Set PHYSX3_INSTALL_DIR to the root directory of the
installation containing the ‘include’ and ‘lib’ folders.
HACD was not found. Set HACD_INSTALL_DIR to the root directory of the ;installation containing the ‘build’ folders.
One or several of Bullet debug libraries could not be found. Debug build might not work.
BULLET was not found. Try setting BULLET_INSTALL_DIR to the bullet installation path.
Configuring done
Generating done[/code]I hope there is not an error until now.
Then I installed H3dApi.
I configured H3dLoad settings selecting as an Haptic Device a fakedevice since i would like to use a mouse device.Here is the problem when I’m trying to run some examples:
SpaceTenis:[code]Loading C:H3DH3DAPIexamplesSpaceTennisSpaceTennis.x3d
OpenGL error in render() Error: “invalid enumerant” when rendering Unnamed Image
Texture.displayList
[/code]
Sound:
The sound remains the same no matter how I move the mouse
Cubemap:
[code]OpenGL error in render() Error: “invalid enumerant” when rendering Unnamed Image
Texture.displayList
Warning: ARB_texture_cube_map extension not supported by your graphics card. “CA
MERASPACEREFLECTIONVECTOR” mode in “Unnamed TextureCoordinateGenerator” node can
not be used.[/code]Finally, lots of examples stop working without even open.
I assume that I have to modify the code of the examples in order to use correctly the mouse is that right?
Is there any problems in what I’ve done until now?
Also, Could you please suggest me in which environment should I write, compile and debug my code and guide me to how should i configure any settings?Thank you in advance
January 15, 2015 at 2:23 pm #736922MarkusKeymasterThese errors are a bit weird:
[quote]
OpenGL error in render() Error: “invalid enumerant” when rendering Unnamed Image
Texture.displayListWarning: ARB_texture_cube_map extension not supported by your graphics card. “CA
MERASPACEREFLECTIONVECTOR” mode in “Unnamed TextureCoordinateGenerator” node can
not be used.[/quote]Is there any chance you are using a virtual environment? If not, then what kind of graphics card do you have?
January 15, 2015 at 9:45 pm #736925arahionParticipantNo I am not. Here is my graphic card
ATI Mobility Radeon HD 3400 Series
January 16, 2015 at 6:20 am #736926MarkusKeymasterDo you get any opengl errors about invalid enumerate or unsupported features if you load the H3DH3DAPIexamplesAllSphere.x3d example?
Or alternatively the H3DH3DAPIexamplesAllArc2d.x3d
After that please load H3DH3DAPIexamplesAllImageTexture.x3d and list any warnings/errors when it comes to that. Do you see the texture, is it loaded?I noticed that there are a couple of CMAke warnings, I looked through them and they should not be the cause of this problem.
Could you list some examples which does not work when you open them?
And as a final thing to do, could you try building the 32-bit version of H3DAPI instead and see if you get errors then as well.
January 16, 2015 at 8:59 am #736928MarkusKeymasterDoes your processor have an integrated graphics chip. In that case, are you sure it is your graphics card that is used to run H3DViewer? Intel Graphics will give those errors (at least it does that on my laptop).
January 16, 2015 at 8:59 am #727816arahionParticipant -
AuthorPosts
- You must be logged in to reply to this topic.