Page 1 of 1

'lib' is not recognized and or NMAKE error U1077 error??

Posted: 31.01.2006, 02:37
by neoniv
Good day and thank you to all of you who are helping in this
forum...I would not have gotten this far without your help.

I am stuck here getting this error:

" 'lib' is not recognized as an internal or external command "

Below is what I get when running makerelease.bat on win xp home

Code: Select all

E:\tortiseCVS\celestia>makerelease

E:\tortiseCVS\celestia>cd src

E:\tortiseCVS\celestia\src>nmake /f winbuild.mak CFG=Release

Microsoft (R) Program Maintenance Utility   Version 7.00.8882
Copyright (C) Microsoft Corp 1988-2000. All rights reserved.

        cd celutil
        nmake /NOLOGO util.mak CFG=Release
        lib /out:.\Release\cel_utils.lib  .\Release\bigfix.obj  .\Release\color.
obj  .\Release\debug.obj  .\Release\directory.obj  .\Release\filetype.obj  .\Rel
ease\formatnum.obj  .\Release\utf8.obj  .\Release\util.obj  .\Release\windirecto
ry.obj  .\Release\wintimer.obj  .\Release\winutil.obj
'lib' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'lib' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"E:\Program Files\Microsoft Platform SDK\Bin\nmake.e
xe"' : return code '0x2'
Stop.

E:\tortiseCVS\celestia\src>cd ..

E:\tortiseCVS\celestia>copy src\celestia\Release\celestia.exe .
The system cannot find the path specified.


If anyone can help me make sense of this error,
it will be greatly appreciated. Thanks in advance. :wink:

respect,
neoniv.

Posted: 31.01.2006, 03:11
by GlobeMaker
Hi,

You can show me the compile.txt file and the celvars.bat file.
You can confirm you have the MSVCR70.dll and MSVCR80.dll
and odbc32.lib and odbccp32.lib
and Libpng1.dll Libpng1d.dll Zlib.dll

2) Download extra libraries from Chris,
http://celestiaproject.net/celestia/files/winlibs-new.zip (2-3 minutes, 900 kB)
3) Unzip winlibs-new.zip
4) Move both subfolders (lib and inc) into "C:\MyCelestia"


If you have all that and it fails, delete all .obj files using a command line
del *.obj /S
from the src/ directory

Then compile again, check compile.txt file for messages.

Also, your "Platform SDH" may be the wrong version :

Importantly, the
SDK has 13 big files (25 meg each) to download, and
two small ones. This link was the one that worked

http://www.microsoft.com/msdownload/pla ... k-full.htm

The old description of menus to get the SDK is wrong.
The old links lead me to mistakenly
download a smaller 2 meg "Platform SDK file". And that
blocked progress. That was deleted and the 13
files were loaded with names like PSDK-FULL.13.cab

_______________________________________________

edit :

C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin is where the nmake.exe should be. Did you follow all instructions for copying SDK files into C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin ?

re

Posted: 01.02.2006, 07:39
by John Van Vliet
also on my site there is a download that contains all the header and lib's files neaded to compile also a visual stuido .snl

http://johnscelestiapage.no-ip.com/file ... php?lid=26

from noon to 3 am est usa michigian

Free Windows-based success...thanks GlobeMaker.

Posted: 11.02.2006, 00:00
by neoniv
The above error was because LIB.EXE could not be found.

Code: Select all

U1077 is 'file not found'
'lib' is not recognized as an internal or external command


...so if you get that error, you are missing a file, like lib.exe,
nmake.exe, cl.exe or cvtres.exe (which means you did not
follow the instructions right.)

I ended up reinstalling XP HOME and doing the setup intructions
on the top of Free Windows-based compiling for Celestia.

The first time I ran the SDK install I did not do it through Internet
Explorer and was missing files because of that...MAKE SURE THE
SDK RUNS FROM I.E.!!

Another problem I had (hence the reinstall of XP) was that my
Windows Installer was not working properly...it was fixed by
the XP reinstall.

Also follow the instructions CaReFuLLy :roll:

...thanks for you help GlobeMaker ~ keep up the great work! :D

respect,
neoniv.