<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Bruno,<br><br>As Gabriel is telling you, you must be very careful with paths. Here is my pc file for directfb, called directfb.pc and located at /opt/STM/STLinux-2.3/devkit/sh4/target/usr/lib/pkgconfig.<br><br><span style="font-family: courier,monaco,monospace,sans-serif;">prefix=/opt/STM/STLinux-2.3/devkit/sh4/target/usr</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">exec_prefix=${prefix}</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">libdir=${prefix}/lib</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">includedir=${prefix}/include</span><br style="font-family: courier,monaco,monospace,sans-serif;"><br
style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">Name: DirectFB</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">Description: Graphics and windowing library for the Linux frame buffer device</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">Version: 1.0.1</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">Requires: fusion direct</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">Libs: -L${libdir} -ldirectfb -lpthread -ldl -lz</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family:
courier,monaco,monospace,sans-serif;">Cflags: -D_REENTRANT -I${prefix}/include/directfb</span><br><br>According to this, you should have a similar file called boost.pc that looks like this:<br><br><span style="font-family: courier,monaco,monospace,sans-serif;">prefix=</span><span style="font-family: courier,monaco,monospace,sans-serif;">/opt/STM/STLinux-2.3/devkit/sh4/target/usr</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">exec_prefix=${prefix}</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">libdir=${exec_prefix}/lib</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">includedir=${prefix}/include</span><br style="font-family: courier,monaco,monospace,sans-serif;"><br style="font-family:
courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">Name: boost</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">Description: Boost library</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">Version: 1.40.0</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">Requires: </span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">Conflicts:</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">Libs: </span><br><span style="font-family: courier,monaco,monospace,sans-serif;"><br><span style="font-family:
arial,helvetica,sans-serif;">I suppose you have libraries in "/opt/STM/STLinux-2.3/devkit/sh4/target/usr</span></span>/lib" and headers in<span style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"> "/opt/STM/STLinux-2.3/devkit/sh4/target/usr</span></span>/include".<br><br>Remember you will also need a "pc" file for each of the boost libraries.<br><br>You could also ask for support here:<br><br><a href="https://bugzilla.stlinux.com/">https://bugzilla.stlinux.com/</a><br style="font-family: arial,helvetica,sans-serif;"><br>Hope this help you!<br><br>Greetings,<br>Ezequiel.<br><br>--- El <b>vie 25-feb-11, Gabriel Boiero <i><gabriel.boiero@gmail.com></i></b> escribi�:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>De: Gabriel Boiero <gabriel.boiero@gmail.com><br>Asunto: Re: [Ginga-hackers] Cross-compiling the ginga-ar to st
plataform.<br>Para: "Lista de developers y hackers de Ginga, en espa�, �, ol" <ginga-hackers@lists.ourproject.org><br>Cc: "Bruno Seabra Lima" <bslima@telemidia.puc-rio.br><br>Fecha: viernes, 25 de febrero de 2011, 16:41<br><br><div class="plainMail">Hello Bruno,<br><br>Be careful with the paths, you are using all paths with references to<br>your host environment, not the target environment (STM). All your<br>pkgconfig files inside your /opt/STM dir should have to ponit to libs<br>and headers inside the /opt too. It is a common issue that all<br>downloaded and precompiled libraries for STM have wrong paths, they<br>are intended to be used directly in the target architecture, not for<br>cross compiling, check this paths and others that could have the same<br>wrong paths inside in the remaining pkg config files. Also check all<br>".la" files, they usually have the same issue.<br><br>Best regards,<br><br>Gabriel.<br><br>LIFIA - Universidad
Nacional de La Plata<br><br><br><br>2011/2/25 Bruno Seabra Lima <<a ymailto="mailto:bslima@telemidia.puc-rio.br" href="/mc/compose?to=bslima@telemidia.puc-rio.br">bslima@telemidia.puc-rio.br</a>>:<br>> I tried to that:<br>><br>> prefix=/usr/local<br>> exec_prefix=${prefix}<br>> libdir=${prefix}/lib<br>> sharedlibdir=${libdir}<br>> includedir=${prefix}/include<br>><br>> Name: boost<br>> Description: boost c++<br>> Version: 1.4.6<br>><br>> Requires:<br>> Libs: -L${libdir} -L${sharedlibdir} -lboost<br>> Cflags: -I${includedir}<br>><br>> --- But still if no lucky =/ does anyone has the boost pkgconfig file to<br>> give me some tips ?<br>><br>> Thanks.<br>><br>> Bruno Seabra Mendon�a Lima<br>> --------------<br>> Bacharel em Ci�ncia da Computa��o - UFMA<br>> Mestrando da PUC-Rio<br>> Pesquisador Laborat�rio Telemidia (PUC-Rio)<br>> Pesquisador Colaborador LAWS
(UFMA)<br>> Pesquisador/Desenvolvedor Intacto Software<br>> -------------<br>> www.bslima.com<br>><br>><br>> On Fri, Feb 25, 2011 at 12:09 PM, Arturo Zambrano<br>> <<a ymailto="mailto:arturo@lifia.info.unlp.edu.ar" href="/mc/compose?to=arturo@lifia.info.unlp.edu.ar">arturo@lifia.info.unlp.edu.ar</a>> wrote:<br>>><br>>> Defining the pkgconfig file?<br>>><br>>> On Fri, Feb 25, 2011 at 10:57 AM, Bruno Seabra Lima<br>>> <<a ymailto="mailto:bslima@telemidia.puc-rio.br" href="/mc/compose?to=bslima@telemidia.puc-rio.br">bslima@telemidia.puc-rio.br</a>> wrote:<br>>>><br>>>> Sorry to be posting in english, but my spanish sucks a lot ...<br>>>> I'm trying to compile the ginga-ar to the ST plataform, but i got an<br>>>> error on the boost library.<br>>>> It cant find the boost library pkgconfig, but researching in the web the<br>>>> boost lib doesnt
have support for<br>>>> pkgconfig, so how can i bypass this problem ?<br>>>><br>>>> Att,<br>>>> ============<br>>>> -- The C compiler identification is GNU<br>>>> -- The CXX compiler identification is GNU<br>>>> -- Check for working C compiler:<br>>>> /opt/STM/STLinux-2.4/devkit/sh4/bin/sh4-linux-gcc<br>>>> -- Check for working C compiler:<br>>>> /opt/STM/STLinux-2.4/devkit/sh4/bin/sh4-linux-gcc -- works<br>>>> -- Detecting C compiler ABI info<br>>>> -- Detecting C compiler ABI info - done<br>>>> -- Check for working CXX compiler:<br>>>> /opt/STM/STLinux-2.4/devkit/sh4/bin/sh4-linux-g++<br>>>> -- Check for working CXX compiler:<br>>>> /opt/STM/STLinux-2.4/devkit/sh4/bin/sh4-linux-g++ -- works<br>>>> -- Detecting CXX compiler ABI info<br>>>> -- Detecting CXX compiler ABI info -
done<br>>>> -- Could NOT find Boost<br>>>> -- checking for module 'boost>=1.40.0'<br>>>> -- package 'boost>=1.40.0' not found<br>>>> CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:266<br>>>> (message):<br>>>> A required package was not found<br>>>> Call Stack (most recent call first):<br>>>> /usr/share/cmake/Modules/FindPkgConfig.cmake:320<br>>>> (_pkg_check_modules_internal)<br>>>><br>>>> /home/raptor7/Downloads/ginga.ar/tags/release/1.1.0/src/CMakeModules/AddBoost.cmake:6<br>>>> (PKG_CHECK_MODULES)<br>>>> CMakeLists.txt:35 (ADD_BOOST)<br>>>> ======================<br>>>> Bruno Seabra Mendon�a Lima<br>>>> --------------<br>>>> Bacharel em Ci�ncia da Computa��o - UFMA<br>>>> Mestrando da PUC-Rio<br>>>>
Pesquisador Laborat�rio Telemidia (PUC-Rio)<br>>>> Pesquisador Colaborador LAWS (UFMA)<br>>>> Pesquisador/Desenvolvedor Intacto Software<br>>>> -------------<br>>>> www.bslima.com<br>>>><br>>>> _______________________________________________<br>>>> Ginga-hackers mailing list<br>>>> <a ymailto="mailto:Ginga-hackers@lists.ourproject.org" href="/mc/compose?to=Ginga-hackers@lists.ourproject.org">Ginga-hackers@lists.ourproject.org</a><br>>>> <a href="https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-hackers" target="_blank">https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-hackers</a><br>>>><br>>><br>><br>><br>> _______________________________________________<br>> Ginga-hackers mailing list<br>> <a ymailto="mailto:Ginga-hackers@lists.ourproject.org"
href="/mc/compose?to=Ginga-hackers@lists.ourproject.org">Ginga-hackers@lists.ourproject.org</a><br>> <a href="https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-hackers" target="_blank">https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-hackers</a><br>><br>><br><br>_______________________________________________<br>Ginga-hackers mailing list<br><a ymailto="mailto:Ginga-hackers@lists.ourproject.org" href="/mc/compose?to=Ginga-hackers@lists.ourproject.org">Ginga-hackers@lists.ourproject.org</a><br><a href="https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-hackers" target="_blank">https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-hackers</a><br></div></blockquote></td></tr></table><br>