ferox
ferox copied to clipboard
Add MSVC compiling support for make
I need a .lib file for Windows. It would be really nice to have make support for this.
As far as I got but this just creates an empty .lib with no exports. https://github.com/sol-vin/ferox-cr/blob/master/rsrc/ferox.c https://github.com/sol-vin/ferox-cr/blob/master/rsrc/install.ps1
Thank you for your interest in this library, I will look into this issue as soon as possible!
@sol-vin Could you tell me which version of Visual Studio you're using to build this library?
@sol-vin Could you tell me which version of Visual Studio you're using to build this library?
2022
I just added build instructions for Visual Studio 2019 in README.md, could you please let me know if they work for you?
A-rcanity5858S-creen.obj : error LNK2019: unresolved external symbol frNumberPixelsToMeters referenced in function .2A.Arcanity.3A..3A.Screen.3A..3A.width_in_meters.3A.Float32
A-rcanity5858P-layA-rea.obj : error LNK2001: unresolved external symbol frNumberPixelsToMeters
A-rcanity5858C-ard43.obj : error LNK2001: unresolved external symbol frNumberPixelsToMeters
A-rcanity5858C-ards5858M-ana5858R-awM-ana.obj : error LNK2001: unresolved external symbol frNumberPixelsToMetersA-rcanity.obj : error LNK2019: unresolved external symbol frSimulateWorld referenced in function .2A.Arcanity.3A..3A.run.3A.Nil
A-rcanity.obj : error LNK2019: unresolved external symbol frGetWorldBodyCount referenced in function .2A.Arcanity.3A..3A.get_physics_bodies.3A.Array.28.Pointer.28.Ferox.3A..3A.Body.29..29.
A-rcanity.obj : error LNK2019: unresolved external symbol frDrawBody referenced in function .2A.Arcanity.3A..3A.get_physics_bodies.3A.Array.28.Pointer.28.Ferox.3A..3A.Body.29..29.
A-rcanity5858P-layA-rea.obj : error LNK2019: unresolved external symbol frVec2PixelsToMeters referenced in function .2A.Arcanity.3A..3A.PlayArea.3A..3A.make_walls.3A.Nil
A-rcanity5858C-ard43.obj : error LNK2001: unresolved external symbol frVec2PixelsToMeters
A-rcanity5858C-ards5858M-ana5858R-awM-ana.obj : error LNK2001: unresolved external symbol frVec2PixelsToMeters
A-rcanity5858P-layA-rea.obj : error LNK2019: unresolved external symbol frAddToWorld referenced in function .2A.Arcanity.3A..3A.PlayArea.3A..3A.make_walls.3A.Nil
A-rcanity5858C-ard43.obj : error LNK2001: unresolved external symbol frAddToWorld
A-rcanity5858C-ards5858M-ana5858R-awM-ana.obj : error LNK2001: unresolved external symbol frAddToWorld
A-rcanity5858C-ard43.obj : error LNK2019: unresolved external symbol frVec2MetersToPixels referenced in function .2A.Arcanity.3A..3A.Card.2B..40.Arcanity.3A..3A.Card.23.pos.3A.struct.2E.Raylib.3A..3A.Vector2
A-rcanity5858C-ards5858M-ana5858R-awM-ana.obj : error LNK2001: unresolved external symbol frVec2MetersToPixels
A-rcanity5858C-ard43.obj : error LNK2019: unresolved external symbol frNumberMetersToPixels referenced in function .2A.Arcanity.3A..3A.Card.2B..40.Arcanity.3A..3A.Card.23.center_x.3A.Float32
A-rcanity5858C-ard43.obj : error LNK2019: unresolved external symbol frRemoveFromWorld referenced in function .2A.Arcanity.3A..3A.Card.2B..40.Arcanity.3A..3A.Card.23.clean_physics_bodies.3A.Nil
C:\Users\Ian\Documents\GitHub\arcanity\bin\arcanity.exe : fatal error LNK1120: 9 unresolved externals
Using dumpbin /EXPORTS ferox.lib gives me no exports.
Microsoft (R) COFF/PE Dumper Version 14.37.32822.0 Copyright (C) Microsoft Corporation. All rights reserved. Dump of file .\rsrc\ferox.lib File Type: LIBRARY Summary 19 .bss 12D0 .chks64 8 .data 35C .debug$S 11A .drectve 8D0 .pdata 258 .rdata 879E .text$mn E94 .xdata
I'm afraid I forgot to tell you that there have been breaking changes to the API for the next release and those functions have been renamed... (e.g. frNumberPixelsToMeters() ➡️ frPixelsToUnits())
Could you please update your code for the binding and try building this library again? I may be able to send you the changelog for the next release if you need it.
& 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\Launch-VsDevShell.ps1' -Arch amd64
https://github.com/c-krit/ferox/commit/50367e277e559e5363ce720cf1a26a5cdf722a00