Skip to content

Driver doesn't load when built from source #11

@mark0n

Description

@mark0n

I noticed that when I download the v0.1 binary package everything works fine but when I build the driver ("v0.1" tag) from source it installs happily ("Installation completed successfully") but doesn't seem to load. Here are the steps I followed to build the driver:

  1. Download and install the Windows Driver Kit for Windows 10, version 2004
  2. git clone https://github.com/maharmstone/winmd.git
  3. Build the project by running
    cd winmd
    mkdir build
    cd build
    cmake ..
    cmake --build . --config RelWithDebInfo --parallel
    
  4. Copy the relevant files into the right place
    mkdir package\x64
    cp .\RelWithDebInfo\* .\package\x64\
    cp ..\src\winmd.inf .\package\
    
  5. Create catalog file
    Inf2Cat /driver:package /os:10_X64
    
  6. Sign catalog file
    signtool sign /sha1 <SHA1 of signing key> /t http://timestamp.comodoca.com/authenticode package\winmd.cat
    

"Official" information on how to build the driver is very sparse and I'm not a Windows expert. I would appreciate if someone with a little more Windows development experience could give me a hint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions