Giter Club home page Giter Club logo

gtk-for-windows's Introduction

GTK+ for Windows

Version

GTK+ - 3.22.21

gtkmm - 3.22.2

Introduction

The goal of this project is to make the latest GTK+ and gtkmm available on Windows.

The GTK+ team no longer provides binaries (3.6.4 to be specific) for Windows since sometime in 2015 Q3. You have to build it with MSYS2 as the official guide states. If you happen to not like MSYS2, or you want a more recent version, here are some automated scripts which helps you download all the stuff you need and compile them for you.

Please refer to the Wiki pages for more information.

Content

  • libs

This folder will keep the source code tarballs after being downloaded. Downloading/building scripts are in here too.

  • Other

Some applications and header files needed when building the libraries.

  • Tools

wget.exe for downloading and 7za.exe for extracting.

  • setup.bat

This batch file sets up a building environment for you.

  • LICENSE.md

License.

  • README.md

The file you're reading.

Origin

This build system is inspired by and modified from Tarnyko's gtk3_build_system.

He was always doing the great job porting GTK+ to Windows for GTK+ fans all around the world.

How to Use

Please click here: https://github.com/Wesley-Chan/GTK-for-Windows/wiki/Instructions

gtk-for-windows's People

Contributors

wesley-chan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gtk-for-windows's Issues

The bundled 7z.exe doesn't work for me

The included 7z.exe errors out with "cannot find the code that works with archives" for me. Perhaps it's missing 7z.dll? Replacing 7z.exe with the one I already had installed on my system and copying my 7z.dll into the tools folder allowed me to proceed.

could you add a getting started guide?

With the requirements and how to build gtk and what are the binaries produced, where, how to bundle them (or create an installation program)...

I would be glad to test the guide and test it as I need gtk for windows.

how to compile last stable release of GTK?

I have looked through the wiki, but there is no mention of compiling the latest stable release (in this case 3.14). And looking through the commit messages multiple files have been updated to support GTK 3.15.2.

If I used the source for 3.14 instead, would that cause anything to break?

64-bit does not work

I tried a 64-bit compiler. It does not work.
After messing around with it for days, I found that some of the scripts needed to be told it is a 64-bit build, but I still can't get it built.
At least update the FAQ so folks know 64-bit does not work. Right now it just says, "it depends on which compiler you choose."

atk configure error (GLIB)

Hello!

Sorry if I ask dummy question, I'm not well-known with MSYS and pkg-config. atk (and some other deps) gives an error when configuring:

checking for GLIB - version >= 2.31.2... 
*** 'pkg-config --modversion glib-2.0' returned 2.45.1, but GLIB (2.34.3)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error: 
*** GLIB 2.31.2 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed
*** but not in the same location as pkg-config add the location of the file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.

I can't find any GLIB files with version 2.34.3, I also can't find file /etc/ld.so.conf or existing variable LD_LIBRARY_PATH. GLIB compiles and installs well, if I don't miss something in it's log.

How can I solve this problem? And is it possible to share precompiled GTK bundle with us? Some file hostings allow big files for free, like MEGA.

Thank you,
Alexander.

LIB_INFO.sh is missing

./DOWNLOAD_ALL.sh fails because LIB_INFO.sh is not present in repo.
Mb you forget to commit it?

icon-naming-utils 404

It appears tango.freedesktop.org has removed this package. it's 404ing and all links to it 404.

Not working at all.

This project seems to not run at all.

Tired Mind gibberish

Revision on URLs on
https://github.com/Wesley-Chan/GTK-for-Windows/blob/master/libs/LIB_INFO.sh
is probably required as some URLS no longer work?

Wget seems to not being able to connect to https://sourceforge.net/ due to certificate error.
Couldn't make it work so replacing wget with curl is the most sane solution right now.

curl is avaible by default on Windows 10 for some time now.
for Windows 7 bitsadmin is an available command line utility.
Older version do require external binary to download anything using command line.

I'm not sure what is required to build GTK 2.0, but it seems like the project depends on too many layers of complexity.
I'd rather rewrite everything in C language and use Tiny C Compiler to script the compilation of GTK 2.0 on Windows.

Incomplete notes

Personal notes to recover/debug this project.

Launch setup.bat 

Add 

cd %~dp0

After Check administrative privilegie


In the 
C:\Users\user\Desktop\GTK-for-Windows-master\MinGW-w64

rename

i686-7.1.0-release-win32-sjlj-rt_v5-rev1.7z@viasf=1.1



to 

i686-7.1.0-release-win32-sjlj-rt_v5-rev1.7z


in the 

C:\Users\user\Desktop\GTK-for-Windows-master\libs\DOWNLOAD_ALL.sh

function check_existance()

replace wget with  curl -L -O $1 > $1

remove the errorlevel statement for wget

Final verdict

Try to Rewrite everything in C language. I'm tired of Bash and Batch languages.
The whole msys and MingW thing seems to be a lot to download.
GTK Compilation shouldn't be this complex, at least I think that way.
It should be lightweight and simple.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.