profanity icon indicating copy to clipboard operation
profanity copied to clipboard

missing INSTALL.md or packages needed to compile

Open SmartLayer opened this issue 4 years ago • 2 comments

On a Ubuntu set up, I can tell that opencl-c-headers are needed but not sure what other packages are required for compiling. Thanks.

SmartLayer avatar May 10 '21 05:05 SmartLayer

These are the steps on Ubuntu 20.04:

  1. Install opencl dependencies: apt-get install ocl-icd-opencl1 ocl-icd-opencl-dev opencl-headers
  2. Compile binary using Makefile: cd ./profanity && make
  3. Make 'profanity.x64' executable: chmod +x profanity.x64
  4. Run: ./profanity.x64 or bash profanity.x64 if you're using an alternative shell.

Funnily enough the executable throws errors when I invoke bash ./profanity.x64 from zsh, so I had to drop to bash first.

GillesJ avatar Jun 04 '21 20:06 GillesJ

In step 1 I got this (Yes I am on Ubuntu 20.04)

$ LANG=en sudo apt-get install ocl-icd-opencl1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ocl-icd-opencl1

After struggling for a while I got compilation working using

$ sudo apt install nvidia-opencl-dev  ocl-icd-opencl-dev opencl-headers

But the resulting file doesn't work. See issue #51

SmartLayer avatar Jul 02 '21 01:07 SmartLayer