I want to make app for raspberry pi. I chosed gtk for gui library because it has a good looking ui and it is free. But i have 1 problem with it: i don't know how to export simple app that will work on raspberry pi. I have raspberry pi zero.
How to export GTK app for Raspberry pi os with Gnome Builder (my opereting system is ubuntu)
259 Views Asked by MN_XD At
2
There are 2 best solutions below
1
Andrej Prsa
On
What you're trying to do is cross-compiling. In order to do that, you need to set up an appropriate toolchain. Here is the link to the relevant discussion on SO on how to achieve that.
That said, it might be more trouble than it's worth. I have 3 ARMs and I mount them locally via sshfs (fuse). That enables me to edit/develop as if the files were local to my system (i.e. using my ubuntu environment). I only compile remotely, via an ssh session.
Related Questions in C
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in RASPBERRY-PI
- Raspberry Pi Sense Hat with Pyinstaller
- Waiting for several hours before resuming execution
- Using compositor in Gstreamer to merge imagesequence with video/audio stream
- How to make this sensor keep taking readings once its when_in_range function has been activated?
- Emulating an HID device with a raspberry pi 5
- How to stream PCM audio to a speakers both on mac and linux in Node.js?
- I want to use NRF24L01 transceiver with raspberry pi but some GPIO pins are already occupied by 3.5 inch display how do i connect transceiver
- voron 2.4 mainsail kiauh error install crowsnest (solved problem)
- Pi4J minimal example's LED doesn't blink
- How can I connect and send data from react-native to raspberry pi
- Xpt 2046 Display with Pn532 RFID reader
- Google SDK for Raspberry pi
- How to use a RaspberryPi camera with the cv2.videoCapture() function?
- How do I capture audio from the system bus in a node app (or from sox) on a raspberry pi?
- Can't open /dev/mem: Operation not permitted Raspberry Pi
Related Questions in GTK
- Do GTK file chooser dialogs come with localized strings for buttons and titles?
- Why does GTK beep when calling `gtk_entry_set_text` (while resizing a window)?
- Distributing a GTK4 Windows application
- Callback function doesn't modify widget
- getting arguments with g_signal_connect GTK4
- ValueError: Namespace Xdp not available
- How do I link gtk/gtk.h to my compiler in VSCode
- Using GTK v0.18.1 on rust to draw
- How to set transparent background for gtk_plug_new window
- GTK Cairo. Why gtk_widget_queue_draw called from function (in iddle callback) does not work?
- GTK4 Window Created from XML, Closes Immediately After Run()
- How do I receive UDP broadcast packets using GTK / GIO?
- Install Gtk 3.0 problem with depencies in linux
- Ubuntu 22.04 libgtk-3.so: undefined reference to symbol 'gdk_window_hide'
- GTK: "Object with ID not found" error, but the ID is empty
Related Questions in GNOME
- In fedora Linux, Waydroid opens in fullscreen mode, but in gnome the top panel is not hidden
- Do Qt based applications run better on KDE Plasma than on Gnome with Qt installed as a dependency?
- Callback function doesn't modify widget
- ValueError: Namespace Xdp not available
- Simple Example of AdwViewSwitcher from libadwaita
- How I can send Ctrl-l key input to the GNOME file chooser dialog with at-spi2?
- How to configure XRDP to work with Gnome on Ubuntu 22.04?
- gnome-search custom provider for a specific user
- Is there any difference between actions in GTK and using signals directly?
- libxml2: Fixed/default attributes in XSD
- Not able to build gnome-calendar on builder
- How to intercept clipboard operations on Linux Wayland/Mutter/GNOME
- Position Selenium Firefox driver
- Python 3: How do I assert that the value of a gobject.GParamSpec is of a particular type?
- Change border color of GtkButton when focused
Related Questions in GNOME-BUILDER
- Can't make the ui in gnome builder and cambalache
- how remove gnome builder and all its artifacts
- error from builder, the IDE for GNOME window.ui 'resource:///plugins/xml-pack/schemas/gtk4builder.rng'
- Not able to build gnome-calendar on builder
- menson/flatpak/Gnome Builder: subproject's source code location
- How do I launch SBCL (or arbitrary commands) using popen?
- How to change the color palette of the Terminal in Gnome Builder?
- How to make gstreamer play audio from binary data
- how to update meson version in flatpak builder
- What Meson command(s) is Gnome Builder running?
- Why is the window not rendering correctly?
- How Change GJS App output filename with meson
- How to add x-scheme-handler in GTK application?
- How to export GTK app for Raspberry pi os with Gnome Builder (my opereting system is ubuntu)
- Error when adding matplotlib to flatpak gnome-builder project
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
GNOME Builder supports automagic cross compiling when using flatpak (it is also really simple with cli flatpak-builder). It also supports adding extra sysroots for non-flatpak cross compilation.
But if you are using flatpak, you should install and setup deviced on the raspberry pi https://gitlab.gnome.org/chergert/deviced. And have
,
accept it on the raspberry pi, it will automatically download the SDK. Then click the run button and it will run on the raspberry pi.
qemu-user-static(usually named like that on distros) installed on the computer you are compiling on. Then you can simply select the deviceNote that compilation will be quite slow as flatpak emulates a native arm compiler instead of using a compiler that compiles to arm, but the compiler itself is x86.