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

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


On 30/12/2012 22:18, Christer Solskogen wrote:
On Sun, Dec 30, 2012 at 10:09 PM, Christer Solskogen
<christer.solskogen@xxxxxxxxx> wrote:
On Sun, Dec 30, 2012 at 7:10 PM, Nicolas Pomarède
<npomarede@xxxxxxxxxxxx> wrote:
But it doesn't solve the "/mingw" part to add or not to the path.



Hm, or maybe.

I get this with the new patch:
-- The C compiler identification is GNU 4.7.3
-- Check for working C compiler:
/home/solskogen/obj/cross-mingw-w64/bin/x86_64-w64-mingw32-gcc
-- Check for working C compiler:
/home/solskogen/obj/cross-mingw-w64/bin/x86_64-w64-mingw32-gcc --
works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Performing Test MUDFLAP_AVAILABLE
-- Performing Test MUDFLAP_AVAILABLE - Failed
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found.
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97
(MESSAGE):
   Could NOT find SDL (missing: SDL_INCLUDE_DIR)
Call Stack (most recent call first):
   /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288
(_FPHSA_FAILURE_MESSAGE)
   /usr/share/cmake-2.8/Modules/FindSDL.cmake:172
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
   CMakeLists.txt:80 (find_package)

But If I set CMAKE_FIND_ROOT_PATH manually, it have no problems
finding the (correct) libraries. Any hints?


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

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} );


Nicolas





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