Jump to content
  • Advertisement
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
Advertisement
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

  • Advertisement
  • Advertisement
  • Popular Tags

  • Similar Content

    • By CpawsMusic
      **The game must be in the final stages of development and be close to release. Willing to do SFX or Music for free since Horror games heavily interest me.**
      Hey there! My name is Cpaws and I compose music, sound effects and overall sound design for video games and film. I've worked on numerous games and I'm looking to specifically pick up a Horror game.
      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: 
      Game Music I've Composed: https://soundcloud.com/cpawsmusic/sets/cpaws-video-game-film-music
      Website/Portfolio: https://CpawsMusic.com/
      E-mail: cpawsmusic@gmail.com
    • By Liquifire
      So I'm making this basic 2D engine using Haxe Kha, and i just need to integrate some physics. Just basic collision detection and gravity on basic shapes, nothing too detailed. But i want to try not to write it myself, so i just want suggestions on what open source phyisics engines i could use, and that wont be impossible to integrate. Thanks in advance.
    • By WillderBeezy
      This is a rescore of several Sin scenes from Final Fantasy X, put into an epic cinematic with accompanying, original soundtrack!
       
    • By mtimjones
      I've just finished a proof-of-concept and I'm looking for feedback.
      The world takes place in a terminal and the user hacks through systems for some end goal (the first scenario is to hack your way through a network and kill a drone passenger by killing the drone's autopilot).  The user discovers/purchases exploits (future) which can then be used on systems to gain control over them.  One of the areas I find difficult is balancing measures vs. counter-measures, though this simple prototype doesn't get there yet.
      Levels will be defined by networks that have collections of interconnected systems that can be hacked, allowing access to systems deeper in the network (the target).  
      It's developed in C on Linux (using ncurses).  The image shows illustrates a sample scenario for stealing bitcoin from a system.  Full source is available at https://github.com/mtimjones/spectre.
      Thanks,
      Tim.

    • By callmevivi
      Hi! 
      So, I've recently thought of a nice twist to a hack and slash-type zombie game that I'd love to make (mostly so that no one can steal the idea I'm not gonna elaborate to much on the story, but that should be no issue to help me, I think).
      But my problem here is that I have little to no knowledge of coding. I AM willing to learn, but I'd rather not have to develop 50 games before I've learned how to develop the game I actually wanna make. I'm just a hobbyist. I don't have that kind of endurance for this.
      The game I'm looking to develop is basically just your typical Player having to fight their way through masses of zombies in a city towards a certain safe place, going from location (check-point) to location.
      The only controls I really want for the player to have are:
      -to interact with objects (like talk to people aka trigger a dialogue or cutscene, pick up objects like weapons, have commentary appear when interacting with something (like the player clicking on a corpse and triggering the player thinking "Please, don't attack me to. ... Thank you very much, Sir.". All of this could be established with simply triggering a cutscene though.),
      -move with the arrow keys or ASWD,
      -have a health bar (not necessarily displayed, I just want the player to actually be able to die if they get gnawed by too many zombies)
      -and hack away at zombies coming towards the player. Just let out all your frustration by bashing in their faces, maybe have a satisfyingly-bloody animation when they die. 
      -Hopefully have companion characters fight zombie hordes with you. (Although I could get creative and find excuses not to have the side-characters fight with you)
      -No jumping required.
      -Inventory would be nice but not necessary either. 
      -Saving your current game progression manually would be great, but could be done with check-points, too.

      Primary focus of the game would be just having fun hacking away at zombies and getting to know the characters, who I hope to make worth getting to know. 
      I've been researching the internet for game engines for weeks now but I haven't really found one that seemed helpful to me, mostly because the reviews are full of vocabulary that as an absolute newbie I understand none of. So, whenever I read the cons for an engine in the review I understand very little of it.
      Although an engine that requires absolutely no coding and still be able to perform all of this would be an absolute dream come true, I believe that's quite impossible to find. The only non-coding engines I've come across so far are absolute garbage due to limits, buggy, underdeveloped, or abandoned by their creators. I'm willing to learn coding, I'm not afraid of it as long as there are tutorials and templates out there, too. 
      As I'm a hobbyist I'd rather not pay for an engine or to export my game. I'm most-likely not going to sell my game for money and if I do it won't be expensive at all no matter how much time I'd invest in it. 
      Obviously the game would need to either be open source or let me publish and distribute the game freely.
      The only game engine I've found so far that I believe I'd understand is Adventure Game Studio, but I haven't used it much yet, just watched a couple tutorials on youtube. But it's a point-and-click only engine as it seems so it won't be of much help for this type of game, unless I get really creative with my controls (I'll keep this engine in mind for other possible projects in the future, though).
      I've tried Godot as well, which seems to be really hard to learn for a beginner of my level, especially as the coding language is completely unique to the engine from what I've read (and noticed myself).
      I did come across Unity and UE (Unreal Engine) and from what I've read it seems that Unity is better, but, again, I understand very little of any reviews I've read. What's mostly scaring me away is that services that have Premium possibilities you pay for are usually really limited in a stupid way. But if this is not the case, hey, let me know!
      Pixel-art-ish animation would work well, too, so an alternative to RPG Maker would be fine (or at the very least a cheap alternative where I don't have to pay monthly for).
      The art for the game I can provide and create completely by myself if it's 2D. I'm an artist mostly and I have experience with making comics and digital drawings (fanart mostly hahaha) and I've gotten into animation which I'm fairly decent at (I'd be willing to learn 3D animation, though!).
      So, that's about all the info I think might be of importance, but if there's anything more you need to know to help me, I'll answer as quick as I can!! And if you tell me I gotta give up on some of the features I want the game to have, I'd be willing to listen to suggestions. 
      Thanks in advance to everyone who is willing to help me!
    • By macmanmatty
      I have  some texture files I got from open game art  alas  they have no texture atlas file  and I would like to make texture atlas for them. Does  any one know a way to  EASILY split a file up into 32*32 tiles  or make a texture atlas for a a already packed  image with out one.
    • By EddieK
      Hello, I'm new to OpenAL and audio programming in general so I might not explain everything clearly, but bear with me.
      Essentially I'm making a tower defense game where I have dozens of turrets shooting at approximately the same time and each shot makes a sound. So there are few problems/questions which I have:
      1) While one turret is shooting the volume of the shot is low, but when dozens of them are shooting the sounds seem to add up and make everything too loud. Is there a way I can fix this?
      2) When there are many turrets shooting, the music becomes quiet. And when they stop shooting I can hear the music gradually up in volume. Does OpenAL use some sort of compression? If so, how can I tweak it?
      I tried making it so that there would be a max number of shot sounds at any given time, but sometimes you can see a turret shooting and it doesn't make any noise, which looks weird. 
       
    • By aigo
      Hello, i am trying to write a game architecture.

      I have the script and story planned, scene by scenes, moments by moments.  The game age and replayabilty has also  been planned...

      However i lack the skill of building the AI and how it should operate against the players(wandering around for strategic positions), random number generations for attacks and combos,
      multiplayer features(between mobile devices or within servers), and simple things like realistic fx fire or thunder generations, screen noises and distortions... i am using Openspace 3d.
      Can i get some pointers on how to do each of these? 

      The game i want to make is like digimon world PS1, xenogears, ff7... those games has all the things i want to show as the aboves.
       
    • By Carradine
      Hello!  I am looking for someone to create some simple female sounds effects for my "cave woman" model in my game Vantage: Primitive Survival Game".

      I only need 8-10 simple, very quick "grunts" and other primitive noises.
      I already have the male versions as a guideline, so I only need someone to create these with a female voice (with their own artistic flair of course  )
      If you want more information, just check out my Steam page here:
      Vantage: Primitive Survival Game
    • By TheRealm
      Hi, I've just finished a 4-year course studying Music Technology.
      I'm looking for work in Composition, SFX, Audio Programming, 3D Animation, 2D Game Design and more, on request.
      Some of my projects include:
      A 3D animation made from scratch + music:
       
      A 2D rhythm-based platformer game, made from scratch + music (Skip to 1:50 for gameplay):
       
      A small collection of my music:
      Message me at therealmmail@gmail.com for inquiries.
  • Advertisement
  • Popular Now

  • Forum Statistics

    • Total Topics
      631350
    • Total Posts
      2999478
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!