Thread overview
What's the status on Linux/amd64 ?
Feb 28, 2013
Marco Leise
Feb 28, 2013
Jacob Carlborg
Feb 28, 2013
Marco Leise
Feb 28, 2013
Jacob Carlborg
Mar 01, 2013
Marco Leise
Mar 02, 2013
Jacob Carlborg
May 29, 2013
Calin Grosan
May 29, 2013
Jacob Carlborg
February 28, 2013
Has anyone used it successfully there? I'd like to try it since it has no dependencies.

-- 
Marco

February 28, 2013
On 2013-02-28 05:43, Marco Leise wrote:
> Has anyone used it successfully there? I'd like to try it
> since it has no dependencies.

I doesn't compile. There are two problems (at least) here:

* Using "int" when "size_t" should have been used and similar type issues

* Using the native API

I have no idea if the same native API can be used both for 32 and 64bit.

Any help would be appreciated if you want to port it to 64bit.

BTW, it's perfectly possible to use 32bit executables on 64bit.

-- 
/Jacob Carlborg
February 28, 2013
Am Thu, 28 Feb 2013 08:28:23 +0100
schrieb Jacob Carlborg <doob@me.com>:

> On 2013-02-28 05:43, Marco Leise wrote:
> > Has anyone used it successfully there? I'd like to try it since it has no dependencies.
> 
> I doesn't compile. There are two problems (at least) here:
> 
> * Using "int" when "size_t" should have been used and similar type issues

Figured that out!

> * Using the native API
> 
> I have no idea if the same native API can be used both for 32 and 64bit.

On Linux... what's the native API for a windowing toolkit? If you refer to Gtk, I think it will just work.

> Any help would be appreciated if you want to port it to 64bit.

Sorry, suddenly Gtk dependencies on Windows started to look not so bad. :p Really I would have ported it if it wasn't for GtkD.

> BTW, it's perfectly possible to use 32bit executables on 64bit.

That's right and I tried that, but I don't have a 32-bit version of libgnomeui installed. These .so files often come in larger 32-bit compatibility package bundles. Looks like it wasn't important enough to make it in.


-- 
Marco

February 28, 2013
On 2013-02-28 17:18, Marco Leise wrote:

> On Linux... what's the native API for a windowing toolkit? If
> you refer to Gtk, I think it will just work.

Yes, Gtk. There's probably other native libraries used as well. These are needed by DWT Linux:

http://dsource.org/projects/dwt/wiki/ImportLibraries

> That's right and I tried that, but I don't have a 32-bit
> version of libgnomeui installed. These .so files often come in
> larger 32-bit compatibility package bundles. Looks like it
> wasn't important enough to make it in.

I see, which distribution are you using.

-- 
/Jacob Carlborg
March 01, 2013
Am Thu, 28 Feb 2013 22:24:36 +0100
schrieb Jacob Carlborg <doob@me.com>:

> Yes, Gtk. There's probably other native libraries used as well. These are needed by DWT Linux:
> 
> http://dsource.org/projects/dwt/wiki/ImportLibraries

That list is missing gnomevfs. And some of the others I think are pulled in by Gtk already or not strictly needed. But I'm not sure.

> > That's right and I tried that, but I don't have a 32-bit version of libgnomeui installed. These .so files often come in larger 32-bit compatibility package bundles. Looks like it wasn't important enough to make it in.
> 
> I see, which distribution are you using.

You can see that I use Gentoo ?


-- 
Marco

March 02, 2013
On 2013-03-01 21:04, Marco Leise wrote:

> That list is missing gnomevfs. And some of the others I think
> are pulled in by Gtk already or not strictly needed. But I'm
> not sure.

Ok, good to know. I guess I'll have to verify that list someday.

> You can see that I use Gentoo ?

How?

-- 
/Jacob Carlborg
May 29, 2013
On Thursday, 28 February 2013 at 07:28:24 UTC, Jacob Carlborg wrote:
> On 2013-02-28 05:43, Marco Leise wrote:
>> Has anyone used it successfully there? I'd like to try it
>> since it has no dependencies.
>
> I doesn't compile. There are two problems (at least) here:
>
> * Using "int" when "size_t" should have been used and similar type issues
>
> * Using the native API
>
> I have no idea if the same native API can be used both for 32 and 64bit.
>
> Any help would be appreciated if you want to port it to 64bit.
>
> BTW, it's perfectly possible to use 32bit executables on 64bit.

I want to build dwt on linux x86_64 and I want you input before I cast my way to hell. Is it ok if, for example, I use double cast as in :

java\nonstandard\UtfBase.d(193): Error: cannot cast from ulong to UTF8index

UTF8index endIndex(in char[] s) {
    return cast(UTF8index) cast(int)s.length;
}
May 29, 2013
On 2013-05-29 14:42, Calin Grosan wrote:

> I want to build dwt on linux x86_64 and I want you input before I cast
> my way to hell. Is it ok if, for example, I use double cast as in :
>
> java\nonstandard\UtfBase.d(193): Error: cannot cast from ulong to UTF8index
>
> UTF8index endIndex(in char[] s) {
>      return cast(UTF8index) cast(int)s.length;
> }

No reason for the second cast. Just do this:

return UTF8index(cast(int) s.length);

-- 
/Jacob Carlborg