Can't Compile ServUO

Ziru

Citizen
I have installed .net frameworks 4.0 on Windows 7,
I get this when i run Compile.bat (see quote)


What i'm doing wrong?

Compile.bat said:
C:\ServUO>cd EmergencyBackup
C:\ServUO\EmergencyBackup>SET DOTNET=C:\Windows\Microsoft.NET\Framework\v4.0.30319
C:\ServUO\EmergencyBackup>SET PATH=C:\Windows\Microsoft.NET\Framework\v4.0.30319
C:\ServUO\EmergencyBackup>csc.exe /r:..\SevenZipSharp.dll /debug /nowarn:0618 /nologo
/out:..\EmergencyBackup.exe /optimize /unsafe /recurse:*.cs
warning CS1668: Invalid search path 'C:\Program Files (x86)\Microsoft VisualStudio\VC98\mfc\lib'
specified in 'LIB environment variable' -- 'The system cannot find the path specified. '
warning CS1668: Invalid search path 'C:\Program Files (x86)\Microsoft Visual Studio\VC98\lib'
specified in 'LIB environment variable' -- 'The system cannot find the path specified. '
C:\ServUO\EmergencyBackup>cd ..
C:\ServUO>cd Server
C:\ServUO\Server>csc.exe /win32icon:servuo.ico /r:..\OpenUO.Core.dll
/r:..\OpenUO.Ultima.dll /r:..\OpenUO.Ultima.Windows.Forms.dll
/r:..\SevenZipSharp.dll /debug /nowarn:0618 /nologo /out:..\ServUO.exe /optimize /unsafe /recurse:*.cs
warning CS1668: Invalid search path 'C:\Program Files (x86)\Microsoft Visual Studio\VC98\mfc\lib'
specified in 'LIB environment variable' --
'The system cannot find the path specified. '
warning CS1668: Invalid search path
'C:\Program Files (x86)\Microsoft Visual Studio\VC98\lib'
specified in 'LIB environment variable' --
'The system cannot find the path specified. '
C:\ServUO\Server>PAUSE
Press any key to continue . . .


This isn't an error with ServUO, rather an issue with VS and Windows.


Control Panel -> System -> Advanced System Settings -> Environment Variables


Find the variable for LIB and delete it, it's due to a previous version of Visual Studio leaving it there.


You can ignore the warnings like "Cannot find file X" - It's just the batch file trying to delete the old ones before compiling, but on a fresh download of ServUO, the files don't exist yet.


S O L V E D .

Thanks
 
Last edited:

Ziru

Citizen
with Publish 54...

Compile.WIN.bat
Step 1 - Compile EmergencyBackup
Press any key to continue . . .
Could Not Find C:\ServUO\EmergencyBackup.exe
C:\ServUO>C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /win3
2icon:"C:\ServUO\Server\servuo.ico" /r:"C:\ServUO\SevenZip
Sharp.dll" /target:exe /out:"C:\ServUO\EmergencyBackup.exe" /recurse:
"C:\ServUO\EmergencyBackup\*.cs" /nowarn:0618 /debug /nologo /optimiz
e /unsafe
warning CS1668: Invalid search path 'C:\Program Files (x86)\Microsoft Visual
Studio\VC98\mfc\lib' specified in 'LIB environment variable' -- 'The
system cannot find the path specified. '
warning CS1668: Invalid search path 'C:\Program Files (x86)\Microsoft Visual
Studio\VC98\lib' specified in 'LIB environment variable' -- 'The system
cannot find the path specified. '
Done!
Press any key to continue . . .

Compile.MONO.bat
Step 1 - Compile EmergencyBackup (MONO)
Press any key to continue . . .
c:\ServUO>c:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /win3
2icon:"c:\ServUO\Server\servuo.ico" /r:"c:\ServUO\SevenZip
Sharp.dll" /target:exe /out:"c:\ServUO\EmergencyBackup.exe" /recurse:
"c:\ServUO\EmergencyBackup\*.cs" /d:MONO /nowarn:0618 /debug /nologo
/optimize /unsafe
warning CS1668: Invalid search path 'c:\Program Files (x86)\Microsoft Visual
Studio\VC98\mfc\lib' specified in 'LIB environment variable' -- 'The
system cannot find the path specified. '
warning CS1668: Invalid search path 'c:\Program Files (x86)\Microsoft Visual
Studio\VC98\lib' specified in 'LIB environment variable' -- 'The system
cannot find the path specified. '
Done!
Press any key to continue . . .
 
Last edited:

Ravenwolfe

Moderator
ServUO Developer
Very odd that it is not finding the correct path. I mean, its not even finding the EmergencyBackup.exe.

Can you confirm that EmergencyBackup.exe exists in the c:\ServUO folder?

Also, can you confirm that the C:\Windows\Microsoft.NET\Framework\v4.0.30319 path exists?

When you right click on the Compile.WIN.bat and click Run As Administrator, does the UAC warning pop up?

Do you have an antivirus software that might be blocking the .bat file from accessing other directories?
 

Vorspire

Vita-Nex: Core
Administrator
ServUO Developer
This isn't an error with ServUO, rather an issue with VS and Windows.

Control Panel -> System -> Advanced System Settings -> Environment Variables

Find the variable for LIB and delete it, it's due to a previous version of Visual Studio leaving it there.

You can ignore the warnings like "Cannot find file X" - It's just the batch file trying to delete the old ones before compiling, but on a fresh download of ServUO, the files don't exist yet.
 

Ziru

Citizen
This isn't an error with ServUO, rather an issue with VS and Windows.

Control Panel -> System -> Advanced System Settings -> Environment Variables

Find the variable for LIB and delete it, it's due to a previous version of Visual Studio leaving it there.

You can ignore the warnings like "Cannot find file X" - It's just the batch file trying to delete the old ones before compiling, but on a fresh download of ServUO, the files don't exist yet.
That is.
Thanks you!!
clear.png