Skip to content

Build instructions (on Ubuntu 16.04) #147

@jcward

Description

@jcward

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!

image

We could update the readme with the above, or point folks to this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions