123iamking

How to build alure (utility of OpenAL Soft) from source

Recommended Posts

I just recently start using OpenAL soft (actually not really use, I'm still struggle with setting this up).

Setup OpenAL soft - Passed

First, I grab the source of OpenAL soft, I just run CMake for this and build, here the CMake result.

Using DirectX SDK directory: C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)/
Could NOT find ALSA (missing:  ALSA_LIBRARY ALSA_INCLUDE_DIR) 
Could NOT find OSS (missing:  OSS_INCLUDE_DIR) 
Could NOT find AudioIO (missing:  AUDIOIO_INCLUDE_DIR) 
Could NOT find SoundIO (missing:  SOUNDIO_LIBRARY SOUNDIO_INCLUDE_DIR) 
Could NOT find QSA (missing:  QSA_LIBRARY QSA_INCLUDE_DIR) 
Could NOT find PortAudio (missing:  PORTAUDIO_LIBRARY PORTAUDIO_INCLUDE_DIR) 
Could NOT find PulseAudio (missing:  PULSEAUDIO_LIBRARY PULSEAUDIO_INCLUDE_DIR) 
Could NOT find JACK (missing:  JACK_LIBRARY JACK_INCLUDE_DIR) 
CMake Warning at utils/alsoft-config/CMakeLists.txt:13 (find_package):
  By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Qt5Widgets", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5Widgets" with
  any of the following names:

    Qt5WidgetsConfig.cmake
    qt5widgets-config.cmake

  Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
  "Qt5Widgets_DIR" to a directory containing one of the above files.  If
  "Qt5Widgets" provides a separate development package or SDK, be sure it has
  been installed.


Found unsuitable Qt version "" from NOTFOUND
Could NOT find SDL2 (missing:  SDL2_LIBRARY SDL2_INCLUDE_DIR) 

Building OpenAL with support for the following backends:
     WinMM, DirectSound, MMDevApi, WaveFile, Null

Building with support for CPU extensions:
    Default, SSE, SSE2, SSE3, SSE4.1

Installing sample configuration

Installing HRTF definitions

Installing AmbDec presets

Building utility programs

Building test programs

Building example programs
Configuring done
Generating done

So I see that I have no Qt & SDL2 for my OpenAL-soft, hope that ok (I don't even know what it for, as long as the I can build OpenAL-soft, I don't really care)

So setup OpenAL-soft seem easy.

Setup alure - failed

I got trouble when I setup alure,

I setup CMake like this:

OPENAL_INCLUDE_DIR = E:/Source/openal-soft/include/AL
OPENAL_LIBRARY = E:/Source/_build/openal-soft/Release

And I get the CMake result like this:

Found OpenAL: E:/Source/_build/openal-soft/Release  
Could NOT find OGG (missing:  OGG_LIBRARY OGG_INCLUDE_DIR) 
Could NOT find SndFile (missing:  SNDFILE_LIBRARY SNDFILE_INCLUDE_DIR) 
Could NOT find MPG123 (missing:  MPG123_LIBRARY MPG123_INCLUDE_DIR) 
Could NOT find PhysFS (missing:  PHYSFS_LIBRARY PHYSFS_INCLUDE_DIR) 
Could NOT find DUMB (missing:  DUMB_LIBRARY DUMB_INCLUDE_DIR) 
Configuring done
WARNING: Target "alure2" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure2" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure2" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure2" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure2_s" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure2_s" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure2_s" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure2_s" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure-play" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure-play" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure-play" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure-play" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure-enum" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure-enum" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure-enum" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure-enum" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure-hrtf" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure-hrtf" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure-hrtf" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure-hrtf" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure-reverb" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure-reverb" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure-reverb" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure-reverb" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure-stream" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure-stream" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure-stream" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "alure-stream" requests linking to directory "E:/Source/_build/openal-soft/Release".  Targets may link only to libraries.  CMake is dropping the item.
Generating done

So there are a lot of warnings. I lookup this warning and seem that this is just about the CMake programming inside the file CMakeLists.txt, for the meantime, I'll ignore it.

Then I open the alure solution (alure.sln) with Visual Studio and build. Unfortunately, I got compile error

