Menu

Getting make error for ryosmk

Help
Pat
2021-10-10
2021-10-19
  • Pat

    Pat - 2021-10-10

    Thanks for all your work on this and sorry to bug you on an unsupported project but hopping you can help me get this to build on Ubuntu 21.04
    CFLAGS="-isystem /usr/include/harfbuzz" cmake -DCMAKE_INSTALL_PREFIX="/usr" -DWITH_LUA="5.4" -DDEVICES='ryosmk' ..

    I can get it to build fine if I exclude ryosmk but of course I need that device.

    /usr/bin/ld: CMakeFiles/libroccatryosmk.dir/ryos_device.c.o:(.bss+0x0): multiple definition of `RyosWriteCheckWait'; CMakeFiles/libroccatryosmk.dir/ryos_custom_lights.c.o:(.bss+0x0): first defined here
    /usr/bin/ld: CMakeFiles/libroccatryosmk.dir/ryos_device_state.c.o:(.bss+0x0): multiple definition of `RyosWriteCheckWait'; CMakeFiles/libroccatryosmk.dir/ryos_custom_lights.c.o:(.bss+0x0): first defined here
    /usr/bin/ld: CMakeFiles/libroccatryosmk.dir/ryos_info.c.o:(.bss+0x0): multiple definition of `RyosWriteCheckWait'; CMakeFiles/libroccatryosmk.dir/ryos_custom_lights.c.o:(.bss+0x0): first defined here
    /usr/bin/ld: CMakeFiles/libroccatryosmk.dir/ryos_key_mask.c.o:(.bss+0x0): multiple definition of `RyosWriteCheckWait'; CMakeFiles/libroccatryosmk.dir/ryos_custom_lights.c.o:(.bss+0x0): first defined here
    /usr/bin/ld: CMakeFiles/libroccatryosmk.dir/ryos_keys_easyzone.c.o:(.bss+0x0): multiple definition of `RyosWriteCheckWait'; CMakeFiles/libroccatryosmk.dir/ryos_custom_lights.c.o:(.bss+0x0): first defined here
    /usr/bin/ld: CMakeFiles/libroccatryosmk.dir/ryos_keys_extra.c.o:(.bss+0x0): multiple definition of `RyosWriteCheckWait'; CMakeFiles/libroccatryosmk.dir/ryos_custom_lights.c.o:(.bss+0x0): first defined here
    /usr/bin/ld: CMakeFiles/libroccatryosmk.dir/ryos_keys_function.c.o:(.bss+0x0): multiple definition of `RyosWriteCheckWait'; CMakeFiles/libroccatryosmk.dir/ryos_custom_lights.c.o:(.bss+0x0): first defined here
    /usr/bin/ld: CMakeFiles/libroccatryosmk.dir/ryos_keys_macro.c.o:(.bss+0x0): multiple definition of `RyosWriteCheckWait'; CMakeFiles/libroccatryosmk.dir/ryos_custom_lights.c.o:(.bss+0x0): first defined here
    /usr/bin/ld: CMakeFiles/libroccatryosmk.dir/ryos_keys_primary.c.o:(.bss+0x0): multiple definition of `RyosWriteCheckWait'; CMakeFiles/libroccatryosmk.dir/ryos_custom_lights.c.o:(.bss+0x0): first defined here
    /usr/bin/ld: CMakeFiles/libroccatryosmk.dir/ryos_keys_thumbster.c.o:(.bss+0x0): multiple definition of `RyosWriteCheckWait'; CMakeFiles/libroccatryosmk.dir/ryos_custom_lights.c.o:(.bss+0x0): first defined here
    /usr/bin/ld: CMakeFiles/libroccatryosmk.dir/ryos_light.c.o:(.bss+0x0): multiple definition of `RyosWriteCheckWait'; CMakeFiles/libroccatryosmk.dir/ryos_custom_lights.c.o:(.bss+0x0): first defined here
    /usr/bin/ld: CMakeFiles/libroccatryosmk.dir/ryos_light_control.c.o:(.bss+0x0): multiple definition of `RyosWriteCheckWait'; CMakeFiles/libroccatryosmk.dir/ryos_custom_lights.c.o:(.bss+0x0): first defined here
    /usr/bin/ld: CMakeFiles/libroccatryosmk.dir/ryos_macro.c.o:(.bss+0x0): multiple definition of `RyosWriteCheckWait'; CMakeFiles/libroccatryosmk.dir/ryos_custom_lights.c.o:(.bss+0x0): first defined here
    /usr/bin/ld: CMakeFiles/libroccatryosmk.dir/ryos_profile.c.o:(.bss+0x0): multiple definition of `RyosWriteCheckWait'; CMakeFiles/libroccatryosmk.dir/ryos_custom_lights.c.o:(.bss+0x0): first defined here
    /usr/bin/ld: CMakeFiles/libroccatryosmk.dir/ryos_reset.c.o:(.bss+0x0): multiple definition of `RyosWriteCheckWait'; CMakeFiles/libroccatryosmk.dir/ryos_custom_lights.c.o:(.bss+0x0): first defined here
    /usr/bin/ld: CMakeFiles/libroccatryosmk.dir/ryos_stored_lights.c.o:(.bss+0x0): multiple definition of `RyosWriteCheckWait'; CMakeFiles/libroccatryosmk.dir/ryos_custom_lights.c.o:(.bss+0x0): first defined here
    /usr/bin/ld: CMakeFiles/libroccatryosmk.dir/ryos_talk.c.o:(.bss+0x0): multiple definition of `RyosWriteCheckWait'; CMakeFiles/libroccatryosmk.dir/ryos_custom_lights.c.o:(.bss+0x0): first defined here
    collect2: error: ld returned 1 exit status
    make[2]: *** [ryosmk/libroccatryosmk/CMakeFiles/libroccatryosmk.dir/build.make:653: ryosmk/libroccatryosmk/libroccatryosmk.so.5.9.0] Error 1
    make[1]: *** [CMakeFiles/Makefile2:1296: ryosmk/libroccatryosmk/CMakeFiles/libroccatryosmk.dir/all] Error 2
    make: *** [Makefile:160: all] Error 2
    
     
  • Stefan Achatz

    Stefan Achatz - 2021-10-18

    I guess this error comes from using clang instead of gcc on debian based distributions.
    But there is indeed a error in ryosmk/libroccatryosmk/ryos_device.h. Add a 'typedef' to line 25 so that it reads

    typedef enum {

    and try again. I might release a new version that fixes this and the harfbuzz problems...

     
    👍
    1
  • Anonymous

    Anonymous - 2021-10-19
    Post awaiting moderation.
  • Pat

    Pat - 2021-10-19

    Thank you! Worked like a charm. Thanks again for your work on this.

     
  • Anonymous

    Anonymous - 2022-04-09
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2022-11-20
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel