Pro Yearly is on sale from $80 to $50! »

Go + QtでiOS アプリ開発

53e469a19bcb4584c87789d237128ca0?s=47 matuyuji
December 26, 2016

Go + QtでiOS アプリ開発

GoとQtを使うとコマンドラインからiOSアプリが作れます

53e469a19bcb4584c87789d237128ca0?s=128

matuyuji

December 26, 2016
Tweet

Transcript

  1. (P 2UͰJ04 ΞϓϦ։ൃ ؔ੢ϞόΠϧΞϓϦݚڀձ  !NBUVZVKJ

  2. @matuyuji safx-dev.blogspot.jp

  3. None
  4. None
  5. UIFSFDJQFRU

  6. None
  7. Qt binding for Go which supports Windows / macOS /

    Linux / Android / iOS / Sailfish OS / Raspberry Pi
  8. (PͰJ04ΞϓϦΛ࡞ΕΔ

  9. None
  10. None
  11. None
  12. None
  13. None
  14. None
  15. None
  16. *OTUBMM

  17. brew install go export GOROOT=/usr/local/opt/go/libexec export GOPATH=$HOME/.go open qt-opensource-mac-x64-android-ios-5.7.0.dmg export

    QT_DIR=$HOME/Qt5.7.0 go get -d github.com/therecipe/qt cd $GOPATH/src/github.com/therecipe/qt ./setup.sh ./setup.sh ios ./setup.sh iossiumlator
  18. $SFBUFBQQ

  19. NBJOHP package main import ( "os" "github.com/therecipe/qt/core" "github.com/therecipe/qt/widgets" ) func

    main() { widgets.NewQApplication(len(os.Args), os.Args) //create a button and connect the clicked signal var button = widgets.NewQPushButton2("Click me!", nil) button.ConnectClicked(func(flag bool) { widgets.QMessageBox_Information(nil, "OK", "You clicked me!”, widgets.QMessageBox__Ok, widgets.QMessageBox__Ok) }) //create a layout and add the button var layout = widgets.NewQVBoxLayout() layout.AddWidget(button, 0, core.Qt__AlignCenter) //create a window, add the layout and show the window var window = widgets.NewQMainWindow(nil, 0) window.SetWindowTitle("Hello World Example") window.SetMinimumSize2(200, 200) window.Layout().DestroyQObject() window.SetLayout(layout) window.Show() widgets.QApplication_Exec() }
  20. RUEFQMPZSVOJPTTJNVMBUPS $ qtdeploy —-help usage: qtdeploy [ build | run

    | test ] [ desktop | android | ios | ios-simulator | sailfish | sailfish-emulator | rpi1 | rpi2 | rpi3 | windows ] [ path/to/project ] [ docker ]
  21. %FQMPZUP J1IPOF

  22. RUEFQMPZCVJMEJPT ˠσόΠεͱϓϩδΣΫτͷ4JHOJOHΛద੾ʹมߋ

  23. None
  24. 2U$SFBUPS

  25. • iOS 10ରԠͯ͠ͳ͍ lessThan(QMAKE_MAC_SDK_VERSION, "8.0"): \ error("Current $$QMAKE_MAC_SDK SDK version

    ($$QMAKE_MAC_SDK_VERSION) is too old. Please upgrade Xcode.")