Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

error: request for member 'getProcAddress<PFN_vkGetInstanceProcAddr>' in 'dl', which is of pointer type 'VkInstance_T* const' (maybe you meant to use '->' ?) #83

Description

@Martinfx

Hi,
i tried to build project on FreeBSD 14.1 amd64 and i have problem with this:

g++13 -c -O2 -pipe -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -Wl,-rpath=/usr/local/lib/gcc13 -std=gnu++1z -Wall -Wextra -pthread -fPIC -DVERSION_MAJOR=0 -DVERSION_MINOR=2 -DVERSION_BUILD=1 -DQT_DISABLE_DEPRECATED_BEFORE=0x050F00 -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/local/include/qt5 -I/usr/local/include/qt5/QtWidgets -I/usr/local/include/qt5/QtGui -I/usr/local/include/qt5/QtCore -I. -I/usr/local/include -I. -I/usr/local/include -I/usr/local/lib/qt5/mkspecs/freebsd-g++ -o viewerstatusbar.o src/viewerstatusbar.cpp
src/viewerstatusbar.cpp: In member function 'QString Cascade::ViewerStatusBar::getViewerSettings()':
src/viewerstatusbar.cpp:146:10: warning: variable 'viewerSplit' set but not used [-Wunused-but-set-variable]
  146 |     bool viewerSplit = mSplit;
      |          ^~~~~~~~~~~
g++13 -c -O2 -pipe -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 -Wl,-rpath=/usr/local/lib/gcc13 -std=gnu++1z -Wall -Wextra -pthread -fPIC -DVERSION_MAJOR=0 -DVERSION_MINOR=2 -DVERSION_BUILD=1 -DQT_DISABLE_DEPRECATED_BEFORE=0x050F00 -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/local/include/qt5 -I/usr/local/include/qt5/QtWidgets -I/usr/local/include/qt5/QtGui -I/usr/local/include/qt5/QtCore -I. -I/usr/local/include -I. -I/usr/local/include -I/usr/local/lib/qt5/mkspecs/freebsd-g++ -o vulkanview.o src/vulkanview.cpp
In file included from src/renderer/vulkanhppinclude.h:25,
                 from src/renderer/renderconfig.h:26,
                 from src/renderer/vulkanrenderer.h:33,
                 from src/vulkanview.cpp:27:
/usr/local/include/vulkan/vulkan.hpp: In instantiation of 'void vk::DispatchLoaderDynamic::init(const DynamicLoader&) [with DynamicLoader = VkInstance_T*]':
src/vulkanview.cpp:59:39:   required from here
/usr/local/include/vulkan/vulkan.hpp:18350:67: error: request for member 'getProcAddress<PFN_vkGetInstanceProcAddr>' in 'dl', which is of pointer type 'VkInstance_T* const' (maybe you meant to use '->' ?)
18350 |       PFN_vkGetInstanceProcAddr getInstanceProcAddr = dl.template getProcAddress<PFN_vkGetInstanceProcAddr>( "vkGetInstanceProcAddr" );

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions