English Amiga Board


Go Back   English Amiga Board > Support > support.FS-UAE

 
 
Thread Tools
Old 03 April 2020, 05:40   #1
Amiga_1000
Registered User
 
Join Date: Apr 2020
Location: europe
Posts: 5
cross compile problem

Hey there!

First of all thanks to Frode for this great emulator!
So much fun to play the old games with it

Maybe someone can help me with some problems i struggle with?

I am new to cross compile and maybe thats why i am stuck here.
The Win compile is needed coz i like to change some things later for the
windows executable

My attempt to compile the emulator on Linux as ELF executable was successful.

Linux Mint 19.2 with gcc 7.4 everything was fine. Loaded a saved state with command line. Worked!
( Tiny bug here: The F12 menu dosent show up. Only screen bright goes down as expected but no menu at
the right side. But this is not so important for me at the moment)

Next i installed the MinGW packages coz this is what i need as far as i understand

MinGW 32 and 64 bit packages with version number 7.3.0.11ubuntu1

Preparing the 64 bit Windows compile with

./configure --host=x86_64-w64-mingw32

gave me one warning and no errors

configure: WARNING: using cross tools not prefixed with host triplet

and the result

Configuration summary for FS-UAE:

Building for OS: mingw32 ("windows")
Building for CPU: x86_64
Module extension: .dll

LIBMPEG2_CFLAGS: -I/usr/include/mpeg2dec
LIBMPEG2_LIBS: -lmpeg2 -lmpeg2convert
OPENAL_CFLAGS: -I/usr/include/AL
OPENAL_LIBS: -lopenal
OPENGL_CFLAGS: -I/usr/include/libdrm
OPENGL_LIBS: -lGL
OS_CPPFLAGS: -DWINDOWS
OS_LDFLAGS: -mwindows
SDL2_CFLAGS: -D_REENTRANT -I/usr/include/SDL2
SDL2_LIBS: -lSDL2

which seems ok for me . ( Compile for 64bit Windows only one warning )

but make stops very early with this error


In file included from /usr/lib/gcc/i686-w64-mingw32/7.3-win32/include/c++/stdlib.h:36:0,
from /usr/share/mingw-w64/include/combaseapi.h:129,
from /usr/share/mingw-w64/include/objbase.h:14,
from /usr/share/mingw-w64/include/ole2.h:17,
from /usr/share/mingw-w64/include/wtypes.h:12,
from /usr/share/mingw-w64/include/winscard.h:10,
from /usr/share/mingw-w64/include/windows.h:97,
from ./src/od-fs/winuae_compat.h:10,
from ./src/od-fs/defines.h:106,
from ./src/od-fs/sysconfig.h:279,
from src/genlinetoscr.cpp:9:
/usr/lib/gcc/i686-w64-mingw32/7.3-win32/include/c++/cstdlib:158:11: error: ‘::realloc’ has not been declared
using ::realloc;
^~~~~~~
In file included from /usr/share/mingw-w64/include/combaseapi.h:129:0,
from /usr/share/mingw-w64/include/objbase.h:14,
from /usr/share/mingw-w64/include/ole2.h:17,
from /usr/share/mingw-w64/include/wtypes.h:12,
from /usr/share/mingw-w64/include/winscard.h:10,
from /usr/share/mingw-w64/include/windows.h:97,
from ./src/od-fs/winuae_compat.h:10,
from ./src/od-fs/defines.h:106,
from ./src/od-fs/sysconfig.h:279,
from src/genlinetoscr.cpp:9:
/usr/lib/gcc/i686-w64-mingw32/7.3-win32/include/c++/stdlib.h:73:12: error: ‘std::realloc’ has not been declared
using std::realloc;
^~~~~~~
Makefile:4559: recipe for target 'src/genlinetoscr.o' failed
make: *** [src/genlinetoscr.o] Error 1

same error with prepared 32 bit compile

./configure --host=i686-w64-mingw32

Anyone can help with that maybe?

Need more informations?

On another place with another project i read about a namespace problem but to be honest
i dont understand fully what they are writing about maybe thats a pointer?

Thanks in advance
Amiga_1000 is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile Winuae 1.0 or 1.1 theelf_ support.WinUAE 0 16 March 2020 05:52
Help with compile JimDrew Coders. Language 23 30 October 2014 22:42
How compile WinUAE... WCoder support.WinUAE 57 17 April 2014 17:42
GFA compile xc8 Coders. General 31 19 May 2009 18:21
Compile WinUAE ????? Myriel support.WinUAE 14 10 January 2004 17:06

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 13:22.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06477 seconds with 12 queries