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