-
Notifications
You must be signed in to change notification settings - Fork 747
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
Build error regarding libjpegturbo.a on Ubuntu 14.04 #36
Comments
Note that this isn't a bug in libfreenect2, but I'm posting the issue/fix here for reference. |
Mmm, I made the symbolic link and still have the error. Any pointers? Thanks. |
Could you post the exact build error? |
This confirmed bug could be the culprit, apparently there is a symlink missing. |
I've installed all dependencies and added the symbolic link with
but the make step still fails on Ubuntu 14.04
|
We have created a workaround that does not requires creating symlink under /usr. Please test latest master. |
The workaround worked using the latest master (commit 42da6d8 ) and I have Protonect up and running. |
I installed the latest commit, but it still returns the same error. |
@SebastianVarma can you post the output of |
@floe I will do so tomorrow morning when I will be in front of my computer. Thank you for helping. |
@floe The output is as follows: -rw-r--r-- 1 root root 499438 Dec 19 2013 /usr/lib/x86_64-linux-gnu/libturbojpeg.a |
This does look correct... can you please open a new issue and post the exact build error? |
Just wanted to chime in that I have this exact same issue, with the same output from |
@neorobo I also have this same output from Can you post the log of your cmake ..? (Should have Found TurboJPEG: /usr/lib/x86_64-linux-gnu/libturbojpeg.so.0) |
@xlz Based on your suggestion I checked CMakeCache.txt. It was pointing to the static library. I edited it to point to .so.0 as you suggested should be the case and protonect was succesfully installed. |
I checked again. On Ubuntu 14.04, I was also confused by this in several previous comments. |
I've compiled libfreenect2 quite a few times in the past couple weeks and I don't know if I've ever gotten it to work on the first time through following the order in the documentation. |
I'm hoping that this is finally fixed for Debian and Ubuntu with latest master (both |
I had the same Problem and had to delete /libfreenect2 and clone it again from Git. Now it works. |
Fixed it with ./depends/install_ubuntu.sh and then installing libturbojpeg with apt-get. |
I met the same problem, and I refer to this page : http://www.jetsonhacks.com/2015/02/26/install-kinect-v2-using-libfreenect2-on-nvidia-jetson-tk1/ |
On Ubuntu 16, I had the same issue. Here is how it got fixed. Hope it helps |
The above suggestion is wrong. The issue was fixed. Follow the instructions in README, and no workaround is necessary. |
@xlz can you point me to the README to which you refer? |
According to https://packages.ubuntu.com/trusty/amd64/libturbojpeg/filelist, libturbojpeg provides /usr/lib/x86_64-linux-gnu/libturbojpeg.so.0. Our CMake was specifically made to detect libturbojpeg.so.0 in the absence of libturbojpeg.so. |
@rayjs your solution also works for me in Ubuntu 16.04. Thanks a lot. |
I know the issue is closed, but in case someone still has it after trying the other suggestions: We had a very similar issue on HaxeFoundation/hashlink#147 and our solution was to follow the error message on -fPIC and rebuild libjpeg-turbo ourselves with Position-Independent Code. It should be the default when building with cmake/make, but apparently was not done so for the Ubuntu package. |
@hsandt It's generally better to link shared libraries not static objects. In this case it's better to link libturbojpeg.so not libturbojpeg.a. This is also the reason libturbojpeg.a is not built with -fPIC, because it's not meant for building shared libraries. Either you go all shared or all static. |
Ah! I missed that point. I'll go all dynamic next time. |
On current Ubuntu 14.04 amd64, even with all dependencies installed, you can get the following build error:
This is due to a bug in the libturbojpeg package. A one-line fix is to execute:
The text was updated successfully, but these errors were encountered: