RTI Connext DDS Python API

2 posts / 0 new
Last post
Offline
Last seen: 1 month 4 days ago
Joined: 07/15/2021
Posts: 1
RTI Connext DDS Python API
We are using RTI Connext DDS Python API on windows platform, but we meet a problem at the  simple Wheel Build phase according the document Building and Installing — RTI Connext DDS Python API documentation . We can't figure out why , Can anyone help us ? Thank in advance .
          
The following is the relevant error message :
 
(venv_win) D:\soa_simulator\dependences\src\connextdds-py>python configure.py -n "..\rti_connext_dds-6.0.1" -m -d x64Win64VS2017

INFO: nddscd.dll already exists in destination, skipping copy...

INFO: nddscd.lib already exists in destination, skipping copy...

INFO: nddscored.dll already exists in destination, skipping copy...

INFO: nddscored.lib already exists in destination, skipping copy...

INFO: nddscpp2d.dll already exists in destination, skipping copy...

INFO: nddscpp2d.lib already exists in destination, skipping copy...

INFO: rtidlcd.dll already exists in destination, skipping copy...

INFO: rtidlcd.lib already exists in destination, skipping copy...

INFO: msvcp140.dll already exists in destination, skipping copy...

INFO: rtimonitoringd.dll already exists in destination, skipping copy...

Finished! Run "pip wheel ." to create whl file.

    

    

    

    

(venv_win) D:\soa_simulator\dependences\src\connextdds-py>

(venv_win) D:\soa_simulator\dependences\src\connextdds-py>

(venv_win) D:\soa_simulator\dependences\src\connextdds-py>pip wheel .

Processing d:\soa_simulator\dependences\src\connextdds-py

    Installing build dependencies ... done

    Getting requirements to build wheel ... done

    Preparing metadata (pyproject.toml) ... done

