rtabmap icon indicating copy to clipboard operation
rtabmap copied to clipboard

ios build failed - undefined symbol

Open diandrakathyusha opened this issue 3 years ago • 3 comments

Hi, I am trying to build the iOS version of rtabmap to my iPad Pro 2020. I am using a Mac Mini 2014 with MontereyOS. I have installed CMake and OpenCV using homebrew before running the install_deps.sh. I have followed all of the installation instructions, however, I got dozens of the undefined symbols issues in my XCode. I am sure there must be some silly mistake, but I can't figure it out.

A607B42D-0376-43DE-957D-66B8D0F5C1B8 68897501-FFE2-443F-82BF-38E8DFA5A99C 3508ECB4-9D7F-425F-8A54-AC81281DBE33

Anyone willing to give any suggestion will be very appreciated!

diandrakathyusha avatar Nov 29 '22 06:11 diandrakathyusha

You don't need "OpenCV using homebrew" (this is for Desktop version), all ios dependencies are installed by install_deps.sh. ~However, I never tried compiling on Intel Mac, so the install_deps.sh may not work on Intel platforms.~ (updated, see below)

matlabbe avatar Nov 30 '22 03:11 matlabbe

I just used compiled iOS on an Intel Mac, and it works. Only issue I had is this one: https://github.com/introlab/rtabmap/issues/939

matlabbe avatar Dec 08 '22 22:12 matlabbe

You don't have to run it using the Simulator, otherwise, lots of errors will occur. The same happened to me and I solved it by selecting my physical device in the dropdown devices menu and building the project for it.

laitifranz avatar Mar 21 '23 15:03 laitifranz