GFlags Linker error #56093

Closed
opened 2018-07-24 20:25:31 +02:00 by mic lack30 · 9 comments

Win 10 x64 MSVS 2017 v141 compiler

Hello and welcome everybody.
This is not a bug that crashes Blender, but it fails at linking stage, so I though it still needs to be reported:
For about I week I couldn't compile Blender(master as well as blender 2.8), as I always failed with the following linking error LNK2005:

DiiepK3XcAAs6nH.jpg large.jfif

Today I had a look into this problem for myself, as it didn't go away and I resolved it by commenting out the function SetCommandLineOption in gflags.cc

File: extern\gflags\src\gflags.cc
Line 1693 to 1695:

*string SetCommandLineOption(const char* name, const char* value) {*  return SetCommandLineOptionWithMode(name, value, SET_FLAGS_VALUE);
//}

I don't know whether or not anybody else has experienced the same issue, but I think this is something that needs some further investigation...

Win 10 x64 MSVS 2017 v141 compiler Hello and welcome everybody. This is not a bug that crashes Blender, but it fails at linking stage, so I though it still needs to be reported: For about I week I couldn't compile Blender(master as well as blender 2.8), as I always failed with the following linking error LNK2005: ![DiiepK3XcAAs6nH.jpg large.jfif](https://archive.blender.org/developer/F4032435/DiiepK3XcAAs6nH.jpg_large.jfif) Today I had a look into this problem for myself, as it didn't go away and I resolved it by commenting out the function SetCommandLineOption in gflags.cc File: extern\gflags\src\gflags.cc Line 1693 to 1695: ``` *string SetCommandLineOption(const char* name, const char* value) {* return SetCommandLineOptionWithMode(name, value, SET_FLAGS_VALUE); //} ``` I don't know whether or not anybody else has experienced the same issue, but I think this is something that needs some further investigation...
Author

Added subscriber: @michaellackner

Added subscriber: @michaellackner
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Ray molenkamp self-assigned this 2018-07-24 20:33:11 +02:00
Member

i'm gonna have to close this as per tracker rules

What not to report here

For Blender 2.8, please only report crashes. The bug tracker will be open for more general reports later.
Feature requests, see the developer contact page.
Compile or build issues, ask on #blendercoders or mail bf-committers.

that being said, I can't reproduce this , neither can the builbots, have do you done local modifications ?

i'm gonna have to close this as per tracker rules > What not to report here > > For Blender 2.8, please only report crashes. The bug tracker will be open for more general reports later. > Feature requests, see the developer contact page. > **Compile or build issues, ask on #blendercoders or mail bf-committers.** that being said, I can't reproduce this , neither can the builbots, have do you done local modifications ?
Author

I haven't done local modifications and I even deleted and recloned the blender GitHub repository..libs are up to date as well (svn update in the console)..

But if it doesn't occure anywhere else it should be fine..maybe something has changed on my pc that I'm not aware of..thank you anyway for your time!

I haven't done local modifications and I even deleted and recloned the blender GitHub repository..libs are up to date as well (svn update in the console).. But if it doesn't occure anywhere else it should be fine..maybe something has changed on my pc that I'm not aware of..thank you anyway for your time!
Member

it's highly suspicious that it is picking up a library for gflags.dll we link everything static,it kinda sounds like it's picking up some other library off your system.

it's highly suspicious that it is picking up a library for gflags.dll we link everything static,it kinda sounds like it's picking up some other library off your system.
Author

had to use vcpkg to compile meshroom..and if I remember correctly (although I would have to check on that once I'm back at my computer) the include directory for the installed packages is in my PATH folder.. I will check on that..

had to use vcpkg to compile meshroom..and if I remember correctly (although I would have to check on that once I'm back at my computer) the include directory for the installed packages is in my PATH folder.. I will check on that..
Author

I checked whether or not the gflags.dll is included in one of the packages that I have installed with vcpkg and it actually is. I think the user-wide integration of vcpkg is the root of visual studio mixing up the definitions, because the directory isn't defined in my system variables: .\vcpkg integrate install as seen here: vcpkg githup.

I checked whether or not the gflags.dll is included in one of the packages that I have installed with vcpkg and it actually is. I think the user-wide integration of vcpkg is the root of visual studio mixing up the definitions, because the directory isn't defined in my system variables: `.\vcpkg integrate install` as seen here: [vcpkg githup](https://github.com/Microsoft/vcpkg).
Member

look into why it's linking gflagsd.lib and where it is coming from,

look into why it's linking gflagsd.lib and where it is coming from,
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#56093
No description provided.