Re: [hatari-devel] cmake and cross-compiling

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


On 30/12/2012 23:05, Christer Solskogen wrote:
On Sun, Dec 30, 2012 at 10:51 PM, Nicolas Pomarède
<npomarede@xxxxxxxxxxxx> wrote:

What is the content of /home/solskogen/obj/cross-mingw-w64 and what value do
you use manually to make it work ?


ls /home/solskogen/obj/cross-mingw-w64
bin  include  lib  libexec  mingw  x86_64-w64-mingw32
(mingw is a symlink to x86_64-w64-mingw32)

What is the detected value of CMAKE_FIND_ROOT_PATH in
Toolchain-mingw32.cmake ? On line 24, add sthg like :

message ( "new root is ${CMAKE_FIND_ROOT_PATH} );


new root is /data/home/solskogen/obj/cross-mingw-w64/bin/../../cross-mingw-w64/mingw/

ls  /data/home/solskogen/obj/cross-mingw-w64/bin/../../cross-mingw-w64/mingw/
bin  include  lib  pkgconfig  share
(which is the sysroot where the mingw64 headers, and libraries are)


I don't have the same directory structure ; "gcc -print-sysroot" gives me "/usr/i586-pc-mingw32/sys-root/"

ll /usr/i586-pc-mingw32/sys-root/
drwxr-xr-x 6 root root 52 déc.  10  2010 mingw/

ll /usr/i586-pc-mingw32/sys-root/mingw/
drwxr-xr-x 2 root root 4096 déc.  14  2010 bin/
drwxr-xr-x 8 root root 8192 août  24 13:40 include/
drwxr-xr-x 3 root root 8192 août  24 19:02 lib/
drwxr-xr-x 6 root root   51 déc.  10  2010 share/

I think you should change your "mingw" link to "../cross-mingw-w64" (or to whatever value you need to get the same path that works when you set it manually, there's no reason it can't be changed to match)

Nicolas




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/