Comments (11)
Hi, we definetely want to support MSVC14, but we are not using it yet so we do not have a way to test right now.
However Fan's upstream projects already support it and also the hexchat script we forked from recently switched to it so it should be fairly easy to do.
Mostly it will be a matter of adding "vs14" folders for each module and copying the files
from gvsbuild.
Hi pbor,
I managed to compile only part of the library. Here is the result of compilation:
...
The following items were successfully built:
ffmpeg
freetype
gettext-runtime
hicolor-icon-theme
libepoxy
libffi
libpng
libxml2
lmdb
openssl
pixman
win-iconv
zlib
The following items failed to build:
fontconfig
The following items were not built because one or more of the other items failed to build:
atk
cairo
cyrus-sasl
enchant
gdk-pixbuf
glib
glib-networking
gsettings-desktop-schemas
gtk
gtk3
harfbuzz
libcroco
librsvg
libsoup
pango
...
It seems that the library 'fontconfig' is not supported for compiling vc14 because of an error (see. fontconfig_error_vc14.txt)
Full report compilation: build_vc14_0.txt
from gvsbuild.
try to change the file
fontconfig/config.h
It has a line
#define snprintf _snprintf
change to something like
#ifndef snprintf
#define snprintf _snprintf
#endif
Note that you will need to remove the "build" and "gtk" dir and restart the build
from gvsbuild.
This method does not work (see. fontconfig_error_vc14_2.txt)
from gvsbuild.
well, the error is now different so it seems to have sorted some kind of effect... can you post the full log for the build failure?
from gvsbuild.
This is a known bug compilation vc14 (fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration).
Full report compilation: build_vc14_1.txt
from gvsbuild.
I see... then try to completely remove that line.
Later we can find a proper ifdef
Il 15/Gen/2016 19:56, "Vite" [email protected] ha scritto:
This is a known bug compilation vc14 (fatal error C1189: #error: Macro
definition of snprintf conflicts with Standard Library function declaration
http://stackoverflow.com/questions/27754492/vs-2015-compiling-cocos2d-x-3-3-error-fatal-error-c1189-error-macro-definiti
).Full report compilation build_vc14_1.txt
https://www.dropbox.com/s/brhkhczv4agns2p/build_vc14_1.txt?dl=0—
Reply to this email directly or view it on GitHub
#17 (comment).
from gvsbuild.
I did not notice the existing directive #define printf _printf
in the file 'config.h'. I added a condition to downgrade MSVC:
#if _MSC_VER < 1900
#define snprintf _snprintf
#endif
Full report compilation: build_vc14_2.txt
from gvsbuild.
Error compiling libraries 'enchant': enchant_error_vc14.txt
Full report compilation: build_vc14_3.txt
It seems there is problem solving:
typedef int ssize_t;
(#10)
It is necessary to check on the compiler vc12.
from gvsbuild.
Yeah, looking at what the hexchat guys did here hexchat/gtk-win32@2f3c96d I think you need to drop the "_W64" (I am not sure what it is exactly)
from gvsbuild.
This is superseded by #52
from gvsbuild.
Related Issues (20)
- gtk4 build failed HOT 1
- `gvsbuild build libadwaita --enable-gi` does not create Adw*.typelib / Unclear how to build Adw typelib HOT 2
- 2024.2.0 build fails on Windows 10 (runs out of memory) HOT 11
- CERTIFICATE_VERIFY_FAILED on Windows 11 HOT 1
- GTK App crashes with g_atomic_ref_count_dec: assertion 'old_value > 0' failed HOT 2
- nghttp2 update to version 1.60.0 fails
- Building GTK4 fails HOT 4
- Error while building gtk3 HOT 12
- GTK4 build fails HOT 2
- gobject-introspection fails without setuptools on Python 3.12
- Link to binaries HOT 1
- Include patch to fix pango font rendering HOT 7
- Font rendering issues for GTK4 HOT 2
- adding gtkmm libraries to the next releases HOT 6
- Allow changing meson options for packages
- patch' is not recognized as an internal or external command, operable program or batch file HOT 1
- Perl depends on old versions of Visual C++ Redistributable HOT 1
- build failed on Win11 while building gdk-pixbuf HOT 17
- FAILED: gdk-pixbuf/loaders.cache (2.42.12) Win 10, gvsbuild build gtk4 HOT 1
- Rendering issues under Windows 10 and 11 HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gvsbuild.