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

Keep getting the error ‘struct jpeg_compress_struct’ has no member named ‘decoded_mcus_base’ on RHEL 6.6. #3

Open
a52siddi opened this issue May 31, 2017 · 0 comments

Comments

@a52siddi
Copy link

a52siddi commented May 31, 2017

Hello.

I ran the configure command in the following way:

./configure CPPFLAGS="-I/usr/local/cuda/include" LDFLAGS="-L/usr/local/cuda/lib64"

It produced the following output:

checking for gcc... gcc
checking whether the C compiler (gcc  -L/usr/local/cuda/lib64) works... yes
checking whether the C compiler (gcc  -L/usr/local/cuda/lib64) is a cross-compiler... no
checking whether we are using GNU C... yes
checking how to run the C preprocessor... gcc -E
checking for function prototypes... yes
checking for stddef.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for size_t... yes
checking for type unsigned char... yes
checking for type unsigned short... yes
checking for type void... yes
checking for working const... yes
checking for inline... __inline__
checking for broken incomplete types... ok
checking for short external names... ok
checking to see if char is signed... yes
checking to see if right shift is signed... yes
checking to see if fopen accepts b spec... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking libjpeg version number... 62
creating ./config.status
creating Makefile
creating jconfig.h
jconfig.h is unchanged

After typing make I got the following response:

gcc -O0 -I/usr/local/cuda/include -I.   -c -o jcapimin.o jcapimin.c
jcapimin.c: In function ‘jpeg_CreateCompress’:
jcapimin.c:81: error: ‘struct jpeg_compress_struct’ has no member named ‘decoded_mcus_base’
jcapimin.c:82: error: ‘struct jpeg_compress_struct’ has no member named ‘decoded_mcus_current’
make: *** [jcapimin.o] Error 1

I read install.doc and tried compiling and executing ckconfig.c. I did it successfully using the commands gcc -c ckconfig.c and then gcc ckconfig -o ckconfig.o. This produced the following output:

Configuration check for Independent JPEG Group's software done.

I have written the jconfig.h file for you.

I then copied and pasted the contents of makefile.unix into Makefile. The parts I changed are as follows:

# Makefile for Independent JPEG Group's software

# This makefile is suitable for Unix-like systems with ANSI-capable compilers.
# If you have a non-ANSI compiler, makefile.unix is a better starting point.

# Read installation instructions before saying "make" !!

# The name of your C compiler:
CC= cc

# You may need to adjust these cc options:
CFLAGS= -O -I/usr/local/cuda/include -I$(srcdir)
# Generally, we recommend defining any configuration symbols in jconfig.h,
# NOT via -D switches here.

# Link-time cc options:
LDFLAGS= -L/usr/local/cuda/lib64

# To link any special libraries, add the necessary -l commands here.
LDLIBS= -lOpenCL
# Put here the object file name for the correct system-dependent memory
# manager file.  For Unix this is usually jmemnobs.o, but you may want
# to use jmemansi.o or jmemname.o if you have limited swap space.
SYSDEPMEM= jmemnobs.o

# miscellaneous OS-dependent stuff
# linker
LN= $(CC)
# file deletion command
RM= rm -f
# library (.a) file creation command
AR= ar rc
# second step in .a creation (use "touch" if not needed)
AR2= ranlib

# End of configurable options.

I typed make again on the command line and I got this response:

root@gksrv001 jpeg-opencl]# make
cc -O -I/usr/local/cuda/include -I   -c -o jcapimin.o jcapimin.c
jcapimin.c: In function ‘jpeg_CreateCompress’:
jcapimin.c:81: error: ‘struct jpeg_compress_struct’ has no member named ‘decoded_mcus_base’
jcapimin.c:82: error: ‘struct jpeg_compress_struct’ has no member named ‘decoded_mcus_current’
make: *** [jcapimin.o] Error 1

How can I fix this problem?

Waiting eagerly for your response.

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

1 participant