Giter Club home page Giter Club logo

Comments (3)

paolo-projects avatar paolo-projects commented on June 18, 2024

you can find all the info about compiling the software in the README.

The g++ compatibility is specified here:

Note regarding default g++ version on Ubuntu: by default, Ubuntu ships with g++ v7, which doesn't support natively c++17 features. To compile the program you have to install at least g++-8, set CXX variable when running make and add stdc++fs library dependence (make CXX=g++-8 LIBS=-lstdc++fs)

Alternatively, you can install g++-9 and avoid adding the library dependency.

I compiled it on windows with VC 2019 (there's a cmake file included that fully supports MSVC, you have to point it to your compiled libraries), although you should be able to compile it with mingw and cygwin too, after you install/compile the dependencies. As for your error, it's because cygwin is not a _WIN32 nor a __linux__ platform, and since you probably are using g++ then I guess it's just fine if you
#define __linux__
at the beginning of unlocker.cpp
(don't do it)

from auto-unlocker.

jayk1961 avatar jayk1961 commented on June 18, 2024

My toolchain is set up to use mingw-64. The latest it version 7.4.0 it says:

/usr/lib/gcc/x86_64-w64-mingw32/7.4.0/lto-wrapper.exe

gcc states:
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-cygwin/8.3.0/lto-wrapper.exe
Target: x86_64-pc-cygwin

I think any newer versions would have to be manually compiled and installed. Too much work (!)
Someone else will eventually get around to adding version 9 to cygwin.

However, I'd much rather use VC 2019. So, I will go that route.

from auto-unlocker.

paolo-projects avatar paolo-projects commented on June 18, 2024

g++8 works, it only requires an additional linker dependency for filesystem library (-lstdc++fs). That's because fs was still experimental, although I tested it on ubuntu with both g++8 and g++9 and it works fine.
cygwin is another story. what I said earlier, i.e. to put a #define __linux__ in unlocker.cpp, is wrong and you should not do it because it will attempt to patch the linux files structure. you could try to go with #define _WIN32 but ultimately I suggest you to use mingw or even better visual studio.

from auto-unlocker.

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.