{"id":679,"date":"2014-11-09T00:51:44","date_gmt":"2014-11-09T00:51:44","guid":{"rendered":"http:\/\/adrhc.go.ro\/wordpress\/?p=679"},"modified":"2017-10-07T17:25:53","modified_gmt":"2017-10-07T15:25:53","slug":"compiling-libgd-2-1-0","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/compiling-libgd-2-1-0\/","title":{"rendered":"Compiling libgd 2.1.0"},"content":{"rendered":"<pre class=\"brush:bash shell;toolbar: false\">\r\nexport BUILD_FLAGS=\"-march=armv5te -pthread -O2 -lintl -Wall -DNDEBUG -DLINUX -I\/ffp\/include\"\r\nexport LDFLAGS=\"-L\/ffp\/lib -lintl\"\r\nexport CPPFLAGS=\"$BUILD_FLAGS\"\r\nexport CXXFLAGS=\"$BUILD_FLAGS\"\r\nexport CFLAGS=\"$BUILD_FLAGS\"\r\nexport LC_ALL=POSIX\r\n\r\ncd ~\/compile\/libgd-2.1.0\r\n\r\nERROR1:\r\n\tceva cu ceill (atentie, sunt 2x l la final)\r\nSOLUTION:\r\n\tfind . -name gd_bmp.c -exec sed -i s\/\"ceill\"\/\"ceil\"\/ {} \\;\r\n\r\n.\/configure --prefix=\/ffp --with-libiconv-prefix=\/ffp --with-zlib=\/ffp --with-png=\/ffp --with-freetype=\/ffp --with-fontconfig=\/ffp --with-jpeg=\/ffp --with-tiff=\/ffp\r\n~\/x.sh ffpg\r\nnohup \/ffp\/bin\/make -C ~\/compile\/libgd-2.1.0 &\r\n\r\n\r\n#~\/x.sh ffpg\r\nfind . -type f ! -name \"*.txt\" \\( \\\r\n        -exec sed -i s\/\"\\\/bin\\\/arch\"\/\"\\\/ffp\\\/bin\\\/arch\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/bin\\\/bash\"\/\"\\\/ffp\\\/bin\\\/bash\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/bin\\\/cc\"\/\"\\\/ffp\\\/bin\\\/cc\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/bin\\\/chmod\"\/\"\\\/ffp\\\/bin\\\/chmod\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/bin\\\/date\"\/\"\\\/ffp\\\/bin\\\/date\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/bin\\\/echo\"\/\"\\\/ffp\\\/bin\\\/echo\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/bin\\\/env\"\/\"\\\/ffp\\\/bin\\\/env\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/bin\\\/file\"\/\"\\\/ffp\\\/bin\\\/file\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/bin\\\/install\"\/\"\\\/ffp\\\/bin\\\/install\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/bin\\\/ln\"\/\"\\\/ffp\\\/bin\\\/ln\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/bin\\\/ls\"\/\"\\\/ffp\\\/bin\\\/ls\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/bin\\\/pwd\"\/\"\\\/ffp\\\/bin\\\/pwd\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/bin\\\/sed\"\/\"\\\/ffp\\\/bin\\\/sed\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/bin\\\/sh\"\/\"\\\/ffp\\\/bin\\\/sh\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/bin\\\/tr\"\/\"\\\/ffp\\\/bin\\\/tr\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/bin\\\/uname\"\/\"\\\/ffp\\\/bin\\\/uname\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/sbin\\\/install\"\/\"\\\/ffp\\\/bin\\\/install\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/sbin\\\/ldconfig\"\/\"\\\/ffp\\\/sbin\\\/ldconfig\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/sbin\\\/sysctl\"\/\"\\\/ffp\\\/sbin\\\/sysctl\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/sbin\\\/\\$sysctl\"\/\"\\\/ffp\\\/sbin\\\/\\$sysctl\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/usr\\\/bin\"\/\"\\\/ffp\\\/bin\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/usr\\\/include\"\/\"\\\/ffp\\\/include\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/usr\\\/lib\"\/\"\\\/ffp\\\/lib\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/usr\\\/local\"\/\"\\\/ffp\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/usr\\\/make\"\/\"\\\/ffp\\\/bin\\\/make\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/usr\\\/sbin\\\/install\"\/\"\\\/ffp\\\/bin\\\/install\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/usr\\\/sbin\\\/lsattr\"\/\"\\\/ffp\\\/bin\\\/lsattr\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/usr\\\/sbin\\\/lsdev\"\/\"\\\/ffp\\\/bin\\\/lsdev\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/usr\\\/sbin\\\/sysctl\"\/\"\\\/ffp\\\/sbin\\\/sysctl\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/usr\\\/sbin\\\/\\$sysctl\"\/\"\\\/ffp\\\/sbin\\\/\\$sysctl\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/usr\\\/ffp\"\/\"\\\/ffp\"\/g {} \\; , \\\r\n        -exec sed -i s\/\"\\\/ffp\\\/ffp\"\/\"\\\/ffp\"\/g {} \\; \\\r\n    \\)\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>export BUILD_FLAGS=&#8221;-march=armv5te -pthread -O2 -lintl -Wall -DNDEBUG -DLINUX -I\/ffp\/include&#8221; export LDFLAGS=&#8221;-L\/ffp\/lib -lintl&#8221; export CPPFLAGS=&#8221;$BUILD_FLAGS&#8221; export CXXFLAGS=&#8221;$BUILD_FLAGS&#8221; export CFLAGS=&#8221;$BUILD_FLAGS&#8221; export LC_ALL=POSIX cd ~\/compile\/libgd-2.1.0 ERROR1: ceva cu ceill (atentie, sunt 2x l la final) SOLUTION: find . -name gd_bmp.c -exec sed -i [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/compiling-libgd-2-1-0\/#more-679\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Compiling libgd 2.1.0<\/span><\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,11,163],"tags":[],"class_list":["post-679","post","type-post","status-publish","format-standard","hentry","category-compiling-from-source","category-linux","category-nsa310"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/comments?post=679"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/679\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}