Re: [AD] Allegro 4.4.1.1 fails to fully build |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On March 9, 2011, Edgar wrote:
> Well, I tried to rebuild Allegro 4.4.1.1 from SVN 14595 and the
> undefined references to dlopen, dlclose, and dlsym are gone now. Not
> sure what changed.
>
> The undefined references to _colorconv_rgb_scale_5x35,
> _colorconv_rgb_map, and _colorconv_indexed_palette are still there though.
>
> All three of those symbols are declared once as 'extern...blah' in
> allegro/src/misc/ccolconv.c and are defined only in
> allegro/src/misc/colconv.c. I think the reason there are undefined
> references is because allegro/src/misc/colconv.c is not being built and
> put into the allegro library archive file.
>
> In the file allegro/cmake/FileList.cmake, src/misc/colconv.c is included
> in most of the cmake symbols ALLEGRO_SRC_*_FILES, except for
> ALLEGRO_SRC_DOS_FILES, ALLEGRO_SRC_LINUX_FILES, and
> ALLEGRO_SRC_UNIX_FILES. However, it is included in ALLEGRO_SRC_X_FILES.
>
> Is X built for all Unix/Linux builds?
No. Its completely optional since linux also supports SVGA through svgalib,
vga through freebeaf (should it actually work), and other modes through fbcon.
Also the "linux" and "unix/x" ports are completely separate for the most part.
Typically you want the unix/x port and not the linux port unless you want to
run your games in the /real/ console.
> I think (but I could easily be wrong, someone verify this please?) that
> ALLEGRO_SRC_UNIX_FILES should include src/misc/colconv.c and maybe
> ALLEGRO_SRC_DOS_FILES should include it as well?
Since the ASM was removed, it should probably be added as a generic file. The
reason it wasn't in the other files is it was also implemented in ASM for a
long time.
> I also tried to build Allegro 4.4.1.1 on Windows, but that failed as
> well, with many undefined references to 'mcount', but I suppose that can
> wait until I get it sorted out with Linux.
mcount is a profiling thing. don't build the profile version and that should go
away (or add -pg to the compile and link flags)
>
> Edgar
>
>
> ---------------------------------------------------------------------------
> --- Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
--
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx