GithubHelp home page GithubHelp logo

GLFW doesn't initialize about glfw-net HOT 2 CLOSED

foreverzer0 avatar foreverzer0 commented on July 23, 2024
GLFW doesn't initialize

from glfw-net.

Comments (2)

Panthr75 avatar Panthr75 commented on July 23, 2024

Right now it appears to be resolved, but there may be more trouble down the line, as the solution was to change my build format from x86 to x64

from glfw-net.

ForeverZer0 avatar ForeverZer0 commented on July 23, 2024

The BadImageFormat means that the native DLL and managed assembly have mismatched CPU architecture (i.e. you are building x86 assembly, but referencing native x64 libraries, or vice-versa). GLFW offers binaries for both architectures, though your managed assembly will need to be built with the matching architecture.

32-bit Binaries
64-bit Binaries

If you want to build your project for for x86, you would only need to get the native x86 DLL to make it work.

On a side note, the only binaries you need are the .dll ones, not the ones with .lib extension. The .lib files are mainly for static linking in C/C++, you only need the dynamic ones.

from glfw-net.

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.