Skip to content

enicholls77/Project

Repository files navigation

Simple Idle Miner

img

Build Instructions

Run the following commands:

Windows (x86):

conan profile new default --detect
This should generate a new profile at C:/Users/{username}/.conan/profiles/default
Here's what mine looks like:

[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=Visual Studio
compiler.version=17
build_type=Release
[options]
[build_requires]
[env]
  • Set env. variables:

CMAKE_GENERATOR="Desired Generator", e.g. CMAKE_GENERATOR="Visual Studio 17 2022"

NOTE: The generator that should be used will depend on the compiler and compiler.version setting in your conan profile. If you plan to use Visual Studio 17 2022, like I do, make sure to install it

  • Build:

./build.bat

The executable should be in ./build/bin/idleminer.exe

Linux (x86) (WIP):

After setting up conan, be sure to add the following to the profile that you created (at ~/.conan/profiles/default):

[conf]    
tools.system.package_manager:mode=install    
tools.system.package_manager:sudo=True

This will allow conan to install system dependencies automatically

  • Build:

./build.sh

The executable should be in ./build/bin/idleminer

MacOS (M1 - ARM) (WIP):

brew install conan
conan profile new default --detect
  • Change the following settings in the default profile (at ~/.conan/profiles/default)
arch=armv8
arch_build=armv8
  • Run build (will fail) and copy files all .dylib files from ./build/bin to /usr/local/lib, then attempt to build again.
./build.sh
sudo cp build/bin/*.dylib /usr/local/lib/
./build.sh

The executable should be in ./build/bin/idleminer

Testing

After following build instructions, go into the build/ directory and run ctest:
cd build
ctest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages