Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Build errors and build fail
Jack1 Offline
Junior Member

Posts: 25
Threads: 12
Joined: Dec 2011
Reputation: 0
#1
Build errors and build fail

When i try to build the OALWrapper for Penumbra Overture, i get errors and it wont build. My build log for OALWrapper is here:

Build started 8.2.2012 21:39:16.
    1>Project "C:\OvertureSource\OALWrapper\OALWrapper.vcxproj" on node 2 (build target(s)).
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(299,5): warning MSB8004: Output Directory does not end with a trailing slash.  This build instance will add the slash as it is required to allow proper evaluation of the Output Directory.
    1>InitializeBuildStatus:
         Creating "Release\OALWrapper.unsuccessfulbuild" because "AlwaysCreate" was specified.
       ClCompile:
         C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /I..\OALWrapper\include /I..\dependencies\include /Zi /nologo /W3 /WX- /O2 /Oi /Oy- /GL /D _MBCS /D WIN32 /D _MBCS /D _AFXDLL /Gm- /EHsc /MD /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Release\\" /Fd"Release\vc100.pdb" /Gd /TP /analyze- /errorReport:prompt sources\OAL_AudioData.cpp sources\OAL_Buffer.cpp sources\OAL_Device.cpp sources\OAL_Effect.cpp sources\OAL_Effect_Reverb.cpp sources\OAL_EffectSlot.cpp sources\OAL_EFX.cpp sources\OAL_EFXManager.cpp sources\OAL_Filter.cpp sources\OAL_Helper.cpp sources\OAL_Init.cpp sources\OAL_Loaders.cpp sources\OAL_LoggerObject.cpp sources\OAL_OggHelper.cpp sources\OAL_OggSample.cpp sources\OAL_OggStream.cpp sources\OAL_Playback.cpp sources\OAL_Sample.cpp sources\OAL_Source.cpp sources\OAL_SourceManager.cpp sources\OAL_Stream.cpp sources\OAL_Types.cpp sources\OAL_WAVSample.cpp
         OAL_AudioData.cpp
         OAL_Buffer.cpp
         OAL_Device.cpp
         OAL_Effect.cpp
         OAL_Effect_Reverb.cpp
         OAL_EffectSlot.cpp
         OAL_EFX.cpp
         OAL_EFXManager.cpp
         OAL_Filter.cpp
         OAL_Helper.cpp
    1>sources\OAL_Helper.cpp(53): warning C4996: 'wcstombs': This function or variable may be unsafe. Consider using wcstombs_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
                 C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdlib.h(533) : see declaration of 'wcstombs'
    1>sources\OAL_Helper.cpp(55): warning C4996: 'wcstombs': This function or variable may be unsafe. Consider using wcstombs_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
                 C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdlib.h(533) : see declaration of 'wcstombs'
    1>sources\OAL_Helper.cpp(62): warning C4996: 'mbstowcs': This function or variable may be unsafe. Consider using mbstowcs_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
                 C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdlib.h(498) : see declaration of 'mbstowcs'
    1>sources\OAL_Helper.cpp(64): warning C4996: 'mbstowcs': This function or variable may be unsafe. Consider using mbstowcs_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
                 C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdlib.h(498) : see declaration of 'mbstowcs'
    1>sources\OAL_Helper.cpp(76): warning C4996: '_wfopen': This function or variable may be unsafe. Consider using _wfopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
                 C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(601) : see declaration of '_wfopen'
    1>sources\OAL_Helper.cpp(88): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
                 C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(234) : see declaration of 'fopen'
         OAL_Init.cpp
    1>sources\OAL_Init.cpp(237): warning C4996: 'vsprintf': This function or variable may be unsafe. Consider using vsprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
                 C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(371) : see declaration of 'vsprintf'
         OAL_Loaders.cpp
         OAL_LoggerObject.cpp
    1>sources\OAL_LoggerObject.cpp(54): warning C4996: 'vsprintf': This function or variable may be unsafe. Consider using vsprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
                 C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(371) : see declaration of 'vsprintf'
         OAL_OggHelper.cpp
         OAL_OggSample.cpp
         OAL_OggStream.cpp
         OAL_Playback.cpp
         OAL_Sample.cpp
         OAL_Source.cpp
    1>sources\OAL_Source.cpp(677): warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
         OAL_SourceManager.cpp
         Compiling...
         OAL_Stream.cpp
         OAL_Types.cpp
         OAL_WAVSample.cpp
    1>sources\OAL_WAVSample.cpp(56): error C3861: 'alutLoadWAVFile': identifier not found
    1>sources\OAL_WAVSample.cpp(58): error C3861: 'alutGetError': identifier not found
    1>sources\OAL_WAVSample.cpp(61): error C2065: 'ALUT_ERROR_NO_ERROR' : undeclared identifier
    1>sources\OAL_WAVSample.cpp(61): error C2051: case expression not constant
    1>sources\OAL_WAVSample.cpp(66): warning C4065: switch statement contains 'default' but no 'case' labels
    1>sources\OAL_WAVSample.cpp(73): error C3861: 'alutUnloadWAV': identifier not found
    1>sources\OAL_WAVSample.cpp(74): error C3861: 'alutGetError': identifier not found
    1>sources\OAL_WAVSample.cpp(87): error C3861: 'alutUnloadWAV': identifier not found
    1>sources\OAL_WAVSample.cpp(88): error C3861: 'alutGetError': identifier not found
    1>Done Building Project "C:\OvertureSource\OALWrapper\OALWrapper.vcxproj" (build target(s)) -- FAILED.

