-
Notifications
You must be signed in to change notification settings - Fork 481
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
libjpeg dependency error #51
Comments
What compiler are you using? gcc, g++, something else? Can you describe
more about your system?? (Ubuntu Linux?) You should be able to compile with
the system-installed libjpeg. It seems like the compiler is somehow
objecting to stuff in that header, which makes me suspect that somehow the
wrong compiler is being invoked.
Noah
…On Apr 19, 2017 9:43 PM, "Zack Webb" ***@***.***> wrote:
Whenever I compile, I get an error with the libjpeg dependency. My system
has libjpeg 9 installed by default, so when I try to compile I get lots of
errors like this:
In file included from /usr/local/include/jpeglib.h:27:0,
from LoadJPEG.cpp:23:
/usr/local/include/jpeglib.h:704:3: error: expected identifier before ‘*’ token
JMETHOD(noreturn_t, error_exit, (j_common_ptr cinfo));
^
/usr/local/include/jpeglib.h:704:3: error: ‘noreturn_t’ declared as function returning a function
JMETHOD(noreturn_t, error_exit, (j_common_ptr cinfo));
^
LoadJPEG.cpp: In function ‘void GetJPEGDimensions(const char*, int&, int&)’:
LoadJPEG.cpp:32:37: error: too many arguments to function ‘jpeg_error_mgr* jpeg_std_error()’
cinfo.err = jpeg_std_error(&jerr);
^
In file included from LoadJPEG.cpp:23:0:
/usr/local/include/jpeglib.h:948:33: note: declared here
EXTERN(struct jpeg_error_mgr *) jpeg_std_error
^~~~~~~~~~~~~~
LoadJPEG.cpp:33:5: error: too many arguments to function ‘void jpeg_CreateDecompress()’
jpeg_create_decompress(&cinfo);
^
/usr/local/include/jpeglib.h:966:14: note: declared here
EXTERN(void) jpeg_CreateDecompress JPP((j_decompress_ptr cinfo,
...
Next I commented out the libjpeg.h dependency in LoadJPEG.cpp and
replaced it with the libjpeg.h included in bundler_sfm:
// #include <jpeglib.h>
#include "../lib/jpeg/src/jpeglib.h"
Then this gives me this error:
Wrong JPEG library version: library is 90, caller expects 62
Finally, I tried replacing all of the -ljpegs in the makefile with a
direct path to /usr/lib64/libjpeg.so.62.2.0, and I get this error:
JPEG parameter struct mismatch: library thinks size is 632, caller expects 600
I'm totally at a loss here. Any help would be really appreciated.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#51>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABt6qyDI9jcWyfamInzo7X-kB2owZQBUks5rxrhbgaJpZM4NCcHt>
.
|
I'm on Fedora 25, using g++.
My This is the Makefile output just before the errors:
|
Maybe the version of jpeglib.h isn't matched with gstreamer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Whenever I compile, I get an error with the libjpeg dependency. My system has libjpeg 9 installed by default, so when I try to compile I get lots of errors like this:
Next I commented out the
libjpeg.h
dependency inLoadJPEG.cpp
and replaced it with thelibjpeg.h
included inbundler_sfm
:Then this gives me this error:
Finally, I tried replacing all of the
-ljpeg
s in the makefile with a direct path to/usr/lib64/libjpeg.so.62.2.0
, and I get this error:I'm totally at a loss here. Any help would be really appreciated.
The text was updated successfully, but these errors were encountered: