-
Notifications
You must be signed in to change notification settings - Fork 160
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 instructions (on Ubuntu 16.04) #147
Comments
As you've found out, the If you use Ubuntu 18.04, the current instruction is all good. For Ubuntu 16.04, I will try to figure what is the best instruction.
I wouldn't say it should pick up which one, since there are reasons for choosing either of those. However, it should be possible to use either. It's just the 16.04 package being faulty. |
@jcward yes the instructions could be updated for Ubuntu 16.x, they are valid for Ubuntu 18.x |
Add a note about building on ubuntu 16.04 linking to HaxeFoundation#147
Add a note about building on ubuntu 16.04 linking to #147
Try libpng-dev instead of libpng16-dev |
So, I built libjpeg-turbo myself from the GitHub repository (I picked version 2.0.0). Building is easy on Linux, you can just follow the instructions at https://github.com/libjpeg-turbo/libjpeg-turbo/blob/master/BUILDING.md. The only special requirement is that you need NASM or YASM; I don't know anything about them, so I just installed the first one:
If you look at the CMakeLists.txt, you'll see CMAKE_POSITION_INDEPENDENT_CODE mentioned. Basically, if you set no extra option for cmake you should get position-independent code (-fPIC) which is what we want. Now just try to P.S.: I managed to build hashlink this way but couldn't test it due to compatibility issues with haxe (1.7 is too advanced, I need to go back to 1.1 or get a nightly build of haxe). I didn't manage to make that work, so maybe I'll post another issue later. |
I had exactly same issue on Ubuntu 16.04 but with caffe. A workaround that worked for me:
If I understand it correctly, the libturbojpeg package is a workaround for the -fPIC, however, for other libraries to pick a new libturbojpeg, the new link has to be created. |
!!! for libjpeg-turbo and turbovnc, specify -fPIC when create make file !!! cmake -G "Unix Makefiles" -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=Release .. otherwise, link error when build turbovnc |
Using the apt-get from the readme, I get:
The package is not
libturbojpeg-dev
, it's calledlibjpeg-turbo8-dev
But joy upon joy, that package's install is missing a symlink, which causes hl build to break with:
(Same problem and solution is mentioned here.)
It shouldn't pick up the .a file, it should pick up the .so file. The solution is to create the missing symlink:
Then hl build completes successfully!
We could update the readme with the above, or point folks to this issue.
The text was updated successfully, but these errors were encountered: