[Wine] Re: Trouble with libgsm on Mac OS X 10.6.2

bshafar wineforum-user at winehq.org
Fri Sep 17 18:07:16 CDT 2010


bcpeterson wrote:
> 
> ralniv wrote:
> > Below are my instructions for getting a libgsm friendly version of Wine compiled on SnowLeopard.  I assume that you already have wine-devel installed and configured to your liking.  I also assume that you use MacPorts for package management.
> > 
> > [1] Uninstall wine-devel
> > 
> > Code:
> > sudo port uninstall wine-devel
> > 
> > 
> > 
> > [2] Edit the portfile for wine-devel.  It is located at:
> > /opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/wine-devel
> > 
> > Change "--without-gsm" to "--with-gsm"
> > 
> > [3] Download libgsm source from:
> > http://libgsm.sourcearchive.com/
> > 
> > [4] Copy libgsm source to ~/Desktop and extract it there
> > 
> > [5] Compile and install libgsm per instructions below:
> > 
> > 
> > rwoodsmall (with minor path edits and added spaces for clarity) wrote:
> > > 
> > > 
> > > Code:
> > > cd ~/Desktop/gsm-1.0-pl13
> > > 
> > > GSMOBJS=""
> > > 
> > > for GSMSRC in add code debug decode long_term lpc preprocess rpe gsm_destroy gsm_decode gsm_encode gsm_explode gsm_implode gsm_create gsm_print gsm_option short_term table ; do
> > >   gcc -g -arch i386 -m32 -dynamic -ansi -pedantic -c -O2 -Wall -DNeedFunctionPrototypes=1 -DSASR -DWAV49 -I./inc src/${GSMSRC}.c -o src/${GSMSRC}.o
> > >   GSMOBJS+="src/${GSMSRC}.o "
> > > done
> > > 
> > > libtool -dynamic -v -o lib/libgsm.1.0.13.dylib -install_name /usr/lib/libgsm.1.0.13.dylib -compatibility_version 1.0.13 -current_version 1.0.13 -lc ${GSMOBJS} 
> > > 
> > > 
> > > 
> > 
> > 
> > Then do the following:
> > 
> > Code:
> > cp inc/* /usr/include
> > 
> > ln -s /usr/lib/libgsm.1.0.13.dylib /usr/lib/libgsm.dylib
> > 
> > 
> > 
> > 
> > [6] Recompile wine-devel
> > 
> > Code:
> > sudo port install wine-devel
> > 
> > 
> > 
> > A note for people interested in playing LOTRO (and probably DDO too) from Mac: You must configure wine to run in windowed mode for LOTRO to initialize and launch properly.
> 
> 
> Okay, I think I did everything correctly, but I'm getting an error when I try to reinstall wine: (I've included just the relevant parts I hope:
> 
> 
> Code:
> 
> :info:configure checking gsm.h usability... yes
> :info:configure checking gsm.h presence... yes
> :info:configure checking for gsm.h... yes
> :info:configure checking gsm/gsm.h usability... no
> :info:configure checking gsm/gsm.h presence... no
> :info:configure checking for gsm/gsm.h... no
> :info:configure checking for -lgsm... not found
> :info:configure configure: error: libgsm 32-bit development files not found, gsm 06.10 codec won't be supported.
> :info:configure This is an error since --with-gsm was requested.
> 
> 
> 
> 
> I'm pretty new to unix and wine. I tried entering the lines one at a time, and also pasting them into a script but it just doesn't seem to be working for me.
> 
> DDO plays, but the group audio chat sounds bad. In the meantime, I've used winecfg to force the use of the dll and that has gotten rid of most of my error messages.


So, I am a mac user trying as well to play LotRO.  After compiling wine and doing the install, the game would crash at startup and I got the error message saying I needed the libgsm files.  I made it to step 5 of these instructions, having followed the previous directions, but when I try to do step five, I get the following:


Macintosh-3:~ [Hard Drive Name]$ cd ~/Desktop/gsm-1.0-pl13 
Macintosh-3:gsm-1.0-pl13 [Hard Drive Name]$ 
Macintosh-3:gsm-1.0-pl13 [Hard Drive Name]r$ GSMOBJS="" 
Macintosh-3:gsm-1.0-pl13 [Hard Drive Name]$ 
Macintosh-3:gsm-1.0-pl13 [Hard Drive Name]r$ for GSMSRC in add code debug decode long_term lpc preprocess rpe gsm_destroy gsm_decode gsm_encode gsm_explode gsm_implode gsm_create gsm_print gsm_option short_term table ; do 
>   gcc -g -arch i386 -m32 -dynamic -ansi -pedantic -c -O2 -Wall -DNeedFunctionPrototypes=1 -DSASR -DWAV49 -I./inc src/${GSMSRC}.c -o src/${GSMSRC}.o 
>   GSMOBJS+="src/${GSMSRC}.o " 
> done 
In file included from src/code.c:9:
./inc/config.h:12:28: warning: "/*" within comment
./inc/config.h:13:28: warning: "/*" within comment
./inc/config.h:25:27: warning: "/*" within comment
./inc/config.h:28:26: warning: "/*" within comment
./inc/config.h:32:23: warning: "/*" within comment
./inc/config.h:35:28: warning: "/*" within comment
src/code.c: In function ‘Gsm_Coder’:
src/code.c:95: warning: implicit declaration of function ‘memcpy’
src/code.c:95: warning: incompatible implicit declaration of built-in function ‘memcpy’
src/debug.c: In function ‘gsm_debug_longwords’:
src/debug.c:52: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long int’
src/debug.c: In function ‘gsm_debug_longword’:
src/debug.c:66: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘longword’
src/debug.c: In function ‘gsm_debug_word’:
src/debug.c:73: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long int’
In file included from src/gsm_destroy.c:10:
./inc/config.h:12:28: warning: "/*" within comment
./inc/config.h:13:28: warning: "/*" within comment
./inc/config.h:25:27: warning: "/*" within comment
./inc/config.h:28:26: warning: "/*" within comment
./inc/config.h:32:23: warning: "/*" within comment
./inc/config.h:35:28: warning: "/*" within comment
In file included from src/gsm_create.c:9:
./inc/config.h:12:28: warning: "/*" within comment
./inc/config.h:13:28: warning: "/*" within comment
./inc/config.h:25:27: warning: "/*" within comment
./inc/config.h:28:26: warning: "/*" within comment
./inc/config.h:32:23: warning: "/*" within comment
./inc/config.h:35:28: warning: "/*" within comment
Macintosh-3:gsm-1.0-pl13 [Hard Drive Name]$ 
Macintosh-3:gsm-1.0-pl13 [Hard Drive Name]r$ libtool -dynamic -v -o lib/libgsm.1.0.13.dylib -install_name /usr/lib/libgsm.1.0.13.dylib -compatibility_version 1.0.13 -current_version 1.0.13 -lc ${GSMOBJS}cp inc/* /usr/include 
libtool: can't open file: cp (No such file or directory)
libtool: file: inc/config.h is not an object file (not allowed in a library)
libtool: file: inc/gsm.h is not an object file (not allowed in a library)
libtool: file: inc/gsm.h.orig is not an object file (not allowed in a library)
libtool: file: inc/private.h is not an object file (not allowed in a library)
libtool: file: inc/proto.h is not an object file (not allowed in a library)
libtool: file: inc/toast.h is not an object file (not allowed in a library)
libtool: file: inc/unproto.h is not an object file (not allowed in a library)
libtool: can't map file: /usr/include (Invalid argument)
Macintosh-3:gsm-1.0-pl13 [Hard Drive Name]$ 
Macintosh-3:gsm-1.0-pl13 [Hard Drive Name]$ ln -s /usr/lib/libgsm.1.0.13.dylib /usr/lib/libgsm.dylib 


I will be the first to admit that I normally don't do a lot of work with code, so if I have made some completely stupid mistake, please don't laugh too hard.  But it tells me none of these things are allowed in the library, and I was hoping someone might be able to help me get this straightened out before I give up and reinstall wine without this and give up on LotRO.  Thanks.







More information about the wine-users mailing list