GithubHelp home page GithubHelp logo

Comments (5)

liuliu avatar liuliu commented on August 26, 2024

do you have libjpeg installed? try brew install libjpeg

this line of error basically says that the linker cannot link the binary against libjpeg library.

from ccv.

yassersouri avatar yassersouri commented on August 26, 2024

I have it installed both with brew and manually.
Could it be from the fact of a missing dylib for libjpeg. Because I don't have that.

On Sep 22, 2013, at 4:22 AM, Liu Liu [email protected] wrote:

do you have libjpeg installed? try brew install libjpeg

this line of error basically says that the linker cannot link the binary against libjpeg library.


Reply to this email directly or view it on GitHub.

from ccv.

yassersouri avatar yassersouri commented on August 26, 2024

As an evidence of me having 'libjpeg' installed, you can see that make succeeded in lib folder

from ccv.

yassersouri avatar yassersouri commented on August 26, 2024

I found the libjpeg's dylib in /usr/local/Cellar/jpeg/8d/lib and changed lib/config.mk to the following and it solved my problem:

XCODE_SDK := macosx10.8
ARCH := x86_64
CC := clang
AR := ar
CFLAGS := -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -msse2 -D HAVE_SSE2 -D HAVE_LIBJPEG -D HAVE_LIBPNG -I/usr/X11/include -D HAVE_GSL -D HAVE_FFTW3 -D HAVE_LIBLINEAR -D HAVE_ACCELERATE_FRAMEWORK -I/usr/local/include -I/Users/yasser/installs/liblinear-1.93 -I/Users/yasser/installs/jpeg-9
LDFLAGS := -lm -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -ljpeg -lpng -lz -L/usr/X11/lib -L/usr/local/lib -L/usr/local/Cellar/jpeg/8d/lib -L/usr/local/Cellar/liblinear/1.93/lib -lgsl -lfftw3f -lfftw3 -llinear -framework Accelerate

Note how I have manually added -L/usr/local/Cellar/jpeg/8d/lib to LDFLAGS.

from ccv.

liuliu avatar liuliu commented on August 26, 2024

Thanks for mention this! I am looking into improve the build system in ccv (for the larger effort of supporting CUDA).

from ccv.

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.