Giter Club home page Giter Club logo

Comments (1)

ibroheem avatar ibroheem commented on August 22, 2024 1

You can actually compile with MSYS2, but painful!

  1. Generate your make file with cmake . -G 'MSYS Makefiles'

1b. Edit crypto\cryptonight_aesni.h
Change :

#ifdef __GNUC__
#include 
static inline uint64_t _umul128(uint64_t a, uint64_t b, uint64_t* hi)
{
      unsigned __int128 r = (unsigned __int128)a * (unsigned __int128)b;
      *hi = r >> 64;
      return (uint64_t)r;
}
#define _mm256_set_m128i(v0, v1)  _mm256_insertf128_si256(_mm256_castsi128_si256(v1), (v0), 1)
#else
#include 
#endif // __GNUC__

to

#ifdef __GNUC__
#include 
extern "C"
{
   static inline uint64_t _umul128(uint64_t a, uint64_t b, uint64_t* hi)
   {
      unsigned __int128 r = (unsigned __int128)a * (unsigned __int128)b;
      *hi = r >> 64;
      return (uint64_t)r;
   }
}
#define _mm256_set_m128i(v0, v1)  _mm256_insertf128_si256(_mm256_castsi128_si256(v1), (v0), 1)
#else
#include 
#endif // __GNUC__
  1. Edit CMakeFiles\xmr-stak-cpu.dir\flags.make:
    CXX_FLAGS = -msse2 -maes -O3 -DNDEBUG -std=c++11 -fpermissive

This tells gcc to overlook what it perceived as error

  1. Append:
    -lws2_32 -lgdi32
    at the end of CMakeFiles\xmr-stak-cpu.dir\link.txt file

  2. $ mingw32-make.exe -j2

Enjoy!

If it doesn't work on your 64-bit Machine, let fireice-uk be my Whipping boy!

from xmr-stak-cpu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.