Coder Social home page Coder Social logo

bgfx conversion issue about two HOT 3 CLOSED

burgreen avatar burgreen commented on May 20, 2024
bgfx conversion issue

from two.

Comments (3)

hugoam avatar hugoam commented on May 20, 2024

Hi ! There is no cast needed, it seems to be a git submodules issue : the signature of the function has changed in bimg library, so if you have an earlier version of bgfx with a more recent version of bimg, you get the error you have. The versions of bgfx and bimg must match.
I'm not sure why you have a more recent bimg version though, in theory they are identified by the commit hash : https://github.com/hugoam/mud/tree/master/3rdparty
So your bimg repo should be at the https://github.com/bkaradzic/bimg/tree/bd3366bba0ab15df20ac5be5547c526ef147cfb1 commit and the bgfx repo should be at the https://github.com/hugoam/bgfx/tree/acf4b80bad43d0a7bd96706fa587d4eb87f7f57f commit. This should be the default situation just after you cloned "fresh" mud.

Did you by any chance pull a more recent version of bimg ?

from two.

burgreen avatar burgreen commented on May 20, 2024

Yes, I did. I manually cloned each dependency submodule. I will pay more attention to clone the proper commit.

When I do use the proper commits for bimg and the mud-sample mud, everything compiles fine.

For whatever reason, I get the following error in a normal clone:

$ git clone --recursive git://github.com/hugoam/mud.git
Initialized empty Git repository in /var/tmp/burgreen/dev/mud/github/mud/.git/
remote: Counting objects: 5009, done.
remote: Compressing objects: 100% (462/462), done.
remote: Total 5009 (delta 539), reused 527 (delta 353), pack-reused 4193
Receiving objects: 100% (5009/5009), 58.54 MiB | 12.39 MiB/s, done.
Resolving deltas: 100% (3249/3249), done.
Submodule '3rdparty/FastNoise' (https://github.com/Auburns/FastNoise) registered for path '3rdparty/FastNoise'
Submodule '3rdparty/GENie' (https://github.com/hugoam/GENie) registered for path '3rdparty/GENie'
Submodule '3rdparty/amalgamate' (https://github.com/edlund/amalgamate) registered for path '3rdparty/amalgamate'
Submodule '3rdparty/bgfx' (https://github.com/hugoam/bgfx) registered for path '3rdparty/bgfx'
Submodule '3rdparty/bimg' (https://github.com/bkaradzic/bimg) registered for path '3rdparty/bimg'
Submodule '3rdparty/bx' (https://github.com/bkaradzic/bx) registered for path '3rdparty/bx'
Submodule '3rdparty/glfw' (https://github.com/glfw/glfw) registered for path '3rdparty/glfw'
Submodule '3rdparty/glm' (https://github.com/g-truc/glm) registered for path '3rdparty/glm'
Submodule '3rdparty/json11' (https://github.com/dropbox/json11) registered for path '3rdparty/json11'
Submodule '3rdparty/lua' (https://github.com/lua/lua) registered for path '3rdparty/lua'
No url found for submodule path '3rdparty/nanovg-layers' in .gitmodules

from two.

hugoam avatar hugoam commented on May 20, 2024

The cloning issues should be solved by now, if you encounter them again please reopen an issue

from two.

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.