AlvaAR icon indicating copy to clipboard operation
AlvaAR copied to clipboard

build error

Open yuancaimaiyi opened this issue 1 year ago • 14 comments

@alanross
When I compile AlvaAR with In the examples, I encountered the following error (my libs and slam were compiled successfully), can you give me help, or give me the dockerfile of this project? image

yuancaimaiyi avatar May 22 '23 06:05 yuancaimaiyi

@yuancaimaiyi, Thank you for highlighting this issue. The package.json lacked the fs module, but it should be resolved now.

alanross avatar May 22 '23 15:05 alanross

@alanross
Thank you very much for your answer. But I reported another error in npm start, as follows: image Therefore, my suggestion can provide a dockerfile? so that anyone who builds this project will not have to worry about the environment. In addition, I noticed that the slam algorithm of this project is not robust enough, as follows:

  1. The frame rate is not high
  2. Lack of imu constraints If I run through the project, I plan to use snake-slam (https://github.com/darglein/Snake-SLAM) --- a very well-engineered vio slam with some very good features in it Can be integrated into AlvaAR

yuancaimaiyi avatar May 23 '23 07:05 yuancaimaiyi

It seems you might be using an outdated version of Node. Try upgrading it, it might resolve the issue. You can check your current version by typing node --version into your terminal.

There are many excellent SLAM libraries available. However, most of these, including Snake-SLAM, rely on multithreading and on a large vocabulary file for their Bag-of-Words models(> 60MB). Unfortunately, both of these requirements aren't suitable for the web. Additionally, the IMU-integrated solutions that I've encountered work with data update rates higher than 120 Hz (EuRoC datasets have 200Hz). Yet, mobile devices appear to deliver IMU data at around 60Hz, which diminishes the effectiveness of this data.

alanross avatar May 30 '23 00:05 alanross

image image image image

luoxz-ai avatar Jun 27 '23 10:06 luoxz-ai

image

Compilation fails, can you give a detailed configuration environment?

luoxz-ai avatar Jun 27 '23 10:06 luoxz-ai

Compilation fails, can you give a detailed configuration environment?

luoxz-ai avatar Jun 29 '23 01:06 luoxz-ai

Thanks for detailed info @luoxz-ai. Unfortunately I can't reproduce your issue as I've only built the project on OSX. All the configuration that occurs is in the respective CMakeLists.txt files and build.sh.

Have you tried compiling OpenCV individually on your machine? This might provide some hints how to resolve the issue.

alanross avatar Jun 29 '23 04:06 alanross

Hello, thank you very much for your reply, I have compiled each dependent module separately, and found that only OpenCV and SOPHUS can be compiled, and other dependent library modules cannot be compiled

image

luoxz-ai avatar Jun 29 '23 10:06 luoxz-ai

Which version of Emscripten SDK are you using? It may be a problem with this version. I use the latest version. I tested it on MacOS, but it failed to compile. The result is the same as ubuntu. Can you tell me the versions of all your environments and dependent packages?

luoxz-ai avatar Jul 02 '23 04:07 luoxz-ai

emcmake cmake build failed, It may be related to emsdk version, or project dependencies

luoxz-ai avatar Jul 03 '23 01:07 luoxz-ai

I think so too @luoxz-ai. The emsdk version is the likely cause of the issue. I encountered the same problem after updating to the latest version (3.1.41). Try downgrading to 3.0.0 and let me know if that works for you.

$: emsdk install 3.0.0
$: emsdk activate 3.0.0

alanross avatar Jul 03 '23 08:07 alanross

image image

It still fails, it may be because of the version of emsdk that the project file cannot be generated

luoxz-ai avatar Jul 03 '23 10:07 luoxz-ai

image

Maybe it has something to do with the cmake version?

luoxz-ai avatar Jul 04 '23 09:07 luoxz-ai

image image

It still fails, it may be because of the version of emsdk that the project file cannot be generated

I also encountered the same problem, as eigen and ceres cannot compile On ubuntu20.0 ,Emsdk=3.0.0 node=16.0 Have you solved it?

create-li avatar Jul 31 '23 09:07 create-li