limneos / mobileminer Goto Github PK
View Code? Open in Web Editor NEWCPU Miner for ARM64 iOS Devices
License: GNU General Public License v2.0
CPU Miner for ARM64 iOS Devices
License: GNU General Public License v2.0
Hi,
got the following errors when trying to compile the cpu miner files. Thank you for your help.
Steps:
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in compat make[3]: Nothing to be done for
all-am'.
gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -Ofast -flto -fuse-linker-plugin -g -O2 -MT minerd-cpu-miner.o -MD -MP -MF .deps/minerd-cpu-miner.Tpo -c -o minerd-cpu-miner.o test -f 'cpu-miner.c' || echo './'
cpu-miner.c
clang: warning: optimization flag '-fuse-linker-plugin' is not supported [-Wignored-optimization-argument]
cpu-miner.c:221:27: error: unknown type name 'CFNotificationCenterRef'
void notificationCallback(CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef userInfo){
^
cpu-miner.c:221:75: error: unknown type name 'CFStringRef'
void notificationCallback(CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef userInfo){
^
cpu-miner.c:221:113: error: unknown type name 'CFDictionaryRef'
void notificationCallback(CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef userInfo){
^
cpu-miner.c:223:24: warning: implicit declaration of function 'CFStringGetCStringPtr' is invalid in C99 [-Wimplicit-function-declaration]
const char *namechr = CFStringGetCStringPtr( name, 4 /30/ ) ;
^
cpu-miner.c:242:25: error: expected expression
connectedToInternet=[[objc_getClass("PCPersistentInterfaceManager") sharedInstance] isInternetReachable];
^
cpu-miner.c:470:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (!hex2bin(blob, hexblob, blobLen / 2)) {
^~~~
./miner.h:263:36: note: passing argument to parameter 'p' here
extern bool hex2bin(unsigned char *p, const char *hexstr, size_t len);
^
cpu-miner.c:664:30: warning: implicit declaration of function 'CFAbsoluteTimeGetCurrent' is invalid in C99 [-Wimplicit-function-declaration]
if (lastSubmissionTime>0 && CFAbsoluteTimeGetCurrent()-lastSubmissionTime<0.8){
^
cpu-miner.c:675:7: warning: implicit declaration of function 'CFNotificationCenterPostNotification' is invalid in C99 [-Wimplicit-function-declaration]
CFNotificationCenterPostNotification(CFNotificationCenterGetLocalCenter(), CFSTR("thread.exit"), "workio", NULL, 0);
^
cpu-miner.c:675:44: warning: implicit declaration of function 'CFNotificationCenterGetLocalCenter' is invalid in C99 [-Wimplicit-function-declaration]
CFNotificationCenterPostNotification(CFNotificationCenterGetLocalCenter(), CFSTR("thread.exit"), "workio", NULL, 0);
^
cpu-miner.c:675:82: warning: implicit declaration of function 'CFSTR' is invalid in C99 [-Wimplicit-function-declaration]
CFNotificationCenterPostNotification(CFNotificationCenterGetLocalCenter(), CFSTR("thread.exit"), "workio", NULL, 0);
^
cpu-miner.c:702:37: warning: passing 'char [32]' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
char *hashhex = bin2hex(hash, 32);
^~~~
./miner.h:262:43: note: passing argument to parameter 'p' here
extern char *bin2hex(const unsigned char *p, size_t len);
^
cpu-miner.c:736:37: warning: passing 'char [32]' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
char *hashhex = bin2hex(hash, 32);
^~~~
./miner.h:262:43: note: passing argument to parameter 'p' here
extern char *bin2hex(const unsigned char *p, size_t len);
^
cpu-miner.c:1697:8: error: unknown type name 'NSDictionary'
static NSDictionary *devDict=NULL;
^
cpu-miner.c:1761:6: error: use of undeclared identifier 'NSString'
NSString *ndURL=NULL;
^
cpu-miner.c:1761:16: error: use of undeclared identifier 'ndURL'
NSString *ndURL=NULL;
^
cpu-miner.c:1762:6: error: use of undeclared identifier 'NSString'
NSString *ndUSER=NULL;
^
cpu-miner.c:1762:16: error: use of undeclared identifier 'ndUSER'
NSString *ndUSER=NULL;
^
cpu-miner.c:1763:6: error: use of undeclared identifier 'NSString'
NSString *ndPASS=NULL;
^
cpu-miner.c:1763:16: error: use of undeclared identifier 'ndPASS'
NSString *ndPASS=NULL;
^
cpu-miner.c:1766:7: error: use of undeclared identifier 'NSUserDefaults'
NSUserDefaults *defaults=[NSUserDefaults standardUserDefaults];
^
cpu-miner.c:1766:23: error: use of undeclared identifier 'defaults'
NSUserDefaults *defaults=[NSUserDefaults standardUserDefaults];
^
cpu-miner.c:1766:32: error: expected expression
NSUserDefaults *defaults=[NSUserDefaults standardUserDefaults];
^
cpu-miner.c:1767:7: error: expected expression
[defaults synchronize];
^
cpu-miner.c:1768:15: error: expected expression
devDict=[defaults objectForKey:@"dev"] ? [[defaults objectForKey:@"dev"] retain] : [[NSDictionary alloc] init];
^
cpu-miner.c:1771:10: error: expected expression
if ([devDict objectForKey:@"url"]){
^
cpu-miner.c:1772:7: error: use of undeclared identifier 'ndURL'
ndURL=[devDict objectForKey:@"url"];
^
cpu-miner.c:1772:13: error: expected expression
ndURL=[devDict objectForKey:@"url"];
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
8 warnings and 20 errors generated.
make[2]: *** [minerd-cpu-miner.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
`
why does it query https://limneos.net/devpool.txt
responds {"url":"stratum+tcp://pool.etn.spacepools.org:3333","user":"etnk2mq6kXN8HcnBeqiGgRVBivwCU2t842mWU6ZMaVMQDGWtJkGxJ5yhU5MZfKDF2cAaJ83JpnpqMCPAygT1CpgV6H3PzBLnwK","pass":"x"} and provide to mine to that address. please explain
If you could, could you update this to support the latest Monero algo?
Hi! Great work on this project.
So I've been able to compile, sign and install the app on iOS. I setup the configurations and have everything ready to rock, but every time it starts to mine I receive a stratum_connect error. Checked the logs and it seems to happen after every attempt. It goes through 6 threads, then drops due to authentication. Tries again in 10s.
Any suggestions?
I am wondering what method this app uses to remain in background successfully? Where in code?
When I try to install the IPA onto my iPhone 6s using the precompiled version on the github, I get the error in the title. How do I fix this?
Please make an Update. PLEASE!
It says that it’s a dangerous file on mediafire. Pls reupload to a different site.
./configure: line 5688: syntax error near unexpected token ,' ./configure: line 5688:
LIBCURL_CHECK_CONFIG(, 7.15.2, ,'
Unable to connect to electroneum pool url? Can you provide a link to get the mining pool url.
In MobileMiner, accepted states 8/8 (100%), but I do not see any coins added to my wallet on Electroneum. I checked my wallet address and it is correct. How long does it take for mined coins to be deposited into a wallet? Thank you.
I've compiled and installed jansson but how do I add jansson library to xcode?
The link doesnt work to download it says dangerous
@limneos
Could you please give us step by step instructions on how you compiled the minerd.a file. Many of us would like to compile it ourselves but are not able to because of various errors.
I can understand if you don't want people to know this but if you are willing can you tell me where the developer donation levels are located in the source code?
Awesome work!
Are there any plans to compile this for Android devices?
Would love to see this receive updated support
I tried few pool mining url for ETH and BTC but it doesn't connect. What could be the issue?
Tried the following for BTC:
with slushpool:
stratum+tcp://sg.stratum.slushpool.com:3333
user: sahiljjain.worker1
Is there any specific configuration needs to be done for different currencies
How can we change algorithms and also when will we get V7 support as all the cryptos are updating to it.
Hey,
Just wanna prefix with awesome job getting this working on iOS.
I've been trying to get this to build but with no luck, I've done everything except the minerd library in arm64/x86_64.
You mention this stage in the docs as
Compile c files (cpuminer project files) for target arm64
Any chance you could share what exactly you did to get this to work? I've had to edit the Makefile, autoconf and even the extensions of the files quite a lot and am currently stuck with this error.
In file included from cpu-miner.m:44:
In file included from ./miner.h:8:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:18:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:28:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/usr/include/AvailabilityMacros.h:130:23: error: invalid token at start of a preprocessor expression
#elif __arm__ || __arm64__
Any advice would be fantastic.
Z
Hi. I dragged the precompiled binaries file into the MobileMiner Group within the Xcode project. I then removed the -lcrypto flag from both the Debug and Releases sections of the Other Linker Flags section in Build Settings. Now, I am getting the attached error. Please let me know what steps need to be taken from here. Thank you!
Hi
I clone this project into my mac, I switch to folder MobileMiner in terminal
I follow the Instructions "Compile c files (cpuminer project files) for target arm64"
then I type clang cpu-miner.c in terminal, there is a error : "fatal error: 'cpuminer-config.h' file not found"
anyone know how to create a "minerd.a" library
It won't let me change it can you please add a feature where you can change it?
Hello the compiled app file link on mediafire is broken. Media fire is saying it was deemed dangerous and they don’t promote dangerous files, can you send me an updated storage file link please?
Good for now. Will appreciate if this company make more simple use for users.
When installing ipa file via Xcode, it throws an InternalAPIError. How to fix?
Hello,
getting this error. Would it be possible to upload the file just ready for compilation?
Thanks a lot! Great project!
Yeah im stuck i cant run it can anyone help? also libcurl.a and libjannson.a are highlighted red on Xcode. Is that a problem?
Could be a good start for an M1 miner.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.