Sep 21, 2017, 11:40 am

News:

Ufasoft Coin 0.110 new features: SOCKS5, TOR,
bootstrap.dat DB format


Compiling ufasoft bitcoin miner on VS2012 Ultimate

Started by Ivanov2014, Apr 08, 2014, 11:20 am

previous topic - next topic
Go Down

Ivanov2014

Hello, I just downloaded ufasoft bitcoin miner, I am trying to compile it with VS2012 Ultimate but I am having issue here. It gives me error: fatal error C1083: Cannot open include file: 'mpir.h': No such file or directory from el/num/num.h . Can I just remove this 'mpir.h' dependency from the project ?

ufasoft

#1
Apr 09, 2014, 08:57 am Last Edit: Apr 09, 2014, 08:59 am by ufasoft
3rd party libs should be added to the project manually.
You can get MPIR from http://www.mpir.org/.

Ivanov2014

Thanks for the help admin, I am still trying to build this now I'm getting this error:  fatal error C1189: #error :  OpenCL 1.2 or later version is required


ufasoft

AMD APP SDK contains latest OpenCL

Ivanov2014

Thanks, now I have this error : LINK : fatal error LNK1181: cannot open input file 'libext.lib'

I tried to create a libext.lib with ..\ufasoft_coin-0.82\el\libext\libext.vcxproj but I got this errors

1>win32\ext-win.cpp(567): error C2446: ':' : no conversion from 'Ext::CWinApp *' to 'Ext::CWinThread *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>win32\ext-win.cpp(632): error C2039: 'OnAbort' : is not a member of 'Ext::CWinApp'



ufasoft

#5
Apr 15, 2014, 10:37 am Last Edit: Apr 15, 2014, 10:41 am by ufasoft
Select "static" configuration for simplicity.
insert following line to the u-config.h
#define UCFG_COMPLEX_WINAPP   1

We don't maintain public Windows project files for every version. So patch them manually.

Ivanov2014

I got this errors now, man this is so complicated.

1>bitcoin-gpu.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl Ext::CWinThread::OnEnd(void)" (?OnEnd@CWinThread@Ext@@MEAAXXZ)
1>libext.lib(threader.obj) : error LNK2001: unresolved external symbol "protected: virtual void __cdecl Ext::CWinThread::OnEnd(void)" (?OnEnd@CWinThread@Ext@@MEAAXXZ)
1>libext.lib(ext-win.obj) : error LNK2001: unresolved external symbol "protected: virtual void __cdecl Ext::CWinThread::OnEnd(void)" (?OnEnd@CWinThread@Ext@@MEAAXXZ)
1>libext.lib(ext-app.obj) : error LNK2001: unresolved external symbol "protected: virtual void __cdecl Ext::CWinThread::OnEnd(void)" (?OnEnd@CWinThread@Ext@@MEAAXXZ)
1>miner-bitforce.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl Ext::CWinThread::OnEnd(void)" (?OnEnd@CWinThread@Ext@@MEAAXXZ)
1>miner.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl Ext::CWinThread::OnEnd(void)" (?OnEnd@CWinThread@Ext@@MEAAXXZ)
1>stratum-client.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl Ext::CWinThread::OnEnd(void)" (?OnEnd@CWinThread@Ext@@MEAAXXZ)
1>p2p-net.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl Ext::CWinThread::OnEnd(void)" (?OnEnd@CWinThread@Ext@@MEAAXXZ)
1>xpt-message.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl Ext::CWinThread::OnEnd(void)" (?OnEnd@CWinThread@Ext@@MEAAXXZ)
1>xpt.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl Ext::CWinThread::OnEnd(void)" (?OnEnd@CWinThread@Ext@@MEAAXXZ)
1>bitcoin-miner.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl Ext::CWinThread::OnEnd(void)" (?OnEnd@CWinThread@Ext@@MEAAXXZ)
1>miner-fpga-modminer.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl Ext::CWinThread::OnEnd(void)" (?OnEnd@CWinThread@Ext@@MEAAXXZ)
1>libext.lib(datetime.obj) : error LNK2019: unresolved external symbol gmtime_r referenced in function "public: __cdecl Ext::DateTime::operator struct tm(void)const " (??BDateTime@Ext@@QEBA?AUtm@@XZ)
1>libext.lib(threader.obj) : error LNK2001: unresolved external symbol "protected: virtual void __cdecl Ext::CWinThread::Execute(void)" (?Execute@CWinThread@Ext@@MEAAXXZ)
1>libext.lib(ext-win.obj) : error LNK2001: unresolved external symbol "protected: virtual void __cdecl Ext::CWinThread::Execute(void)" (?Execute@CWinThread@Ext@@MEAAXXZ)
1>libext.lib(ext-app.obj) : error LNK2001: unresolved external symbol "protected: virtual void __cdecl Ext::CWinThread::Execute(void)" (?Execute@CWinThread@Ext@@MEAAXXZ)
1>libext.lib(ext-win.obj) : error LNK2019: unresolved external symbol "public: void __cdecl Ext::CAppBase::SetCurrentHandles(void)" (?SetCurrentHandles@CAppBase@Ext@@QEAAXXZ) referenced in function "void __cdecl Ext::AfxWinInit(struct HINSTANCE__ *,struct HINSTANCE__ *,class Ext::String const &,int)" (?AfxWinInit@Ext@@YAXPEAUHINSTANCE__@@0AEBVString@1@H@Z)
1>libext.lib(value.obj) : error LNK2019: unresolved external symbol json_object_seed referenced in function json_object
1>libext.lib(value.obj) : error LNK2001: unresolved external symbol hashtable_seed
1>libext.lib(hashtable.obj) : error LNK2001: unresolved external symbol hashtable_seed


ok before that I got this error on ext-handlers.cpp

#ifdef _WIN32

//#undef _open

//extern "C" __declspec(dllimport) int __cdecl _open(const char *fn, int flags, ...); //error here redefinition...I tried removed it and it works but not sure if that can cause problems


thank you

Go Up