Compiling WinRottGL with winelib under Arch Linux

Questions about Wine on Linux
Locked
stvincent
Newbie
Newbie
Posts: 1
Joined: Wed Jan 22, 2020 10:57 am

Compiling WinRottGL with winelib under Arch Linux

Post by stvincent »

Hello,

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
I had some casing issue, and some minor tweaks that I had to do by hand, but nothing serious.

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
However, I'm running in an error that I can't manage to fix:

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
Does anyone have ever ran into that kind of issue? Do you have any idea to solve it?

If you need additional information, please let me know.

Best regards
Locked