Building wheels for collected packages: rti

    Building wheel for rti (pyproject.toml) ... error

    error: subprocess-exited-with-error

    

    × Building wheel for rti (pyproject.toml) did not run successfully.

    ? exit code: 1

    ??> [78 lines of output]

        running bdist_wheel

        running build

        running build_py

        running egg_info

        writing rti.egg-info\PKG-INFO

        writing dependency_links to rti.egg-info\dependency_links.txt

        writing top-level names to rti.egg-info\top_level.txt

        reading manifest file 'rti.egg-info\SOURCES.txt'

        reading manifest template 'MANIFEST.in'

        adding license file 'LICENSE'

        writing manifest file 'rti.egg-info\SOURCES.txt'

        running build_ext

        CMake Error at CMakeLists.txt:2 (project):

        Generator

    

            NMake Makefiles

    

        does not support platform specification, but platform

    

            x64

    

        was specified.

    

    

        CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage

        CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage

        -- Configuring incomplete, errors occurred!

        See also "D:/soa_simulator/dependences/src/connextdds-py/build/temp.win-amd64-cpython-310/Release/connext-py/CMakeFiles/CMakeOutput.log".

        Traceback (most recent call last):

        File "D:\soa_simulator\venv_win\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>

            main()

        File "D:\soa_simulator\venv_win\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main

            json_out['return_val'] = hook(**hook_input['kwargs'])

        File "D:\soa_simulator\venv_win\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 261, in build_wheel

            return _build_backend().build_wheel(wheel_directory, config_settings,

        File "C:\Users\zhangfeng3\AppData\Local\Temp\pip-build-env-tmcl7ufg\overlay\Lib\site-packages\setuptools\build_meta.py", line 244, in build_wheel

            return self._build_with_temp_dir(['bdist_wheel'], '.whl',

        File "C:\Users\zhangfeng3\AppData\Local\Temp\pip-build-env-tmcl7ufg\overlay\Lib\site-packages\setuptools\build_meta.py", line 229, in _build_with_temp_dir

            self.run_setup()

        File "C:\Users\zhangfeng3\AppData\Local\Temp\pip-build-env-tmcl7ufg\overlay\Lib\site-packages\setuptools\build_meta.py", line 281, in run_setup

            super(_BuildMetaLegacyBackend,

        File "C:\Users\zhangfeng3\AppData\Local\Temp\pip-build-env-tmcl7ufg\overlay\Lib\site-packages\setuptools\build_meta.py", line 174, in run_setup

            exec(compile(code, __file__, 'exec'), locals())

        File "setup.py", line 252, in <module>

            setup(

        File "C:\Users\zhangfeng3\AppData\Local\Temp\pip-build-env-tmcl7ufg\overlay\Lib\site-packages\setuptools\__init__.py", line 87, in setup

            return distutils.core.setup(**attrs)

        File "C:\Users\zhangfeng3\AppData\Local\Temp\pip-build-env-tmcl7ufg\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 148, in setup

            return run_commands(dist)

        File "C:\Users\zhangfeng3\AppData\Local\Temp\pip-build-env-tmcl7ufg\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 163, in run_commands

            dist.run_commands()

        File "C:\Users\zhangfeng3\AppData\Local\Temp\pip-build-env-tmcl7ufg\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 967, in run_commands

            self.run_command(cmd)

        File "C:\Users\zhangfeng3\AppData\Local\Temp\pip-build-env-tmcl7ufg\overlay\Lib\site-packages\setuptools\dist.py", line 1214, in run_command

            super().run_command(command)

        File "C:\Users\zhangfeng3\AppData\Local\Temp\pip-build-env-tmcl7ufg\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command

            cmd_obj.run()

        File "C:\Users\zhangfeng3\AppData\Local\Temp\pip-build-env-tmcl7ufg\overlay\Lib\site-packages\wheel\bdist_wheel.py", line 299, in run

            self.run_command('build')

        File "C:\Users\zhangfeng3\AppData\Local\Temp\pip-build-env-tmcl7ufg\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command

            self.distribution.run_command(command)

        File "C:\Users\zhangfeng3\AppData\Local\Temp\pip-build-env-tmcl7ufg\overlay\Lib\site-packages\setuptools\dist.py", line 1214, in run_command

            super().run_command(command)

        File "C:\Users\zhangfeng3\AppData\Local\Temp\pip-build-env-tmcl7ufg\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command

            cmd_obj.run()

        File "C:\Users\zhangfeng3\AppData\Local\Temp\pip-build-env-tmcl7ufg\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 136, in run

            self.run_command(cmd_name)

        File "C:\Users\zhangfeng3\AppData\Local\Temp\pip-build-env-tmcl7ufg\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command

            self.distribution.run_command(command)

        File "C:\Users\zhangfeng3\AppData\Local\Temp\pip-build-env-tmcl7ufg\overlay\Lib\site-packages\setuptools\dist.py", line 1214, in run_command

            super().run_command(command)

        File "C:\Users\zhangfeng3\AppData\Local\Temp\pip-build-env-tmcl7ufg\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command

            cmd_obj.run()

        File "setup.py", line 220, in run

            subprocess.check_call([cmake_cmd, os.path.abspath(os.path.join(get_script_dir(), 'modules'))] + cmake_args, cwd=module_build_dir, env=env)

        File "C:\Users\zhangfeng3\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 369, in check_call

            raise CalledProcessError(retcode, cmd)

        subprocess.CalledProcessError: Command '['C:\\Users\\zhangfeng3\\AppData\\Local\\Temp\\pip-build-env-tmcl7ufg\\overlay\\Lib\\site-packages\\cmake\\data\\bin\\cmake', 'D:\\soa_simulator\\dependences\\src\\connextdds-py\\modules', '-DBUILD_SHARED_LIBS=ON', '-DCONNEXTDDS_DIR=D:\\soa_simulator\\dependences\\src\\rti_connext_dds-6.0.1', '-DCONNEXTDDS_ARCH=x64Win64VS2017', '-DCMAKE_BUILD_TYPE=Debug', '-Dpybind11_DIR=C:\\Users\\zhangfeng3\\AppData\\Local\\Temp\\pip-build-env-tmcl7ufg\\overlay\\Lib\\site-packages\\pybind11\\share\\cmake\\pybind11', '-DRTI_PYTHON_MAJOR_VERSION=3', '-DRTI_PLATFORM_DIR=D:\\soa_simulator\\dependences\\src\\connextdds-py\\platform\\x64Win64VS2017', '-DCMAKE_PREFIX_PATH=D:\\soa_simulator\\dependences\\src\\connextdds-py\\platform\\x64Win64VS2017', '-DRTI_CONNEXTDDS_LIBRARY_OUTPUT_DIRECTORY=D:\\soa_simulator\\dependences\\src\\connextdds-py\\build\\lib.win-amd64-cpython-310\\rti', '-DRTI_LOGGING_DISTLOG_LIBRARY_OUTPUT_DIRECTORY=D:\\soa_simulator\\dependences\\src\\connextdds-py\\build\\lib.win-amd64-cpython-310\\rti\\logging', '-A', 'x64']' returned non-zero exit status 1.

        [end of output]

    

    note: This error originates from a subprocess, and is likely not a problem with pip.

    ERROR: Failed building wheel for rti

Failed to build rti

ERROR: Failed to build one or more wheels
 
AttachmentSize
Image icon catch05-11-22-03-01.jpg54.67 KB
Offline
Last seen: 2 weeks 18 hours ago
Joined: 04/02/2013
Posts: 179

It looks like the compiler can't be found:

      CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
      CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage