<p>The Subsystem tends to have some issues. It's not as mature as other solutions. Try something like MinGW, MSys or Cygwin, or cross-compile on a proper Linux virtual machine and transfer the compiled executable back to your host.</p>

CC BY-SA 4.0
2020-10-27T13:52:48.963Z
2020-10-27T13:52:48.963Z
Expectator
<p>Perhaps, if you want to generate a vanity address, I suggest you use Vanitygen Plus</p>

<p><a href="https://github.com/exploitagency/vanitygen-plus" rel="nofollow noreferrer">https://github.com/exploitagency/vanitygen-plus</a> (More up to date and features)</p>

<p>and to compile, run <code>make -f Makefile</code> after u clone the repo and cd into it.</p>

CC BY-SA 4.0
2019-10-01T02:00:08.733Z
Yes, but can I compile oclvanitygen from it?
Yoshi24517
CC BY-SA 4.0
2019-10-01T02:08:00.813Z
I have it, but I'm still getting an error code of -1001 when I look for opencl gpus when I installed cuda 10 on ubuntu.
Yoshi24517
CC BY-SA 4.0
2019-10-01T13:11:15.773Z
Vanitygen-plus is newer and more feature than legacy Vanitygen (which is ~7-8 years ago). So yes it more stable and has same feature as Vanitygen.


Also, you should also use Makefile to compile the source instead using gcc to compile it since it has all the required configuration it needed to compile.
zhiyan114
CC BY-SA 4.0
2019-10-01T01:03:32.130Z
2019-10-01T01:03:32.130Z
zhiyan114
<p>I am trying to compile oclvanitygen because I have an Nvidia GTX 1080 that would most likely be helpful for this. I'm using the Windows Subsystem for Linux with Ubuntu 18.04.</p>

<p>I tried this command: <code>gcc oclvanitygen.o oclengine.o pattern.o util.o -o oclvanitygen -ggdb -O3 -Wall -L/usr/lib/x86_64-linux-gnu/ -lpcre -lcrypto -lm -lpthread -l:/usr/lib/x86_64-linux-gnu/libopencl.so.1</code></p>

<p>It basically says that <code>libopencl.so.1</code> does not exist. However, I have <code>libnvidia-opencl.so.1</code>, so I try this command: <code>gcc oclvanitygen.o oclengine.o pattern.o util.o -o oclvanitygen -ggdb -O3 -Wall -L/usr/lib/x86_64-linux-gnu/ -lpcre -lcrypto -lm -lpthread -l:/usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1</code></p>

<p>Then it says <code>/usr/bin/ld: cannot find -l:/usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1</code></p>

<p>So I do a list of <code>x86_64-linux-gnu</code>, and there it is, clear as day. <a href="https://i.sstatic.net/T10sV.jpg" rel="nofollow noreferrer">list of x86-64-linux-gnu</a></p>

<p>How can I compile this correctly? Here is a picture of what happens when I run the command: <a href="https://i.sstatic.net/5sDCm.jpg" rel="nofollow noreferrer">GCC Command</a></p>

<p>I have installed the <code>ocl-icd-opencl-dev</code> package, but it does not include <code>libopencl.so.1</code>.</p>

<p>Please tell me if I am doing something wrong. Thanks!</p>

<ubuntu><compiling><vanitygen>
oclvanitygen not compiling
Yoshi24517
# oclvanitygen not compiling

(Asked by: username_0 on 2019-09-30)

I am trying to compile oclvanitygen because I have an Nvidia GTX 1080 that would most likely be helpful for this. I'm using the Windows Subsystem for Linux with Ubuntu 18.04.

I tried this command: `gcc oclvanitygen.o oclengine.o pattern.o util.o -o oclvanitygen -ggdb -O3 -Wall -L/usr/lib/x86_64-linux-gnu/ -lpcre -lcrypto -lm -lpthread -l:/usr/lib/x86_64-linux-gnu/libopencl.so.1`

It basically says that `libopencl.so.1` does not exist. However, I have `libnvidia-opencl.so.1`, so I try this command: `gcc oclvanitygen.o oclengine.o pattern.o util.o -o oclvanitygen -ggdb -O3 -Wall -L/usr/lib/x86_64-linux-gnu/ -lpcre -lcrypto -lm -lpthread -l:/usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1`

Then it says `/usr/bin/ld: cannot find -l:/usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1`

So I do a list of `x86_64-linux-gnu`, and there it is, clear as day. [list of x86-64-linux-gnu](https://i.sstatic.net/T10sV.jpg)

How can I compile this correctly? Here is a picture of what happens when I run the command: [GCC Command](https://i.sstatic.net/5sDCm.jpg)

I have installed the `ocl-icd-opencl-dev` package, but it does not include `libopencl.so.1`.

Please tell me if I am doing something wrong. Thanks!

**Tags:** ubuntu, compiling, vanitygen


---

## 2 answers

### Answer by username_1 on 2020-10-27. Score: 0

The Subsystem tends to have some issues. It's not as mature as other solutions. Try something like MinGW, MSys or Cygwin, or cross-compile on a proper Linux virtual machine and transfer the compiled executable back to your host.


---

### Answer by username_2 on 2019-10-01. Score: 0

Perhaps, if you want to generate a vanity address, I suggest you use Vanitygen Plus

<https://github.com/exploitagency/vanitygen-plus> (More up to date and features)

and to compile, run `make -f Makefile` after u clone the repo and cd into it.

> **Comments:**
> **username_0**: Yes, but can I compile oclvanitygen from it?  
> **username_0**: I have it, but I'm still getting an error code of -1001 when I look for opencl gpus when I installed cuda 10 on ubuntu.  
> **username_2**: Vanitygen-plus is newer and more feature than legacy Vanitygen (which is ~7-8 years ago). So yes it more stable and has same feature as Vanitygen.   Also, you should also use Makefile to compile the source instead using gcc to compile it since it has all the required configuration it needed to compile.  

---

