Menu

#62 error on make roccat-tools 4.0.0 :(

v1.0_(example)
closed
nobody
None
1
2016-05-26
2016-04-09
Anonymous
No

mid-way building the roccat-tools 4.0.0 on ubuntu 14.04 I get this error:

CMakeFiles/libryosmkeventhandler.dir/ryos_eventhandler.c.o: In function device_remove_cb': ryos_eventhandler.c:(.text+0x66b): undefined reference toryos_effect_lua_stop'
CMakeFiles/libryosmkeventhandler.dir/ryos_eventhandler.c.o: In function device_add_cb': ryos_eventhandler.c:(.text+0xcdd): undefined reference toryos_effect_lua_set_module'
ryos_eventhandler.c:(.text+0xced): undefined reference to ryos_effect_lua_start' CMakeFiles/libryosmkeventhandler.dir/ryos_eventhandler.c.o: In functioneffect_cb':
ryos_eventhandler.c:(.text+0x1528): undefined reference to `ryos_effect_lua_key_event'
collect2: error: ld returned 1 exit status
make[2]: *** [ryosmk/libryosmkeventhandler/libryosmkeventhandler.so] Error 1
make[1]: *** [ryosmk/libryosmkeventhandler/CMakeFiles/libryosmkeventhandler.dir/all] Error 2
make: *** [all] Error 2

Discussion

  • Anonymous

    Anonymous - 2016-04-10

    I got the same problem.

    Linking C shared library libryosmkeventhandler.so
    CMakeFiles/libryosmkeventhandler.dir/ryos_eventhandler.c.o: In function device_remove_cb': ryos_eventhandler.c:(.text+0x63b): undefined reference toryos_effect_lua_stop'
    CMakeFiles/libryosmkeventhandler.dir/ryos_eventhandler.c.o: In function device_add_cb': ryos_eventhandler.c:(.text+0xae0): undefined reference toryos_effect_lua_set_module'
    ryos_eventhandler.c:(.text+0xaf0): undefined reference to ryos_effect_lua_start' CMakeFiles/libryosmkeventhandler.dir/ryos_eventhandler.c.o: In functioneffect_cb':
    ryos_eventhandler.c:(.text+0x1308): undefined reference to `ryos_effect_lua_key_event'
    collect2: error: ld returned 1 exit status
    ryosmk/libryosmkeventhandler/CMakeFiles/libryosmkeventhandler.dir/build.make:142: recipe for target 'ryosmk/libryosmkeventhandler/libryosmkeventhandler.so' failed
    make[2]: *** [ryosmk/libryosmkeventhandler/libryosmkeventhandler.so] Error 1
    CMakeFiles/Makefile2:6106: recipe for target 'ryosmk/libryosmkeventhandler/CMakeFiles/libryosmkeventhandler.dir/all' failed
    make[1]: *** [ryosmk/libryosmkeventhandler/CMakeFiles/libryosmkeventhandler.dir/all] Error 2
    Makefile:126: recipe for target 'all' failed
    make: *** [all] Error 2

     
  • Stefan Achatz

    Stefan Achatz - 2016-04-10

    As of version 4.0.0 of roccat-tools, Lua is mandatory. Please install the appropriate devel package and use WITH_LUA as described in the INSTALL file. Note: Lua 5.3 is also supported, but naming conventions between distributions make autodetection a bloody mess. That's why it has to be given explicitly. I'll try to change the install instructions to clear this up a bit.

     
  • Jed

    Jed - 2016-04-10

    Thanks for your help. I am on Ubuntu 16.04 beta 2. I ran the command "lua -v" and realized that was not even installed. I installed lua5.2 from the repository, though 5.1 and 5.3 are available. I have now deleted/recreated the build directory and trying to use WITH_LUA, but I am not sure what this command should look like.

    Example: cmake -DCMAKE_INSTALL_PREFIX="/usr" WITH_LUA=??? ..

    P.S. This is probably the only thing I will use lua for. Can you recommend the most compatible version for roccat-tools from 5.1,5.2,5.3. Thanks

     

    Last edit: Jed 2016-04-10
  • Anonymous

    Anonymous - 2016-04-10

    I've installed lua5.3 and liblua5.3-dev and I'm still getting these errors:

    [ 77%] Building C object ryosmk/libryosmkeventhandler/CMakeFiles/libryosmkeventhandler.dir/ryos_eventhandler_channel.c.o
    Linking C shared library libryosmkeventhandler.so
    CMakeFiles/libryosmkeventhandler.dir/ryos_eventhandler.c.o: In function device_remove_cb': ryos_eventhandler.c:(.text+0x63b): undefined reference toryos_effect_lua_stop'
    CMakeFiles/libryosmkeventhandler.dir/ryos_eventhandler.c.o: In function device_add_cb': ryos_eventhandler.c:(.text+0xae0): undefined reference toryos_effect_lua_set_module'
    ryos_eventhandler.c:(.text+0xaf0): undefined reference to ryos_effect_lua_start' CMakeFiles/libryosmkeventhandler.dir/ryos_eventhandler.c.o: In functioneffect_cb':
    ryos_eventhandler.c:(.text+0x1308): undefined reference to `ryos_effect_lua_key_event'
    collect2: error: ld returned 1 exit status
    ryosmk/libryosmkeventhandler/CMakeFiles/libryosmkeventhandler.dir/build.make:142: recipe for target 'ryosmk/libryosmkeventhandler/libryosmkeventhandler.so' failed
    make[2]: *** [ryosmk/libryosmkeventhandler/libryosmkeventhandler.so] Error 1
    CMakeFiles/Makefile2:6106: recipe for target 'ryosmk/libryosmkeventhandler/CMakeFiles/libryosmkeventhandler.dir/all' failed
    make[1]: *** [ryosmk/libryosmkeventhandler/CMakeFiles/libryosmkeventhandler.dir/all] Error 2
    Makefile:126: recipe for target 'all' failed
    make: *** [all] Error 2

    Clearly I'm still doing something wrong. I'm on ubuntu 15.10 64bit.

     
  • Stefan Achatz

    Stefan Achatz - 2016-04-11

    It doesn't matter which Lua version you use. It has to be 5.1 and up and if a matching version is already installed just use this.
    You both have to extend your cmake config line with

    -DWITH_LUA=5.X
    

    Where X is 2 or 3 depending on the version you use.

     
  • Anonymous

    Anonymous - 2016-04-11

    Thanks. Did that. Now I get a different error:

    [ 78%] Generating plasma.lc
    /bin/sh: 1: luac: not found
    ryosmk/effect_modules/CMakeFiles/_media_gnarlin_blackstar_unsorted_roccat_roccat-tools-4.0.0_ryosmk_effect_modules_plasma.lc.dir/build.make:51: recipe for target 'ryosmk/effect_modules/plasma.lc' failed
    make[2]: *** [ryosmk/effect_modules/plasma.lc] Error 127
    CMakeFiles/Makefile2:6163: recipe for target 'ryosmk/effect_modules/CMakeFiles/_media_gnarlin_blackstar_unsorted_roccat_roccat-tools-4.0.0_ryosmk_effect_modules_plasma.lc.dir/all' failed
    make[1]: *** [ryosmk/effect_modules/CMakeFiles/_media_gnarlin_blackstar_unsorted_roccat_roccat-tools-4.0.0_ryosmk_effect_modules_plasma.lc.dir/all] Error 2
    Makefile:126: recipe for target 'all' failed
    make: *** [all] Error 2

     
  • Jed

    Jed - 2016-04-11

    Thanks Stefan and others for your patience and help. In summary, I had to do:
    sudo apt-get install lua5.2 liblua5.2dev
    cmake -DCMAKE_INSTALL_PREFIX="/usr" -DWITH_LUA=5.2 ..

    Then continue with the rest of the install instructions. After a reboot, I am now playing around with the tools.

     

    Last edit: Jed 2016-04-11
  • Stefan Achatz

    Stefan Achatz - 2016-04-12

    @Anonymous: What does "whereis luac" say? Does your distribution have luac in a separate package? Or does it only install something like luac5.3 in usr/bin?

     
  • Anonymous

    Anonymous - 2016-04-12

    Running Ubuntu 15.10 64bit. I installed lua 5.3. Perhaps luac isn't provided with 5.3?
    Guess I'll uninstall it and try installing 5.2.

    The program 'luac' can be found in the following packages:

    • lua5.1
    • lua5.2
    • lua50
      Try: sudo apt-get install <selected package=""></selected>
     
  • Stefan Achatz

    Stefan Achatz - 2016-04-13

    That missing luac seems to be a Ubuntu thing. I'm running luac 5.3.2 on Fedora 22 which is part of the lua package.

     
  • Anonymous

    Anonymous - 2016-04-22

    please update the install_deps_ubuntu script

     
  • Stefan Achatz

    Stefan Achatz - 2016-05-26
    • status: open --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





Monday.com Logo