Error occur...!! :(
c:\documents and settings\basecode\console basecode\inc_os_ogg_vorbis.h(22) : fatal error C1083: Cannot open include file: 'ogg/ogg.h': No such file or directory
res_snd_sound.cpp
c:\documents and settings\basecode\console basecode\inc_os_open_al.h(18) : fatal error C1083: Cannot open include file: 'AL/al.h': No such file or directory
what should I do... Do I need to install the openAlsdk.exe?
i download the Oggvorbiswin32sdk-1.0.1 zip... but where should I extract the file? do I nedd to extract the files into microsoft visual studio/vc98 folder?
please teach me step by step.. I am a beginner to this kind thing.. :)
How to program a chess: a forum based tutorial
Yes, you need to install the OpenAL SDK (that would fix the second error).
About the missing 'ogg/ogg.h':
Open Oggvorbiswin32sdk-1.0.1.zip and extract the files contained in the "Include" folder to the "Include" folder of MSVC++ (Just look for it in the directory you installed MSVC++).
Now do the same thing with the files in the "lib" folder.
To compile your project correcly, be sure to ling the needed libraries, which are "openal32.lib", "ogg.lib", "vorbis.lib" and "vorbisfile.lib".
Keep in mind that once you've compiled you're project you need "ogg.dll" "vorbis.dll" and "vorbisfile.dll" in the same folder as your executable; thay can be found in the "bin" directory in Oggvorbiswin32sdk-1.0.1.zip.
You also need "OpenAL32.dll", but I can't remember where I found it (should be included in the OpenAL SDK, anyway).
If something goes wrong, that's because I missed some steps.
About the missing 'ogg/ogg.h':
Open Oggvorbiswin32sdk-1.0.1.zip and extract the files contained in the "Include" folder to the "Include" folder of MSVC++ (Just look for it in the directory you installed MSVC++).
Now do the same thing with the files in the "lib" folder.
To compile your project correcly, be sure to ling the needed libraries, which are "openal32.lib", "ogg.lib", "vorbis.lib" and "vorbisfile.lib".
Keep in mind that once you've compiled you're project you need "ogg.dll" "vorbis.dll" and "vorbisfile.dll" in the same folder as your executable; thay can be found in the "bin" directory in Oggvorbiswin32sdk-1.0.1.zip.
You also need "OpenAL32.dll", but I can't remember where I found it (should be included in the OpenAL SDK, anyway).
If something goes wrong, that's because I missed some steps.
Thx lazork357 :D
You shouldnt have to; I staticly linked them to our project so they are compiled right into the executable.
[Edited by - llvllatrix on January 16, 2005 12:48:35 PM]
Quote:
Keep in mind that once you've compiled you're project you need "ogg.dll" "vorbis.dll" and "vorbisfile.dll" in the same folder as your executable;
You shouldnt have to; I staticly linked them to our project so they are compiled right into the executable.
[Edited by - llvllatrix on January 16, 2005 12:48:35 PM]
Quote:
About the missing 'ogg/ogg.h':
Open Oggvorbiswin32sdk-1.0.1.zip and extract the files contained in the "Include" folder to the "Include" folder of MSVC++ (Just look for it in the directory you installed MSVC++).
Now do the same thing with the files in the "lib" folder.
so far, I did until here...
But still cannot work.. :(
still got one error...
:\documents and settings\basecode\console basecode\inc_os_open_al.h(18) : fatal error C1083: Cannot open include file: 'AL/al.h': No such file or directory
what should I do next...
I already install the OpenAl 1.0 software development software..
lazork357, llvllatrix ....HELPPPPPP!!!
By the way, llvllatrix... where can I learn this code:-
BOOL CALLBACK DlgProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam){ switch(uMsg) { case WM_COMMAND: { switch(LOWORD(wParam)) { case IDOK: { //fullscreen if(IsDlgButtonChecked(hWnd,IDC_FULLSCREEN)) fullscr = true; //bpp if(IsDlgButtonChecked(hWnd,IDC_BPP_16)) bpp = 16; else bpp = 32; //resolution if(IsDlgButtonChecked(hWnd,IDC_RES_800_600)) { width = 800; height = 600; } else if(IsDlgButtonChecked(hWnd,IDC_RES_1024_768)) { width = 1024; height = 768; } else { width = GetDlgItemInt(hWnd,IDC_CUS_WIDTH,NULL,FALSE); height = GetDlgItemInt(hWnd,IDC_CUS_HEIGHT,NULL,FALSE); } EndDialog(hWnd,wParam); return TRUE; }//case IDOK: case IDCANCEL: { id_cancel = true; EndDialog(hWnd,wParam); return TRUE; }//case IDCANCEL: }//switch(LOWORD(wParam)) if(HIWORD(wParam) == BN_CLICKED) { CheckDlgButton(hWnd,lParam,BST_CHECKED); if(IsDlgButtonChecked(hWnd,IDC_RES_CUSTOM)) { HWND dlg_item; dlg_item = GetDlgItem(hWnd, IDC_STAT_CUSTOM); EnableWindow(dlg_item,TRUE); dlg_item = GetDlgItem(hWnd, IDC_CUS_WIDTH); EnableWindow(dlg_item,TRUE); dlg_item = GetDlgItem(hWnd, IDC_CUS_HEIGHT); EnableWindow(dlg_item,TRUE); } else { HWND dlg_item; dlg_item = GetDlgItem(hWnd, IDC_STAT_CUSTOM); EnableWindow(dlg_item,FALSE); dlg_item = GetDlgItem(hWnd, IDC_CUS_WIDTH); EnableWindow(dlg_item,FALSE); dlg_item = GetDlgItem(hWnd, IDC_CUS_HEIGHT); EnableWindow(dlg_item,FALSE); } } break; }//case WM_COMMAND: case WM_INITDIALOG: { CheckDlgButton(hWnd,IDC_RES_1024_768,BST_CHECKED); CheckDlgButton(hWnd,IDC_BPP_32,BST_CHECKED); HWND dlg_item; dlg_item = GetDlgItem(hWnd, IDC_STAT_CUSTOM); EnableWindow(dlg_item,FALSE); dlg_item = GetDlgItem(hWnd, IDC_CUS_WIDTH); EnableWindow(dlg_item,FALSE); dlg_item = GetDlgItem(hWnd, IDC_CUS_HEIGHT); EnableWindow(dlg_item,FALSE); break; } }//switch(uMsg) return FALSE; }
I get this code from the source code.. :)
The code such as "IsDlgButtonChecked" is something that i have never seen before.. but I get the idea that it is used to execute the content of "dialog.rc" which is "IDD_init". the other commands are "WM_INITDIALOG","IDOK""BOOL CALLBACK DlgProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)","DlgProc"and etc. Ijalso want to know whether the commands are fixed...eg "WM_INITDIALOG","IDOK""IsDlgButtonChecked" :)
So, we have to sign up with Creative Labs in order to get the OpenAL SDK?
lol "OpenGL Broke..""Nothing to see here." xD
da_grat1
http://www.functionx.com/win32/Lesson04.htm
That should give you a basic idea of dialog boxes da_grat1 :) Expanding beyond that point, further integration and such is pretty straightforward really, doesn't require much work.
[Edited by - Mezmirous on January 16, 2005 3:26:36 PM]
lol "OpenGL Broke..""Nothing to see here." xD
da_grat1
http://www.functionx.com/win32/Lesson04.htm
That should give you a basic idea of dialog boxes da_grat1 :) Expanding beyond that point, further integration and such is pretty straightforward really, doesn't require much work.
[Edited by - Mezmirous on January 16, 2005 3:26:36 PM]
Quote:
So, we have to sign up with Creative Labs in order to get the OpenAL SDK?
Shouldn't have to. Try the other OpenAL link; should be able to download it there.
Quote:
That should give you a basic idea of dialog boxes da_grat1 :) Expanding beyond that point, further integration and such is pretty straightforward really, doesn't require much work.
Thanks for the website Mezmirous :)
I cannot download the OpenALsdk from creative lab.. I think the I cannot be used..
so I download it from other site.. But It is not the latest version.. However I still get this error..
:\documents and settings\basecode\console basecode\inc_os_open_al.h(18) : fatal error C1083: Cannot open include file: 'AL/al.h': No such file or directory
Quote:
You also need "OpenAL32.dll", but I can't remember where I found it (should be included in the OpenAL SDK, anyway).
lazork357, what should I do with the "OpenAL32.dll"... where should I extract it..
Quote:
so I download it from other site.. But It is not the latest version.. However I still get this error..
That means you still don't have the al.h header in the right folder.
Once you've downloaded and installed the OpenAL SDK, you have to manually copy the headers and the libraries from the folder where OpenAL is installed, to your MSVC++ folder (copy the files contained in the 'libs' and 'include' folder to the respective directories, just like you did with the Ogg/Vorbis files).
Quote:
what should I do with the "OpenAL32.dll"... where should I extract it..
llvllatrix said you shouldn't be needing it because he has statically linked it to the project; I would trust him.
I feel like want to cry T_T
still cannot..
I copied all the contents from openalsdk include folder ("al.h", "alc.h","alctypes.h","altypes.h","alu.h","alut.h","aluttypes.h",
"alutpyes.h") into Microsoft visual C++ include folder.. and the contents of openalsdk lib folder("ALut", "OpenAL32") into MVC++ lib folder..
The result is... Same error came out... T_T
basecode\console basecode\inc_os_open_al.h(18) : fatal error C1083: Cannot open include file: 'AL/al.h': No such file or directory
I don't feel happy until i solve this problem... T_T
still cannot..
I copied all the contents from openalsdk include folder ("al.h", "alc.h","alctypes.h","altypes.h","alu.h","alut.h","aluttypes.h",
"alutpyes.h") into Microsoft visual C++ include folder.. and the contents of openalsdk lib folder("ALut", "OpenAL32") into MVC++ lib folder..
The result is... Same error came out... T_T
basecode\console basecode\inc_os_open_al.h(18) : fatal error C1083: Cannot open include file: 'AL/al.h': No such file or directory
I don't feel happy until i solve this problem... T_T
hmm...odd problem...
What ide are you using? The headers should be coppied into a new folder called AL in your include directory like this: 'AL/al.h'. I think however, that the OpenAL install should have done that for you. What happened when you tried to install the OpenAL sdk from Creative?
Some notes on dlls:
You shouldnt have to include any of the dlls in the same path of the program. The ogg/vorbis dlls are statically linked and whomever is trying to run the program should have the openal binaries (OpenAL32.dll) installed on their system (In any folder specified in your system PATH).
Will post later,
- llvllatrix
Quote:
I copied all the contents from openalsdk include folder ("al.h", "alc.h","alctypes.h","altypes.h","alu.h","alut.h","aluttypes.h",
"alutpyes.h") into Microsoft visual C++ include folder.. and the contents of openalsdk lib folder("ALut", "OpenAL32") into MVC++ lib folder..
What ide are you using? The headers should be coppied into a new folder called AL in your include directory like this: 'AL/al.h'. I think however, that the OpenAL install should have done that for you. What happened when you tried to install the OpenAL sdk from Creative?
Some notes on dlls:
You shouldnt have to include any of the dlls in the same path of the program. The ogg/vorbis dlls are statically linked and whomever is trying to run the program should have the openal binaries (OpenAL32.dll) installed on their system (In any folder specified in your system PATH).
Will post later,
- llvllatrix
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement