{"id":1648,"date":"2016-02-07T23:10:00","date_gmt":"2016-02-08T05:10:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/compilando-archivos-de-gtk-vala-y-c-desde-geany\/"},"modified":"2016-02-07T23:10:00","modified_gmt":"2016-02-08T05:10:00","slug":"compilando-archivos-de-gtk-vala-y-c-desde-geany","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/compilando-archivos-de-gtk-vala-y-c-desde-geany\/","title":{"rendered":"Compilando archivos de GTK, Vala y C desde Geany"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/3.bp.blogspot.com\/-B9fvF_Lh7JE\/VrgSekYYnWI\/AAAAAAAABqw\/0Hxax06DdRg\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-02-07%2B21-59-09.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"330\" src=\"https:\/\/3.bp.blogspot.com\/-B9fvF_Lh7JE\/VrgSekYYnWI\/AAAAAAAABqw\/0Hxax06DdRg\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2016-02-07%2B21-59-09.png\" width=\"640\" \/><\/a><\/div>\n<p><\/p>\n<div style=\"text-align: justify;\">Compilar archivos es tedioso cuando se hace desde la terminal, sobre todo si hay que indicar una larga lista de bibliotecas adiciobales, como por ejemplo, allegro, lncurses, gtk, etc.&nbsp;<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">Compilar ye ejecutarlo desde un solo editor tan solo danto clic en un s\u00f3lo bot\u00f3n ser\u00eda m\u00e1s simple y m\u00e1s f\u00e1cil. Econtr\u00e9 un editor en el que se puede hacer eso, claro hay que configurarlo primero, y es Geany.<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">Geany es un editor para diferentes lenguajes de programaci\u00f3n, pero para el que m\u00e1s se utiliza es C, o C++, gtk, vala, etc.<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">Instalar geany en Fedora es con el siguiente comando:<\/div>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"font-family: Verdana, sans-serif;\"><b><span style=\"color: white;\">sudo dnf<\/span><\/b><\/span><span style=\"background-color: transparent;\"><b><span style=\"color: white;\"> -y install geany<\/span><\/b><\/span><\/pre>\n<div style=\"text-align: justify;\">Configurar Genay para compilar archivos .c utilizando gtk dentro del c\u00f3digo de c, se configura de la siguiente manera. Ir a la barra de herramientas como se muestra en la siguiente imagen:<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">Obviamente hay que instalar gtk-devel para desarrollar y compilar en gtk.<\/div>\n<div style=\"text-align: justify;\">&nbsp;<\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/4.bp.blogspot.com\/-RglLDuPAh7I\/VrgT1v13wtI\/AAAAAAAABrE\/APTMG7LmKOQ\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-02-07%2B22-08-25.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"478\" src=\"https:\/\/4.bp.blogspot.com\/-RglLDuPAh7I\/VrgT1v13wtI\/AAAAAAAABrE\/APTMG7LmKOQ\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2016-02-07%2B22-08-25.png\" width=\"640\" \/><\/a><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">Ahora, agregar las sentencias:<\/div>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"font-family: Verdana, sans-serif;\"><b><span style=\"color: white;\">`pkg-config --cflags --libs gtk+-2.0`<\/span><\/b><\/span><span style=\"background-color: transparent;\"><b><span style=\"color: white;\"><\/span><\/b><\/span><\/pre>\n<div style=\"text-align: justify;\">Al final de los campos de Compile y Build. Como se muestra en la imagen siguiente.<\/div>\n<p><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/3.bp.blogspot.com\/-Qq_3uW3DGzs\/VrgSfZQtPdI\/AAAAAAAABq4\/h2BsO-5cevI\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-02-07%2B21-59-22.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"332\" src=\"https:\/\/3.bp.blogspot.com\/-Qq_3uW3DGzs\/VrgSfZQtPdI\/AAAAAAAABq4\/h2BsO-5cevI\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2016-02-07%2B21-59-22.png\" width=\"640\" \/><\/a><\/div>\n<p><\/p>\n<div style=\"text-align: justify;\">Para compilar archivos gtk utilizando archivos .vala, primero es necesario instalar vala-devel adem\u00e1s de instalar gtk, ya sea en la versi\u00f3n gtk+2 o 3.<\/div>\n<div style=\"text-align: justify;\">Luego modificar los comandos de compilar en geany.<\/div>\n<div style=\"text-align: justify;\">Agregar la instrucci\u00f3n:<\/div>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"font-family: Verdana, sans-serif;\"><b><span style=\"color: white;\">--pkg gtk+-3.0<\/span><\/b><\/span><\/pre>\n<div style=\"text-align: justify;\">o agregar la versi\u00f3n de gtk que est\u00e9n utilizando.<\/div>\n<p><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/2.bp.blogspot.com\/-JECrNOVbTv4\/VrgSfKSKSBI\/AAAAAAAABq0\/FFfB2S7vrRc\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-02-07%2B21-59-31.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"356\" src=\"https:\/\/2.bp.blogspot.com\/-JECrNOVbTv4\/VrgSfKSKSBI\/AAAAAAAABq0\/FFfB2S7vrRc\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2016-02-07%2B21-59-31.png\" width=\"640\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<p>A partir de ahora ya pueden compilar con un solo clic desde geany. Siempre tendr\u00e1n la opci\u00f3n de la terminal. Pero pues, es solo una opci\u00f3n desde geany, ya saben lo que dicen, en gustos se rompen g\u00e9neros.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Compilar archivos es tedioso cuando se hace desde la terminal, sobre todo si hay que indicar una larga lista de bibliotecas adiciobales, como por ejemplo, allegro, lncurses, gtk, etc.&nbsp; Compilar ye ejecutarlo desde un solo editor tan solo danto clic en un s\u00f3lo bot\u00f3n ser\u00eda m\u00e1s simple y m\u00e1s f\u00e1cil. Econtr\u00e9 un editor en el [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[76,81,801,800,7,803,4,802,804],"tags":[],"class_list":["post-1648","post","type-post","status-publish","format-standard","hentry","category-c","category-compilar","category-compile","category-compile-from-geany","category-fedora","category-geany","category-linux","category-lncurses","category-vala"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1648","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/comments?post=1648"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1648\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}