Static libray of OpenAl Without DLL (For visual studio project)

View: New views
9 Messages — Rating Filter:   Alert me  

Static libray of OpenAl Without DLL (For visual studio project)

by wassim_belhadj :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Dear list,

I have already posted this message but I did not have any answers :-(

I am  using OpenAl in a visual studio  project  (2005).
I want to build OpenAl to have a static libray  that i will include in my
project.I downloaded the openAl Source (openal-0.08) from OpenAl website
and cmake2.6

When I click on the button configure I have had an error :
-------------------------------------------------------------------------------
CMake Error: find_package could not find module FindConfigHelper.cmake or a
configuration file for package ConfigHelper.
Adjust CMAKE_MODULE_PATH to find FindConfigHelper.cmake or set
ConfigHelper_DIR to the director containing a CMake configuration file for
ConfigHelper
The file will have one of the following names:
  ConfigHelperConfig.cmake
  confighelper-config.cmake

------------------------------------------------------------------------------
How can i  resolve this error ?

Is it possible to have a static libray of OpenAl Without DLL?


Thanks in advance!

Best regards
wassim

_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

Re: Static libray of OpenAl Without DLL (For visual studio project)

by Daniel PEACOCK :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message





Hi Wassim,

That particular code-base is no longer being actively maintained.   Chris
Robinson is actively working on OpenALSoft which is a cross-platform
implementation of OpenAL ( http://kcat.strangesoft.net/openal.html ) that
you might want to look at.   Alternatively there are pre-built Windows
binaries available for download from
http://connect.creativelabs.com/openal/Downloads/Forms/AllItems.aspx

I am definitely not an expert in licensing ... but the code you are looking
at is distributed under the GNU Library General Public License and it has
certain requirements if you want to use static libraries which you may or
may not want to be subjected to.

Do you really need to use a static library?

Dan
Creative Labs, Inc.

Notice
The information in this message is confidential and may be legally
privileged.  It is intended solely for the addressee.  Access to this
message by anyone else is unauthorized.  If you are not the intended
recipient,  any disclosure,  copying or distribution of the message,  or
any action taken by you in reliance on it,  is prohibited and may be
unlawful.  If you have received this message in error,  please delete it
and contact the sender immediately.  Thank you.




                                                                           
             wassim_belhadj                                                
             <wassim_belhadj@t                                            
             opnet.tn>                                                  To
             Sent by:                  openal@...      
             openal-bounces@op                                          cc
             ensource.creative                                            
             .com                                                  Subject
                                       [Openal] Static libray of OpenAl    
                                       Without DLL (For visual studio      
             06/06/2008 06:30          project)                            
             AM                                                            
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           





Dear list,

I have already posted this message but I did not have any answers :-(

I am  using OpenAl in a visual studio  project  (2005).
I want to build OpenAl to have a static libray  that i will include in my
project.I downloaded the openAl Source (openal-0.08) from OpenAl website
and cmake2.6

When I click on the button configure I have had an error :
-------------------------------------------------------------------------------

CMake Error: find_package could not find module FindConfigHelper.cmake or a
configuration file for package ConfigHelper.
Adjust CMAKE_MODULE_PATH to find FindConfigHelper.cmake or set
ConfigHelper_DIR to the director containing a CMake configuration file for
ConfigHelper
The file will have one of the following names:
  ConfigHelperConfig.cmake
  confighelper-config.cmake

------------------------------------------------------------------------------

How can i  resolve this error ?

Is it possible to have a static libray of OpenAl Without DLL?


Thanks in advance!

Best regards
wassim

_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

ForwardSourceID:NT000617A6

_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

Re: Static libray of OpenAl Without DLL (For visual studio project)

by Andre Krause :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

a minimalistic howto:


*******************************************************************
to build static freealut:
replace in alut.h:

#define AL_API __declspec(dllimport)
with
#define AL_API extern




*******************************************************************
to build a static openal library under windows 32,

in "OpenAL32.c" add:

void InitialiseOpenALDLL()
{
        DllMain(NULL,DLL_PROCESS_ATTACH,NULL);
}

void DestroyOpenALDLL()
{
        DllMain(NULL,DLL_PROCESS_DETACH,NULL);
}


///////////////////////////////////////
in al.h and alut.h:
replace
   #define AL_API __declspec(dllimport)
   with
        #define AL_API
       

in al.h add:

void InitialiseOpenALDLL();
void DestroyOpenALDLL();


///////////////////////////////////////
int main(int argc, char* argv[])
{
        InitialiseOpenALDLL();
        ...
       
        DestroyOpenALDLL();
}
*******************************************************************
_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

Re: Static libray of OpenAl Without DLL (For visual studioproject)

by wassim_belhadj :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Thank you very much for your help
You are really very nice ...
In fact I changed the files "al.h" and "OpenAL32.c" as you told me.
I do not use the library ALUT therefore I have not changed the file
"alut.h".
Then, I build  to have a static libray  and I added it  to my
project(visual studioproject).
All works well but when i try to open the device i have an error.
When I recover the devices name  via function "alcGetString" it was bizarre
(Wave File Writer)
This not been the name of my sound card so  "alcOpenDevice"  function
generates an error when it try to open device.
NB:The same project works when I use dynamic OpenAL.
Thanks in advance


On Wed, 18 Jun 2008 22:09:12 +0200, Andre Krause <post@...>
wrote:

> a minimalistic howto:
>
>
> *******************************************************************
> to build static freealut:
> replace in alut.h:
>
> #define AL_API __declspec(dllimport)
> with
> #define AL_API extern
>
>
>
>
> *******************************************************************
> to build a static openal library under windows 32,
>
> in "OpenAL32.c" add:
>
> void InitialiseOpenALDLL()
> {
> DllMain(NULL,DLL_PROCESS_ATTACH,NULL);
> }
>
> void DestroyOpenALDLL()
> {
> DllMain(NULL,DLL_PROCESS_DETACH,NULL);
> }
>
>
> ///////////////////////////////////////
> in al.h and alut.h:
> replace
>    #define AL_API __declspec(dllimport)
>    with
> #define AL_API
>
>
> in al.h add:
>
> void InitialiseOpenALDLL();
> void DestroyOpenALDLL();
>
>
> ///////////////////////////////////////
> int main(int argc, char* argv[])
> {
> InitialiseOpenALDLL();
> ...
>
> DestroyOpenALDLL();
> }
> *******************************************************************

_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

Re: Static libray of OpenAl Without DLL (For visual studioproject)

by Chris Robinson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 19 June 2008 06:55:36 am wassim_belhadj wrote:

> Thank you very much for your help
> You are really very nice ...
> In fact I changed the files "al.h" and "OpenAL32.c" as you told me.
> I do not use the library ALUT therefore I have not changed the file
> "alut.h".
> Then, I build  to have a static libray  and I added it  to my
> project(visual studioproject).
> All works well but when i try to open the device i have an error.
> When I recover the devices name  via function "alcGetString" it was bizarre
> (Wave File Writer)
> This not been the name of my sound card so  "alcOpenDevice"  function
> generates an error when it try to open device.

This sounds like you're using OpenAL Soft, and it didn't build with
DirectSound support. You'll need to check the full output when you ran cmake
and see what was failing/why it isn't detecting DSound. Note that if you use
OpenAL Soft like this, it'll forever prevent people from using their own
OpenAL version (either the DSound wrapper from Creative, or a hardware
driver, or a home-grown version someone may have). And static linking will
also prevent people from easilly upgrading OpenAL Soft.

As well, to abide by the LGPL license with static linking, you must provide
the object files for the project (if not the source), so users can replace
OpenAL Soft code as they see fit.
_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

Re: Static libray of OpenAl Without DLL (For visualstudioproject)

by wassim_belhadj :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Thank you very much for your answer.
I'am using OpenAl Soft under Windows Platform.
Indeed, when i run Cmake and thereafter configure i have a red list on the
right (cahe value) .
Among the list there is a variable named DSOUND in front of this variable
it is marked ON.
What I do is click once on configure and the list is now gray.
Apparently I should not do this.
I am a novice using CMAKE...
Can you tell me please what should I do?

NB:The same application works perfectly when i am using Creative OpenAL SDK
 on Windows Platform.
I hope to get help because I'm lost...
Thanks in advance


 
On Thu, 19 Jun 2008 22:09:34 -0700, Chris Robinson <chris.kcat@...>
wrote:

> On Thursday 19 June 2008 06:55:36 am wassim_belhadj wrote:
>> Thank you very much for your help
>> You are really very nice ...
>> In fact I changed the files "al.h" and "OpenAL32.c" as you told me.
>> I do not use the library ALUT therefore I have not changed the file
>> "alut.h".
>> Then, I build  to have a static libray  and I added it  to my
>> project(visual studioproject).
>> All works well but when i try to open the device i have an error.
>> When I recover the devices name  via function "alcGetString" it was
> bizarre
>> (Wave File Writer)
>> This not been the name of my sound card so  "alcOpenDevice"  function
>> generates an error when it try to open device.
>
> This sounds like you're using OpenAL Soft, and it didn't build with
> DirectSound support. You'll need to check the full output when you ran
> cmake
> and see what was failing/why it isn't detecting DSound. Note that if you
> use
> OpenAL Soft like this, it'll forever prevent people from using their own
> OpenAL version (either the DSound wrapper from Creative, or a hardware
> driver, or a home-grown version someone may have). And static linking
will
> also prevent people from easilly upgrading OpenAL Soft.
>
> As well, to abide by the LGPL license with static linking, you must
> provide
> the object files for the project (if not the source), so users can
replace
> OpenAL Soft code as they see fit.
> _______________________________________________
> Openal mailing list
> Openal@...
> http://opensource.creative.com/mailman/listinfo/openal

_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

Re: Static libray of OpenAl Without DLL (For visualstudioproject)

by Chris Robinson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Friday 20 June 2008 12:21:44 am wassim_belhadj wrote:
> Among the list there is a variable named DSOUND in front of this variable
> it is marked ON.

That just means that it'll enabled DSound if it's available. You need to check
the output of running cmake to see what checks fail and pass. If cmake's
already been run, you can look at CMakeFiles/CMakeError.log to see which
checks failed and why.

> NB:The same application works perfectly when i am using Creative OpenAL SDK
>  on Windows Platform.

Because Creative's DLLs are pre-compiled to use DSound. To compile apps using
DSound, there are some needed libraries and headers which CMake doesn't seem
to be finding.

BTW, are you using OpenAL Soft 1.4? You should update if you're not.
_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

Re: Static libray of OpenAl Without DLL (Forvisualstudioproject)

by wassim_belhadj :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message




Below the roster CMakeError.log
Apparently there is a lot of errors
How to correct these mistakes please
I would be very grateful...
Thanks in advance

/*******************************CMakeError.log
****************************************/
/**************************************************************************************/
/**************************************************************************************/
/**************************************************************************************/
/**************************************************************************************/
Determining if the include file stdint.h exists failed with the following
output:
Change Dir: C:/Documents and
Settings/Propriétaire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp

Run Build Command:C:\PROGRA~1\MICROS~2\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec


Microsoft (R) Visual Studio Version 8.0.50727.42.

Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

1>------ Build started: Project: cmTryCompileExec, Configuration: Debug
Win32 ------

1>Compiling...

1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for
80x86

1>Copyright (C) Microsoft Corporation.  All rights reserved.

1>cl /Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "CMAKE_INTDIR=\"Debug\""
/D "_MBCS" /FD /RTC1 /MDd /Fo"cmTryCompileExec.dir\Debug\\"
/Fd"C:/Documents and
Settings/Propri‚taire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb"
/W3 /c /Zi /TC   /Zm1000

1>   ".\CheckIncludeFile.c"

1>CheckIncludeFile.c

1>.\CheckIncludeFile.c(1) : fatal error C1083: Cannot open include file:
'stdint.h': No such file or directory

1>Build log was saved at "file://c:\Documents and
Settings\Propri‚taire\Bureau\OpenAL_Soft\OepenAlC\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"

1>cmTryCompileExec - 1 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



Determining if the function sqrtf exists in the m failed with the following
output:
Change Dir: C:/Documents and
Settings/Propriétaire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp

Run Build Command:C:\PROGRA~1\MICROS~2\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec


Microsoft (R) Visual Studio Version 8.0.50727.42.

Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

1>------ Build started: Project: cmTryCompileExec, Configuration: Debug
Win32 ------

1>Compiling...

1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for
80x86

1>Copyright (C) Microsoft Corporation.  All rights reserved.

1>cl /Od /D "WIN32" /D "_WINDOWS" /D "CHECK_FUNCTION_EXISTS=sqrtf" /D
"_DEBUG" /D "CMAKE_INTDIR=\"Debug\"" /D "_MBCS" /FD /RTC1 /MDd
/Fo"cmTryCompileExec.dir\Debug\\" /Fd"C:/Documents and
Settings/Propri‚taire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb"
/W3 /c /Zi /TC   /Zm1000

1>   "..\..\..\..\..\..\..\Program Files\CMake
2.6\share\cmake-2.6\Modules\CheckFunctionExists.c"

1>CheckFunctionExists.c

1>Compiling manifest to resources...

1>Linking...

1>LINK : fatal error LNK1104: cannot open file 'm.lib'

1>Build log was saved at "file://c:\Documents and
Settings\Propri‚taire\Bureau\OpenAL_Soft\OepenAlC\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"

1>cmTryCompileExec - 1 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



Determining if the function acosf exists in the m failed with the following
output:
Change Dir: C:/Documents and
Settings/Propriétaire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp

Run Build Command:C:\PROGRA~1\MICROS~2\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec


Microsoft (R) Visual Studio Version 8.0.50727.42.

Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

1>------ Build started: Project: cmTryCompileExec, Configuration: Debug
Win32 ------

1>Compiling...

1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for
80x86

1>Copyright (C) Microsoft Corporation.  All rights reserved.

1>cl /Od /D "WIN32" /D "_WINDOWS" /D "CHECK_FUNCTION_EXISTS=acosf" /D
"_DEBUG" /D "CMAKE_INTDIR=\"Debug\"" /D "_MBCS" /FD /RTC1 /MDd
/Fo"cmTryCompileExec.dir\Debug\\" /Fd"C:/Documents and
Settings/Propri‚taire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb"
/W3 /c /Zi /TC   /Zm1000

1>   "..\..\..\..\..\..\..\Program Files\CMake
2.6\share\cmake-2.6\Modules\CheckFunctionExists.c"

1>CheckFunctionExists.c

1>Compiling manifest to resources...

1>Linking...

1>LINK : fatal error LNK1104: cannot open file 'm.lib'

1>Build log was saved at "file://c:\Documents and
Settings\Propri‚taire\Bureau\OpenAL_Soft\OepenAlC\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"

1>cmTryCompileExec - 1 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



Determining if the function strtof exists failed with the following output:
Change Dir: C:/Documents and
Settings/Propriétaire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp

Run Build Command:C:\PROGRA~1\MICROS~2\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec


Microsoft (R) Visual Studio Version 8.0.50727.42.

Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

1>------ Build started: Project: cmTryCompileExec, Configuration: Debug
Win32 ------

1>Compiling...

1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for
80x86

1>Copyright (C) Microsoft Corporation.  All rights reserved.

1>cl /Od /D "WIN32" /D "_WINDOWS" /D "CHECK_FUNCTION_EXISTS=strtof" /D
"_DEBUG" /D "CMAKE_INTDIR=\"Debug\"" /D "_MBCS" /FD /RTC1 /MDd
/Fo"cmTryCompileExec.dir\Debug\\" /Fd"C:/Documents and
Settings/Propri‚taire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb"
/W3 /c /Zi /TC   /Zm1000

1>   "..\..\..\..\..\..\..\Program Files\CMake
2.6\share\cmake-2.6\Modules\CheckFunctionExists.c"

1>CheckFunctionExists.c

1>Compiling manifest to resources...

1>Linking...

1>CheckFunctionExists.obj : error LNK2019: unresolved external symbol
_strtof referenced in function _main

1>C:\Documents and
Settings\Propri‚taire\Bureau\OpenAL_Soft\OepenAlC\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe
: fatal error LNK1120: 1 unresolved externals

1>Build log was saved at "file://c:\Documents and
Settings\Propri‚taire\Bureau\OpenAL_Soft\OepenAlC\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"

1>cmTryCompileExec - 2 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



Determining if the function strcasecmp exists failed with the following
output:
Change Dir: C:/Documents and
Settings/Propriétaire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp

Run Build Command:C:\PROGRA~1\MICROS~2\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec


Microsoft (R) Visual Studio Version 8.0.50727.42.

Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

1>------ Build started: Project: cmTryCompileExec, Configuration: Debug
Win32 ------

1>Compiling...

1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for
80x86

1>Copyright (C) Microsoft Corporation.  All rights reserved.

1>cl /Od /D "WIN32" /D "_WINDOWS" /D "CHECK_FUNCTION_EXISTS=strcasecmp" /D
"_DEBUG" /D "CMAKE_INTDIR=\"Debug\"" /D "_MBCS" /FD /RTC1 /MDd
/Fo"cmTryCompileExec.dir\Debug\\" /Fd"C:/Documents and
Settings/Propri‚taire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb"
/W3 /c /Zi /TC   /Zm1000

1>   "..\..\..\..\..\..\..\Program Files\CMake
2.6\share\cmake-2.6\Modules\CheckFunctionExists.c"

1>CheckFunctionExists.c

1>Compiling manifest to resources...

1>Linking...

1>CheckFunctionExists.obj : error LNK2019: unresolved external symbol
_strcasecmp referenced in function _main

1>C:\Documents and
Settings\Propri‚taire\Bureau\OpenAL_Soft\OepenAlC\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe
: fatal error LNK1120: 1 unresolved externals

1>Build log was saved at "file://c:\Documents and
Settings\Propri‚taire\Bureau\OpenAL_Soft\OepenAlC\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"

1>cmTryCompileExec - 2 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



Determining if the function strncasecmp exists failed with the following
output:
Change Dir: C:/Documents and
Settings/Propriétaire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp

Run Build Command:C:\PROGRA~1\MICROS~2\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec


Microsoft (R) Visual Studio Version 8.0.50727.42.

Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

1>------ Build started: Project: cmTryCompileExec, Configuration: Debug
Win32 ------

1>Compiling...

1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for
80x86

1>Copyright (C) Microsoft Corporation.  All rights reserved.

1>cl /Od /D "WIN32" /D "_WINDOWS" /D "CHECK_FUNCTION_EXISTS=strncasecmp" /D
"_DEBUG" /D "CMAKE_INTDIR=\"Debug\"" /D "_MBCS" /FD /RTC1 /MDd
/Fo"cmTryCompileExec.dir\Debug\\" /Fd"C:/Documents and
Settings/Propri‚taire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb"
/W3 /c /Zi /TC   /Zm1000

1>   "..\..\..\..\..\..\..\Program Files\CMake
2.6\share\cmake-2.6\Modules\CheckFunctionExists.c"

1>CheckFunctionExists.c

1>Compiling manifest to resources...

1>Linking...

1>CheckFunctionExists.obj : error LNK2019: unresolved external symbol
_strncasecmp referenced in function _main

1>C:\Documents and
Settings\Propri‚taire\Bureau\OpenAL_Soft\OepenAlC\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe
: fatal error LNK1120: 1 unresolved externals

1>Build log was saved at "file://c:\Documents and
Settings\Propri‚taire\Bureau\OpenAL_Soft\OepenAlC\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"

1>cmTryCompileExec - 2 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



Determining if the function snprintf exists failed with the following
output:
Change Dir: C:/Documents and
Settings/Propriétaire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp

Run Build Command:C:\PROGRA~1\MICROS~2\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec


Microsoft (R) Visual Studio Version 8.0.50727.42.

Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

1>------ Build started: Project: cmTryCompileExec, Configuration: Debug
Win32 ------

1>Compiling...

1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for
80x86

1>Copyright (C) Microsoft Corporation.  All rights reserved.

1>cl /Od /D "WIN32" /D "_WINDOWS" /D "CHECK_FUNCTION_EXISTS=snprintf" /D
"_DEBUG" /D "CMAKE_INTDIR=\"Debug\"" /D "_MBCS" /FD /RTC1 /MDd
/Fo"cmTryCompileExec.dir\Debug\\" /Fd"C:/Documents and
Settings/Propri‚taire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb"
/W3 /c /Zi /TC   /Zm1000

1>   "..\..\..\..\..\..\..\Program Files\CMake
2.6\share\cmake-2.6\Modules\CheckFunctionExists.c"

1>CheckFunctionExists.c

1>Compiling manifest to resources...

1>Linking...

1>CheckFunctionExists.obj : error LNK2019: unresolved external symbol
_snprintf referenced in function _main

1>C:\Documents and
Settings\Propri‚taire\Bureau\OpenAL_Soft\OepenAlC\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe
: fatal error LNK1120: 1 unresolved externals

1>Build log was saved at "file://c:\Documents and
Settings\Propri‚taire\Bureau\OpenAL_Soft\OepenAlC\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"

1>cmTryCompileExec - 2 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



Determining if the include file dlfcn.h exists failed with the following
output:
Change Dir: C:/Documents and
Settings/Propriétaire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp

Run Build Command:C:\PROGRA~1\MICROS~2\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec


Microsoft (R) Visual Studio Version 8.0.50727.42.

Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

1>------ Build started: Project: cmTryCompileExec, Configuration: Debug
Win32 ------

1>Compiling...

1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for
80x86

1>Copyright (C) Microsoft Corporation.  All rights reserved.

1>cl /Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "CMAKE_INTDIR=\"Debug\""
/D "_MBCS" /FD /RTC1 /MDd /Fo"cmTryCompileExec.dir\Debug\\"
/Fd"C:/Documents and
Settings/Propri‚taire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb"
/W3 /c /Zi /TC   /Zm1000

1>   ".\CheckIncludeFile.c"

1>CheckIncludeFile.c

1>.\CheckIncludeFile.c(1) : fatal error C1083: Cannot open include file:
'dlfcn.h': No such file or directory

1>Build log was saved at "file://c:\Documents and
Settings\Propri‚taire\Bureau\OpenAL_Soft\OepenAlC\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"

1>cmTryCompileExec - 1 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



Determining if the include file alsa/asoundlib.h exists failed with the
following output:
Change Dir: C:/Documents and
Settings/Propriétaire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp

Run Build Command:C:\PROGRA~1\MICROS~2\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec


Microsoft (R) Visual Studio Version 8.0.50727.42.

Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

1>------ Build started: Project: cmTryCompileExec, Configuration: Debug
Win32 ------

1>Compiling...

1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for
80x86

1>Copyright (C) Microsoft Corporation.  All rights reserved.

1>cl /Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "CMAKE_INTDIR=\"Debug\""
/D "_MBCS" /FD /RTC1 /MDd /Fo"cmTryCompileExec.dir\Debug\\"
/Fd"C:/Documents and
Settings/Propri‚taire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb"
/W3 /c /Zi /TC   /Zm1000

1>   ".\CheckIncludeFile.c"

1>CheckIncludeFile.c

1>.\CheckIncludeFile.c(1) : fatal error C1083: Cannot open include file:
'alsa/asoundlib.h': No such file or directory

1>Build log was saved at "file://c:\Documents and
Settings\Propri‚taire\Bureau\OpenAL_Soft\OepenAlC\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"

1>cmTryCompileExec - 1 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



Determining if the include file sys/soundcard.h exists failed with the
following output:
Change Dir: C:/Documents and
Settings/Propriétaire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp

Run Build Command:C:\PROGRA~1\MICROS~2\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec


Microsoft (R) Visual Studio Version 8.0.50727.42.

Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

1>------ Build started: Project: cmTryCompileExec, Configuration: Debug
Win32 ------

1>Compiling...

1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for
80x86

1>Copyright (C) Microsoft Corporation.  All rights reserved.

1>cl /Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "CMAKE_INTDIR=\"Debug\""
/D "_MBCS" /FD /RTC1 /MDd /Fo"cmTryCompileExec.dir\Debug\\"
/Fd"C:/Documents and
Settings/Propri‚taire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb"
/W3 /c /Zi /TC   /Zm1000

1>   ".\CheckIncludeFile.c"

1>CheckIncludeFile.c

1>.\CheckIncludeFile.c(1) : fatal error C1083: Cannot open include file:
'sys/soundcard.h': No such file or directory

1>Build log was saved at "file://c:\Documents and
Settings\Propri‚taire\Bureau\OpenAL_Soft\OepenAlC\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"

1>cmTryCompileExec - 1 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



Determining if the include file dsound.h exists failed with the following
output:
Change Dir: C:/Documents and
Settings/Propriétaire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp

Run Build Command:C:\PROGRA~1\MICROS~2\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec


Microsoft (R) Visual Studio Version 8.0.50727.42.

Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

1>------ Build started: Project: cmTryCompileExec, Configuration: Debug
Win32 ------

1>Compiling...

1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for
80x86

1>Copyright (C) Microsoft Corporation.  All rights reserved.

1>cl /Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "CMAKE_INTDIR=\"Debug\""
/D "_MBCS" /FD /RTC1 /MDd /Fo"cmTryCompileExec.dir\Debug\\"
/Fd"C:/Documents and
Settings/Propri‚taire/Bureau/OpenAL_Soft/OepenAlC/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb"
/W3 /c /Zi /TC   /Zm1000

1>   ".\CheckIncludeFile.c"

1>CheckIncludeFile.c

1>.\CheckIncludeFile.c(1) : fatal error C1083: Cannot open include file:
'dsound.h': No such file or directory

1>Build log was saved at "file://c:\Documents and
Settings\Propri‚taire\Bureau\OpenAL_Soft\OepenAlC\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"

1>cmTryCompileExec - 1 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

/**************************************************************************************/
/**************************************************************************************/
/**************************************************************************************/
/**************************************************************************************/
/**************************************************************************************/
/**************************************************************************************/

On Fri, 20 Jun 2008 00:44:40 -0700, Chris Robinson <chris.kcat@...>
wrote:

> On Friday 20 June 2008 12:21:44 am wassim_belhadj wrote:
>> Among the list there is a variable named DSOUND in front of this
> variable
>> it is marked ON.
>
> That just means that it'll enabled DSound if it's available. You need to
> check
> the output of running cmake to see what checks fail and pass. If cmake's
> already been run, you can look at CMakeFiles/CMakeError.log to see which
> checks failed and why.
>
>> NB:The same application works perfectly when i am using Creative OpenAL
> SDK
>>  on Windows Platform.
>
> Because Creative's DLLs are pre-compiled to use DSound. To compile apps
> using
> DSound, there are some needed libraries and headers which CMake doesn't
> seem
> to be finding.
>
> BTW, are you using OpenAL Soft 1.4? You should update if you're not.
> _______________________________________________
> Openal mailing list
> Openal@...
> http://opensource.creative.com/mailman/listinfo/openal

_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

Re: Static libray of OpenAl Without DLL (Forvisualstudioproject)

by Chris Robinson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Friday 20 June 2008 02:47:10 am wassim_belhadj wrote:
> Below the roster CMakeError.log
> Apparently there is a lot of errors
> How to correct these mistakes please
> I would be very grateful...
> Thanks in advance
...
> 1>.\CheckIncludeFile.c(1) : fatal error C1083: Cannot open include file:
> 'dsound.h': No such file or directory
...
For some reason, you're missing dsound.h or it's not properly set up in the
compiler's include path. Unfortunately I'm not very knowledgable about VC so
I can't speculate what you need or what may be wrong.
_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal
LightInTheBox - Buy quality products at wholesale price