Git Product home page Git Product logo

Comments (3)

ancrist avatar ancrist commented on September 13, 2024

The problem is that the build.bat script indiscriminately copies the x64 version of SDL2.lib into the build directory.

A quick workaround would be to replace the following two lines in build.bat:

IF NOT EXIST build\SDL2.lib copy third_party\bin\SDL2.lib build\SDL2.lib
IF NOT EXIST build\SDL2.pdb copy third_party\bin\SDL2.pdb build\SDL2.pdb

with the these:

IF NOT EXIST build\SDL2.lib copy third_party\bin\x86\SDL2.lib build\SDL2.lib
IF NOT EXIST build\SDL2.pdb copy third_party\bin\x86\SDL2.pdb build\SDL2.pdb

That should fix the build. Just remember to change the lines back to their original values if doing an x64 build.

@serge-rgb
Maybe have the build.bat script copy the appropriate libraries based on the target architecture specified via a command line argument... something like:

build <x86 | x64>

from milton.

serge-rgb avatar serge-rgb commented on September 13, 2024

It's a mistake on my part. Almost all the time, I set scripts\vcvars.bat to set up a x64 environment, but the latest commit is left as x86. Personally I only care about x86 when doing a release.

I think the solution is to have build.bat check for the machine type of the current msvc compiler and automatically do the right thing. For now, I'll just try and make sure that the build compiles before pushing to github.. :)

from milton.

serge-rgb avatar serge-rgb commented on September 13, 2024

Closing issue. This should not be a problem once the migration to the tundra build system is complete.

from milton.

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.