luke-jr / bfgminer

Modular ASIC/FPGA miner written in C, featuring overclocking, monitoring, fan speed control and remote interface capabilities.
http://luke.dashjr.org/programs/bitcoin/files/bfgminer/
Other
1.84k stars 816 forks source link

Comilation fails on MSys64 #839

Open velteyn opened 2 years ago

velteyn commented 2 years ago

Hello, my attempt to compile the project in MSYS64 was unsuccessful

I installed all the dependencies but I obtain this:

/c/Users/edobar/OneDrive/work-dawork/pooler-cpuminer-2.4.5-win32/bfgminer/libblkmaker/blkmaker_jansson.c:559: undefined reference tojson_array' /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/edobar/OneDrive/work-dawork/pooler-cpuminer-2.4.5-win32/bfgminer/libblkmaker/blkmaker_jansson.c:561: undefined reference to json_string' /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/edobar/OneDrive/work-dawork/pooler-cpuminer-2.4.5-win32/bfgminer/libblkmaker/blkmaker_jansson.c:565: undefined reference tojson_array_append_new' /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: .libs/libblkmaker_jansson_0.1_la-blkmaker_jansson.o: in function json_decref': /usr/include/jansson.h:133: undefined reference tojson_delete' /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: /usr/include/jansson.h:133: undefined reference to json_delete' /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: .libs/libblkmaker_jansson_0.1_la-blkmaker_jansson.o: in function_blkmk_submit_jansson': /c/Users/edobar/OneDrive/work-dawork/pooler-cpuminer-2.4.5-win32/bfgminer/libblkmaker/blkmaker_jansson.c:567: undefined reference to json_object' /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/edobar/OneDrive/work-dawork/pooler-cpuminer-2.4.5-win32/bfgminer/libblkmaker/blkmaker_jansson.c:577: undefined reference tojson_array_append_new' /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/edobar/OneDrive/work-dawork/pooler-cpuminer-2.4.5-win32/bfgminer/libblkmaker/blkmaker_jansson.c:580: undefined reference to json_object' /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/edobar/OneDrive/work-dawork/pooler-cpuminer-2.4.5-win32/bfgminer/libblkmaker/blkmaker_jansson.c:582: undefined reference tojson_integer' /u`

velteyn commented 2 years ago

I forgot to write another interesting clue:

Warning: Trying to link with static lib archive /usr/lib/libjansson.a. I have the capability to make that library automatically link in when you link to this library. But I can only do this if you have a shared version of the library, which you do not appear to have because the file extensions .a of this argument makes me believe that it is just a static archive that I should not use here.

I can I have the shared library ? When I do: $ ls /usr/lib/libja* I obtain : /usr/lib/libjansson.a /usr/lib/libjansson.dll.a /usr/lib/libjansson.la