Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Allegro 4.9.8 dependencies for Visual Studio 2005/2008 available here.

This thread is locked; no one can reply to it. rss feed Print
Allegro 4.9.8 dependencies for Visual Studio 2005/2008 available here.
axilmar
Member #1,204
April 2001

I've uploaded a file here which contains all the dependencies (dlls, includes and libs) required to compile Allegro 4.9.8 for Microsoft Visual Studio 2005/2008.

The zip also contains a batch file which sets the environment variables appropriately.

A readme.txt included in the file explains everything.

Thomas Fjellstrom
Member #476
June 2000
avatar

In case anyone wants an alternative build try here. Also includes allegro in binary form for MSVC.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Evert
Member #794
November 2000
avatar

Any chance of a supplement to A5's installation instructions with that information? For the benefit of someone who wants to do this in the future?
In case I wasn't clear when I asked about this the first time: I think that's a necessary update for the documentation.

axilmar
Member #1,204
April 2001

Quote:

Any chance of a supplement to A5's installation instructions with that information? For the benefit of someone who wants to do this in the future?
In case I wasn't clear when I asked about this the first time: I think that's a necessary update for the documentation.

I think the most important points are:

1) rename libFLAC.lib to FLAC.lib.
2) rename libsndfile-1.lib to sndfile.lib.
3) also use vorbisfile.lib.
4) set up of the INCLUDE, LIB and PATH environment variables to point to the include files, libraries and dlls respectively. The paths should be added first before any other paths.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Quote:

1) rename libFLAC.lib to FLAC.lib.
2) rename libsndfile-1.lib to sndfile.lib.

Manually renaming libraries sounds wrong. Are you sure there aren't some build settings somewhere that need to be modified instead? What part of the build process fails because it's looking for FLAC.lib and sndfile.lib instead of the actual libs?

axilmar
Member #1,204
April 2001

Quote:

Manually renaming libraries sounds wrong.

It does not really matter if you rename the library. It's not the dll that it is renamed, only the 'lib' file, which is only used for informing the O/S linker about what symbol the dll contains.

Quote:

Are you sure there aren't some build settings somewhere that need to be modified instead?

I haven't found anything in the docs. Perhaps the allegro devs can enlighten us.

Quote:

What part of the build process fails because it's looking for FLAC.lib and sndfile.lib instead of the actual libs?

The VS solution file building process (i.e. when you call cmake).

Thomas Fjellstrom
Member #476
June 2000
avatar

Quote:

The VS solution file building process (i.e. when you call cmake).

Right, so we should just fix our FindFLAC.cmake and other files.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Evert
Member #794
November 2000
avatar

Quote:

I haven't found anything in the docs.

That's why I keep prodding you to submit a documentation patch...

I agree though, manually renaming libraries sounds wrong. Either there's a problem with Allegro's detection scripts, or somehow the installation on your system got messed up.

axilmar
Member #1,204
April 2001

Documentation patch or fixing of cmake files?

Peter Wang
Member #23
April 2000

Where did you get the lib*.lib files from? MSVC doesn't use the lib* naming convention, does it, so why should we be adjusting our build system for files that are named incorrectly? Besides, we just call FIND_LIBRARY which is a built-in macro/function, so if there's a bug anywhere it's there, but I highly doubt it.

Matthew Leverton
Supreme Loser
January 1999
avatar

The FLAC Windows binary package includes: libFLAC.dll, libFLAC.lib, etc.

Peter Wang
Member #23
April 2000

Maybe it was designed for Mingw? Anyway, a patch like this might work:

diff --git a/cmake/FindFLAC.cmake b/cmake/FindFLAC.cmake
index 4d2a883..800a34f 100644
--- a/cmake/FindFLAC.cmake
+++ b/cmake/FindFLAC.cmake
@@ -12,7 +12,7 @@ endif(FLAC_INCLUDE_DIR)
 
 find_path(FLAC_INCLUDE_DIR FLAC/stream_decoder.h)
 
-find_library(FLAC_LIBRARY NAMES FLAC)
+find_library(FLAC_LIBRARY NAMES FLAC libFLAC)
 
 # Handle the QUIETLY and REQUIRED arguments and set FLAC_FOUND to TRUE if
 # all listed variables are TRUE.

Trent Gamblin
Member #261
April 2000
avatar

I'm not sure that will work with MinGW.

Evert
Member #794
November 2000
avatar

Quote:

The FLAC Windows binary package includes: libFLAC.dll, libFLAC.lib, etc.

That's incredibly stupid.
But I guess we'd have to work around that...

Quote:

I'm not sure that will work with MinGW.

Can't we look for "FLAC" and "libFLAC", in that order?

Trent Gamblin
Member #261
April 2000
avatar

Quote:

Can't we look for "FLAC" and "libFLAC", in that order?

Yes we could do that.

Peter Wang
Member #23
April 2000

That was the intention of my patch (untested).

axilmar
Member #1,204
April 2001

Trent Gamblin
Member #261
April 2000
avatar

Quote:

That was the intention of my patch (untested).

I just committed something different but feel free to change it. It does it in a roundabout way but it does work.

Thomas Fjellstrom
Member #476
June 2000
avatar

Quote:

I just committed something different but feel free to change it. It does it in a roundabout way but it does work.

I think theres a reason its called NAMES as in its plural.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Go to: