This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/OPT9221: Voxel SDK compile problem

Part Number: OPT9221

Tool/software: TI C/C++ Compiler

hello, sir

I used vs2013 to compile voxel sdk with instructions mentioned in https://github.com/3dtof/voxelsdk/wiki/Build-from-source-on-Windows]

CMake Error at C:/Texas Instruments/voxelsdk/build/cmake_install.cmake:36 (execute_process):
26> execute_process given unknown argument "Instruments/voxelsdk/build".
26>
26>
26> CMake Error at C:/Texas Instruments/voxelsdk/build/cmake_install.cmake:40 (file):
26> file INSTALL cannot find "C:/Texas Instruments/voxelsdk/build/doc/html".
26>
26>
26>EXEC : CPack error : Error when generating package: Voxel SDK

however I checked the .cmake file and the execute_process argument given as below

if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xvoxel_devx" OR NOT CMAKE_INSTALL_COMPONENT)
execute_process(COMMAND C:/Program Files/doxygen/bin/doxygen.exe C:/Texas Instruments/voxelsdk/build/Doxyfile WORKING_DIRECTORY C:/Texas Instruments/voxelsdk/build)
endif()

if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xvoxel_devx" OR NOT CMAKE_INSTALL_COMPONENT)
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/doc/voxel-sdk" TYPE DIRECTORY FILES "C:/Texas Instruments/voxelsdk/build/doc/html/")
endif()

  • Hi, 

    Thank you for reporting. We are able to reproduce this error. The error is caused due to the white space present in the directory structure. Unfortunately, CPack is not allowing spaces in the directory names. We will be fixing the issue soon. 

    In the meantime, please remove the white space between Texas and Instruments. You should be able to create the package after that. 

  • dear Suramya

    many thanks for your reply. During configure Cmake-gui process, there are some warnnings shows as

    Could NOT find openni (missing: OPENNI_LIBRARY OPENNI_INCLUDE_DIRS)

    ** WARNING ** io features related to openni will be disabled

    Could NOT find OpenNI2 (missing: OPENNI2_LIBRARY OPENNI2_INCLUDE_DIRS)

    ** WARNING ** io features related to openni2 will be disabled

    ** WARNING ** io features related to pcap will be disabled

    ** WARNING ** io features related to png will be disabled

    Could NOT find openni (missing: OPENNI_LIBRARY OPENNI_INCLUDE_DIRS)

    ** WARNING ** visualization features related to openni will be disabled

    Could NOT find OpenNI2 (missing: OPENNI2_LIBRARY OPENNI2_INCLUDE_DIRS)

    ** WARNING ** visualization features related to openni2 will be disabled

    is that normal?

  • dear Suramya

    after changed the directory and reclone the source and build again. another issue happened
    CPack: Create package
    29>EXEC : CPack error : Problem running NSIS command: "C:/Program Files (x86)/NSIS/makensis.exe" "C:/TexasInstruments/voxelsdk/build/_CPack_Packages/win64/NSIS/project.nsi"
    29> Please check C:/TexasInstruments/voxelsdk/build/_CPack_Packages/win64/NSIS/NSISOutput.log for errors
    29>EXEC : CPack error : Problem compressing the directory
    29>EXEC : CPack error : Error when generating package: Voxel SDK

    in NSISOutput file, error is
    warning 6000: unknown variable/constant "{voxelpcl_lib}" detected, ignoring (macro:_SectionFlagIsSet:2)

    Usage: SectionGetFlags section_index $(user_var: output flags)

    Error in macro _SectionFlagIsSet on macroline 2

    Error in macro _If on macroline 9

    Error in script "C:/TexasInstruments/voxelsdk/build/_CPack_Packages/win64/NSIS/project.nsi" on line 7526 -- aborting creation process.

    I checked the environment variables in windows, but not set it in Visual studio.could you help me to solve it.
    many thx.
  • Hi, 

    I've fixed this error with the help of the latest commit. Check the changes here: 

    This was due to some old convention for environment variables, which are not being used now. Sorry for the inconvenience.