Ubuntu/Debian uygulamaları nasıl yapılıyor?

Qt ve GTK, XLib tabanlı çalıştıkları için masaüstü ortamları bunları tercih ediyorlar. wxWidgets'ın Linux versiyonu mesela GTK üzerinde bir wrapper olduğundan dolayı bu tarz komponentleri yapmak mümkün değil.

Ayrıca bilindik uygulamaların da API'leri var. Örneğin APT paket yöneticisine ait bir API mevcut. Hatta Synaptic paket yöneticisi böyle çalışıyor.
 
Eğer programlamayı GTK4 ile yapacaksanız libgtk-4-0 ve libgtk-4-dev paketini yüklemeniz yeterli olacaktır. Eğer GTK3 ile yapacaksanız zaten yüklü gelir.
Bash:
ichigo@iloveichigo:~/Masaüstü$ sudo apt install libgtk-4-0
[sudo] password for ichigo:
Paket listeleri okunuyor... Bitti
Bağımlılık ağacı oluşturuluyor       
Durum bilgisi okunuyor... Bitti     
E: libgtk-4-0 paketi bulunamadı
ichigo@iloveichigo:~/Masaüstü$
 
Bash:
ichigo@iloveichigo:~/Masaüstü$ sudo apt install libgtk-4-0
[sudo] password for ichigo:
Paket listeleri okunuyor... Bitti
Bağımlılık ağacı oluşturuluyor     
Durum bilgisi okunuyor... Bitti   
E: libgtk-4-0 paketi bulunamadı
ichigo@iloveichigo:~/Masaüstü$
Madem olmuyor, siz de el ile derleyin:
GTK4'ü kuramıyorum, ama hala bununla uğraşmak istiyorsanız GTK3 ile devam edebilirsiniz.
 
Madem olmuyor, siz de el ile derleyin:
Bash:
meson setup --prefix /opt/gtk builddir
Bunu yazınca hata veriyor:
Bash:
ichigo@iloveichigo:~/Masaüstü/GTK$ meson setup --prefix /opt/gtk builddir
The Meson build system
Version: 0.45.1
Source dir: /home/ichigo/Masaüstü/GTK
Build dir: /home/ichigo/Masaüstü/GTK/builddir
Build type: native build

meson.build:65:18: ERROR: Expecting eol got id.
  if optimization in ['0', 'g']
                  ^

A full log can be found at /home/ichigo/Masaüstü/GTK/builddir/meson-logs/meson-log.txt
ichigo@iloveichigo:~/Masaüstü/GTK$
Log dosyası:
Bash:
Build started at 2021-04-16T23:40:02.538195
Main binary: /usr/bin/python3
Python system: Linux
The Meson build system
Version: 0.45.1
Source dir: /home/ichigo/Masaüstü/GTK
Build dir: /home/ichigo/Masaüstü/GTK/builddir
Build type: native build

meson.build:65:18: ERROR: Expecting eol got id.
  if optimization in ['0', 'g']
                  ^
 
Bash:
meson setup --prefix /opt/gtk builddir
Bunu yazınca hata veriyor:
Bash:
ichigo@iloveichigo:~/Masaüstü/GTK$ meson setup --prefix /opt/gtk builddir
The Meson build system
Version: 0.45.1
Source dir: /home/ichigo/Masaüstü/GTK
Build dir: /home/ichigo/Masaüstü/GTK/builddir
Build type: native build

meson.build:65:18: ERROR: Expecting eol got id.
  if optimization in ['0', 'g']
                  ^

A full log can be found at /home/ichigo/Masaüstü/GTK/builddir/meson-logs/meson-log.txt
ichigo@iloveichigo:~/Masaüstü/GTK$
Log dosyası:
Bash:
Build started at 2021-04-16T23:40:02.538195
Main binary: /usr/bin/python3
Python system: Linux
The Meson build system
Version: 0.45.1
Source dir: /home/ichigo/Masaüstü/GTK
Build dir: /home/ichigo/Masaüstü/GTK/builddir
Build type: native build

meson.build:65:18: ERROR: Expecting eol got id.
  if optimization in ['0', 'g']
                  ^
Meson versiyonunuz eski olduğu için yapıyor olabilir. Güncelleyiniz.
 
Sanırım Visual Studio'dan C++ ile yapıcam :D
GNU/Linux Visual Studio desteklemiyor ki. GTK3 masaüstü ortamları ile birlikte gelir. Yani tek yapmanız gereken güzel bir kaynak bulup "haydi bismillah" diye başlamak. Eğer hata verirse (ki bu nadir rastlanır) libgtk3-dev paketini yükleyin.
 

Yeni konular

Geri
Yukarı