Skip to content

Cannot compile correctly under Windows #3

@Ashyglim

Description

@Ashyglim

I tried to compile the ddstubs library under windows using Visual Studio with CMAKE. I managed to generate ddstubs.dll and made sure it is in CDDS_HOME path. But when I run test_flexy_reader, it always gives the following error:

runfile('C:/Users/user/Documents/DDS/flexy_reader.py', wdir='C:/Users/user/Documents/DDS')
Traceback (most recent call last):

  File "<ipython-input-4-20e51ab979ab>", line 1, in <module>
    runfile('C:/Users/user/Documents/DDS/flexy_reader.py', wdir='C:/Users/user/Documents/DDS')

  File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
    execfile(filename, namespace)

  File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
    exec(compile(f.read(), filename, 'exec'), namespace)

  File "C:/Users/user/Documents/DDS/flexy_reader.py", line 63, in <module>
    testDynaTypes()

  File "C:/Users/user/Documents/DDS/flexy_reader.py", line 49, in testDynaTypes
    t = FlexyTopic(dp,  'KeyValue')

  File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\python_cdds-0.1.0-py3.7.egg\cdds\topic.py", line 17, in __init__
    self.type_support = self.rt.get_key_value_type_support()

  File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\python_cdds-0.1.0-py3.7.egg\cdds\runtime.py", line 213, in get_key_value_type_support
    return self.stublib.dds_bit_SKeySValue_desc

  File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\ctypes\__init__.py", line 369, in __getattr__
    func = self.__getitem__(name)

  File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\ctypes\__init__.py", line 374, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))

AttributeError: function 'dds_bit_SKeySValue_desc' not found

I tried loading ddstubs.dll and call other functions but all gave this AttributeError: function not found. I think the dll is not well linked. Could I get some help on how to solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions