Syllable Forum Index Syllable
Syllable Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Porting X11
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Syllable Forum Index -> Syllable Desktop
View previous topic :: View next topic  
Author Message
Bogomips



Joined: 23 Feb 2011
Posts: 307
Location: France

PostPosted: Thu Jan 05, 2012 4:54 am    Post subject: Reply with quote

Hello

To return to X11, I have an X11 library and libXext which work apparently on Syllable. LibX11 is an API. Xorg is a full graphical server. (Drivers, API and more ...)
There are many applications which simply uses libX11.

I tried to compile a small program and I had no problems during compilation. It's a good sign.

But it is not possible at present to display an X11 application in a window. This is the hardest part. Confused
Back to top
View user's profile Send private message
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2200
Location: Friesland

PostPosted: Thu Jan 05, 2012 8:30 am    Post subject: Reply with quote

Nice work, but to really get X programs working, you need to get the X server running. In theory, this can be done by compiling X on top of SDL. The TinyX server inside Xorg has a compilation option for that.
Back to top
View user's profile Send private message Visit poster's website
Bogomips



Joined: 23 Feb 2011
Posts: 307
Location: France

PostPosted: Thu Jan 05, 2012 9:36 am    Post subject: Reply with quote

Yes, indeed. When you try to run X11 application under Syllable, Xorg is missing and there is an error message about it.
I just wanted to see for X11 and Xext.
Back to top
View user's profile Send private message
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2200
Location: Friesland

PostPosted: Thu Jan 05, 2012 10:24 am    Post subject: Reply with quote

There's a very old implementation of XLib for BeOS that would allow to run without an X server and that Rui once tried to port to Syllable. But it's ancient and incomplete and it wouldn't be enough for most programs. The best way to get X working is to first compile Xorg on top of SDL, and then later we could make a real port to the Syllable graphics system.
Back to top
View user's profile Send private message Visit poster's website
Bogomips



Joined: 23 Feb 2011
Posts: 307
Location: France

PostPosted: Fri Jan 27, 2012 4:27 am    Post subject: Reply with quote

Hello

Sorry for the delay. When you talk about TinyX, I think you mean KDrive: http://en.wikipedia.org/wiki/KDrive

Apparently, we can use this "driver" in Syllable and there is an option "--enable-xsdl" for KDrive in the configuration of Xorg.

But I'll have restarted from the beginning, to get a newer version of libX11 needed to compile Xorg and I have to compile all the dependencies for Xorg, that's a lot. Very Happy
Back to top
View user's profile Send private message
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2200
Location: Friesland

PostPosted: Sun Jan 29, 2012 9:10 am    Post subject: Reply with quote

Yes, sorry, I was confused with the KDrive predecessor TinyX.
Back to top
View user's profile Send private message Visit poster's website
Bogomips



Joined: 23 Feb 2011
Posts: 307
Location: France

PostPosted: Sun Feb 05, 2012 12:59 pm    Post subject: Reply with quote

A few days ago, I found an interesting link for Kdrive.

https://dev.openwrt.org/browser/branches/packages_8.09/Xorg/xorg/xserver/xorg-kdrive/Makefile?rev=14365

I am trying to use it for Syllable. Dependencies are shown. With a little luck ... Smile
Back to top
View user's profile Send private message
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2200
Location: Friesland

PostPosted: Sun Feb 05, 2012 4:20 pm    Post subject: Reply with quote

Why don't you just use --enable-xsdl ? That seems the way to go.
Back to top
View user's profile Send private message Visit poster's website
Bogomips



Joined: 23 Feb 2011
Posts: 307
Location: France

PostPosted: Mon Feb 06, 2012 10:00 am    Post subject: Reply with quote

Yes, that's what I'm doing. In the latest versions, Kdrive is always included in Xorg but not XSDL, eg for version 1.9.3.
So I must restart by using an older server and I must use the libraries included with.
My X11 libraries were too recent and I had problems during compilation. It was a double declaration of GC in xlib.h (libX11) and gstruct.h (Xorg).
Back to top
View user's profile Send private message
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2200
Location: Friesland

PostPosted: Mon Feb 06, 2012 6:04 pm    Post subject: Reply with quote

That's bad news.
Back to top
View user's profile Send private message Visit poster's website
Bogomips



Joined: 23 Feb 2011
Posts: 307
Location: France

PostPosted: Tue Feb 07, 2012 8:06 am    Post subject: Reply with quote

Don't worry, apparently this error is also under Linux. Wink
Maybe this error is normal. For XSDL, if it works, we will be forced to patch ourselves the latest version.
Anyway, I started with Xorg 1.2.0, then I will do the same with Xorg 1.5.1 (the version which corresponds to the link I mentioned) and after with Xorg 1.7.1.
Back to top
View user's profile Send private message
Bogomips



Joined: 23 Feb 2011
Posts: 307
Location: France

PostPosted: Thu Feb 09, 2012 8:10 am    Post subject: Reply with quote

Ok, I finally got XSDL. I was forced to change the version of libXfont (1.2.7 -> 1.3.1) because there were problems with Freetype.This is normal.
There are many options in XSDL and I have a little problem with a missing temporary file "/tmp/.X0-lock"
Back to top
View user's profile Send private message
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2200
Location: Friesland

PostPosted: Thu Feb 09, 2012 8:48 am    Post subject: Reply with quote

That's a temporary lock file. It should be created automatically by some X11 component.
Back to top
View user's profile Send private message Visit poster's website
Bogomips



Joined: 23 Feb 2011
Posts: 307
Location: France

PostPosted: Thu Feb 09, 2012 9:41 am    Post subject: Reply with quote

Yes, indeed. But I solved this problem with "-nolock" option.
XSDL is no longer in the latest versions of Xorg because the author has not updated.
So, Xorg have decided to remove it. In fact, XSDL is an experimental server and I compiled the first version of Xorg with Kdrive XSDL, it is perhaps a little too old. Smile
Back to top
View user's profile Send private message
Vanders
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 849

PostPosted: Sun Feb 26, 2012 3:51 am    Post subject: Reply with quote

On the flip side, XSDL is probably one of the simplest, or at least easiest to understand, of all the X servers. You could probably use it as a (very rough) template for a [i]native[/i] Syllable server?
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Syllable Forum Index -> Syllable Desktop All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group