Code Monkey home page Code Monkey logo

Comments (2)

midstreeeam avatar midstreeeam commented on July 30, 2024

Thank you for your sharing! But here I met a problem that the computer can not find the libjpeg.

-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) 
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
JPEG_LIBRARY (ADVANCED)
    linked by target "openpano" in directory /Users/jeremy.lou/Desktop/git/OpenPano-master/src

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

Although I installed it through brew, it is still not working.
Then I tried gcc -ljpeg, and get

ld: library not found for -ljpeg

I also tried gcc -ljpeg -L /opt/homebrew/Cellar/jpeg/9e/lib/
then I got

Undefined symbols for architecture arm64:
  "_main", referenced from:
     implicit entry/start for main executable
ld: symbol(s) not found for architecture arm64

I am not sure how to fix it.

from openpano.

midstreeeam avatar midstreeeam commented on July 30, 2024

Thank you for your sharing! But here I met a problem that the computer can not find the libjpeg.

-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) 
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
JPEG_LIBRARY (ADVANCED)
    linked by target "openpano" in directory /Users/jeremy.lou/Desktop/git/OpenPano-master/src

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

Although I installed it through brew, it is still not working. Then I tried gcc -ljpeg, and get

ld: library not found for -ljpeg

I also tried gcc -ljpeg -L /opt/homebrew/Cellar/jpeg/9e/lib/ then I got

Undefined symbols for architecture arm64:
  "_main", referenced from:
     implicit entry/start for main executable
ld: symbol(s) not found for architecture arm64

I am not sure how to fix it.

Fixed by specifying the path to jpeg lib cmake -DJPEG_LIBRARY:PATH=/opt/homebrew/Cellar/jpeg/9e/lib/libjpeg.a -DJPEG_INCLUDE_DIR:PATH=/opt/homebrew/Cellar/jpeg/9e/include ..

But I still don't know why cmake can't find it by default

from openpano.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.