10gic / vanitygen-plusplus

A vanity address generator for BTC, ETH, LTC, TRX and 100+ more crypto currencies.
GNU Affero General Public License v3.0
254 stars 90 forks source link

undefined reference to `vg_get_altcoin' #10

Closed ZyC0R3 closed 3 years ago

ZyC0R3 commented 3 years ago

Hi, When trying to compile this on ubuntu i get


cc   oclvanitygen.o   -o oclvanitygen
/usr/bin/ld: oclvanitygen.o: in function `main':
/home/zycore/vanitygen-plusplus/oclvanitygen.c:204: undefined reference to `vg_get_altcoin'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:312: undefined reference to `vg_exec_context_new_key'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:313: undefined reference to `EC_KEY_get0_group'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:313: undefined reference to `EC_POINT_hex2point'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:316: undefined reference to `EC_KEY_free'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:426: undefined reference to `RAND_load_file'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:441: undefined reference to `vg_prefix_context_new'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:458: undefined reference to `vg_output_match_console'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:458: undefined reference to `vg_output_timing_console'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:469: undefined reference to `vg_context_add_patterns'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:517: undefined reference to `vg_ocl_context_new_from_devstr'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:487: undefined reference to `vg_context_add_patterns'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:477: undefined reference to `vg_read_file'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:438: undefined reference to `vg_regex_context_new'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:485: undefined reference to `vg_prefix_context_set_case_insensitive'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:487: undefined reference to `vg_context_add_patterns'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:477: undefined reference to `vg_read_file'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:499: undefined reference to `vg_read_password'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:505: undefined reference to `vg_check_password_complexity'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:544: undefined reference to `vg_ocl_enumerate_devices'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:547: undefined reference to `vg_context_start_threads'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:551: undefined reference to `vg_context_wait_for_completion'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:552: undefined reference to `vg_ocl_context_free'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:529: undefined reference to `vg_ocl_context_new'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:539: undefined reference to `vg_ocl_enumerate_devices'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:190: undefined reference to `vg_print_alicoin_help_msg'
collect2: error: ld returned 1 exit status
make: *** [<builtin>: oclvanitygen] Error 1```

Any idea why this may be. 
10gic commented 3 years ago

@ZyC0R3 There is no tool oclvanitygen in this project. In Makefile, the target is oclvanitygen++.

ZyC0R3 commented 3 years ago

Ow yea, my bad,

when i try that however i get

zycore@Apollo:~$ cd vanitygen-plusplus && make oclvanitygen++
cc oclvanitygen.o oclengine.o pattern.o util.o groestl.o sha3.o -o oclvanitygen++ -ggdb -O3 -Wall -lpcre -lcrypto -lm -lpthread -lOpenCL
/usr/bin/ld: cannot find -lOpenCL
collect2: error: ld returned 1 exit status
make: *** [Makefile:37: oclvanitygen++] Error 1

or i try


zycore@Apollo:~/vanitygen-plusplus$ make all
cc oclvanitygen.o oclengine.o pattern.o util.o groestl.o sha3.o -o oclvanitygen++ -ggdb -O3 -Wall -lpcre -lcrypto -lm -lpthread -lOpenCL
/usr/bin/ld: cannot find -lOpenCL
collect2: error: ld returned 1 exit status
make: *** [Makefile:37: oclvanitygen++] Error 1```
ZyC0R3 commented 3 years ago

Im also having real difficulty in building this in to a windows binary file, i know other people have asked, do you have any way to build it as it may be a tad easier for me, linux novice and all. lol

ZyC0R3 commented 3 years ago

I will close this issue, seems its me not the code, Linux on windows does not support OpenCL.

10gic commented 3 years ago

@ZyC0R3 You can try https://github.com/10gic/vanitygen-plusplus/releases, good lucky.