[MSVC++] Linker error - cannot find gme.lib

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: [MSVC++] Linker error - cannot find gme.lib

Re: [MSVC++] Linker error - cannot find gme.lib

by _mental_ » Tue Dec 27, 2016 3:58 am

I would like to update zlib to 1.2.8 (without CMake changes). Tested it on Windows 32-/64-bit clean build and macOS with FORCE_INTERNAL_ZLIB set to YES.
Should I make PR to ZDoom or GZDoom?

Re: [MSVC++] Linker error - cannot find gme.lib

by _mental_ » Thu Dec 22, 2016 4:24 am

Edward-san wrote:Of course, but the zlib pull request is not a code upgrade, but adding back parts of code which were left off (still disabled as explained), so I still don't follow this reasoning:
Graf Zahl wrote:I couldn't satisfactorily prove that it won't break stuff
I think we should upgrade to the latest zlib 1.2.8 but try to avoid changes in CMake.
Either I can do it and test on Windows and macOS, clean build with internal and external libraries.
Or if you want to do it and test on Linux, I'll check changes on other platforms.

Re: [MSVC++] Linker error - cannot find gme.lib

by Edward-san » Wed Dec 21, 2016 3:33 am

Of course, but the zlib pull request is not a code upgrade, but adding back parts of code which were left off (still disabled as explained), so I still don't follow this reasoning:
Graf Zahl wrote:I couldn't satisfactorily prove that it won't break stuff

Re: [MSVC++] Linker error - cannot find gme.lib

by Rachael » Tue Dec 20, 2016 12:46 pm

He's not talking about the problem I reported. He's referring to the fact that I reported a problem due to a library upgrade, he's weary of implementing further upgrades as it is. It kind of goes along with "don't fix it if it's not broke" mentality.

Re: [MSVC++] Linker error - cannot find gme.lib

by Edward-san » Tue Dec 20, 2016 12:09 pm

Graf Zahl wrote:I haven't merged that because I couldn't satisfactorily prove that it won't break stuff, this report clearly shows that caution is justified.
Erm, but that change has nothing to do with this report. As I said in that pull request, the code inside the `if ( FALSE )` block will never be executed. You can check this by having a look at the cache file and see that no change happened.

Re: [MSVC++] Linker error - cannot find gme.lib

by Rachael » Tue Dec 20, 2016 11:32 am

Maybe we should launch a branch to test some of these questionable changes, and if it proves that it compiles on all major platforms with no issues (win/linux/mac) and a test build is given to users for a small amount of time (2-3 days) and no major issues are reported (or at the very least they get fixed quickly) - then we can merge them into the master?

Re: [MSVC++] Linker error - cannot find gme.lib

by Graf Zahl » Tue Dec 20, 2016 11:29 am

I haven't merged that because I couldn't satisfactorily prove that it won't break stuff, this report clearly shows that caution is justified.

Re: [MSVC++] Linker error - cannot find gme.lib

by Edward-san » Tue Dec 20, 2016 11:19 am

Right, zlib. I could fix it but it could be nice if this pull was merged...

Re: [MSVC++] Linker error - cannot find gme.lib

by _mental_ » Tue Dec 20, 2016 8:26 am

It appears in the list anyway, thanks to zlib ;)

EDIT: set(BUILD_SHARED_LIBS OFF) works for me.

EDIT 2: Force pushed the change just in case.

Re: [MSVC++] Linker error - cannot find gme.lib

by Edward-san » Tue Dec 20, 2016 8:00 am

But `option` shouldn't be used, or else it'll appear in the cmake gui list! Does it happen if you use this instead:

Code: Select all

set(BUILD_SHARED_LIBS OFF)
?

Re: [MSVC++] Linker error - cannot find gme.lib

by _mental_ » Tue Dec 20, 2016 7:22 am

Fixed in this PR. This change was copied from GME's Mercurial repository, I just replaced ON with OFF.

Re: [MSVC++] Linker error - cannot find gme.lib

by Edward-san » Mon Dec 19, 2016 11:19 am

Can you check if this happens also before this zdoom commit? If not, could you bisect and find when it broke?

[MSVC++] Linker error - cannot find gme.lib

by Rachael » Mon Dec 19, 2016 8:57 am

When compiling fresh, the following linker error is generated:

Code: Select all

Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK1181	cannot open input file '..\game-music-emu\gme\Release\gme.lib'	zdoom	B:\build\qzdoom64\src\LINK	1	
Using an old file allows it to link, but I suspect there are problems.

Top