Code Monkey home page Code Monkey logo

capp's People

Contributors

andreashlarsen avatar rsaite avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mn-pedersen

capp's Issues

Windows version

Hello.
I've just successfully compiled an executable from your C code for Windows 10 (64-bit), without any code modifications. I could share if anyone need.
Nevertheless, some minor changes were done in python module, in part where OS and path is checked. Here is the block with the changes:

### check OS and use correct binary. Check location of binary
programpath = os.path.dirname(os.path.realpath(__file__))
if platform.system() == "Darwin":
    capp_version = "capp_mac"
elif platform.system() == "Windows":
    capp_version = "capp/capp.exe"
    if programpath.count(" ") > 0:
        print("")
        print("****************************************************************************************")
        print("Found path is: ", programpath)
        print("Path must not contain spaces!")
        print("****************************************************************************************")
        sys.exit(1)
else:
    capp_version = "capp"
capp_executable_location = programpath + "/" + capp_version
print(capp_executable_location)
if os.path.exists(capp_executable_location):
    print("CaPP initiated correctly")
elif capp_version == "capp":
    print("")
    print("****************************************************************************************")
    print(" Cannot find the executable: %s. It should be in the same folder as CaPP.py " % capp_version)
    print(" If you are not running MacOS, then:")
    print("  1) compile the source code Mainfunction.c with output called capp")
    print("     e.g. gcc Mainfunction.c -o capp")
    print("  2) plase the executable, capp, in the same folder as CaPP.py")
    print("  3) re-run CaPP with: python CaPP.py")
    print("****************************************************************************************")
    print("")
    sys.exit(1)
elif capp_version == "capp/capp.exe":
    print("")
    print("****************************************************************************************")
    print("Could not find Windows executables. Should be placed in here ", programpath + "/" + capp_version)
    print("****************************************************************************************")
    sys.exit(1)
else:
    print("")
    print("****************************************************************************************")
    print(" Cannot find the executable: %s. It should be in the same folder as CaPP.py " % capp_version)
    print("****************************************************************************************")
    print("")
    sys.exit(1)

With best regards,
Alexander

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.