Severity	Code	Description	Project	File	Line	Suppression State
Error	C3861	'strcasecmp': identifier not found	alure-hrtf	E:\Source\alure\examples\alure-hrtf.cpp	49	
Error	C3861	'strcasecmp': identifier not found	alure-hrtf	E:\Source\alure\examples\alure-hrtf.cpp	69	
Error	C3861	'strcasecmp': identifier not found	alure-reverb	E:\Source\alure\examples\alure-reverb.cpp	178	
Error	C3861	'strcasecmp': identifier not found	alure-reverb	E:\Source\alure\examples\alure-reverb.cpp	185	
Error	C4576	a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax	alure2	e:\source\alure\src\auxeffectslot.h	31	
Error	C4576	a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax	alure2_s	e:\source\alure\src\auxeffectslot.h	31	
Error	C4576	a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax	alure2	e:\source\alure\src\auxeffectslot.h	31	
Error	C4576	a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax	alure2_s	e:\source\alure\src\auxeffectslot.h	31	
Error	C4576	a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax	alure2	e:\source\alure\src\auxeffectslot.h	31	
Error	C4576	a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax	alure2_s	e:\source\alure\src\auxeffectslot.h	31	
Error	LNK1104	cannot open file 'Debug\alure2.lib'	alure-enum	E:\Source\_build\alure\LINK	1	
Error	LNK1104	cannot open file 'Debug\alure2.lib'	alure-stream	E:\Source\_build\alure\LINK	1	
Error	LNK1104	cannot open file 'Debug\alure2.lib'	alure-play	E:\Source\_build\alure\LINK	1	

I try to lookup the error:

//Error: a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax

//Cause by code:
void addSourceSend(Source source, ALuint send)
    { mSourceSends.emplace_back((SourceSend){source, send}); }

But I can't find any clue, and the syntax of this code is really weird.

