lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] Using 'wx-config' with zsh


From: Greg Chicares
Subject: [lmi] Using 'wx-config' with zsh
Date: Sun, 19 Mar 2006 17:33:45 +0000
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

In our office, we customarily use an msw port of an old version
of zsh. It won't execute 'wx-config':

C:/wxWidgets-2.6.2/build_3_4_2[0]$echo $ZSH_VERSION
3.0.5-nt-beta-0.75
C:/wxWidgets-2.6.2/build_3_4_2[0]$./wx-config
printf: not found
printf: not found
C:/wxWidgets-2.6.2/build_3_4_2[1]$

It seems odd that 'printf' is used in a script that needs to be
portable. The hash-bang is "#!/bin/sh", but 'printf' was added
to zsh between versions 4.0 and 4.2:
  http://zsh.sunsite.dk/releases.html
Of course, we could use cygwin's port of zsh, which is at least
version 4.2.4, but
 - we shouldn't need to, just to run one nonportable script
 - cygwin's isn't native, so it might be slower
 - changing any tool is risky

However, extracting the one crucial line from 'wx-config':
  lib/wx/config/msw-ansi-release-2.6
gives us all I think we need--i.e., '--cxxflags' and '--libs':

C:/wxWidgets-2.6.2/build_3_4_2[0]$lib/wx/config/msw-ansi-release-2.6 --cxxflags
-I/usr/local/lib/wx/include/msw-ansi-release-2.6 -I/usr/local/include/wx-2.6 -D_
_WXMSW__ -DWXUSINGDLL=1 -DNO_GCC_PRAGMA
C:/wxWidgets-2.6.2/build_3_4_2[0]$lib/wx/config/msw-ansi-release-2.6 --libs
-L/usr/local/lib   -Wl,--subsystem,windows -mwindows -lwx_msw-2.6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]