I've tried to compile WinRottGL 1.74 on Arch Linux: http://www.riseofthetriad.dk/WinRottGL_ ... 4_src_.zip
I have followed the Winelib User's Guide (https://wiki.winehq.org/Winelib_User%27s_Guide).
I ran winemaker with the following options in order to take the msvcrt includes into account:
Code: Select all
winemaker -I\$(WINELIB_INCLUDE_ROOT)/msvcrt GL_WinRott.vcproj
My Makefile had some minor modifications as well:
Code: Select all
CEXTRA = -w -fpermissive -mno-cygwin
CXXEXTRA = -w -fpermissive -mno-cygwin
DEFINES = -DWIN32,NDEBUG,_WINDOWS -D__GNUC__ -DPLATFORM_WIN32 -DUSE_SDL -DUSE_OPENGL
INCLUDE_PATH = -I../glut \
-I../../include \
-I/usr/include/wine/msvcrt \
-IH_Files \
-Iassimp/assimp--2.0.863-sdk/include
Code: Select all
In file included from H_Files/rt_util.h:121,
from C_Files/bots.c:50:
/usr/include/wine/msvcrt/io.h:176:20: error: ‘open’ aliased to undefined symbol ‘_open’
176 | extern int WINAPIV open(const char*,int,...) __attribute__((alias("_open")));
| ^~~~
/usr/include/wine/msvcrt/io.h:177:20: error: ‘sopen’ aliased to undefined symbol ‘_sopen’
177 | extern int WINAPIV sopen(const char*,int,int,...) __attribute__((alias("_sopen")));
| ^~~~~
winegcc: gcc failed
If you need additional information, please let me know.
Best regards