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
Wrong JPEG library version #132
Comments
I've never seen that one before. I don't think it's a problem with loadcaffe; maybe try reinstalling the image package? |
@jcjohnson Thanks for the advice, I'll try it and report the result. |
Hi, I tried to reinstall the image package,but still have this error. I ran the error through google and found someone else met the same error, according to some of the solutions, this may caused by having two versions of libjpeg. So I tried to delete libjpeg 9 , and run
I did install libjpeg 6 , but it seems that it cannot be loaded. If I install libjpeg 8, I will have another 'wrong JPEG library version' said:
At the end I still cannot solve this problem, so I tried to install neural-style on my mac mini , it worked well, but relatively slow , because I cannot use gpu on my mac mini . Anyway, thanks for your great work! @jcjohnson |
I had the same issue (OSX 10.9) and found the solution here: torch/image#16 |
I'm still having this issue, and tried everything I could think of. I pulled any copies of libjpeg floating around and dumped 'em, I've reinstalled luarocks image, brew jpeg, relinked brew jpeg, reinstalled torch... Still always get the error: Not sure where or why it's looking for version 62, and not really sure how I would go about force-installing 62 over 80. Any ideas? Oh, almost forgot. OSX El Capitan 10.11.3. |
what fixed it for me was:
|
I tried many things, including to remove all duplicated libjpeg.dylib files in my computer, but couldn't make it work. |
Try using libjpeg dev instead of libjpeg, it should be a bit more compatible(pretty much what randomrandom said) |
Have anyone solved this? I am getting the following error Wrong JPEG library version: library is 80, caller expects 90 I have tried to install version nine using instructions here: but I am still getting the same error. UPD: I manage to solve this by replacing libjpeg.dylib files in usr/local/lib with the more recent version |
I got same error, nothing helps, waiting for advice please. |
I found a solution by manually install the right libjpeg binary version. In my case I got this error:
So I found an old libjpeg v62 binary from searching the internet: https://gitlab.com/xonotic/xonotic/raw/e81fb5aafb41d70897cafab7dcd5ceae17d13160/misc/buildfiles/osx/Xonotic.app/Contents/MacOS/libjpeg.62.dylib Then you can copy to appropriate directory using:
Now |
Thanks a lot tanvach, but now I got another error:
|
Hey romkrl, what is the exact error you are getting? |
that was before using old dlyb that you suggest me. Thanks a lot for your help @tanvach! And after I do: `
And I got this error:
|
Hi all! I'm also getting this same error (on OS X 10.10.5) For example:
I then tried to specify the version of libjpeg to use by doing:
I've also downloaded jpeg-6b, compiled from source, and pointed both lib and include to the directory with the same issue:
Any suggestions? I tried tanvach's suggestion (which is the same library that I have, verified via md5) and getting the same issue. |
I was able to solve this, though with a big hack. Running:
The grep spit out:
Since I don't use that framework (SpeakerPhone) for anything anymore, I backed it up and copied all the jpeg-6b .h files into it (after downloading jpeg-6b from sourceforge):
And now
|
I recently faced this problem with MacOS Sierra (10.12) because brew still has libjpeg version 80. The following procedure worked for me.
The key is to uninstall image and then install it after the libjpeg update so that it links against the newer version of libjpeg. |
Figured out a hacky fix: |
Frameworks with headers cause CMake to produce an incorrect build. CMake has this funny parameter called CMAKE_FIND_FRAMEWORK which is set by default to FIRST. This means that CMake will first look for files first in all framework directories, and only then in regular include directories. Funnily enough frameworks (in my case it was Mono) may contain the headers for libjpeg and libpng. So, CMake finds the headers in Mono, but the library in the regular install location, e.g. /usr/local/lib and therefore a version mismatch happens. Mono is a known menace (for some time brew doctor warned if Mono is installed that builds may fail). You can see this behavior if you create a CMakeLists.txt file with the single line find_package(JPEG), run cmake . and take a look at the paths in the generated CMakeCache.txt file. The fix that definitively worked for me was to check out the project manually, add set(CMAKE_FIND_FRAMEWORK LAST) to CMakeLists.txt before the find_package calls and then run luarocks make. This way CMake found the headers in the right folder. |
@noamlerner How did you install the correct version there? |
@NightMachinary I had the right version on my computer somewhere, I just copied (cp) it |
Ok I after trying without luck for more than a few hours, this is what worked for me, macOS Sierra 10.12.6. I was having the
To test if it works: Huge thanks to everybody that posted here! 🥇 |
Hello! I'm running on mac OS X El Capitan 10.11.2
I tried to install neural-stype following the instructions here
But when I try to run
th neural_style.lua -gpu -1 -print_iter -1
, I got these errors:I have spent much time on this issue, I uninstalled torch and loadcaffe , then installed them again for twice, but I still get this error, I really need some help :(
The text was updated successfully, but these errors were encountered: