Skip to content

Installation failure: Unknown pkg-config option "--with-path=XXX" and undeclared glfw functions during mmlgui make #6

Description

@Spicy-Lost-Soul

I'm running on VM running the latest version of Debian running in VMWare Workstation Pro.

I'd had to install libvgm manually.

Via apt I'd had to install libglfw3(-dev), g++, cmake, zlib and pkg-config.

When I try to install mmlgui via make I've gotten the following error for every g++ file running pkg-config:

Unknown option --with-path=/usr/local/lib/pkgconfig

Even with the following variable set: export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

I'd end up getting glfw-related function errors later in the make process:

g++ -Wall -g -DDEBUG -Ictrmml/src -Iimgui -Iimgui/examples -Iimgui/examples/libs/gl3w -DIMGUI_IMPL_OPENGL_LOADER_GL3W -IImGuiColorTextEditpkg-config --cflags glfw3 pkg-config --with-path=/usr/local/lib/pkgconfig --cflags vgm-audio-MMD -c src/main.cpp -o obj/main.o Unknown option --with-path=/usr/local/lib/pkgconfig src/main.cpp: In function ‘int main(int, char**)’: src/main.cpp:112:17: error: ‘GLFW_SCALE_TO_MONITOR’ was not declared in this scope glfwWindowHint(GLFW_SCALE_TO_MONITOR, GLFW_TRUE); ^~~~~~~~~~~~~~~~~~~~~ src/main.cpp:112:17: note: suggested alternative: ‘GLFW_AUTO_ICONIFY’ glfwWindowHint(GLFW_SCALE_TO_MONITOR, GLFW_TRUE); ^~~~~~~~~~~~~~~~~~~~~ GLFW_AUTO_ICONIFY src/main.cpp:184:2: error: ‘glfwGetWindowContentScale’ was not declared in this scope glfwGetWindowContentScale(window, &scale, NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~ src/main.cpp:184:2: note: suggested alternative: ‘glfwGetWindowMonitor’ glfwGetWindowContentScale(window, &scale, NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~ glfwGetWindowMonitor src/main.cpp:187:2: error: ‘glfwSetWindowContentScaleCallback’ was not declared in this scope glfwSetWindowContentScaleCallback(window, [](GLFWwindow* window, float xscale, float yscale) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/main.cpp:187:2: note: suggested alternative: ‘glfwSetWindowFocusCallback’ glfwSetWindowContentScaleCallback(window, [](GLFWwindow* window, float xscale, float yscale) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ glfwSetWindowFocusCallback make: *** [Makefile:32: obj/main.o] Error 1

The whole output of make on the cloned mmlgui repo is here:
https://pastebin.com/CCCYvVWR

Use the following password below to access the paste:
tcyxE2spwj

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