Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Wrong JPEG Library
Wrong JPEG Library [message #1251043] Wed, 19 February 2014 21:37
Ian Barker is currently offline Ian BarkerFriend
Messages: 1
Registered: February 2014
Junior Member
For a while now I've been trying to be able to compile and run an image segmentation program on my Mac using Eclipse with CDT installed. And eventually I reached the problem of: wrong JPEG library, library is 80; caller expects 62. So I played around with trying to get the right file to be linked and it eventually succeeded. I don't know why it worked, but it suddenly did.

Unfortunately I now need to be able to run openMP and Xcode 5 is unable to run that. So I had to install through MacPorts gcc 4.8 and that can run on Eclipse CDT. This being the version of Eclipse that doesn't have to go through the marketplace to run CDT.

The problem I am having is that on Eclipse CDT, the platform that can run gcc 4.8 for me and therefore openMP works, I again have the problem with the wrong JPEG library being used. And I can't figure out why. It doesn't help that I was never able to figure out what I did right the last time, but now no matter how similar I make the settings for each one I can't get it to work.

When I build it I get:

15:33:07 **** Rebuild of configuration Default for project ImageSeg(rev2) ****
Info: Internal Builder is used for build
gcc -Ijpeg -O2 -g -Wall -c -fmessage-length=0 -o imageSegmentation_seq.o ../imageSegmentation_seq.c
gcc -Ijpeg -O2 -g -Wall -c -fmessage-length=0 -o interval.o ../interval.c
gcc -Ijpeg -O2 -g -Wall -c -fmessage-length=0 -o partition.o ../partition.c
gcc -Ijpeg -O2 -g -Wall -c -fmessage-length=0 -o sobel.o ../sobel.c
gcc -Ijpeg -O2 -g -Wall -c -fmessage-length=0 -o vector.o ../vector.c
g++ -L/usr/local/lib -v -o ImageSeg(rev2) vector.o sobel.o partition.o interval.o imageSegmentation_seq.o -ljpeg
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin12/4.8.2/lto-wrapper
Target: x86_64-apple-darwin12
Configured with: /opt/local/var/macports/build/_opt_mports_dports_lang_gcc48/gcc48/work/gcc-4.8.2/configure --prefix=/opt/local --build=x86_64-apple-darwin12 --enable-languages=c,c++,objc,obj-c++,lto,fortran,java --libdir=/opt/local/lib/gcc48 --includedir=/opt/local/include/gcc48 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.8 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.8 --with-gxx-include-dir=/opt/local/include/gcc48/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-cloog=/opt/local --enable-cloog-backend=isl --disable-cloog-version-check --enable-stage1-checking --disable-multilib --enable-lto --enable-libstdcxx-time --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=htts://trac.macports.org/newticket --with-pkgversion='MacPorts gcc48 4.8.2_0'
Thread model: posix
gcc version 4.8.2 (MacPorts gcc48 4.8.2_0)
COMPILER_PATH=/opt/local/libexec/gcc/x86_64-apple-darwin12/4.8.2/:/opt/local/libexec/gcc/x86_64-apple-darwin12/4.8.2/:/opt/local/libexec/gcc/x86_64-apple-darwin12/:/opt/local/lib/gcc48/gcc/x86_64-apple-darwin12/4.8.2/:/opt/local/lib/gcc48/gcc/x86_64-apple-darwin12/
LIBRARY_PATH=/opt/local/lib/gcc48/gcc/x86_64-apple-darwin12/4.8.2/:/opt/local/lib/gcc48/gcc/x86_64-apple-darwin12/4.8.2/../../../:/usr/lib/
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.8.5' '-L/usr/local/lib' '-v' '-o' 'ImageSeg(rev2)' '-shared-libgcc' '-mtune=core2'
/opt/local/libexec/gcc/x86_64-apple-darwin12/4.8.2/collect2 -dynamic -arch x86_64 -macosx_version_min 10.8.5 -weak_reference_mismatches non-weak -o ImageSeg(rev2) -L/usr/local/lib -L/opt/local/lib/gcc48/gcc/x86_64-apple-darwin12/4.8.2 -L/opt/local/lib/gcc48/gcc/x86_64-apple-darwin12/4.8.2/../../.. vector.o sobel.o partition.o interval.o imageSegmentation_seq.o -ljpeg -lstdc++ -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lSystem -v
collect2 version 4.8.2
/opt/local/bin/ld -dynamic -arch x86_64 -macosx_version_min 10.8.5 -weak_reference_mismatches non-weak -o ImageSeg(rev2) -L/usr/local/lib -L/opt/local/lib/gcc48/gcc/x86_64-apple-darwin12/4.8.2 -L/opt/local/lib/gcc48/gcc/x86_64-apple-darwin12/4.8.2/../../.. vector.o sobel.o partition.o interval.o imageSegmentation_seq.o -ljpeg -lstdc++ -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lSystem -v
@(#)PROGRAM:ld PROJECT:ld64-136
configured to support archs: i386 x86_64 armv7 armv7s
Library search paths:
/usr/local/lib
/opt/local/lib/gcc48/gcc/x86_64-apple-darwin12/4.8.2
/opt/local/lib/gcc48
/usr/lib
/usr/local/lib
Framework search paths:
/Library/Frameworks/
/System/Library/Frameworks/

15:33:08 Build Finished (took 1s.344ms)
Previous Topic:Symbol could not be resolved - MinGW + STL
Next Topic:Can't compile C++11 code from Eclipse but can from command line
Goto Forum:
  


Current Time: Thu Apr 25 14:45:17 GMT 2024

Powered by FUDForum. Page generated in 0.02942 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top