Re: Thumbs up for Zinf in Solaris 8 on SPARC architecture

2002-07-25 Thread Anders Nordby

Hello,

On Thu, Jul 25, 2002 at 01:40:17AM -0400, Ed Sweetman wrote:
 I'd just like to clear up something first.   Is this the cvs version of
 zinf or what?

The patches are relative to the Zinf 2.2.0 for Linux tar.gz source
distribution. The packages are also made with this source.

   If it's the cvs version ...heh. well you know.  It's
 likely to change drastically still from the final release that I see
 rapidly approaching.   We're getting the win32 build cleaned up rather
 quickly now and soon we'll have the cdpmo tackled for unix (as soon as i
 get time to really write the thing) and as for cdplayback in other
 OS's.. heh. that's gonna be an adventure.   I just mention this because
 if you're going to make solaris packages of zinf you should know that
 there are serious aspects of zinf that are compilable but not functional
 yet.  

CD playback isn't all that interesting to me, I hope it will be easy to
disable. Anyway, please try to write portable code. :) I hope you are
not intending to turn Zinf over to be a Win32 project mostly?

 Awesome to get some feedback on other OS's though.  :) I'll take a look
 at these patches and merge them in if all checks out.  

Thanks.

Cheers,

-- 
Anders.
___
[EMAIL PROTECTED]
http://www.freeamp.org/mailman/listinfo/freeamp-dev



Thumbs up for Zinf in Solaris 8 on SPARC architecture

2002-07-24 Thread Anders Nordby

Hello,

From to time I have played a little with trying to make Freeamp work in
Solaris, as I use Solaris quite much on the desktop. Today I finally had
some success. At least it runs without crashing, and I can stream files
+ play MP3s from disk. With /usr/dt/bin/sdtaudiocontrol, I can select
whether I want to use the internal speaker, the internal sound card, or
both. It seems stable too!

Test setup:

* Sun Blade 100 running Solaris 8 10/01 with GNOME 2 beta 1 from
www.sun.com/software.
* Gcc 3.1, glib 1.2.10, gtk 1.2.10, gdkpixbuf 0.11.0 and freetype 1.3.1
from sunfreeware.com.

Packages made:

* http://anders.fix.no/solaris/pkg/sol8/sparc32-64/zinf-2.2.0-sol8-sparc64-local.gz
* 
http://anders.fix.no/solaris/pkg/sol8/sparc32-64/musicbrainz-1.1.0-sol8-sparc64-local.gz

Patches used:

* Attached.

Screenshot of player in use:

* http://anders.fix.no/test/grab_solaris8+gnome2+zinf.png

If there is some interest in Solaris support in the CVS repository, I'll
consider trying to maintain it.

Thanks for making such a nice sound player - the best opensource one
IMHO!

Cheers,

-- 
Anders.


--- lib/http/src/Http.cpp.orig  Thu Jun 20 08:40:07 2002
+++ lib/http/src/Http.cpp   Thu Jul 25 00:19:13 2002
 -42,6 +42,10 
 #include unistd.h
 #endif
 
+#if defined(solaris)
+#define INADDR_NONE 0x
+#endif
+
 #if defined(unix) || defined(__BEOS__) || defined(_BSD_SOURCE)
 #define SOCKET int
 #endif


--- ui/musicbrowser/unix/src/fileselector.cpp.orig  Thu Jun 20 08:41:53 2002
+++ ui/musicbrowser/unix/src/fileselector.cpp   Thu Jul 25 01:23:32 2002
 -34,6 +34,12 
 #include utility.h
 #include preferences.h
 
+#if defined(solaris)
+#include sys/types.h
+#include sys/param.h  /* for MAXPATHLEN */
+#include sys/stat.h
+#endif
+
 char old_path[PATH_MAX]=/\0;
 
 FileSelector::FileSelector(FAContext *context,const char *windowtitle)
 -68,11 +74,19 
 {
 DIR *dir=NULL;
 struct dirent *current=NULL;
+#if defined(solaris)
+struct stat *s;
+#endif
 if ((dir = opendir(subdirs))!=NULL){
 current = readdir(dir);
 current = readdir(dir);
 while((current=readdir(dir))!=NULL){
+#if defined(solaris)
+   stat(subdirs, s);
+if (s-st_mode  S_IFDIR) {
+#else
 if(current-d_type==DT_DIR){
+#endif
char temp_subdir[PATH_MAX];
strncpy(temp_subdir, subdirs,PATH_MAX);
strcat(temp_subdir,/);


--- ui/zinf/unix/src/GTKFileSelector.cpp.orig   Thu Jun 20 08:42:46 2002
+++ ui/zinf/unix/src/GTKFileSelector.cppThu Jul 25 01:37:15 2002
 -25,6 +25,12 
 #include unistd.h
 #include dirent.h
 
+#if defined(solaris)
+#include sys/types.h
+#include sys/param.h  /* for MAXPATHLEN */
+#include sys/stat.h
+#endif
+
 char old_path[PATH_MAX];
 
 GTKFileSelector::GTKFileSelector(FAContext *context,const char *windowtitle)
 -59,11 +65,19 
 {  
 DIR *dir=NULL;
 struct dirent *current=NULL;
+#if defined(solaris)
+struct stat *s;
+#endif
 if ((dir = opendir(subdirs))!=NULL){
 current = readdir(dir);
 current = readdir(dir); 
 while((current=readdir(dir))!=NULL){ 
+#if defined(solaris)
+   stat(subdirs, s);
+   if (s-st_mode  S_IFDIR) {
+#else
 if(current-d_type==DT_DIR){  
+#endif
 char temp_subdir[PATH_MAX];
 strncpy(temp_subdir, subdirs,PATH_MAX);
 strcat(temp_subdir,/);