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

[p58] Linux makefile not working #5064

Open
nerun opened this issue Aug 11, 2023 · 1 comment
Open

[p58] Linux makefile not working #5064

nerun opened this issue Aug 11, 2023 · 1 comment

Comments

@nerun
Copy link

nerun commented Aug 11, 2023

  • Linux Mint 21.2 (~Ubuntu Jammy 22.04)
  • Mono 6.8.0.105
  • dotnet 7.0.110

Makefile is not working for linux:

$ make -j12
make: *** No rules to process target '`pwd`/Settings/*.cs', need 'Settings.dll'.  Stop

But if i change:

CURPATH=`pwd`

to

CURPATH=.

Or to the current path ServUO is, it works fine.

The strange is that Pub 57.3 also have CURPATH=`pwd` and it works.

@nerun
Copy link
Author

nerun commented May 31, 2024

Addendum

In the current pub58, if i change CURPATH='pwd' to CURPATH=. it doesn't works anymore.

make -j12      
mcs -target:library -out:"./Server.dll" -r:"./Settings.dll",System.Drawing.dll,System.Web.dll,System.Data.dll,System.IO.Compression.FileSystem.dll -nowarn:0618,0219,0414,1635 -d:MONO -d:ServUO -d:ServUO58 -d:NEWTIMERS -d:NEWPARENT -nologo -optimize -unsafe -recurse:"./Server/*.cs"
rm -f ServUO.sh
rm -f ServUO.exe
rm -f ServUO.exe.mdb
rm -f *.bin
./Server/ClientVersion.cs(19,39): error CS1644: Feature `readonly structs' cannot be used because it is not part of the C# 7.0 language specification
./Server/NativeReader.cs(135,25): warning CS1692: Invalid number
./Server/NativeReader.cs(147,25): warning CS1692: Invalid number
./Server/Network/Encryption/LoginKeys.cs(8,35): error CS1644: Feature `readonly structs' cannot be used because it is not part of the C# 7.0 language specification
Compilation failed: 2 error(s), 2 warnings
make: *** [Makefile:38: Server.dll] Erro 1

Uh, i am running dotnet 8 now, should be this... 😃

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