Frictional Games Forum (read-only)
Problems with compilation - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Open Source Collaboration (https://www.frictionalgames.com/forum/forum-27.html)
+--- Forum: Overture (https://www.frictionalgames.com/forum/forum-29.html)
+--- Thread: Problems with compilation (/thread-23553.html)

Pages: 1 2


Problems with compilation - Markov - 10-10-2013

There's some bugs on repository:
HPL:
Code:
1>------ Build started: Project: HPL, Configuration: Release Win32 ------
1>  LowLevelSoundOpenAL.cpp
1>D:\Gamedev\Penumbra\OuvertureSource\HPL1Engine\include\system/SystemTypes.h(169): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          E:\Programs\Visual Studio 2010\VC\include\stdio.h(357) : see declaration of 'sprintf'
1>D:\Gamedev\Penumbra\OuvertureSource\OALWrapper\include\OALWrapper/OAL_Effect_Reverb.h(54): error C2065: 'AL_EFFECT_EAXREVERB' : undeclared identifier
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

And OALWrapper:
Code:
1>------ Build started: Project: OALWrapper, Configuration: Release Win32 ------
1>  OAL_Effect.cpp
1>sources\OAL_Effect.cpp(11): fatal error C1083: Cannot open include file: 'SDL_mutex.h': No such file or directory
1>  OAL_EffectSlot.cpp
1>sources\OAL_EffectSlot.cpp(13): fatal error C1083: Cannot open include file: 'SDL_mutex.h': No such file or directory
1>  OAL_EFXManager.cpp
1>sources\OAL_EFXManager.cpp(15): fatal error C1083: Cannot open include file: 'SDL_thread.h': No such file or directory
1>  OAL_OggSample.cpp
1>sources\OAL_OggSample.cpp(38): warning C4244: '=' : conversion from 'ogg_int64_t' to 'size_t', possible loss of data
1>sources\OAL_OggSample.cpp(80): warning C4244: 'return' : conversion from 'ogg_int64_t' to 'long', possible loss of data
1>sources\OAL_OggSample.cpp(123): error C2065: 'OV_CALLBACKS_DEFAULT' : undeclared identifier
1>  OAL_OggStream.cpp
1>sources\OAL_OggStream.cpp(148): error C2065: 'OV_CALLBACKS_DEFAULT' : undeclared identifier
1>  OAL_Source.cpp
1>sources\OAL_Source.cpp(28): fatal error C1083: Cannot open include file: 'SDL_mutex.h': No such file or directory
1>  OAL_SourceManager.cpp
1>sources\OAL_SourceManager.cpp(12): fatal error C1083: Cannot open include file: 'SDL_thread.h': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



RE: Problems with compilation - Markov - 10-10-2013

Okay. I fixed it.
In first case I've just typed 0 instead of AL_EFFECT_EAXREVERB.
In case of OV_CALLBACKS_DEFAULT I replace old file vorbisfile.h to new(in dependencies\include\vorbis). and included SDL


RE: Compilation problem with "OALWrapper/OAL_Funcs.h': No such file or directory" - Urkle - 10-10-2013

What do you mean by "it crashed"? As it looks like you simply have a compiler error due to some configured include paths. Not a crash. Check the HPL2 project settings and ensure that the include paths for OALWrapper are setup correctly.


RE: Problems with compilation - Markov - 10-11-2013

Thanks for answer. Sorry, of course I ment just errors.
I did everything from JKO's Guide step by step. But I could compile only by including some folders from OvertureSource to wrapper and HPL projects.
So now I have a bunch of errors while Penumbra compiling, like this:


Code:
1>d:\gamedev\penumbra\ouverturesource\penumbraoverture\AttackHandler.h(105): error C2143: syntax error : missing ';' before '{'1>d:\gamedev\penumbra\ouverturesource\penumbraoverture\AttackHandler.h(119): error C2143: syntax error : missing ';' before '}'1>d:\gamedev\penumbra\ouverturesource\penumbraoverture\Notebook.h(41): error C2143: syntax error : missing ';' before '{'1>d:\gamedev\penumbra\ouverturesource\penumbraoverture\Notebook.h(43): error C2065: 'eNotebookType_Open' : undeclared identifier1>d:\gamedev\penumbra\ouverturesource\penumbraoverture\Notebook.h(44): error C2059: syntax error : '}'1>d:\gamedev\penumbra\ouverturesource\penumbraoverture\Notebook.h(44): error C2143: syntax error : missing ';' before '}'1>d:\gamedev\penumbra\ouverturesource\penumbraoverture\Notebook.h(49): error C2143: syntax error : missing ';' before '{'1>d:\gamedev\penumbra\ouverturesource\penumbraoverture\Notebook.h(51): error C3861: 'mfAlpha': identifier not found1>d:\gamedev\penumbra\ouverturesource\penumbraoverture\Notebook.h(51): error C2143: syntax error : missing ',' before '{'1>d:\gamedev\penumbra\ouverturesource\penumbraoverture\Notebook.h(51): error C2143: syntax error : missing ';' before '{'1>d:\gamedev\penumbra\ouverturesource\penumbraoverture\Notebook.h(61): error C2143: syntax error : missing ';' before '}'1>d:\gamedev\penumbra\ouverturesource\penumbraoverture\Notebook.h(63): error C2065: 'cNotebook_Note' : undeclared identifier1>d:\gamedev\penumbra\ouverturesource\penumbraoverture\Notebook.h(63): error C2059: syntax error : '>'1>d:\gamedev\penumbra\ouverturesource\penumbraoverture\Notebook.h(64): error C2653: 'tNotebook_NoteList' : is not a class or namespace name1>d:\gamedev\penumbra\ouverturesource\penumbraoverture\Notebook.h(66): error C2065: 'cNotebook_Note' : undeclared identifier1>d:\gamedev\penumbra\ouverturesource\penumbraoverture\Notebook.h(66): error C2059: syntax error : ','1>d:\gamedev\penumbra\ouverturesource\penumbraoverture\Notebook.h(66): error C2065: 'tNotebook_NoteList' : undeclared identifier1>d:\gamedev\penumbra\ouverturesource\penumbraoverture\Notebook.h(66): error C2065: 'tNotebook_NoteListIt' : undeclared identifier1>d:\gamedev\penumbra\ouverturesource\penumbraoverture\Notebook.h(73): error C2143: syntax error : missing ';' before '{'1>d:\gamedev\penumbra\ouverturesource\penumbraoverture\Notebook.h(75): error C2065: 'apNotebook' : undeclared identifier1>d:\gamedev\penumbra\ouverturesource\penumbraoverture\Notebook.h(75): error C2275: 'cNotebook' : illegal use of this type as an expression

And what do you mean by telling "HPL2 project"?. There is only HPL1 project in the guide.


RE: Problems with compilation - Markov - 10-16-2013

Anyone?


RE: Problems with compilation - EnDash - 10-26-2013

if you are still here, try deleting and getting the source again, then following JKO's guide with a fresh source. if you can compile without changing the source it shouldn't crash.

also, if you are on visual studio 2012, do as i said here:
http://www.frictionalgames.com/forum/thread-22527.html


RE: Problems with compilation - Markov - 11-10-2013

I'm here. Thanks, I'll try right now!


RE: Problems with compilation - Markov - 11-12-2013

So I did everything form guide and got this on hpl compile
Code:
1>------ Build started: Project: HPL, Configuration: Release Win32 ------
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuild.targets(346,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>  LowLevelSoundOpenAL.cpp
1>D:\Gamedev\Penumbra\OuvertureSource\HPL1Engine\include\system/SystemTypes.h(169): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          E:\Programs\Visual Studio 2010\VC\include\stdio.h(357) : see declaration of 'sprintf'
1>D:\Gamedev\Penumbra\OuvertureSource\OALWrapper\include\OALWrapper/OAL_Effect_Reverb.h(54): error C2065: 'AL_EFFECT_EAXREVERB' : undeclared identifier
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

the solution from here doesn't work
http://www.frictionalgames.com/forum/thread-13173.html

this is my project settings:
[Image: 1384291320-clip-176kb.jpg?nocache=1]
[Image: 1384291401-clip-13kb.jpg?nocache=1]


RE: Problems with compilation - Urkle - 11-12-2013

Make sure the include directory within OALWrapper . and do a pull on the OALWrapper repository.. I just made some small tweaks to include a complete OpenAL header from OpenAL-Soft's implementation.


RE: Problems with compilation - Markov - 11-12-2013

yea, it works, thanks.
Wrapper compiled when I included SDL library(of course after all steps from the guide).
So now I'm on the final step, I've got this on Penumbra compilation:
Code:
1>------ Build started: Project: Penumbra, Configuration: Release Win32 ------
1>  OALWrapper.lib(OAL_Init.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
1>OALWrapper.lib(OAL_Device.obj) : error LNK2001: unresolved external symbol "public: __thiscall cOAL_CustomStream::cOAL_CustomStream(struct tStreamCallbacks const &,struct tStreamInfo const &,void *)" (??0cOAL_CustomStream@@QAE@ABUtStreamCallbacks@@ABUtStreamInfo@@PAX@Z)
1>../redist/Penumbra.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========