Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation issue on mac os x 10.8 #70

Closed
yassersouri opened this issue Sep 21, 2013 · 5 comments
Closed

compilation issue on mac os x 10.8 #70

yassersouri opened this issue Sep 21, 2013 · 5 comments

Comments

@yassersouri
Copy link

I have almost most of the dependencies installed, but I still can't manage to finish the compilation process. There seems to be a problem in linking stage of the process. Because object files are compiled.

When I do make in lib folder I don't get errors and everything seems ok:

➭ make 
clang ccv_cache.c -o ccv_cache.o -c -O3 -ffast-math -Wall -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
clang ccv_memory.c -o ccv_memory.o -c -O3 -ffast-math -Wall -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
clang 3rdparty/sha1/sha1.c -o 3rdparty/sha1/sha1.o -c -O3 -ffast-math -Wall -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
clang 3rdparty/kissfft/kiss_fft.c -o 3rdparty/kissfft/kiss_fft.o -c -O3 -ffast-math -Wall -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
clang 3rdparty/kissfft/kiss_fftnd.c -o 3rdparty/kissfft/kiss_fftnd.o -c -O3 -ffast-math -Wall -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
clang 3rdparty/kissfft/kiss_fftr.c -o 3rdparty/kissfft/kiss_fftr.o -c -O3 -ffast-math -Wall -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
clang 3rdparty/kissfft/kiss_fftndr.c -o 3rdparty/kissfft/kiss_fftndr.o -c -O3 -ffast-math -Wall -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
clang 3rdparty/kissfft/kissf_fft.c -o 3rdparty/kissfft/kissf_fft.o -c -O3 -ffast-math -Wall -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
clang 3rdparty/kissfft/kissf_fftnd.c -o 3rdparty/kissfft/kissf_fftnd.o -c -O3 -ffast-math -Wall -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
clang 3rdparty/kissfft/kissf_fftr.c -o 3rdparty/kissfft/kissf_fftr.o -c -O3 -ffast-math -Wall -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
clang 3rdparty/kissfft/kissf_fftndr.c -o 3rdparty/kissfft/kissf_fftndr.o -c -O3 -ffast-math -Wall -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
clang 3rdparty/dsfmt/dSFMT.c -o 3rdparty/dsfmt/dSFMT.o -c -O3 -ffast-math -Wall -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
clang 3rdparty/sfmt/SFMT.c -o 3rdparty/sfmt/SFMT.o -c -O3 -ffast-math -Wall -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
clang ccv_io.c -o ccv_io.o -c -O3 -ffast-math -Wall -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
clang ccv_numeric.c -o ccv_numeric.o -c -O3 -ffast-math -Wall -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
clang ccv_algebra.c -o ccv_algebra.o -c -O3 -ffast-math -Wall -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
clang ccv_util.c -o ccv_util.o -c -O3 -ffast-math -Wall -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
clang ccv_basic.c -o ccv_basic.o -c -O3 -ffast-math -Wall -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
clang ccv_resample.c -o ccv_resample.o -c -O3 -ffast-math -Wall -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
clang ccv_transform.c -o ccv_transform.o -c -O3 -ffast-math -Wall -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
clang ccv_classic.c -o ccv_classic.o -c -O3 -ffast-math -Wall -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
clang ccv_daisy.c -o ccv_daisy.o -c -O3 -ffast-math -Wall -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
clang ccv_sift.c -o ccv_sift.o -c -O3 -ffast-math -Wall -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
clang ccv_bbf.c -o ccv_bbf.o -c -O3 -ffast-math -Wall -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
clang ccv_mser.c -o ccv_mser.o -c -O3 -ffast-math -Wall -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
clang ccv_swt.c -o ccv_swt.o -c -O3 -ffast-math -Wall -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
clang ccv_dpm.c -o ccv_dpm.o -c -O3 -ffast-math -Wall -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
clang ccv_tld.c -o ccv_tld.o -c -O3 -ffast-math -Wall -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
clang ccv_ferns.c -o ccv_ferns.o -c -O3 -ffast-math -Wall -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
clang ccv_icf.c -o ccv_icf.o -c -O3 -ffast-math -Wall -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
ccv_icf.c:587:84: warning: format specifies type 'unsigned long' but the argument has type 'unsigned long long' [-Wformat]
        printf("\n - features are precomputed on examples and will occupy %luM memory\n", (uint64_t)(feature_size * step) / (1024 * 1024));
                                                                          ~~~             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                          %llu
1 warning generated.
ar rcs libccv.a ccv_cache.o ccv_memory.o 3rdparty/sha1/sha1.o 3rdparty/kissfft/kiss_fft.o 3rdparty/kissfft/kiss_fftnd.o 3rdparty/kissfft/kiss_fftr.o 3rdparty/kissfft/kiss_fftndr.o 3rdparty/kissfft/kissf_fft.o 3rdparty/kissfft/kissf_fftnd.o 3rdparty/kissfft/kissf_fftr.o 3rdparty/kissfft/kissf_fftndr.o 3rdparty/dsfmt/dSFMT.o 3rdparty/sfmt/SFMT.o ccv_io.o ccv_numeric.o ccv_algebra.o ccv_util.o ccv_basic.o ccv_resample.o ccv_transform.o ccv_classic.o ccv_daisy.o ccv_sift.o ccv_bbf.o ccv_mser.o ccv_swt.o ccv_dpm.o ccv_tld.o ccv_ferns.o ccv_icf.o

But when I make in bin folder I get the following erros:

➭ make
make -C ../lib
make[1]: Nothing to be done for `all'.
clang bbffmt.c -o bbffmt.o -c -O3 -Wall -I"../lib" -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
clang -o bbffmt bbffmt.o -L"../lib" -lccv -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 -lgsl -lfftw3f -lfftw3 -llinear -framework Accelerate -I/usr/local/include -I/Users/yasser/installs/liblinear-1.93 -I/usr/lib
ld: library not found for -ljpeg
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [bbffmt] Error 1

I have changed the config.mk file to this:

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 -lgsl -lfftw3f -lfftw3 -llinear -framework Accelerate

I think this should be a simple issue but I couldn't fix it.

Please give me a hint!

@liuliu
Copy link
Owner

liuliu commented Sep 22, 2013

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.

@yassersouri
Copy link
Author

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 notifications@github.com 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.

@yassersouri
Copy link
Author

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

@yassersouri
Copy link
Author

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.

@liuliu
Copy link
Owner

liuliu commented Sep 23, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants