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

Building on Windows looks for /bin/linux? #20

Open
gamesbyangelina opened this issue Aug 22, 2023 · 1 comment
Open

Building on Windows looks for /bin/linux? #20

gamesbyangelina opened this issue Aug 22, 2023 · 1 comment

Comments

@gamesbyangelina
Copy link

I tried building clingo-cs on Mac, but ran into issues where it was looking for a .so library but Mac had built a .dylib. I wasn't sure how to fix this so I tried building on Windows - this results in the following error when performing the dotnet step:

C:\Program Files\dotnet\sdk\7.0.400\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(221,5): error : Could not find a part of the path 'D:\clingo-cs\clingo\build\linux\bin'. [D:\clingo-cs\src\Clingo_c\Clingo_c.csproj]

The linux/bin folder doesn't exist becuase it's built a windows/bin folder instead - I'm not sure why the dotnet step is trying to find a Linux library.

@gamesbyangelina
Copy link
Author

Tracked down the issue to a line in \src\Clingo_c\Clingo_c.csproj which is commented out referencing the windows dlls. Uncommenting and commenting the Linux .so line succeeds the build.

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

No branches or pull requests

1 participant