GarageGames / Torque2D

MIT Licensed Open Source version of Torque 2D game engine from GarageGames
MIT License
1.67k stars 1.56k forks source link

Cannot compile the code in Ubuntu 16.04 - AudioDescription::AudioDescription() #400

Closed aroshanineshat closed 6 years ago

aroshanineshat commented 6 years ago

Hi,

I cannot "make" the code in my Ubuntu 16.04. The following error is raised:

/home/arash/torque2d/Torque2D/engine/compilers/Make/../../source/2d/sceneobject/SceneObject_ScriptBinding.h:4503: undefined reference toAudioDescription::AudioDescription()' collect2: error: ld returned 1 exit status`

Full Output

This happens both in release and debug versions

capnlove commented 6 years ago

Seems to be linked with my integration of AudioDescriptions, thinking it's only a matter of solution/project/makefile that weren't updated on Linux.

greenfire27 commented 6 years ago

I've been considering putting together an automatic build for a while to avoid these problems. I've been looking at Travis CI. Seem straight forward enough but I have no experience with it. Maybe I'll take the plunge this weekend and try setting something up. There's too many platforms and we're stretched too thin to adequately test every pull request.

kynora commented 6 years ago

To fix this issue : In file engine\compilers\Make\Torque2D Add include source : ../../source/audio/audioDescriptions.cc \

greenfire27 commented 6 years ago

Using Kynora's fix above, this should be correct now in v3.4 of the engine.