So how can I build alure from source? Please help me :(

A minor confuse about OpenAL soft

This is a little off topic, but I can't help asking. there is the text inside the ReadMe.txt of the package: openal-soft-1.18.2-bin.zip  that I find confusing:

Quote

Note that it is still expected to install the OpenAL redistributable provided
by Creative Labs (at http://openal.org/), as that will provide the "router"
OpenAL32.dll that applications talk to, and may provide extra drivers for the
user's system. The DLLs provided here will simply add additional devices for
applications to select from. If you do not wish to use the redistributable,
then rename soft_oal.dll to OpenAL32.dll (note: even the 64-bit DLL should be
named OpenAL32.dll). Just be aware this will prevent other system-installed
OpenAL implementations from working.

I thought OpenAL soft is stand-alone package, but here is the note about OpenAL redistributable. So if I build OpenAL-soft from source, should I concern about this? And if I need, what I should do with this? My guess is: require the users to install OpenAL redistributable from Creative Labs.

 

Thanks for reading :)

Share this post


Link to post
Share on other sites
On 10/20/2017 at 9:01 PM, 123iamking said:

Setup alure - failed

Ok, Let's fix one thing at a time now.

On 10/20/2017 at 9:01 PM, 123iamking said:

I setup CMake like this:


OPENAL_INCLUDE_DIR = E:/Source/openal-soft/include/AL
OPENAL_LIBRARY = E:/Source/_build/openal-soft/Release

...

So there are a lot of warnings. I lookup this warning and seem that this is just about the CMake programming inside the file CMakeLists.txt, for the meantime, I'll ignore it.

About this, The 'OPENAL_LIBRARY' is wrong, thus there are warnings in the CMake result. The OPENAL_LIBRARY expects the OpenAL.lib file's full path, not the directory. So the right setup should be like this:

OPENAL_INCLUDE_DIR = E:/Source/openal-soft/include/AL
OPENAL_LIBRARY = E:/Source/_build/openal-soft/Release/OpenAL32.lib

About the build error:

On 10/20/2017 at 9:01 PM, 123iamking said:

'strcasecmp': identifier not found

According to this article, just add define strcasecmp to fix:

#define strcasecmp _stricmp

 

On 10/20/2017 at 9:01 PM, 123iamking said:

a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax alure2 e:\source\alure\src\auxeffectslot.h 31

Just pull the latest commit, then this error get fix. One note: should get the alure git from its homepage.

On 10/20/2017 at 9:01 PM, 123iamking said:

cannot open file 'Debug\alure2.lib'

Of course this is too obvious how to fix, after build the project alure2 successfully, this error will be gone.

Edited by 123iamking

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Announcements

  • Forum Statistics

    • Total Topics
      628349
    • Total Posts
      2982210
  • Similar Content

    • By Djinotan
      Hello!
      My name is Dmitry Motorin and I've been a hobbyist musician and music writer for about 5 years. For now I haven't been too active looking for projects that need sounds or music.
      I wrote music and sounds for many games. I write in different styles, such as - ambient, casual, blues, battle, epic, kid, jazz, electric, rock, country, orchestral and others. There is some of my works - Djinotan music
      And there is a video to whom i made a sound - 
      1.  Intro for A.S.H. indie game
      2.  Gameplay A.S.H game 
      My contacts:
      Mail - motorindmitry87@gmail.com
      Skype - Djino1208
      Facebook - https://www.facebook.com/profile.php?id=100004161284063 
    • By INFRA
      Hello there,
       
      I am Pierrick Querolle, I am a french professional sound designer and music composer and I’m looking for collaborations on projects.
       
      I essentially worked for short films, animations and some music productions. With the passion for the immersive and technical power of video games and a collaboration with a video game localization company, I would like to dedicate myself to the audio and musical conception of your future projects.
       
      ► [AAA] Video Game Demo Reel - French Assistant Dubbing Editor : https://www.youtube.com/watch?v=t7k1nSB0Xfw
      ► « And Then… » Demo - Unreal Engine 4 Project : https://youtu.be/4Oq88jB9wsY?t=4m25s
       
      About my favorite worlds, I really like Sci-Fi and Horror genres, all types of gameplays combined (Shooter, Platform…)
      Musically open-minded, I am able to compose as well ambient themes as Epic Hybrid Orchestra themes. The combination of orchestral and electronic textures is one of my assets.
       
      ► An example with « Neopolis », one of my compositions : https://www.youtube.com/watch?v=kTnMybTLchI
       
      My areas of expertise :
       
      • Interactive Music Composition
      • Studio & Field Recording
      • Sound Design
      • Audio Editing & Mixing
      • Audio Implementation
       
      The guarantees of our future collaboration :
       
      • A passionate professional composer and audio engineer
      • Operational and complete workflow for any kind of commercial project
      • Creation and treatment of audio files with professional tools, used by AAA studios
      • Proficiency with Unity 2017 & Unreal Engine 4 [+ Wwise & FMod]
      • Available, cooperative and self-motivated
       
      Because there is some work to do and sometimes the audio gears are an investment, I can’t work for free (only paid or royalty contract accepted).
       
      You can find more content on my website, on my portfolio : https://pierrickinfrasound.wixsite.com/infra-sound
      If you would like to contact me, please send me an email at pierrick.infrasound@gmail.com
       
      Thank you for your consideration !
       
    • By CpawsMusic
      Hey there! My name is Cpaws and I compose music, sound effects and overall sound design for video games and film. I'm looking to work on a horror game mainly for fun and as an addition to my portfolio. I've used Unity & Wwise before for audio implementation.
      If you're interested in working together, don't hesitate to contact me at cpawsmusic@gmail.com
      Here's a few demo reels of my past projects: 
      Here's some snippets of some quick game music I've composed: https://soundcloud.com/cpawsmusic/sets/cpaws-video-game-film-music
      Here's my portfolio/website: https://CpawsMusic.com/
      E-mail: cpawsmusic@gmail.com
    • By danys
      Bluezone releases 'Alien Spacecraft Sound Effects', a new sample library offering a wide range of inspirational spaceship sfx. Backed with complex and varied sounds, this sci-fi sample library brings you production-ready elemants as: alarms, alien synthetic textures, exterior and organic interior background sounds, reactor rumbles, explosions, futuristic interface and beep sounds, spacecraft passby, machine room ambiences and more. Every sound in this cutting edge collection will stimulate your creativity: All these samples were created from hardware synthesizers and field recordings, and have then been twisted to add an inspiring alternate-reality sonic character. WAV files are provided as 24 Bit / 96 kHz and sorted in 11 folders. In order to give you ready-to-use sounds for your productions, all samples are royalty-free for all your commercial projects.
       
       
      Editor : Bluezone Reference : BC0242 Delivery : Download link Download size : 893 MB Extracted size : 922 MB Format : WAV Resolution : 24 Bit / 96 kHz Channel : Stereo License : Royalty free Total files : 206 Total samples : 193 WAV Additional details : 11 folders More information : Alien Spacecraft Sound Effects

      View full story
  • Popular Now