list | 22 Oct 2007 10:53
Picon
Favicon

SDL + iconv

Hello,

I am a GNU+Linux user and I have tried to use FreeSBIE to port a program 
of mine to FreeBSD.
First of all: Thank you! Nearly all I needed was there, and I could get 
it going.

But I came across one thing, which I think is a misconfiguration on the
system. It's not a real problem, but an inconvenience.

SDL has an own implementation for iconv. It can be configured to be a 
wrapper around the systems iconv implementation, or it has a weak 
fallback system.

There is an iconv implementation in FreeSBIE, but SDL is configured not 
to use it.

/usr/local/include/SDL/SDL_config.h:
It defines HAVE_ICONV_H, but HAVE_ICONV is undefined.

There are those different symbols, because there might be systems, 
which have the iconv functions, but not in iconv.h. But including 
iconv.h without actually using it, doesn't make much sense, I think.

I don't use the real FreeBSD. How is it there?

-- 
AKFoerster
--

-- 
FreeSBIE mailing list (http://www.freesbie.org)
(Continue reading)

Josh Paetzel | 22 Oct 2007 17:04
Favicon

Re: SDL + iconv

On Monday 22 October 2007, list <at> akfoerster.de wrote:
> Hello,
>
> I am a GNU+Linux user and I have tried to use FreeSBIE to port a
> program of mine to FreeBSD.
> First of all: Thank you! Nearly all I needed was there, and I could
> get it going.
>
> But I came across one thing, which I think is a misconfiguration on
> the system. It's not a real problem, but an inconvenience.
>
> SDL has an own implementation for iconv. It can be configured to be
> a wrapper around the systems iconv implementation, or it has a weak
> fallback system.
>
> There is an iconv implementation in FreeSBIE, but SDL is configured
> not to use it.
>
> /usr/local/include/SDL/SDL_config.h:
> It defines HAVE_ICONV_H, but HAVE_ICONV is undefined.
>
> There are those different symbols, because there might be systems,
> which have the iconv functions, but not in iconv.h. But including
> iconv.h without actually using it, doesn't make much sense, I
> think.
>
> I don't use the real FreeBSD. How is it there?
>
> --
> AKFoerster
(Continue reading)

list | 23 Oct 2007 13:14
Picon
Favicon

Re: SDL + iconv

Am Monday, dem 22. Oct 2007 schrieb Josh Paetzel:

> In stock FreeBSD there is a system iconv.h in /usr/include/sys which 
> is used by the kernel.  Userland iconv.h is generally provided by the 
> GNU libiconv implimentation, installed from ports/packages in 
> to /usr/local/include

Well, while that still leaves some things unanswered, but I see now,
that there might be reasons to configure SDL not to use iconv 
(because there are two different implementations)

I'm going to write a workaround to optionally use iconv directly and 
not through SDL.

Another question: 
When I enter "sdl-config --libs" I see, that they put /usr/local/lib into
the rpath. Is that always needed? I'm also writing a library.
How are search paths for libraries normally configured in FreeBSD?
In Gnu+Linux it is /etc/ld.so.conf, but that file doesn't seem to exist.

I have seen, that FreeBSD also accepts the environment variable 
LD_LIBRARY_PATH. But that is just a temporary solution.

If you wonder, what I'm doing: I'm porting my projekt AKFAvatar to
FreeBSD with FreeSBIE.
http://akfavatar.nongnu.org/

The release 0.14.3 is not yet usable with FreeSBIE, but you can check
out the CVS, if you want:
cvs -d:pserver:anonymous <at> cvs.sv.gnu.org:/sources/akfavatar co akfavatar
(Continue reading)


Gmane