Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not build #104

Open
pieceofduke opened this issue Nov 23, 2019 · 2 comments
Open

Does not build #104

pieceofduke opened this issue Nov 23, 2019 · 2 comments

Comments

@pieceofduke
Copy link

While building locally or through aur-helper:

[ 28%] Building CXX object src/host/CMakeFiles/airwave-host-64.dir/host.cpp.o
In file included from /usr/include/wine/windows/objbase.h:258,
                 from /usr/include/wine/windows/ole2.h:25,
                 from /usr/include/wine/windows/wtypes.h:13,
                 from /usr/include/wine/windows/winscard.h:22,
                 from /usr/include/wine/windows/windows.h:70,
                 from /home/duke/.build/airwave/src/host/host.h:7,
                 from /home/duke/.build/airwave/src/host/host.cpp:1:
/usr/include/wine/windows/objidl.h:6100:15: error: ‘union _userSTGMEDIUM::<unnamed struct>::__WIDL_objidl_generated_name_0000000C’ invalid; an anonymous struct may only have public non-static data members [-fpermissive]
 6100 |         union __WIDL_objidl_generated_name_0000000C {
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/duke/.build/airwave/src/host/host.cpp: In member function ‘bool Airwave::Host::initialize(const char*, int)’:
/home/duke/.build/airwave/src/host/host.cpp:63:44: warning: cast between incompatible function types from ‘FARPROC’ {aka ‘long int (__attribute__((ms_abi)) *)()’} to ‘Airwave::VstPluginMainProc’ {aka ‘AEffect* (__attribute__((ms_abi)) *)(long int (__attribute__((ms_abi)) *)(AEffect*, int, int, long int, void*, float))’} [-Wcast-function-type]
   63 |    GetProcAddress(module_, "VSTPluginMain"));
      |                                            ^
/home/duke/.build/airwave/src/host/host.cpp:67:36: warning: cast between incompatible function types from ‘FARPROC’ {aka ‘long int (__attribute__((ms_abi)) *)()’} to ‘Airwave::VstPluginMainProc’ {aka ‘AEffect* (__attribute__((ms_abi)) *)(long int (__attribute__((ms_abi)) *)(AEffect*, int, int, long int, void*, float))’} [-Wcast-function-type]
   67 |     GetProcAddress(module_, "main"));
      |                                    ^
winegcc: g++ failed
make[2]: *** [src/host/CMakeFiles/airwave-host-64.dir/build.make:128: src/host/CMakeFiles/airwave-host-64.dir/host.cpp.o] Error 2
make[1]: *** [CMakeFiles/Makefile2:148: src/host/CMakeFiles/airwave-host-64.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

@ekollof
Copy link

ekollof commented Dec 5, 2019

Put -D__WIDL_objidl_generated_name_0000000C= in the CXXFLAGS and it should build

@ekollof
Copy link

ekollof commented Dec 5, 2019

Pull request here: #105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants