Menu

#48 Can't compile roccat-tools 3.2.0

v1.0_(example)
closed
None
1
2015-04-11
2015-03-11
No

I can't compile the roccat-tools :( Getting this warning:

CMake Warning (dev) at ryosmk/libroccatryosmk/CMakeLists.txt:34 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "ryos_dbus_bindings" of target "libroccatryosmk" does
  not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at ryosmk/libryosmkeventhandler/CMakeLists.txt:23 (ADD_DEPENDENCIES):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "ryos_dbus_bindings" of target
  "libryosmkeventhandler" does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

and make stops with this error:

     Linking C executable roccatluaconfig
     ../../libroccat/libroccat.so.3.2.0: undefined reference to `dbus_message_new_method_call'
    ../../libroccat/libroccat.so.3.2.0: undefined reference to `dbus_connection_send'
    ../../libroccat/libroccat.so.3.2.0: undefined reference to `dbus_message_unref'
    ../../libroccat/libroccat.so.3.2.0: undefined reference to `dbus_message_append_args'
    ../../libroccat/libroccat.so.3.2.0: undefined reference to `dbus_connection_send_with_reply_and_block'
    ../../libroccat/libroccat.so.3.2.0: undefined reference to `dbus_message_get_args'
    collect2: error: ld returned 1 exit status
    lua/roccatluaconfig/CMakeFiles/roccatluaconfig.dir/build.make:352: recipe for target 'lua/roccatluaconfig/roccatluaconfig' failed
    make[2]: *** [lua/roccatluaconfig/roccatluaconfig] Error 1
    CMakeFiles/Makefile2:4189: recipe for target 'lua/roccatluaconfig/CMakeFiles/roccatluaconfig.dir/all' failed
    make[1]: *** [lua/roccatluaconfig/CMakeFiles/roccatluaconfig.dir/all] Error 2
    Makefile:127: recipe for target 'all' failed
    make: *** [all] Error 2

Discussion

  • Stefan Achatz

    Stefan Achatz - 2015-03-12

    Funny that these clear errors work for me, but here's a patch:

    diff --git a/libroccat/CMakeLists.txt b/libroccat/CMakeLists.txt
    index ead603c..bf61d05 100644
    --- a/libroccat/CMakeLists.txt
    +++ b/libroccat/CMakeLists.txt
    @@ -46,6 +46,7 @@ SET(SOURCES
    
     SET(LIBRARIES
       libroccathelper
    
    +  ${DBUS_LIBRARIES}
       ${GAMINGGEAR0_LIBRARY}
     )
    
    diff --git a/ryosmk/libroccatryosmk/CMakeLists.txt b/ryosmk/libroccatryosmk/CMakeLists.txt
    index 0e4243a..69c56e9 100644
    --- a/ryosmk/libroccatryosmk/CMakeLists.txt
    +++ b/ryosmk/libroccatryosmk/CMakeLists.txt
    @@ -33,7 +33,7 @@ ADD_LIBRARY(libroccatryosmk SHARED
    
     ADD_DEPENDENCIES(libroccatryosmk
       generated_headers
    
    -  ryos_dbus_bindings
    +  ryosmk_dbus_bindings
     )
    
     TARGET_LINK_LIBRARIES(libroccatryosmk
    diff --git a/ryosmk/libryosmkeventhandler/CMakeLists.txt b/ryosmk/libryosmkeventhandler/CMakeLists.txt
    index ab26de8..ad93376 100644
    --- a/ryosmk/libryosmkeventhandler/CMakeLists.txt
    +++ b/ryosmk/libryosmkeventhandler/CMakeLists.txt
    @@ -22,7 +22,7 @@ ADD_LIBRARY(libryosmkeventhandler SHARED ${SOURCES})
    
     ADD_DEPENDENCIES(libryosmkeventhandler
       generated_headers
    
    -  ryos_dbus_bindings
    +  ryosmk_dbus_bindings
     )
    
     SET_TARGET_PROPERTIES(libryosmkeventhandler
    
     
  • Aaron Mueller

    Aaron Mueller - 2015-03-12

    Thanks, works fine now!
    I've added the patch to the Arch Linux AUR package.

     
  • Stefan Achatz

    Stefan Achatz - 2015-03-17
    • status: open --> closed
     
  • Anonymous

    Anonymous - 2015-04-10

    Hi there, I'm new here and I'm still trying to find my way around linux. I'm having the same problem as described above but I don't know how to use the patch... Can you help?

     
  • Stefan Achatz

    Stefan Achatz - 2015-04-11

    Copy-paste the patch into a file.
    In the shell:

    cd roccat-tools-3.2.0
    patch -p1 -i PATH_TO_PATCH_FILE
    
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB