Re: Can't import GDAL into Python (2.5 or 2.6)

2010-08-20 Thread John Hauf
Hello,

I did this:

1. Edit /opt/local/etc/macports/macports.conf: Set portautoclean to no
2. Install sudo port install gdal +python26 +sqlite3
3. Make some softlinks in /opt/local/bin: ln -s python2.6 python, ln
-s python2.6-config python-config, ln -s easy_install-2.6 easy_install
3. Go to:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gis_gdal/work/gdal-1.6.2/swig/python/
4. run: python setup.py install
5. run a gdal-python script. (e.g. gdal2tiles.py)

At least this is working for me at the moment.

John


On 8/20/10 11:44 AM, Vincent Habchi wrote:
 The port is outdated. Current revision is 1.7.2, while currently we provide 
 1.6.2. I'm not home right now, so I can't do a thing about it, but I'll try 
 to upgrade the port Sunday. Wait for the upgrade, and then try again.
 
 vincent
 ___
 macports-users mailing list
 macports-users@lists.macosforge.org
 http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
 
 
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Can't import GDAL into Python (2.5 or 2.6)

2010-08-20 Thread John Hauf
Thank you. I didn't knew that python_select exists.

With python select it's far way easier.

John

On 8/20/10 12:35 PM, Vincent Habchi wrote:
 Le 20 août 2010 à 11:58, John Hauf a écrit :
 
 Hello,

 I did this:

 1. Edit /opt/local/etc/macports/macports.conf: Set portautoclean to no
 2. Install sudo port install gdal +python26 +sqlite3
 3. Make some softlinks in /opt/local/bin: ln -s python2.6 python, ln
 -s python2.6-config python-config, ln -s easy_install-2.6 easy_install
 
 This is unnecessary. You should install python_select instead and use it. It 
 does a cleaner job.
 
 As for gdal, you're right: the current Portfile does not activate the swig 
 glue, so nothing gets installed in site-packages. I'll see what's going on. 
 Meanwhile, I've successfully updated to 1.7.2, which requires only bumping 
 the version and the related checksums.
 
 Cheers
 Vincent
 
 
 
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: MPlayer fails on asm

2007-11-27 Thread John Hauf

Hallo David,

this has been discussed here: 
http://lists.macosforge.org/pipermail/macports-users/2007-November/006710.html


I tried with these instructions and it worked.

John

David Liontooth wrote:


MPlayer fails to compile on macintel 10.5.1 with the message

   i386/dsputil_mmx.c:634: error: can't find a register in class 
'GENERAL_REGS' while reloading 'asm'


Is this a known problem? workaround?

Dave


opt.c: In function 'opt_list':
opt.c:324: warning: passing argument 3 of 'opt_list' discards qualifiers 
from pointer target type
cc -Wdeclaration-after-statement -fno-PIC -O4 -march=pentium-m 
-mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer -mdynamic-no-pic 
-falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -shared-libgcc -arch i386  
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/include/lzo 
-I/opt/local/include -I/usr/X11/include -I.  -I./libavutil 
-I./libavcodec   -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -I../libavutil 
-Wdeclaration-after-statement -fno-PIC -O4 -march=pentium-m 
-mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer -mdynamic-no-pic 
-falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -shared-libgcc -arch i386  
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/include/lzo 
-I/opt/local/include -I/usr/X11/include  -c -o bitstream_filter.o 
bitstream_filter.c
cc -Wdeclaration-after-statement -fno-PIC -O4 -march=pentium-m 
-mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer -mdynamic-no-pic 
-falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -shared-libgcc -arch i386  
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/include/lzo 
-I/opt/local/include -I/usr/X11/include -I.  -I./libavutil 
-I./libavcodec   -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -I../libavutil 
-Wdeclaration-after-statement -fno-PIC -O4 -march=pentium-m 
-mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer -mdynamic-no-pic 
-falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -shared-libgcc -arch i386  
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/include/lzo 
-I/opt/local/include -I/usr/X11/include  -c -o audioconvert.o 
audioconvert.c
cc -Wdeclaration-after-statement -fno-PIC -O4 -march=pentium-m 
-mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer -mdynamic-no-pic 
-falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -shared-libgcc -arch i386  
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/include/lzo 
-I/opt/local/include -I/usr/X11/include -I.  -I./libavutil 
-I./libavcodec   -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -I../libavutil 
-Wdeclaration-after-statement -fno-PIC -O4 -march=pentium-m 
-mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer -mdynamic-no-pic 
-falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -shared-libgcc -arch i386  
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/include/lzo 
-I/opt/local/include -I/usr/X11/include  -c -o imgresample.o imgresample.c
cc -Wdeclaration-after-statement -fno-PIC -O4 -march=pentium-m 
-mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer -mdynamic-no-pic 
-falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -shared-libgcc -arch i386  
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/include/lzo 
-I/opt/local/include -I/usr/X11/include -I.  -I./libavutil 
-I./libavcodec   -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -I../libavutil 
-Wdeclaration-after-statement -fno-PIC -O4 -march=pentium-m 
-mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer -mdynamic-no-pic 
-falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -shared-libgcc -arch i386  
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/include/lzo 
-I/opt/local/include -I/usr/X11/include  -c -o i386/fdct_mmx.o 
i386/fdct_mmx.c
cc -Wdeclaration-after-statement -fno-PIC -O4 -march=pentium-m 
-mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer -mdynamic-no-pic 
-falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -shared-libgcc -arch i386  
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/include/lzo 
-I/opt/local/include -I/usr/X11/include -I.  -I./libavutil 
-I./libavcodec   -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -I../libavutil 
-Wdeclaration-after-statement -fno-PIC -O4 -march=pentium-m 
-mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer -mdynamic-no-pic 
-falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -shared-libgcc -arch i386  
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/include/lzo 
-I/opt/local/include -I/usr/X11/include  -c -o i386/cputest.o 
i386/cputest.c
cc -Wdeclaration-after-statement -fno-PIC -O4 -march=pentium-m 
-mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer -mdynamic-no-pic 
-falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -shared-libgcc -arch i386  
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/include/lzo 
-I/opt/local/include -I/usr/X11/include -I.  -I./libavutil 

Re: Mplayer with some variants not compiling on Leopard

2007-11-27 Thread John Hauf

Hello,

I found a solution for this issue. Seems to be a bug in Leopard
10.5.0/10.5.1. I changed the following line in my Portfile from:
configure.ldflags {}
to (all in a single line):
configure.ldflags
-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib

See a description of that issue here:
http://wiki.finkproject.org/index.php/Fink:Packaging:Preparing_for_10.5#OpenGL_Bug

John

John Hauf wrote:

Hello,

I tried to compile Mplayer with the following command:

port -d install mplayer +fontconfig +freetype +gif +theora +xvid +x264 
+real +binary-codecs +spee +faac +dv +twolame +dts +sdl +aa +caca


and get the following error:

cc -Wdeclaration-after-statement -fno-PIC -O4 -march=pentium-m 
-mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer -mdynamic-no-pic 
-falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -shared-libgcc -arch i386 
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/include/lzo 
-I/opt/local/include -I/usr/X11/include -I/opt/local/include/ 
-I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I. 
-I./libavutil -I./libavcodec -o mplayer mplayer.o m_property.o mp_msg.o 
asxparser.o codec-cfg.o cpudetect.o edl.o find_sub.o m_config.o 
m_option.o m_struct.o parser-cfg.o playtree.o playtreeparser.o spudec.o 
sub_cc.o subreader.o vobsub.o mixer.o parser-mpcmd.o subopt-helper.o 
libvo/libvo.a libao2/libao2.a input/libinput.a 
libmpcodecs/libmpcodecs.a  libaf/libaf.a libmpdemux/libmpdemux.a 
stream/stream.a libswscale/libswscale.a osdep/libosdep.a 
-L/opt/local/lib -L/opt/local/lib/samba3 -Llibmpdvdkit2 -lmpdvdkit 
libavformat/libavformat.a  libavcodec/libavcodec.a 
libavutil/libavutil.a  libpostproc/libpostproc.a  -lmad -ldv  -ltheora 
-logg  -llzo2 -lxvidcore -ldts -lpng -lz -lz -ljpeg   -lx264 -lmp3lame  
-ltwolame -lfaac -lncurses  -lungif -framework Carbon -framework 
QuickTime -framework CoreAudio -framework AudioUnit -framework 
AudioToolbox -framework Cocoa -framework QuartzCore -framework 
OpenGL  -liconv -lmlibfaad2/libfaad2.a liba52/liba52.a 
libmpeg2/libmpeg2.a tremor/libvorbisidec.a  -laa -L/opt/local/lib 
-lSDLmain -lSDL -Wl,-framework,Cocoa -L/opt/local/lib -lcaca -lX11 
-L/usr/X11/lib -lncurses -lncurses

ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1

