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

field ‘fContext’ has incomplete type ‘DGL::GraphicsContext’ #67

Open
russnes opened this issue Dec 30, 2020 · 10 comments
Open

field ‘fContext’ has incomplete type ‘DGL::GraphicsContext’ #67

russnes opened this issue Dec 30, 2020 · 10 comments

Comments

@russnes
Copy link

russnes commented Dec 30, 2020

Dear all

I've tried building the project on both Debian 10 and Ubuntu 20.04, both pretty much fresh installs with the steps detailed in the Wiki under Building on Linux.

Here's of a copy of the steps:

$ sudo apt-get install build-essential git ruby libtool libmxml-dev automake cmake libfftw3-dev libjack-jackd2-dev liblo-dev libz-dev libasound2-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libcairo2-dev libfontconfig1-dev bison
$ git clone https://github.com/zynaddsubfx/zyn-fusion-build
$ cd zyn-fusion-build
$ ruby build-linux.rb
$ tar -jxvf zyn-fusion-linux-64bit-3.0.3-patch1-release.tar.bz2
$ cd zyn-fusion
$ sudo bash ./install-linux.sh

Unfortunately I cannot complete the step ruby build-linux.rb. The error as shown below is the cause.

.
.
[ 89%] Building CXX object src/Plugin/Reverb/CMakeFiles/ZynReverb_lv2.dir/__/__/__/DPF/distrho/DistrhoPluginMain.cpp.o                                                          
[ 89%] Building CXX object src/Plugin/Reverb/CMakeFiles/ZynReverb_lv2.dir/Reverb.cpp.o
[ 90%] Linking CXX shared library lv2/ZynReverb.so
Generate ttl data for '/home/baka/workspace/zyn-fusion-build/build-zynaddsubfx-demo/src/Plugin/Reverb/lv2/ZynReverb.so', basename: 'ZynReverb'
Writing manifest.ttl... done!
Writing ZynReverb.ttl... done!
Writing presets.ttl... done!
[ 90%] Built target ZynReverb_lv2
Scanning dependencies of target ZynAddSubFX_vst
[ 90%] Building CXX object src/Plugin/ZynAddSubFX/CMakeFiles/ZynAddSubFX_vst.dir/__/__/globals.cpp.o                                                                            
[ 91%] Building CXX object src/Plugin/ZynAddSubFX/CMakeFiles/ZynAddSubFX_vst.dir/__/__/UI/ConnectionDummy.cpp.o
[ 91%] Building CXX object src/Plugin/ZynAddSubFX/CMakeFiles/ZynAddSubFX_vst.dir/__/__/__/DPF/distrho/DistrhoPluginMain.cpp.o
[ 92%] Building CXX object src/Plugin/ZynAddSubFX/CMakeFiles/ZynAddSubFX_vst.dir/__/__/__/DPF/distrho/DistrhoUIMain.cpp.o
[ 92%] Building CXX object src/Plugin/ZynAddSubFX/CMakeFiles/ZynAddSubFX_vst.dir/__/__/__/DPF/dgl/src/Geometry.cpp.o
[ 92%] Building CXX object src/Plugin/ZynAddSubFX/CMakeFiles/ZynAddSubFX_vst.dir/__/__/__/DPF/dgl/src/Widget.cpp.o
[ 93%] Building CXX object src/Plugin/ZynAddSubFX/CMakeFiles/ZynAddSubFX_vst.dir/__/__/__/DPF/dgl/src/Window.cpp.o
/home/baka/workspace/zyn-fusion-build/zynaddsubfx/DPF/dgl/src/Window.cpp:1226:21: error: field ‘fContext’ has incomplete type ‘DGL::GraphicsContext’
1226 |     GraphicsContext fContext;
    |                     ^~~~~~~~
In file included from /home/baka/workspace/zyn-fusion-build/zynaddsubfx/DPF/dgl/src/Window.cpp:22:
/home/baka/workspace/zyn-fusion-build/zynaddsubfx/DPF/dgl/src/../Base.hpp:95:8: note: forward declaration of ‘struct DGL::GraphicsContext’
95 | struct GraphicsContext;
    |        ^~~~~~~~~~~~~~~
make[2]: *** [src/Plugin/ZynAddSubFX/CMakeFiles/ZynAddSubFX_vst.dir/build.make:141: src/Plugin/ZynAddSubFX/CMakeFiles/ZynAddSubFX_vst.dir/__/__/__/DPF/dgl/src/Window.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2766: src/Plugin/ZynAddSubFX/CMakeFiles/ZynAddSubFX_vst.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
ERROR: 'make' failed
@fundamental
Copy link
Member

@JohannesLorenz You recently encountered some warnings with this part of DPF, right?

@voland62
Copy link

voland62 commented Jan 1, 2021

Same issue...

@JohannesLorenz
Copy link

Sorry, I thought I had answered already.

I had this issue. The solution was to simply remove the cmake cache (or better, the whole build dir) and then to do a complete rebuild. Does this solve it for anyone?

@russnes
Copy link
Author

russnes commented Jan 1, 2021

I just tried it again in a fresh clone of the repository, but unfortunately with the same result.

@JohannesLorenz
Copy link

Confirmed error here (ArchLinux) with build-linux.rb. However, with only zyn, it works for me:

git clone [email protected]:zynaddsubfx/zynaddsubfx.git
cd zynaddsubfx/
git submodule update --init --recursive
mkdir build
cd build/
cmake ..
make -j 4

Does this work for you, too?

fundamental added a commit to zynaddsubfx/zynaddsubfx that referenced this issue Jan 2, 2021
Should resolve regression introduced in commit
edf59cd
Should resolve corresponding issue with partially defined 'fContext'
zynaddsubfx/zyn-fusion-build#67
@fundamental
Copy link
Member

I can confirm that there was an issue (only triggered with the zest GUI build). There appears to be some hang up in terms of generating out one of the .ttl files. Hopefully this will be resolved in the next hour or so.

@russnes
Copy link
Author

russnes commented Jan 3, 2021

Perhaps the build script could target specific commits or release packages on its dependencies to avoid sudden breaking

@fundamental
Copy link
Member

Perhaps the build script could target specific commits or release packages on its dependencies to avoid sudden breaking

It does. A new version of one dependency was pinned as it looked like one of the build configs was fine, but the tested build config is not the one packaged by these scripts.

@fundamental
Copy link
Member

Build is working again on my end (at least for the build-linux.rb script). Let me know if there are remaining problems, but for now I'll close the issue.

@fundamental
Copy link
Member

ok, looks like there's still some residual issues with the DPF version. I'll revert that and confirm that the GUI works in LV2 at least before closing this again.

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

4 participants