3

wxFormBuilder 3.4 beta macを適切なディレクトリにダウンロードしました。

ここに画像の説明を入力

実行するターミナルを開きますsh create_build_files4.shが、コンソールには次のエラーが表示されます。

MinSeok-ui-iMac-3:wxFormBuilder MinSeok$ sh create_build_files4.sh
create_build_files4.sh: line 7: wx-config: command not found
create_build_files4.sh: line 66: wx-config: command not found
make: *** ./premake/macosx: No such file or directory.  Stop.
create_build_files4.sh: line 91: ./premake/macosx/bin/release/premake4: No such file or directory
create_build_files4.sh: line 92: ./premake/macosx/bin/release/premake4: No such file or directory
create_build_files4.sh: line 93: ./premake/macosx/bin/release/premake4: No such file or directory
create_build_files4.sh: line 95: ./premake/macosx/bin/release/premake4: No such file or directory

私の環境は OS X Mountain Lion (Mavericks) です。インストールwxPython済みのバージョンは 2.9.5 です。

私の問題は何ですか?... グーグル、私にヒントを表示しないでください。

少し早いですがお礼を。

編集

wxWidgets 3.0 をインストールし、premake4 を配置しました。ほぼ解決に近づいていると思います。lua スクリプトを使用した wxFormBuilder。しかし、solution.lua スクリプトのビルド コードがわかりません。ヒントはありますか?以下のシェル create_build_files4.sh スクリプトを参照してください。1 つ確かなことは、solution.lua スクリプト コードを知っておく必要があることです。

#!/bin/sh

# Parse command line options
shared=""
arch=""
wxroot=""
wxpath=`wx-config --prefix`

# These works only on wxWidgets 2.8.10+
#wxcharset=`wx-config --query-chartype`
#wxversion=`wx-config --query-version`
for args in "$@"
do
    haveroot=`expr "${args}" : '--wx-root=.*'`
    havearch=`expr "${args}" : '--architecture=.*'`
    haverpath=`expr "${args}" : '--rpath=.*'`
    if ( [ ${args} = "--help" ] || [ ${args} = "-h" ] ); then
            echo "Available options:"
            echo
            echo "--disable-mediactrl       Disable wxMediaCtrl / wxMedia library."
            echo
            echo "--disable-shared          Use static wxWidgets build instead of shared libraries."
            echo
            echo "--disable-unicode         Whether to use an Unicode or an ANSI build."
            echo "                          Ignored in wxWidgets 2.9 and later."
            echo "                          Example: --disable-unicode produces an ANSI build."
            echo "                          Default: Unicode build on all versions."
            #       echo "                          Current: $wxcharset"
            echo
            echo "--wx-root                 Specify the wxWidgets build path,"
            echo "                          useful for wxWidgets builds not installed"
            echo "                          in your system (alternate/custom builds)"
            echo "                          Example: --wx-root=/home/devel/wx/3.0/buildgtk"
            echo "                          Current: $wxpath"
            echo
            echo "--architecture            Specify build architecture (e.g. --architecture=i386)."
            echo "--rpath                   Specify a rpath  (e.g. --rpath=/usr/lib/wxformbuilder)."
            echo
            exit
    elif [ ${args} = "--disable-mediactrl" ]; then
        mediactrl="--disable-mediactrl"
        continue
    elif [ ${args} = "--disable-unicode" ]; then
        wxunicode="--disable-unicode"
        continue
    elif [ ${args} = "--disable-shared" ]; then
        shared="--disable-shared"
        continue
    elif [ ${args} = "--disable-unicode" ]; then
        wxunicode="--disable-unicode"
        continue
    elif ( [ "$haveroot" -gt "0" ] ); then
        wxroot=${args}
        continue
    elif ( [ "$havearch" -gt "0" ] ); then
        arch=${args}
        continue
    elif ( [ "$haverpath" -gt "0" ] ); then
        rpath=${args}
        continue
    fi
done

# Autodetect wxWidgets version
if [ "$wxroot" = "" ]; then
    wxver=`wx-config --release`
else
    wxpath=${wxroot#-*=}
    wxver=`$wxpath/wx-config --release`
fi

wxversion="--wx-version="$wxver

# Autodetect OS
isbsd=`expr "$unamestr" : '.*BSD'`
platform="unknown"
unamestr=$(uname)

if ( [ "$isbsd" -gt "0" ] ); then
    platform="bsd"
elif [ "$unamestr" = "Linux" ]; then
    platform="linux"
elif [ "$unamestr" = "Darwin" ]; then
    platform="macosx"
fi

# Build premake
cd build
make CONFIG=Release -C./premake/$platform

./premake/$platform/bin/release/premake4 --file=./premake/solution.lua $wxunicode $wxroot $wxversion $mediactrl $shared $arch codeblocks
./premake/$platform/bin/release/premake4 --file=./premake/solution.lua $wxunicode $wxroot $wxversion $mediactrl $shared $arch $rpath codelite
./premake/$platform/bin/release/premake4 --file=./premake/solution.lua $wxunicode $wxroot $wxversion $mediactrl $shared $arch $rpath gmake
if [ "$platform" = "macosx" ]; then
   ./premake/$platform/bin/release/premake4 --file=./premake/solution.lua $wxunicode $wxroot $wxversion $mediactrl $shared $arch xcode3
fi
4

3 に答える 3

2

@melto が指摘したように、os x 用の安定したリリース バージョン 3.1.70 も同様に機能します。sourceforge へのリンクhttp://sourceforge.net/projects/wxformbuilder/files/wxformbuilder/3.1.70/wxFormBuilder-3.1.dmg/download

于 2014-06-04T04:48:36.497 に答える
0

別の方法として、安定版リリースwxFormBuilder-3.1を使用することもできます 。これは、Sourceforge で dmg として入手できます。このパッケージでは、前の手順は必要ないと思います。

于 2013-12-03T22:04:09.347 に答える
-1

マシンにwx-configをインストールする必要があります。これはwxWidgets (FAQ Mac: http://www.wxwidgets.org/docs/faqmac.htm#macplat ) に含まれています。続行するには Xcode をインストールする必要があることに注意してください。パッケージのビルドには時間がかかります。

  • wxWidgets を取得します (iev 3.0.0 http://www.wxwidgets.org/downloads )
  • tar.bz2 を解凍してビルドします。

    tar -xfvj wxWidgets-3.0.0.tar.bz2

    cd wxWidgets-3.0.0

    。/構成、設定

    作る

    sudo make install

  • シェルスクリプトを再度実行してみてください

于 2013-12-03T21:54:00.370 に答える