Skip to content

Compilation fails with errors during CMake #33

@dto

Description

@dto

~/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 $

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions