davisking/dlib

[Bug]: g++.exe: error: /bigobj: linker input file not found: No such file or directory

FlowLoveV opened this issue · 6 comments

What Operating System(s) are you seeing this problem on?

Windows

dlib version

19.22

Python version

3.11

Compiler

MINGW 13.2.0

Expected Behavior

I am using vcpkg to link dlib

// vcpkg.json
// vcpkg version  2023-12-12-1c9ec1978a6b0c2b39c9e9554a96e3e275f7556e
"dependencies": [
{
      "name": "dlib",
      "version>=": "19.22"
}
]

the CMakeLists.txt is as follows:

find_package(dlib CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE dlib::dlib)

the build command is as follows:

"D:\clion\CLion 2023.3.4\bin\cmake\win\x64\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=D:\ProgramFiles\MinGW-64\mingw64\bin\gcc.exe -DCMAKE_CXX_COMPILER:FILEPATH=D:\ProgramFiles\MinGW-64\mingw64\bin\g++.exe  -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE=D:/vcpkg/vcpkg/scripts/buildsystems/vcpkg.cmake 
"D:\clion\CLion 2023.3.4\bin\cmake\win\x64\bin\cmake.exe" --build D:\mashuo\project\nav\build --target NAV_TEST -- -j 30

it should be ok

Current Behavior

build error message:

g++.exe: warning: /bigobj: linker input file unused because linking not done
g++.exe: error: /bigobj: linker input file not found: No such file or directory

Steps to Reproduce

what should i do?

Anything else?

No response

This seems like a problem with vcpkg, rather than dlib. You should ask the people who maintain that. I don't use it. it is for visual studio though. So maybe vcpkg doesn't work with anything that isn't visual studio.

Or get dlib from the official dlib github. That should work fine.

you're probably trying to link msvc binaries with mingw, but they are incompatible

Warning: this issue has been inactive for 35 days and will be automatically closed on 2024-04-25 if there is no further activity.

If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.

Warning: this issue has been inactive for 43 days and will be automatically closed on 2024-04-25 if there is no further activity.

If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.

Notice: this issue has been closed because it has been inactive for 45 days. You may reopen this issue if it has been closed in error.