dwcaress / MB-System

MB-System is an open source software package for the processing and display of bathymetry and backscatter imagery data derived from multibeam, interferometry, and sidescan sonars.
https://www.mbari.org/products/research-software/mb-system/
Other
123 stars 42 forks source link

undefined reference to `proj_normalize_for_visualization' #1471

Open MingyiG opened 1 month ago

MingyiG commented 1 month ago

I try to install the MB-System on Ubuntu20, and it was easy to build through CMake. When I tried the command 'make', this error occured:

[ 59%] Building CXX object src/utilities/CMakeFiles/mbabsorption.dir/mbabsorption.cc.o [ 59%] Linking CXX executable mbabsorption /usr/bin/ld: ../mbio/libmbio.so.0: undefined reference to `proj_normalize_for_visualization' collect2: error: ld returned 1 exit status make[2]: [src/utilities/CMakeFiles/mbabsorption.dir/build.make:105: src/utilities/mbabsorption] Error 1 make[1]: [CMakeFiles/Makefile2:1826: src/utilities/CMakeFiles/mbabsorption.dir/all] Error 2 make: *** [Makefile:146: all] Error 2

Why this bug appear? Thank you!

dwcaress commented 1 month ago

Gan Mingyi,

What version of MB-System are you trying to install?

Did you install the prerequisites as suggested in the Ubuntu 20 instructions at: https://www.mbari.org/technology/mb-system/installation/

What version of proj do you have installed? What is the output of the command: proj —version

Please provide the listing produced by running cmake.

Cheers, Dave

On Jul 12, 2024, at 12:36 AM, GAN MINGYI @.***> wrote:

I try to install the MB-System on Ubuntu20, and it was easy to build through CMake. When I tried the command 'make', this error occured:

[ 59%] Building CXX object src/utilities/CMakeFiles/mbabsorption.dir/mbabsorption.cc.o [ 59%] Linking CXX executable mbabsorption /usr/bin/ld: ../mbio/libmbio.so.0: undefined reference to `proj_normalize_for_visualization' collect2: error: ld returned 1 exit status make[2]: [src/utilities/CMakeFiles/mbabsorption.dir/build.make:105: src/utilities/mbabsorption] Error 1 make[1]: [CMakeFiles/Makefile2:1826: src/utilities/CMakeFiles/mbabsorption.dir/all] Error 2 make: *** [Makefile:146: all] Error 2

Why this bug appear? Thank you!

— Reply to this email directly, view it on GitHub https://github.com/dwcaress/MB-System/issues/1471, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTSXXADJK6HAXDCSV5KDX3ZL6BQRAVCNFSM6AAAAABKYMUFEOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYDIOJVGMYTCOA. You are receiving this because you are subscribed to this thread.


David W. Caress Principal Engineer Seafloor Mapping Lab

Monterey Bay Aquarium Research Institute 7700 Sandholdt Road Moss Landing, CA 95039

@.*** https://www.mbari.org/person/dave-caress/ https://www.mbari.org/team/seafloor-mapping/

Phone: 831-775-1775

MingyiG commented 1 month ago

Thank you, David! I installed the prerequisites following the instructions you mentioned. I downloaded the 'master' branch from github. My proj version is 5.1: I used the command from the instructions first, and I found the proj is a high version and failed to make, so I tried to uninstall the high version proj and installed the 5.1version, but I failed too.

This is my test: mingyi0725@ubuntu:~/MB-System-master/build$ make Consolidate compiler generated dependencies of target mbgsf [ 1%] Built target mbgsf Consolidate compiler generated dependencies of target dump_gsf [ 1%] Built target dump_gsf Consolidate compiler generated dependencies of target geolib [ 12%] Built target geolib Consolidate compiler generated dependencies of target qnx [ 16%] Built target qnx Consolidate compiler generated dependencies of target newmat [ 20%] Built target newmat Consolidate compiler generated dependencies of target tnav [ 24%] Built target tnav Consolidate compiler generated dependencies of target trnw [ 25%] Built target trnw Consolidate compiler generated dependencies of target mbtrnframe [ 28%] Built target mbtrnframe Consolidate compiler generated dependencies of target r7kr [ 28%] Built target r7kr Consolidate compiler generated dependencies of target mbbsio [ 30%] Built target mbbsio Consolidate compiler generated dependencies of target mbsapi [ 31%] Built target mbsapi Consolidate compiler generated dependencies of target mbio [ 56%] Built target mbio Consolidate compiler generated dependencies of target mbaux [ 58%] Built target mbaux Consolidate compiler generated dependencies of target mbxgr [ 59%] Built target mbxgr Consolidate compiler generated dependencies of target mbsystem [ 59%] Built target mbsystem Consolidate compiler generated dependencies of target mbabsorption [ 59%] Linking CXX executable mbabsorption /usr/bin/ld: ../mbio/libmbio.so.0: undefined reference to `proj_normalize_for_visualization' collect2: error: ld returned 1 exit status make[2]: [src/utilities/CMakeFiles/mbabsorption.dir/build.make:105: src/utilities/mbabsorption] Error 1 make[1]: [CMakeFiles/Makefile2:1826: src/utilities/CMakeFiles/mbabsorption.dir/all] Error 2 make: *** [Makefile:146: all] Error 2 mingyi0725@ubuntu:~/MB-System-master/build$ proj --version Rel. 5.1.0, June 1st, 2018

: invalid option: -- program abnormally terminated Thank you for your answer!