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

Compilation fails with errors during CMake #33

Open
dto opened this issue Jul 30, 2022 · 1 comment
Open

Compilation fails with errors during CMake #33

dto opened this issue Jul 30, 2022 · 1 comment

Comments

@dto
Copy link

dto commented Jul 30, 2022

~/src/openAV-Sorcer $ mkdir build
~/src/openAV-Sorcer $ cd build
~/src/openAV-Sorcer/build $ cmake ..
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'ntk'
-- Found ntk, version 1.3.1001
-- Checking for module 'lv2'
-- Found lv2, version 1.16.0
-- Checking for module 'cairo'
-- Found cairo, version 1.16.0

Sorcer Configuration : 1.1.3

  • Install Directory : /usr/local

-- Configuring done
-- Generating done
-- Build files have been written to: /home/dto/src/openAV-Sorcer/build
~/src/openAV-Sorcer/build $ make
Scanning dependencies of target sorcer
[ 25%] Building CXX object CMakeFiles/sorcer.dir/faust/main.cpp.o
[ 50%] Building CXX object CMakeFiles/sorcer.dir/gui/sorcer_ui.cxx.o
/home/dto/src/openAV-Sorcer/gui/sorcer_ui.cxx:47:46: error: using typedef-name ‘LV2UI_Descriptor’ after ‘struct’
47 | static LV2UI_Handle instantiate(const struct LV2UI_Descriptor * descriptor,
| ^~~~~~~~~~~~~~~~
In file included from /home/dto/src/openAV-Sorcer/gui/sorcer_widget.h:7,
from /home/dto/src/openAV-Sorcer/gui/sorcer_ui.cxx:28:
/usr/lib/lv2/ui.lv2/ui.h:217:3: note: ‘LV2UI_Descriptor’ has a previous declaration here
217 | } LV2UI_Descriptor;
| ^~~~~~~~~~~~~~~~
/home/dto/src/openAV-Sorcer/gui/sorcer_ui.cxx:265:21: error: invalid conversion from ‘void* ()(const int, const char*, const char*, LV2UI_Write_Function, LV2UI_Controller, void**, const LV2_Feature* const*)’ {aka ‘void* ()(const int, const char*, const char*, void ()(void, unsigned int, unsigned int, unsigned int, const void*), void*, void**, const _LV2_Feature* const*)’} to ‘void* ()(const _LV2UI_Descriptor, const char*, const char*, LV2UI_Write_Function, LV2UI_Controller, void**, const LV2_Feature* const*)’ {aka ‘void* ()(const _LV2UI_Descriptor, const char*, const char*, void ()(void, unsigned int, unsigned int, unsigned int, const void*), void*, void**, const _LV2_Feature* const*)’} [-fpermissive]
265 | {SORCER_UI_URI, instantiate, cleanup, port_event, extension_data}
| ^~~~~~~~~~~
| |
| void* ()(const int, const char*, const char*, LV2UI_Write_Function, LV2UI_Controller, void**, const LV2_Feature* const*) {aka void* ()(const int, const char*, const char*, void ()(void, unsigned int, unsigned int, unsigned int, const void*), void*, void**, const _LV2_Feature* const*)}
make[2]: *** [CMakeFiles/sorcer.dir/build.make:76: CMakeFiles/sorcer.dir/gui/sorcer_ui.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/sorcer.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
~/src/openAV-Sorcer/build $

@dto
Copy link
Author

dto commented Aug 1, 2022

When reverting to commit 2e1a600, then compilation succeeds.

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

1 participant