Yes apologies, it doesn’t work from a normal Windows Command Prompt. I installed VS2022 here but for some strange reason, I need to type VS2019 Command Prompt into my Windows search bar. But after searching online, it seem you might need to type x64 Native into your search bar and that’ll then allow you to launch whichever one’s installed.
[Edit…] My apologies… I just realised that the first bit from your post #46 is the end bit of that long list?
BTW - with regard to gdk-pixbuf, Robin seems to be using version 2.31.1 (from just before it became buildable with MSVC). What version do you get if you build with vcpkg?
I recognize some things in post 19, but don’t quote understand what to do from that…
What should I do then?
Interesting question, actually. Hadn’t thought about getting it from vcpkg since it wasn’t in the check in the config step.
Accoring to gdk-pixbuf | vcpkg.link: Vcpkg Ports and Packages Explorer , v2.42.12#4, with a LGPL-2.1-or-later license.
Ooh, that’s strange… does that mean you didn’t add stuff like COMPILER_MSVC / BUILDING_PBD / LIBPBD_DLL_EXPORTS etc?? In tthat case, I don’t understand how pbd.dll got populated (or why it’s ended up with the wrong name )
Is it definitely dated from the date when you built libpbd?
Current diff for ydk wscript (I got a fresh copy of the ydk-pixbuf wscript so no diff for that): ydk wscript diff - Pastebin.com
I doubt I can simply make an empty .lib file, 'cause I expect linking ydk will then fail due to 16 unresolved externals, which I believe come from ydk-pixbuf/ydk-pixbuf/gdk-pixbuf-core.h.
I don’t know if any issue exists with compiling ydk-pixbuf version 2.31.1 with MSVC.
Also: Should I make a diff file just of the libs folder, for now?
Version 2.40.0 included a file called gdk-pixbuf-features.h.in which introduced a mechanism for exporting functions from an MSVC DLL (similar to the way we do it in Ardour…)
Prior to that, functions would only have been exported if building with MinGW
I managed to deal with it (ydk-pixbuf lib missing, and the subsequent 16 unresolved externals for ydk. Perhaps I could’ve done it more cleanly, but I digress…
I’m getting the following errors:
C:\dev\ardour\libs\pbd\undo.cc(38): error C3861: ‘gettimeofday’: identifier not found
C:\dev\ardour\libs\pbd\history_owner.cc(168): error C3861: ‘gettimeofday’: identifier not found
I’ve been informed it’s in pbd/msvc_pbd.h, line 179. Now, I’ve spotted it, but the file msvc_pbd.h has a lot of lines, and I’m concerned that if I include it in undo.h, there’ll be more errors.
Do you think I should copy that (line 179) directly into undo.h in an #ifdef COMPILER_MSVC conditional? or do #include “pbd/msvc_pbd.h”? Or something else? I assume everything that has gettimeofday will include undo.h.
Back in post #4 Robin asked about the msvc_extra_headers and those various .input files and I answered in posts #6 and #9. If my answers don’t make sense, maybe Robin could explain it a bit more clearly?
See also my post #19. Robin might need to explain how/where those #defines would need to get added. You can start by just adding the ones which are definitely needed.
Obviously I haven’t explained things very well but if Robin can make sense of those 3 posts (#6, #9 and #19) maybe you can work together to decide how it needs to be on your system?
For example it’s very unlikely your main include folder will be in F:/+GTK-SOURCES/gnu-windows but by now, you should have created one somewhere.
I assume this was a serious comment, but I find the “it’s very unlikely” funny.
My main include folder is mentioned in my configure options: --also-include=C:\dev\vcpkg\installed\x64-windows\include