-
Notifications
You must be signed in to change notification settings - Fork 175
Closed
Description
Using the apt-get from the readme, I get:
sudo apt-get install libpng16-dev libturbojpeg-dev libvorbis-dev libopenal-dev libsdl2-dev libmbedtls-dev libuv1-dev
E: Unable to locate package libturbojpeg-dev
The package is not libturbojpeg-dev
, it's called libjpeg-turbo8-dev
But joy upon joy, that package's install is missing a symlink, which causes hl build to break with:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libturbojpeg.a(libturbojpeg_la-turbojpeg.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libturbojpeg.a: error adding symbols: Bad value
(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:
sudo ln -s /usr/lib/x86_64-linux-gnu/libturbojpeg.so.0 /usr/lib/x86_64-linux-gnu/libturbojpeg.so
Then hl build completes successfully!
We could update the readme with the above, or point folks to this issue.
SylvainSoKette, Emka877, Axe-hyx and localhoster
Metadata
Metadata
Assignees
Labels
No labels