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


Problems with compilation
Markov Offline
Junior Member

Posts: 8
Threads: 1
Joined: Oct 2013
Reputation: 0
#1
Problems with compilation

There's some bugs on repository:
HPL:
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:
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 ==========
(This post was last modified: 11-13-2013, 11:18 PM by Markov.)
10-10-2013, 07:14 PM
Find
Markov Offline
Junior Member

Posts: 8
Threads: 1
Joined: Oct 2013
Reputation: 0
#2
RE: Problems with compilation

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
(This post was last modified: 10-10-2013, 10:59 PM by Markov.)
10-10-2013, 09:35 PM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#3
RE: Compilation problem with "OALWrapper/OAL_Funcs.h': No such file or directory"

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.

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
10-10-2013, 11:14 PM
Website Find
Markov Offline
Junior Member

Posts: 8
Threads: 1
Joined: Oct 2013
Reputation: 0
#4
RE: Problems with compilation

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:


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.
(This post was last modified: 10-11-2013, 11:10 PM by Markov.)
10-11-2013, 10:54 PM
Find
Markov Offline
Junior Member

Posts: 8
Threads: 1
Joined: Oct 2013
Reputation: 0
#5
RE: Problems with compilation

Anyone?
10-16-2013, 08:53 PM
Find
EnDash Offline
Junior Member

Posts: 35
Threads: 2
Joined: Apr 2013
Reputation: 0
#6
RE: Problems with compilation

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
10-26-2013, 03:27 AM
Find
Markov Offline
Junior Member

Posts: 8
Threads: 1
Joined: Oct 2013
Reputation: 0
#7
RE: Problems with compilation

I'm here. Thanks, I'll try right now!
11-10-2013, 01:00 PM
Find
Markov Offline
Junior Member

Posts: 8
Threads: 1
Joined: Oct 2013
Reputation: 0
#8
RE: Problems with compilation

So I did everything form guide and got this on hpl compile
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]
(This post was last modified: 11-12-2013, 10:53 PM by Markov.)
11-12-2013, 10:16 PM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#9
RE: Problems with compilation

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.

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
11-12-2013, 10:36 PM
Website Find
Markov Offline
Junior Member

Posts: 8
Threads: 1
Joined: Oct 2013
Reputation: 0
#10
RE: Problems with compilation

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:
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 ==========
(This post was last modified: 11-13-2013, 02:23 PM by Markov.)
11-12-2013, 11:46 PM
Find




Users browsing this thread: 1 Guest(s)