{"id":1657,"date":"2016-01-17T23:44:00","date_gmt":"2016-01-18T05:44:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/establecer-gnome-terminal-en-geany\/"},"modified":"2016-01-17T23:44:00","modified_gmt":"2016-01-18T05:44:00","slug":"establecer-gnome-terminal-en-geany","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/establecer-gnome-terminal-en-geany\/","title":{"rendered":"Establecer gnome-terminal en Geany"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<h2>Geany <\/h2>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/3.bp.blogspot.com\/-FO6uKVbT3j8\/VdQDf5-JMgI\/AAAAAAAABQM\/Rdwy8b9weSA\/s1600\/images.duckduckgo.com.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/3.bp.blogspot.com\/-FO6uKVbT3j8\/VdQDf5-JMgI\/AAAAAAAABQM\/Rdwy8b9weSA\/s1600\/images.duckduckgo.com.png\" \/><\/a><\/div>\n<div style=\"text-align: justify;\">Geany es un editor de texto peque\u00f1o y ligero basado en Scintilla con caracter\u00edsticas b\u00e1sicas de entorno de desarrollo integrado (IDE). Utiliza bibliotecas GTK para su funcionamiento. Est\u00e1 disponible para distintos sistemas operativos, como GNU\/Linux, Mac OS X, BSD, Solaris y Microsoft Windows. Es distribuido como software libre bajo la Licencia P\u00fablica General de GNU.&nbsp;<\/div>\n<div style=\"text-align: right;\"><a href=\"http:\/\/www.geany.org\/\">http:\/\/www.geany.org\/<\/a><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">Este editor viene en los repositorios en casi la mayor\u00eda de las distros linux, es mi favorito en cuando a programaci\u00f3n en C, C#, gtk+, o en la utilizaci\u00f3n de ncurses o librer\u00edas peque\u00f1as que no requieren un entorno completo de programaci\u00f3n.<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">Hoy les voy a ense\u00f1ar como configurarlo para compilar programas de GTK utilizando geany, de echo lo pueden utilizar para diversos programas como c++, c, gtk, etc.<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<h3 style=\"text-align: justify;\">Configurando entorno de ejecuci\u00f3n<\/h3>\n<div style=\"text-align: justify;\">La configuraci\u00f3n es realmente sencilla, como ya han de saber, para compilar un proyecto de por ejemplo, hola.vala, que ahora utiliza GTK+, desde consola se hace de la siguiente manera:<\/div>\n<pre style=\"background: none no-repeat scroll 0% 0% rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); font-family: &quot;Droid Sans Mono&quot;,Consolas,monospace; font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-align: start; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: white;\">valac -g --save-temps debug-demo.vala<\/span><\/pre>\n<div style=\"text-align: justify;\">Pero, para agregar eso en geany se hace de la siguiente manera:<\/div>\n<div style=\"text-align: justify;\">Ir al <b>Men\u00fa-&gt;Construir-&gt;Establecer comandos de construcci\u00f3n<\/b> y agregar <b>valac -c \u00ab%f\u00bb &#8211;pkg gtk+-3.0<\/b> y <b>valac \u00ab%f\u00bb &#8211;pkg gtk+-3.0<\/b> como se muestra en la imagen siguiente:<\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/3.bp.blogspot.com\/-vSKWcgazhYQ\/VdQFAp7YXbI\/AAAAAAAABQY\/YmxwBuMbyvY\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-08-18%2B23-08-24.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"524\" src=\"http:\/\/3.bp.blogspot.com\/-vSKWcgazhYQ\/VdQFAp7YXbI\/AAAAAAAABQY\/YmxwBuMbyvY\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2015-08-18%2B23-08-24.png\" width=\"640\" \/><\/a><\/div>\n<div style=\"text-align: justify;\">Y con eso queda listo y configurado Geany para compilar y ejecutar archivos de vala con GTK+, de hecho, si quisieran agregar m\u00e1s comandos de compilaci\u00f3n, todo lo que hay que hacer es agregarlos en las filas que se agregaron las instrucciones y con eso podr\u00e1n compilar con un solo clic.<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">Adicionalmente pueden modificar la terminal que se muestra durante la compilaci\u00f3n, por ejemplo, en el men\u00fa <b>Editar-&gt;Preferencias-&gt;Herramientas<\/b> y modificar la l\u00ednea <b>xterm -e \u00ab\/bin\/sh\u00bb %c<\/b> por <b>gnome-terminal -x \u00ab\/bin\/sh\u00bb %c<\/b> como se muestra en la imagen:<\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/3.bp.blogspot.com\/-YuiPUaGf6jk\/VdQGLvcIryI\/AAAAAAAABQk\/ukoHYFsywrM\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-08-17%2B23-31-57.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"528\" src=\"http:\/\/3.bp.blogspot.com\/-YuiPUaGf6jk\/VdQGLvcIryI\/AAAAAAAABQk\/ukoHYFsywrM\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2015-08-17%2B23-31-57.png\" width=\"640\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/4.bp.blogspot.com\/-m-scUKR0Wrk\/VdQGasBHg5I\/AAAAAAAABQs\/LEnrg1g2I3Q\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-08-18%2B23-30-08.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"531\" src=\"http:\/\/4.bp.blogspot.com\/-m-scUKR0Wrk\/VdQGasBHg5I\/AAAAAAAABQs\/LEnrg1g2I3Q\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2015-08-18%2B23-30-08.png\" width=\"640\" \/><\/a><\/div>\n<div style=\"text-align: justify;\">Y ahora un ejemplo de compilaci\u00f3n:<\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/4.bp.blogspot.com\/-byLPEzQ82_Y\/VdQG1hCqDGI\/AAAAAAAABQ0\/4C0YM9MzW8E\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2015-08-18%2B23-31-36.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"428\" src=\"http:\/\/4.bp.blogspot.com\/-byLPEzQ82_Y\/VdQG1hCqDGI\/AAAAAAAABQ0\/4C0YM9MzW8E\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2015-08-18%2B23-31-36.png\" width=\"640\" \/><\/a><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">Gracias por visitar&#8230;<\/div>\n<div style=\"text-align: justify;\">M2<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Geany Geany es un editor de texto peque\u00f1o y ligero basado en Scintilla con caracter\u00edsticas b\u00e1sicas de entorno de desarrollo integrado (IDE). Utiliza bibliotecas GTK para su funcionamiento. Est\u00e1 disponible para distintos sistemas operativos, como GNU\/Linux, Mac OS X, BSD, Solaris y Microsoft Windows. Es distribuido como software libre bajo la Licencia P\u00fablica General de [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[836,835,329,803,837,501,327,834],"tags":[],"class_list":["post-1657","post","type-post","status-publish","format-standard","hentry","category-compile-gtk-from-ide-geany","category-compile-gtk-in-geany","category-editor","category-geany","category-gnome-terminal","category-gtk","category-ide","category-set-gnome-terminal-in-geany"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1657","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=1657"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1657\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}