Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: ARSPR on May 17, 2006, 11:51:22 am

Title: Error compiling from CVS (2005-05-17)
Post by: ARSPR on May 17, 2006, 11:51:22 am
Does anyone know why I get this error?

Code: [Select]
--------------------Configuration: Freespace2 - Win32 Release--------------------
Compiling resources...
Compiling...
FreeSpace.cpp
LevelPaging.cpp
Linking...
../../openal/libs/win32\openal32.lib : fatal error LNK1136: invalid or corrupt file
Error executing link.exe.

I'm using MS VC 6.0, I open Freespace2.dsw within MSVC_6, and I "rebuild all" as I've always done.

I know nothing about coding, I just follow a "walkthrough". Thank you in advance.
Title: Re: Error compiling from CVS (2005-05-17)
Post by: kasperl on May 17, 2006, 12:04:02 pm
It has been said (in the internal) that it helps if you use the Openal files from the SDK. I posted a link there so that some coder can help you out.
Title: Re: Error compiling from CVS (2005-05-17)
Post by: Shade on May 17, 2006, 12:07:17 pm
Try installing the OpenAL SDK (http://developer.creative.com/articles/article.asp?cat=1&sbcat=31&top=38&aid=45) and linking to it from your compiler. To do that, enter the paths to <openal-SDK-location>\include and \libs\win32 in MSVC options->directories->Include files and options->directories->Library files respectively. In truth, you probably only need the libs path, but both is nice in case you ever need the rest.
Title: Re: Error compiling from CVS (2005-05-17)
Post by: karajorma on May 17, 2006, 12:16:49 pm
Actually all you need to do is simply copy OpenAL32.lib from your SDK to fs2_open\openal\libs\win32 and the problem is solved. :)

MSVC 6 is already set up to find a copy of that library so it seems redundant to have two paths with one of them pointing to a corrupt version.
Title: Re: Error compiling from CVS (2005-05-17)
Post by: taylor on May 17, 2006, 12:32:38 pm
Yep, like karajorma said just replace the lib.  The SDK is already in CVS and the paths are already in the project file.  The problem (as Goober pointed out in the internal) is that WinCVS is treating the openal32.lib file as text on Windows so it appears corrupt.  Just replace the lib for now and we'll get the CVS issue worked out soon.
Title: Re: Error compiling from CVS (2005-05-17)
Post by: ARSPR on May 17, 2006, 01:18:33 pm
Well, thank you. As Karajorma has just posted a new build, I will use it instead of compiling.  :yes:
Title: Re: Error compiling from CVS (2005-05-17)
Post by: Goober5000 on May 17, 2006, 07:48:29 pm
Yep, like karajorma said just replace the lib.  The SDK is already in CVS and the paths are already in the project file.  The problem (as Goober pointed out in the internal) is that WinCVS is treating the openal32.lib file as text on Windows so it appears corrupt.  Just replace the lib for now and we'll get the CVS issue worked out soon.

It should already be fixed.  The problem is that CVS doesn't recognize a format difference as an updateable (or committable) change.  So you'd have to delete the file before you update.
Title: Re: Error compiling from CVS (2005-05-17)
Post by: ARSPR on May 18, 2006, 09:35:29 am
It should already be fixed.  The problem is that CVS doesn't recognize a format difference as an updateable (or committable) change.  So you'd have to delete the file before you update.

Nope, it isn't fixed. I have fully deleted "openal" folder, I have updated WinCVS and I still get the error.

OTOH I'm also posting two other little issues:

+ When firstly downloading from CVS, Phrases.cfg (in code\sound) is read-only and MSVC 6.0 fails to compile. I allways have to change its "read-only" property.

+ I've got 4 warnings, two of them about not having either voice recognition or speech. The other two are maybe important, so here you are:

Code: [Select]
C:\WinCVS\fs2_open\code\Hud\HUDshield.cpp(590) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
Code: [Select]
Creating library...
vDsound.lib(DSOUND.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR already defined in vDinput.lib(DINPUT.dll); second definition ignored
--------------------Configuration: libjpeg - Win32 Release--------------------
Compiling...
Title: Re: Error compiling from CVS (2005-05-17)
Post by: Goober5000 on May 19, 2006, 09:51:36 pm
Nope, it isn't fixed. I have fully deleted "openal" folder, I have updated WinCVS and I still get the error.

Hm.  Howbout now?

Quote
+ When firstly downloading from CVS, Phrases.cfg (in code\sound) is read-only and MSVC 6.0 fails to compile. I allways have to change its "read-only" property.

Tell your CVS client not to set all files as read only.

Quote
+ I've got 4 warnings, two of them about not having either voice recognition or speech. The other two are maybe important, so here you are:

Code: [Select]
C:\WinCVS\fs2_open\code\Hud\HUDshield.cpp(590) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
Code: [Select]
Creating library...
vDsound.lib(DSOUND.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR already defined in vDinput.lib(DINPUT.dll); second definition ignored

The first has been fixed.  The second is unimportant.
Title: Re: Error compiling from CVS (2005-05-17)
Post by: ARSPR on May 20, 2006, 03:48:51 am
Fixed, it compiles now. Thank you.

(After 20 minutes searching, I finally discovered where to tell WinCVS not making all files "read-only").