plib-devel Mailing List for PLIB (Page 6)
Brought to you by:
sjbaker
You can subscribe to this list here.
2000 |
Jan
|
Feb
(80) |
Mar
(128) |
Apr
(111) |
May
(157) |
Jun
(70) |
Jul
(116) |
Aug
(465) |
Sep
(574) |
Oct
(325) |
Nov
(163) |
Dec
(182) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(167) |
Feb
(191) |
Mar
(319) |
Apr
(118) |
May
(252) |
Jun
(427) |
Jul
(187) |
Aug
(96) |
Sep
(219) |
Oct
(161) |
Nov
(109) |
Dec
(210) |
2002 |
Jan
(97) |
Feb
(80) |
Mar
(143) |
Apr
(234) |
May
(72) |
Jun
(246) |
Jul
(155) |
Aug
(280) |
Sep
(418) |
Oct
(81) |
Nov
(72) |
Dec
(88) |
2003 |
Jan
(59) |
Feb
(63) |
Mar
(33) |
Apr
(27) |
May
(87) |
Jun
(50) |
Jul
(97) |
Aug
(45) |
Sep
(35) |
Oct
(67) |
Nov
(78) |
Dec
(13) |
2004 |
Jan
(167) |
Feb
(144) |
Mar
(172) |
Apr
(93) |
May
(43) |
Jun
(7) |
Jul
(27) |
Aug
(36) |
Sep
(48) |
Oct
(54) |
Nov
(5) |
Dec
(44) |
2005 |
Jan
(53) |
Feb
(36) |
Mar
(13) |
Apr
(3) |
May
(19) |
Jun
|
Jul
(49) |
Aug
(39) |
Sep
(8) |
Oct
(8) |
Nov
(51) |
Dec
(23) |
2006 |
Jan
(26) |
Feb
(5) |
Mar
(26) |
Apr
(26) |
May
(52) |
Jun
(36) |
Jul
(8) |
Aug
(12) |
Sep
(6) |
Oct
(75) |
Nov
(34) |
Dec
(25) |
2007 |
Jan
(46) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
(7) |
Jul
(2) |
Aug
|
Sep
(40) |
Oct
(9) |
Nov
(3) |
Dec
|
2008 |
Jan
|
Feb
|
Mar
(26) |
Apr
|
May
|
Jun
(2) |
Jul
(4) |
Aug
(6) |
Sep
|
Oct
|
Nov
(5) |
Dec
(2) |
2009 |
Jan
(63) |
Feb
(4) |
Mar
(12) |
Apr
|
May
(5) |
Jun
(1) |
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
(14) |
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
(2) |
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(5) |
2012 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
(2) |
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Fay, J. F Dr C. U. A. 46 S. <joh...@eg...> - 2008-11-10 16:06:59
|
Tat, It is done. I just uploaded the changes as change set 2135. John F. Fay Technical Fellow Jacobs Technology TEAS Group 850-883-1294 -----Original Message----- From: Tatsuhiro Nishioka [mailto:tat...@gm...] Sent: Sunday, November 09, 2008 10:57 AM To: PLIB Developers Subject: Re: [Plib-devel] netScoket patch for Mac OS X Hi, I need to post another patch on this. I've recently made a fresh build of PLIB, having a compilation error. Here is another patch to fix this problem. netSocket.h needs to include <netinet/in.h>, not netSocket.cpp. Best, Tat |
From: Tatsuhiro N. <tat...@gm...> - 2008-11-09 16:57:36
|
Hi, I need to post another patch on this. I've recently made a fresh build of PLIB, having a compilation error. Here is another patch to fix this problem. netSocket.h needs to include <netinet/in.h>, not netSocket.cpp. Best, Tat On Jul 9, 2008, at 4:51 AM, Fay John F Dr CTR USAF 46 SK wrote: > Let me see what I can do in the next day or two. > > > -----Original Message----- > Hi there, > > Ever since Mac OS X 10.5.2, netSocket.h/cxx have got compilation errors > due to changes in sockaddr_in. > Thus I made a very simple patch to avoid this problem (I guess Apple cut > out the backward compatibility of sockaddr_in, but not so sure on this). > > Though I think netSocket should encapsulate the sockaddr_in in smarter > way like having sockaddr_in inside netSocket class, I didn't try that > because of my lack of time. > > Anyway, please apply this patch to svn. > I believe this patch won't affect any other platforms but feedbacks from > other platforms are very welcome. > PLIB with this patch also works on Mac OS 10.5.1 or earlier including > 10.4.x. > > Best Regards, > > Tat |
From: Paulo L. <pm...@je...> - 2008-08-26 08:37:39
|
There is a library called pspGL, it is an emulation layer of OpenGL over the native pspGU library. pspGU is a GL like library that uses the native hardware for rendering but has no memory management, so all the texture functions of OpenGL are not there and this pspGL tries to emulate the OpenGL api and maps to the pspGU api. I've compiled and linked against pspGL and the compile step works i now need to create some simple demo to see if it real works, that's why i said that in theory it should work. On Tue, Aug 26, 2008 at 10:34 AM, Paolo Leoncini <p.l...@ci...> wrote: >> -----Messaggio originale----- >> Da: pli...@li... >> [mailto:pli...@li...] Per conto >> di Paulo Lopes >> Inviato: martedì 26 agosto 2008 9.13 >> A: PLIB Developers >> Oggetto: Re: [Plib-devel] R: PSP port >> >> Porting ssg is possible in theory, i've managed to compile it >> and link it but haven't really tried it. Later this week I'll >> try to make a patch with my changes and post it here. > > Just let me better understand. Is there OpenGL support in the unofficial SDK > for the PSP? What do you mean by "in theory"? As far as the compiler links > successfully, all the OpenGL calls are supported by the SDK, so, in > principle, it should work - isn't it? > > Paolo > > >> On Tue, Aug 26, 2008 at 8:14 AM, Paolo Leoncini >> <p.l...@ci...> wrote: >> >> -----Messaggio originale----- >> >> Da: pli...@li... >> >> [mailto:pli...@li...] Per >> conto di Paulo >> >> Lopes >> >> Inviato: giovedì 14 agosto 2008 15.23 >> >> A: pli...@li... >> >> Oggetto: [Plib-devel] PSP port >> >> >> >> Hi, >> >> >> >> I've tried to port the PLIB to the Sony PSP platform using the >> >> "unofficial" SDK and already managed to port a couple of libs: >> >> >> >> ul, sg, js, psl and pw. I'm in the way of finishing the net. >> > >> > Are you also considering porting the ssg? Is it feasible? >> > >> >> Cheers, >> >> Paulo >> >> >> >> -- >> >> Paulo Lopes >> >> www.jetcube.eu >> > >> > Greetings, >> > >> > Paolo Leoncini >> > >> > >> > >> ---------------------------------------------------------------------- >> > --- This SF.Net email is sponsored by the Moblin Your Move >> Developer's >> > challenge Build the coolest Linux based applications with >> Moblin SDK & >> > win great prizes Grand prize is a trip for two to an Open >> Source event >> > anywhere in the world >> > http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> > _______________________________________________ >> > plib-devel mailing list >> > pli...@li... >> > https://lists.sourceforge.net/lists/listinfo/plib-devel >> > >> >> >> >> -- >> Paulo Lopes >> www.jetcube.eu >> >> -------------------------------------------------------------- >> ----------- >> This SF.Net email is sponsored by the Moblin Your Move >> Developer's challenge Build the coolest Linux based >> applications with Moblin SDK & win great prizes Grand prize >> is a trip for two to an Open Source event anywhere in the >> world http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> plib-devel mailing list >> pli...@li... >> https://lists.sourceforge.net/lists/listinfo/plib-devel >> > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > plib-devel mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-devel > -- Paulo Lopes www.jetcube.eu |
From: Paolo L. <p.l...@ci...> - 2008-08-26 08:34:18
|
> -----Messaggio originale----- > Da: pli...@li... > [mailto:pli...@li...] Per conto > di Paulo Lopes > Inviato: martedì 26 agosto 2008 9.13 > A: PLIB Developers > Oggetto: Re: [Plib-devel] R: PSP port > > Porting ssg is possible in theory, i've managed to compile it > and link it but haven't really tried it. Later this week I'll > try to make a patch with my changes and post it here. Just let me better understand. Is there OpenGL support in the unofficial SDK for the PSP? What do you mean by "in theory"? As far as the compiler links successfully, all the OpenGL calls are supported by the SDK, so, in principle, it should work - isn't it? Paolo > On Tue, Aug 26, 2008 at 8:14 AM, Paolo Leoncini > <p.l...@ci...> wrote: > >> -----Messaggio originale----- > >> Da: pli...@li... > >> [mailto:pli...@li...] Per > conto di Paulo > >> Lopes > >> Inviato: giovedì 14 agosto 2008 15.23 > >> A: pli...@li... > >> Oggetto: [Plib-devel] PSP port > >> > >> Hi, > >> > >> I've tried to port the PLIB to the Sony PSP platform using the > >> "unofficial" SDK and already managed to port a couple of libs: > >> > >> ul, sg, js, psl and pw. I'm in the way of finishing the net. > > > > Are you also considering porting the ssg? Is it feasible? > > > >> Cheers, > >> Paulo > >> > >> -- > >> Paulo Lopes > >> www.jetcube.eu > > > > Greetings, > > > > Paolo Leoncini > > > > > > > ---------------------------------------------------------------------- > > --- This SF.Net email is sponsored by the Moblin Your Move > Developer's > > challenge Build the coolest Linux based applications with > Moblin SDK & > > win great prizes Grand prize is a trip for two to an Open > Source event > > anywhere in the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > plib-devel mailing list > > pli...@li... > > https://lists.sourceforge.net/lists/listinfo/plib-devel > > > > > > -- > Paulo Lopes > www.jetcube.eu > > -------------------------------------------------------------- > ----------- > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge Build the coolest Linux based > applications with Moblin SDK & win great prizes Grand prize > is a trip for two to an Open Source event anywhere in the > world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > plib-devel mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-devel > |
From: Paulo L. <pm...@je...> - 2008-08-26 07:12:48
|
Porting ssg is possible in theory, i've managed to compile it and link it but haven't really tried it. Later this week I'll try to make a patch with my changes and post it here. On Tue, Aug 26, 2008 at 8:14 AM, Paolo Leoncini <p.l...@ci...> wrote: >> -----Messaggio originale----- >> Da: pli...@li... >> [mailto:pli...@li...] Per conto >> di Paulo Lopes >> Inviato: giovedì 14 agosto 2008 15.23 >> A: pli...@li... >> Oggetto: [Plib-devel] PSP port >> >> Hi, >> >> I've tried to port the PLIB to the Sony PSP platform using >> the "unofficial" SDK and already managed to port a couple of libs: >> >> ul, sg, js, psl and pw. I'm in the way of finishing the net. > > Are you also considering porting the ssg? Is it feasible? > >> Cheers, >> Paulo >> >> -- >> Paulo Lopes >> www.jetcube.eu > > Greetings, > > Paolo Leoncini > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > plib-devel mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-devel > -- Paulo Lopes www.jetcube.eu |
From: Paolo L. <p.l...@ci...> - 2008-08-26 06:13:41
|
> -----Messaggio originale----- > Da: pli...@li... > [mailto:pli...@li...] Per conto > di Paulo Lopes > Inviato: giovedì 14 agosto 2008 15.23 > A: pli...@li... > Oggetto: [Plib-devel] PSP port > > Hi, > > I've tried to port the PLIB to the Sony PSP platform using > the "unofficial" SDK and already managed to port a couple of libs: > > ul, sg, js, psl and pw. I'm in the way of finishing the net. Are you also considering porting the ssg? Is it feasible? > Cheers, > Paulo > > -- > Paulo Lopes > www.jetcube.eu Greetings, Paolo Leoncini |
From: Fay J. F Dr C. U. 46 S. <joh...@eg...> - 2008-08-14 14:10:41
|
Paulo, Hello and welcome to PLIB. There are a couple of things that are relevant to your effort: (1) PLIB is pretty much finished with its development. I don't think there have been any significant changes in a few years. (2) That said, the "P" stands for "Portable," and any new platforms would be welcomed. (3) On the other hand, I am told that Steve Baker (the owner and prime developer of PLIN) is working on a "Son of PLIB" that will break backwards compatibility and generally change everything. Right now it's a private project of his in the sense that he hasn't released any source, but I don't know what his future plans are. So between all of that, you will have to make your decision about what to do. I am quite interested in merging your changes into the trunk, but I will need Steve's permission to do so. The part of PLIB that I am most familiar with is PUI. I notice it isn't on your list of finished ports. If you have any questions about PUI--and I'm somewhat familiar with several other libraries in PLIB as well, although SSG is beyond me--please feel free to ask them and I will see what I can do to answer them. John F. Fay Technical Fellow Jacobs Technology TEAS Group 850-883-1294 -----Original Message----- From: pli...@li... [mailto:pli...@li...] On Behalf Of Paulo Lopes Sent: Thursday, August 14, 2008 8:23 AM To: pli...@li... Subject: [Plib-devel] PSP port Hi, I've tried to port the PLIB to the Sony PSP platform using the "unofficial" SDK and already managed to port a couple of libs: ul, sg, js, psl and pw. I'm in the way of finishing the net. I'd like to know if there are any interest into merging my changes into the trunk and get some help to understand the code, since there isn't much documentation available. Cheers, Paulo -- Paulo Lopes www.jetcube.eu ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ plib-devel mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-devel |
From: Paulo L. <pm...@je...> - 2008-08-14 13:23:05
|
Hi, I've tried to port the PLIB to the Sony PSP platform using the "unofficial" SDK and already managed to port a couple of libs: ul, sg, js, psl and pw. I'm in the way of finishing the net. I'd like to know if there are any interest into merging my changes into the trunk and get some help to understand the code, since there isn't much documentation available. Cheers, Paulo -- Paulo Lopes www.jetcube.eu |
From: Fay J. F Dr C. U. 46 S. <joh...@eg...> - 2008-07-18 14:33:48
|
OK, better late than never. I've put the changes into SVN, but since I don't have a BSD box I will need somebody to test the new version. Better still, several people with different types of joysticks should test it out. John F. Fay Technical Fellow Jacobs Technology TEAS Group 850-883-1294 -----Original Message----- From: pli...@li... [mailto:pli...@li...] On Behalf Of Magnus Ringman Sent: Monday, June 02, 2008 9:46 AM To: pli...@li... Subject: [Plib-devel] [patch] getting high-resolution uhid joysticks to workon (Free)BSD Good morning/day/evening/easter dear plib developers, I had to make the below change to plib to get a joystick to work fully on FreeBSD. Well - removal of the comment is maybe cosmetic, but assuming that it pertains to getting the range of the stick from the HID, the rest of the change makes it no longer punted. If it applies to hat switches, it should be reinstated to hopefully give someone else a good itch. Joysticks: Saitek Pro Flight Yoke System Saitek Pro Rudder Pedals <snip> Magnus ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ plib-devel mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-devel |
From: Tatsuhiro N. <tat...@gm...> - 2008-07-13 13:13:42
|
Hi John, Thanks! I updated and built plib. And It seems working on my Mac. Best, Tat On Sun, Jul 13, 2008 at 11:24 AM, John F. Fay <joh...@cy...> wrote: > Sorry about the delay, but I have just put the patch in. Please download the new SVN version and make sure I've done it correctly. > > - John > > |
From: John F. F. <joh...@cy...> - 2008-07-13 02:25:39
|
Sorry about the delay, but I have just put the patch in. Please download the new SVN version and make sure I've done it correctly. - John -----Original Message----- From: Tatsuhiro Nishioka Sent: Sunday, June 29, 2008 10:58 AM To: pli...@li... Subject: [Plib-devel] netScoket patch for Mac OS X Hi there, Ever since Mac OS X 10.5.2, netSocket.h/cxx have got compilation errors due to changes in sockaddr_in. Thus I made a very simple patch to avoid this problem (I guess Apple cut out the backward compatibility of sockaddr_in, but not so sure on this). Though I think netSocket should encapsulate the sockaddr_in in smarter way like having sockaddr_in inside netSocket class, I didn't try that because of my lack of time. Anyway, please apply this patch to svn. I believe this patch won't affect any other platforms but feedbacks from other platforms are very welcome. PLIB with this patch also works on Mac OS 10.5.1 or earlier including 10.4.x. Best Regards, Tat << File: PLIB-MacOSX-SockAddrIn.diff >> << File: ATT00001.txt >> << File: ATT00002.txt >> |
From: Fay J. F Dr C. U. 46 S. <joh...@eg...> - 2008-07-08 19:51:58
|
Let me see what I can do in the next day or two. John F. Fay Technical Fellow Jacobs Technology TEAS Group 850-883-1294 -----Original Message----- From: pli...@li... [mailto:pli...@li...] On Behalf Of Tatsuhiro Nishioka Sent: Sunday, June 29, 2008 10:58 AM To: pli...@li... Subject: [Plib-devel] netScoket patch for Mac OS X Hi there, Ever since Mac OS X 10.5.2, netSocket.h/cxx have got compilation errors due to changes in sockaddr_in. Thus I made a very simple patch to avoid this problem (I guess Apple cut out the backward compatibility of sockaddr_in, but not so sure on this). Though I think netSocket should encapsulate the sockaddr_in in smarter way like having sockaddr_in inside netSocket class, I didn't try that because of my lack of time. Anyway, please apply this patch to svn. I believe this patch won't affect any other platforms but feedbacks from other platforms are very welcome. PLIB with this patch also works on Mac OS 10.5.1 or earlier including 10.4.x. Best Regards, Tat |
From: Tatsuhiro N. <tat...@gm...> - 2008-06-29 15:58:07
|
Hi there, Ever since Mac OS X 10.5.2, netSocket.h/cxx have got compilation errors due to changes in sockaddr_in. Thus I made a very simple patch to avoid this problem (I guess Apple cut out the backward compatibility of sockaddr_in, but not so sure on this). Though I think netSocket should encapsulate the sockaddr_in in smarter way like having sockaddr_in inside netSocket class, I didn't try that because of my lack of time. Anyway, please apply this patch to svn. I believe this patch won't affect any other platforms but feedbacks from other platforms are very welcome. PLIB with this patch also works on Mac OS 10.5.1 or earlier including 10.4.x. Best Regards, Tat |
From: Magnus R. <bm...@ri...> - 2008-06-02 14:45:29
|
Good morning/day/evening/easter dear plib developers, I had to make the below change to plib to get a joystick to work fully on FreeBSD. Well - removal of the comment is maybe cosmetic, but assuming that it pertains to getting the range of the stick from the HID, the rest of the change makes it no longer punted. If it applies to hat switches, it should be reinstated to hopefully give someone else a good itch. Joysticks: Saitek Pro Flight Yoke System Saitek Pro Rudder Pedals ---8<------8<--- diff -u -r plib-1.8.5/src/js/jsBSD.cxx plib-1.8.5-mine/src/js/jsBSD.cxx --- plib-1.8.5/src/js/jsBSD.cxx 2008-03-11 03:06:21.000000000 +0100 +++ plib-1.8.5-mine/src/js/jsBSD.cxx 2008-06-02 16:36:39.000000000 +0200 @@ -98,6 +98,8 @@ // on every read of a USB device int cache_buttons ; float cache_axes [ _JS_MAX_AXES ] ; + float axes_minimum [ _JS_MAX_AXES ] ; + float axes_maximum [ _JS_MAX_AXES ] ; }; // Idents lower than USB_IDENT_OFFSET are for analog joysticks. @@ -240,6 +242,8 @@ if (*num_axes < _JS_MAX_AXES) { os->axes_usage[*num_axes] = usage; + os->axes_minimum[*num_axes] = h.logical_minimum; + os->axes_maximum[*num_axes] = h.logical_maximum; (*num_axes)++; } break; @@ -365,9 +369,6 @@ for ( int i = 0 ; i < _JS_MAX_AXES ; i++ ) { - // We really should get this from the HID, but that data seems - // to be quite unreliable for analog-to-USB converters. Punt for - // now. if ( os->axes_usage [ i ] == HUG_HAT_SWITCH ) { max [ i ] = 1.0f ; @@ -376,9 +377,9 @@ } else { - max [ i ] = 255.0f ; - center [ i ] = 127.0f ; - min [ i ] = 0.0f ; + max [ i ] = os->axes_maximum [ i ]; + min [ i ] = os->axes_minimum [ i ]; + center [ i ] = (max [ i ] + min [ i ]) / 2; } dead_band [ i ] = 0.0f ; saturate [ i ] = 1.0f ; ---8<------8<--- Magnus |
From: Vikas N K. <vik...@us...> - 2008-03-30 16:32:59
|
On Sun, Mar 30, 2008 at 5:17 AM, Miguel Lopes Santos Ramos < mi...@an...> wrote: > Actually, plib-1.8.5 has the same problem, please confirm net/netSocket.h. > I don't know what you mean by "works fine"; I can get FlightGear to work > as long as I don't activate the UDP interfaces (which are used for > connecting > > I apologize. I have not tested the UDP part with terrasync or Atlas to have made a statement of "works fine" :) |
From: John F. F. <joh...@cy...> - 2008-03-30 15:01:11
|
Miguel, Hello and welcome to the PLIB community. You have in fact already gotten in contact with the PLIB developers. The primary developer of PLIB is Steve Baker. He has been quite busy with other projects lately and hasn't had a lot of time to devote to PLIB in the last several years. I've been associated with parts of PLIB (particularly PUI) for quite some time, and while I am familiar with the "net" library I don't consider myself to be the authority there. As such, I cannot speak to the design decisions that were made there. (If I may speak freely, I will say that the "This is a piece of garbage, who wrote this stuff" tone doesn't seem calculated to raise a positive response.) There has been a bit of an exchange here recently about a "PLIB 2" which would break backwards compatibility with PLIB and would be a whole new development. I daresay the developers of "PLIB 2" would be willing to hear suggestions about how to make the new "net" portable. - John F. Fay -----Original Message----- From: Miguel Lopes Santos Ramos Sent: Sunday, March 30, 2008 5:17 AM To: pli...@li...; vik...@us... Subject: Re: [Plib-devel] Portability issue in plib 1.8.4 class netAddress Hi, Sorry for the time taken to answer, I only have time on weekends. Actually, plib-1.8.5 has the same problem, please confirm net/netSocket.h. I don't know what you mean by "works fine"; I can get FlightGear to work as long as I don't activate the UDP interfaces (which are used for connecting to Atlas and terrasync). If those are activated, then it won't run. Anyway, that would be a matter for the FlightGear mailing list. I'm posting here because I have several different sugestions to make the netSocket class portable. How can I contact plib's developers? Greetings, Miguel ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketp lace _______________________________________________ plib-devel mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-devel |
From: Miguel L. S. R. <mi...@an...> - 2008-03-30 10:31:11
|
> From wa...@gm... Thu Mar 27 19:32:34 2008 > From: "Vikas N Kumar" <vik...@us...> > Subject: Re: [Plib-devel] Portability issue in plib 1.8.4 class netAddress > > On Thu, Mar 27, 2008 at 2:43 PM, Miguel Lopes Santos Ramos < > mi...@an...> wrote: > > > > > In this case, I came across this problem when trying to get FlightGear to > > work on FreeBSD; > > whenever I tried to have it create a socket, it failed. I found out that > > it was failing with > > the following error: Address family not supported by protocol family. > > That's the message for EAFNOSUPPORT. > > > > So, I checked the file src/net/netSocket.h in the underlaying plib-1.8.4, > > and found out > > > > > Hi Miguel, > > If you are using CVS version of FlightGear then please use plib-1.8.5 for > all purposes. It works fine with that. > > Regards > Vikas. Hi, Sorry for the time taken to answer, I only have time on weekends. Actually, plib-1.8.5 has the same problem, please confirm net/netSocket.h. I don't know what you mean by "works fine"; I can get FlightGear to work as long as I don't activate the UDP interfaces (which are used for connecting to Atlas and terrasync). If those are activated, then it won't run. Anyway, that would be a matter for the FlightGear mailing list. I'm posting here because I have several different sugestions to make the netSocket class portable. How can I contact plib's developers? Greetings, Miguel |
From: Vikas N K. <vik...@us...> - 2008-03-27 19:32:25
|
On Thu, Mar 27, 2008 at 2:43 PM, Miguel Lopes Santos Ramos < mi...@an...> wrote: > > In this case, I came across this problem when trying to get FlightGear to > work on FreeBSD; > whenever I tried to have it create a socket, it failed. I found out that > it was failing with > the following error: Address family not supported by protocol family. > That's the message for EAFNOSUPPORT. > > So, I checked the file src/net/netSocket.h in the underlaying plib-1.8.4, > and found out > > Hi Miguel, If you are using CVS version of FlightGear then please use plib-1.8.5 for all purposes. It works fine with that. Regards Vikas. |
From: Miguel L. S. R. <mi...@an...> - 2008-03-27 18:43:37
|
Hi, Sorry for cross posting, but the plib-users mailing list seems to be mute. I've come across plib several times as it is used as a base for several other projects. In this case, I came across this problem when trying to get FlightGear to work on FreeBSD; whenever I tried to have it create a socket, it failed. I found out that it was failing with the following error: Address family not supported by protocol family. That's the message for EAFNOSUPPORT. So, I checked the file src/net/netSocket.h in the underlaying plib-1.8.4, and found out that a wrapper class is being used for sockaddr_in, the netAddress class (line 50 of the said file). I was a bit chocked by seeing that the layout of a structure which is supposed to be internal to the OS was being reproduced in the layout of netAddress. The code is as follows: class netAddress { /* DANGER!!! This MUST match 'struct sockaddr_in' exactly! */ short sin_family ; unsigned short sin_port ; unsigned int sin_addr ; char sin_zero [ 8 ] ; Well, I cannot guess what reason took plib's designers to choose this strategy, it would seem safer to me if a member variable of the type sockaddr_in existed inside the netAddress class. That way, the code would be protected from any differences in the layout of sockaddr_in of different OSes. All I can say is that in FreeBSD, the layout of sockaddr_in does not match that structure. On FreeBSD, we have: /* Socket address, internet style. */ struct sockaddr_in { uint8_t sin_len; sa_family_t sin_family; in_port_t sin_port; struct in_addr sin_addr; char sin_zero[8]; }; Of course, FreeBSD headers themselves are isolated from changes in the types sa_family_t, etc... In practice, the only thing that differs is that the two byte sin_family member is split into two members of one byte each, sin_len and sin_family. Because the i386 is a LSB first machine, filling the sin_family member of the netAddress class will end up filling the sin_len member of sockaddr_in instead of the sin_family member. Therefore, any operations involving plib-1.8.4, AF_INET sockets and FreeBSD 7 fail with EAFNOSUPPORT. QED. For my part, I would be happier if this would change, so I could play FlightGear right out-of-the-ports-collection. Anyway, I'm curious about the rationale behind this design issue. Could it be to avoid including OS specific headers? Greetings, Miguel Ramos Lisboa, Portugal |
From: Jan R. <slo...@gm...> - 2008-03-17 19:32:51
|
Am Mon, 17 Mar 2008 14:51:35 +0100 schrieb "Anton Gomez" <gal...@gm...>: > The problem in this installation was libxi-dev and libxmu-dev packages where > not installed. But also, by replacing line 279 in config.in > LIBS="$LIBS $X_PRE_LIBS -lXi -lXmu -lXext -lX11 $X_EXTRA_LIBS -lm" > > to something like this: > LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lm" > > The compilation went smooth as silk. Maybe those libs are not really needed? Hi, on my Ubuntu Gutsy box, configure && make works without any trouble: checking for pthread_create in -lpthread... yes checking for glNewList in -lGL... yes But I can recall that I experienced similar problems when I compiled CRRCsim on Gutsy for the first time. I then decided to remove these libs from the (very old) Makefiles and never really missed them. Kind regards, Jan R. PS: By the way, configure && make and the examples also work fine on Windows XP (using MinGW & MSYS). PPS: The SourceForge project page (http://sourceforge.net/projects/plib/) still shows 1.8.5-rc1 as the most recent release. -- Jan Reucker email: jan dot reucker at web dot de web: http://www.reucker-online.de |
From: Fay J. F Dr C. U. 46 S. <joh...@eg...> - 2008-03-17 15:35:00
|
Anton, Does the PLIB that you build without the X libraries link properly with a sample program? PLIB itself is just a library and doesn't really need a final link step where everything must be defined; the real test of when libraries are needed comes in building an application. John F. Fay Technical Fellow Jacobs Technology TEAS Group 850-883-1294 -----Original Message----- From: pli...@li... [mailto:pli...@li...] On Behalf Of Anton Gomez Sent: Monday, March 17, 2008 8:52 AM To: pli...@li... Subject: [Plib-devel] plib 1.8.5 won't pass the autoconf phase in UbuntuGutsy Hi there, I'm having problems to build plib 1.8.5 from sources due to a problem in autoconf. This is an Ubuntu Gutsy Linux distro with proper Mesa GL and pthreads installation. This is how the error looks from the outside: <snip> The problem in this installation was libxi-dev and libxmu-dev packages where not installed. But also, by replacing line 279 in config.in LIBS="$LIBS $X_PRE_LIBS -lXi -lXmu -lXext -lX11 $X_EXTRA_LIBS -lm" to something like this: LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lm" The compilation went smooth as silk. Maybe those libs are not really needed? Kind regards, Anton |
From: Anton G. <gal...@gm...> - 2008-03-17 13:51:34
|
Hi there, I'm having problems to build plib 1.8.5 from sources due to a problem in autoconf. This is an Ubuntu Gutsy Linux distro with proper Mesa GL and pthreads installation. This is how the error looks from the outside: =============================== ... checking for pthread_create in -lpthread... no checking for glNewList in -lGL... no checking for glNewList in -lMesaGL... no configure: error: could not find working GL library ... =============================== And this is how it looks from config.log: =============================== configure:6287: checking for pthread_create in -lpthread configure:6322: gcc -o conftest -g -O2 conftest.c -lpthread -lSM -lICE -lXi -lXmu -lXext -lX11 -lm >&5 /usr/bin/ld: cannot find -lXi collect2: ld returned 1 exit status configure:6328: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "plib" | #define VERSION "1.8.5" | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char pthread_create (); | int | main () | { | return pthread_create (); | ; | return 0; | } configure:6346: result: no configure:6358: checking for glNewList in -lGL configure:6393: gcc -o conftest -g -O2 conftest.c -lGL -lSM -lICE -lXi -lXmu -lXext -lX11 -lm >&5 /usr/bin/ld: cannot find -lXi collect2: ld returned 1 exit status configure:6399: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "plib" | #define VERSION "1.8.5" | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char glNewList (); | int | main () | { | return glNewList (); | ; | return 0; | } configure:6417: result: no =============================== The problem in this installation was libxi-dev and libxmu-dev packages where not installed. But also, by replacing line 279 in config.in LIBS="$LIBS $X_PRE_LIBS -lXi -lXmu -lXext -lX11 $X_EXTRA_LIBS -lm" to something like this: LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lm" The compilation went smooth as silk. Maybe those libs are not really needed? Kind regards, Anton |
From: John F. F. <joh...@cy...> - 2008-03-13 03:55:54
|
(Applause) (Cheers) (General sounds of celebration) Hooray! - John -----Original Message----- From: Steve Baker Sent: Monday, March 10, 2008 9:32 PM To: PLIB Developers; PLIB Developers Subject: [Plib-devel] PLIB 1.8.5 released. It's been a L-O-N-G time since our last PLIB release. This is version 1.8.5. Grab it from http://plib.sf.net ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ plib-devel mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-devel |
From: Libero U. <ti...@li...> - 2008-03-12 15:39:56
|
That's great! Thanks!!! Giorgio Tino Jan Reucker ha scritto: > Am Mon, 10 Mar 2008 21:31:52 -0500 schrieb Steve Baker <st...@sj...>: > > >> It's been a L-O-N-G time since our last PLIB release. >> >> This is version 1.8.5. >> >> Grab it from http://plib.sf.net >> > > Thanks a lot! > > Kind regards, > Jan R. > > |
From: Jan R. <slo...@gm...> - 2008-03-11 21:30:00
|
Am Mon, 10 Mar 2008 21:31:52 -0500 schrieb Steve Baker <st...@sj...>: > It's been a L-O-N-G time since our last PLIB release. > > This is version 1.8.5. > > Grab it from http://plib.sf.net Thanks a lot! Kind regards, Jan R. -- Jan Reucker email: jan dot reucker at web dot de web: http://www.reucker-online.de |