Build FAILED.

Time Elapsed 00:00:05.97
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
02-08-2012, 08:39 PM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#2
RE: Build errors and build fail

Is there any more to that log as I don't see any errors there.

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
02-11-2012, 04:03 PM
Website Find
Jack1 Offline
Junior Member

Posts: 25
Threads: 12
Joined: Dec 2011
Reputation: 0
#3
RE: Build errors and build fail

That is the only log it gives to me. And isnt these some kind of errors:
1>sources\OAL_WAVSample.cpp(56): error C3861: 'alutLoadWAVFile': identifier not found

     1>sources\OAL_WAVSample.cpp(58): error C3861: 'alutGetError': identifier not found

     1>sources\OAL_WAVSample.cpp(61): error C2065: 'ALUT_ERROR_NO_ERROR' : undeclared identifier

     1>sources\OAL_WAVSample.cpp(61): error C2051: case expression not constant

     1>sources\OAL_WAVSample.cpp(66): warning C4065: switch statement contains 'default' but no 'case' labels

     1>sources\OAL_WAVSample.cpp(73): error C3861: 'alutUnloadWAV': identifier not found

     1>sources\OAL_WAVSample.cpp(74): error C3861: 'alutGetError': identifier not found

     1>sources\OAL_WAVSample.cpp(87): error C3861: 'alutUnloadWAV': identifier not found

     1>sources\OAL_WAVSample.cpp(88): error C3861: 'alutGetError': identifier not found

     1>Done Building Project "C:\OvertureSource\OALWrapper\OALWrapper.vcxproj" (build target(s)) -- FAILED.
02-12-2012, 07:38 AM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#4
RE: Build errors and build fail

Yes, those are the errors. That looks like the owl wrapper can't find the alut headers. Did you download the dependencies.zip from the hpl1engine github page? If you are wanting to use this for a project other than penumbra, the latest master code of oalwrapper has a compiler define to disable the wave loader ( and thus remove the dependency on alut). This was used in my Linux port of Gratuitus space battles which uses OALWrapper, but had no need for the wave loader. ( everything was ogg )

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
02-12-2012, 03:44 PM
Website Find
Jack1 Offline
Junior Member

Posts: 25
Threads: 12
Joined: Dec 2011
Reputation: 0
#5
RE: Build errors and build fail

I downloaded the dependencies.zip from github and i did everything as told in this guide: http://frictionalgames.com/forum/thread-3592.html and i'm trying to compile Penumbra Overture so i'm not doing this for any other project.
02-12-2012, 08:11 PM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#6
RE: Build errors and build fail

AHAH!.. So, in the latest master, the changes I made defaulted OFF the ALUT support.. But as I don't have a windows system handy, nor Visual studio I did not update the vcproj to reflect that change.. So it's trying to compile the WAVLoader (OAL_WAVSample), but the rest of ALUT is disabled. So, you'll need to modify the project settings to define WITH_ALUT, and ensure ALUT is linked.

If you wanted to go one step further, it would be providing two targets.. one with and one without.. And then submit a patch/pull request so I can incorporate it in the code repository for everyone.

Penumbra needs to have the ALUT/wav support. We nixed it in Amnesia as it wasn't needed (we just used ogg for everything).

And the OALWrapper will be receiving some more "love" over the rest of this month as I use it in another Humble Bundle port I'm working on.

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
02-14-2012, 06:41 PM
Website Find
Jack1 Offline
Junior Member

Posts: 25
Threads: 12
Joined: Dec 2011
Reputation: 0
#7
RE: Build errors and build fail

I redownloaded OALWrapper today. I think it has changed a little because it was updated 9 days ago.
So i'm asking how do i enable the ALUT/wav support. Could someone help me with this?
(This post was last modified: 03-15-2012, 03:15 PM by Jack1.)
03-15-2012, 03:07 PM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#8
RE: Build errors and build fail

you have to define a WITH_ALUT define in your build system/project settings. Ideally create a new target and change the compiler defines(preprocessor definitons) to include WITH_ALUT. and then compile in OAL_WAVSample.cpp

If you look at the CMakeLists.txt file (used for Linux) you'll see how that is handled there.

Ideally a replacement WAV loader that doesn't use ALUT would be real niceSmile But it really hasn't affected the games I've been porting lately as they all use just ogg files.

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
03-15-2012, 03:23 PM
Website Find
Jack1 Offline
Junior Member

Posts: 25
Threads: 12
Joined: Dec 2011
Reputation: 0
#9
RE: Build errors and build fail

I decided to compile everything but now even the HPL1 engine wont compile anymore.
It gives this error:
D:\OvertureSource\OALWrapper\include\OALWrapper/OAL_Effect_Reverb.h(54): error C2065: 'AL_EFFECT_EAXREVERB' : undeclared identifier
How i could fix this one?
(This post was last modified: 03-15-2012, 06:30 PM by Jack1.)
03-15-2012, 06:29 PM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#10
RE: Build errors and build fail

You are compiling against an old and outdated openal headers.

in the OALWrapper/include/AL are updated versions of efx.h and alext.h either add OALWrapper/include to the include path, or (if you are using the hpl1 dependencies.zip) replace these two files (and remove the efx-creative.h, EFX-Util.h and xram.h files)

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
03-15-2012, 06:46 PM
Website Find




Users browsing this thread: 1 Guest(s)