I know that there is ticket #13021 about compiling Mplayer on Leopard 
but I think this is a different problem.


Is there a solution for that problem. Thanks a lot for any help!
John

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users




___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Installing php5

2007-11-24 Thread John Hauf

Hello,

I want to install php5 with apache2 and mysql5 support on OSX 10.4, but 
I have already installed mysql5 and apache2 manually (without using 
macports). Is there a way to tell macports to use these installations of 
apache2 and mysql5 instead of installing the macport versions?


Thank you!
John
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Mplayer with some variants not compiling on Leopard

2007-11-20 Thread John Hauf

Hello,

I tried to compile Mplayer with the following command:

port -d install mplayer +fontconfig +freetype +gif +theora +xvid +x264 
+real +binary-codecs +spee +faac +dv +twolame +dts +sdl +aa +caca


and get the following error:

cc -Wdeclaration-after-statement -fno-PIC -O4 -march=pentium-m 
-mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer -mdynamic-no-pic 
-falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -shared-libgcc -arch i386 
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/include/lzo 
-I/opt/local/include -I/usr/X11/include -I/opt/local/include/ 
-I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I. 
-I./libavutil -I./libavcodec -o mplayer mplayer.o m_property.o mp_msg.o 
asxparser.o codec-cfg.o cpudetect.o edl.o find_sub.o m_config.o 
m_option.o m_struct.o parser-cfg.o playtree.o playtreeparser.o spudec.o 
sub_cc.o subreader.o vobsub.o mixer.o parser-mpcmd.o subopt-helper.o 
libvo/libvo.a libao2/libao2.a input/libinput.a 
libmpcodecs/libmpcodecs.a  libaf/libaf.a libmpdemux/libmpdemux.a 
stream/stream.a libswscale/libswscale.a osdep/libosdep.a 
-L/opt/local/lib -L/opt/local/lib/samba3 -Llibmpdvdkit2 -lmpdvdkit 
libavformat/libavformat.a  libavcodec/libavcodec.a 
libavutil/libavutil.a  libpostproc/libpostproc.a  -lmad -ldv  -ltheora 
-logg  -llzo2 -lxvidcore -ldts -lpng -lz -lz -ljpeg   -lx264 
-lmp3lame  -ltwolame -lfaac -lncurses  -lungif -framework Carbon 
-framework QuickTime -framework CoreAudio -framework AudioUnit 
-framework AudioToolbox -framework Cocoa -framework QuartzCore 
-framework OpenGL  -liconv -lmlibfaad2/libfaad2.a 
liba52/liba52.a libmpeg2/libmpeg2.a tremor/libvorbisidec.a  -laa 
-L/opt/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa 
-L/opt/local/lib -lcaca -lX11 -L/usr/X11/lib -lncurses -lncurses

ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1

I know that there is ticket #13021 about compiling Mplayer on Leopard 
but I think this is a different problem.


Is there a solution for that problem. Thanks a lot for any help!
John

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: Old port versions?

2007-07-18 Thread John Hauf

Hello Marc,

thank you very much! With that information I could go back now to an old
version of ffmpeg - exporting videos with sound is working again on my mac!

Regards,
John

Marc André Selig wrote:

On 7/17/07, Denis Bueno [EMAIL PROTECTED] wrote:
Is there a way for me to recover the ocaml 3.09 Portfile so I can 
install it

alongside 3.10 (where alongside means, of course, only one is active at
once).


First look up which macports changeset ocaml 3.09 corresponds to, for
example by going to
http://trac.macosforge.org/projects/macports/timeline/

Let's assume it's 20526.

cd $myrepository # create this as an empty directory if you don't have 
one yet

svn co --revision 20526
https://svn.macports.org/repository/macports/trunk/dports/lang/ocaml/
lang/ocaml/
portindex .
sudo port deactivate ocaml
sudo port install ocaml

(Untested commands, use at your own risk.)

Regards,
Marc
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users




___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users