Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MSVC compiling support for make #14

Open
sol-vin opened this issue Sep 13, 2023 · 8 comments
Open

Add MSVC compiling support for make #14

sol-vin opened this issue Sep 13, 2023 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@sol-vin
Copy link

sol-vin commented Sep 13, 2023

I need a .lib file for Windows. It would be really nice to have make support for this.

@sol-vin
Copy link
Author

sol-vin commented Sep 13, 2023

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

@jdeokkim
Copy link
Owner

Thank you for your interest in this library, I will look into this issue as soon as possible!

@jdeokkim jdeokkim self-assigned this Sep 13, 2023
@jdeokkim jdeokkim added the enhancement New feature or request label Sep 13, 2023
@jdeokkim
Copy link
Owner

@sol-vin Could you tell me which version of Visual Studio you're using to build this library?

@sol-vin
Copy link
Author

sol-vin commented Sep 13, 2023

@sol-vin Could you tell me which version of Visual Studio you're using to build this library?

2022

@jdeokkim
Copy link
Owner

jdeokkim commented Sep 13, 2023

I just added build instructions for Visual Studio 2019 in README.md, could you please let me know if they work for you?

@sol-vin
Copy link
Author

sol-vin commented Sep 14, 2023

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   

@jdeokkim
Copy link
Owner

jdeokkim commented Sep 14, 2023

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.

@jdeokkim
Copy link
Owner

jdeokkim commented Sep 16, 2023

& 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\Launch-VsDevShell.ps1' -Arch amd64

50367e2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants