imu_utils icon indicating copy to clipboard operation
imu_utils copied to clipboard

Failed to build the package

Open LeungHEX opened this issue 5 years ago • 9 comments

Once follow the constrction in the readme, but the bulid console show the error msg like :+1:

  • Could not find a package configuration file provided by "code_utils" with
  • any of the following names:
  • code_utilsConfig.cmake
  • code_utils-config.cmake

then i try to build the code_utils without imu_utils it shows the following error:

  • fatal error: backward.hpp: No such file or directory

I am pretty sure that the files pull from your git is correct and complete, but why it cannot build?

Or can someone else help me?

LeungHEX avatar Jan 11 '19 02:01 LeungHEX

Besides, I copy the backward.hpp to where the cpp need, it built sucessfully. But I have to build code_utils first then add the imu_utils into the workspace, it seems that this process is not the same as you introduced in the readme, is there something wrong in my env? Thanks in advance if there is any useful tips.

LeungHEX avatar Jan 11 '19 02:01 LeungHEX

The fatal error I faced is XXXX/code_utils/src/sumpixel_test.cpp:2:24: fatal error: backward.hpp: No such file or directory

You can edit the "sumpixel_test.cpp" to solve this problem, change the
#include "backward.hpp" to
#include "code_utils/backward.hpp"

Sayheyheyhey avatar Jan 16 '19 09:01 Sayheyheyhey

@LeungHEX , hi, my friend, i also meet the problem as yours, have you solved it? would you please give me some help? thank U.

jsYangCode avatar Mar 18 '19 08:03 jsYangCode

像上一条评论里写的一样 只需要把sumpixel_test.cpp文件中的下边这句 #include "backward.hpp" 改成这句 #include "code_utils/backward.hpp" 就解决了

Sayheyheyhey avatar Mar 18 '19 08:03 Sayheyheyhey

@Sayheyheyhey ok 了 谢谢您

jsYangCode avatar Mar 18 '19 09:03 jsYangCode

@Sayheyheyhey Using your method, the problem is still unresolved. I compile code_utils first, then add imu_utils in, compile again, and it succeeds.

luzhaozhang2276 avatar Jun 22 '19 09:06 luzhaozhang2276

Yep, compiling with code_utils only in the src folder worked (after fixing some dependencies e.g. backward.hpp, libf77blas.so, libspqr.so) and then I moved imu_utils to the same folder and ran catkin_make again. This should be documented or fixed for other people.

beduffy avatar Aug 12 '19 14:08 beduffy

This is a problem with the compile chain. You need to add such a sentence in the package.yaml of imu_utils <buildtool_depend> code_utils </ buildtool_depend>

Hezip avatar Mar 07 '20 01:03 Hezip

Yep, compiling with code_utils only in the src folder worked (after fixing some dependencies e.g. backward.hpp, libf77blas.so, libspqr.so) and then I moved imu_utils to the same folder and ran catkin_make again. This should be documented or fixed for other people.

I solved the problems by this way.

Tianci-Wen avatar Feb 02 '23 04:02 Tianci-Wen