GithubHelp home page GithubHelp logo

Windows MSYS2 - endian.h about raylib-go HOT 17 CLOSED

5k3105 avatar 5k3105 commented on May 26, 2024
Windows MSYS2 - endian.h

from raylib-go.

Comments (17)

gen2brain avatar gen2brain commented on May 26, 2024

That should be under #ifdef linux , but I did some changes recently there in 4ae938a . Can you just revert the change/comment and try again ?

from raylib-go.

5k3105 avatar 5k3105 commented on May 26, 2024

I changed the 8 to 3 in both lines. go install gave same error.

from raylib-go.

gen2brain avatar gen2brain commented on May 26, 2024

What about the #ifndef _BSD_SOURCE lines, can you also try to remove that? endian.h is in that part of code. It is a little harder for me to test on Windows and OS X, I don't try that after every commit and this commit maybe broke build on Windows. I am sure it worked before with instructions from README file.

from raylib-go.

5k3105 avatar 5k3105 commented on May 26, 2024

I wasn't able to get it to work removing those lines.

However I found it here:
https://sourceforge.net/p/mingw/msys2-runtime/ci/ddb6e534632cddbb5fd8f114561da1fa1a3c6abf/tree/winsup/cygwin/include/endian.h

So I must not have all the files for MSYS2? Maybe I should re download it?

go install
# github.com/gen2brain/raylib-go/raylib
In file included from .\external/dr_flac.h:686:0,
                 from .\audio.c:89:
./endian.h:14:24: fatal error: sys/config.h: No such file or directory
 #include <sys/config.h>
                        ^
compilation terminated.

from raylib-go.

gen2brain avatar gen2brain commented on May 26, 2024

I am not sure, I did it in vmware, and I just followed instructions from msys2.org and there were no issues.

from raylib-go.

5k3105 avatar 5k3105 commented on May 26, 2024

Maybe you can tell what I'm doing wrong?

I installed MSYS2 to default directory:

$ pacman -Syu
:: Synchronizing package databases...
 mingw32                                                                       316.7 KiB  1139K/s 00:00 [############################################################] 100%
 mingw32.sig                                                                    96.0   B  0.00B/s 00:00 [############################################################] 100%
 mingw64                                                                       316.6 KiB  1271K/s 00:00 [############################################################] 100%
 mingw64.sig                                                                    96.0   B  0.00B/s 00:00 [############################################################] 100%
 msys                                                                          141.6 KiB  1887K/s 00:00 [############################################################] 100%
 msys.sig                                                                       96.0   B  93.8K/s 00:00 [############################################################] 100%
:: Starting core system upgrade...
warning: terminate other MSYS2 programs before proceeding
resolving dependencies...
looking for conflicting packages...

Packages (5) bash-4.4.012-1  filesystem-2017.02-4  mintty-1~2.7.3-1  msys2-runtime-2.7.0-1  pacman-5.0.1-2

Total Download Size:   10.38 MiB
Total Installed Size:  50.37 MiB
Net Upgrade Size:      -1.24 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 msys2-runtime-2.7.0-1-x86_64                                                    2.4 MiB  1821K/s 00:01 [############################################################] 100%
 bash-4.4.012-1-x86_64                                                        1969.4 KiB  2.30M/s 00:01 [############################################################] 100%
 filesystem-2017.02-4-x86_64                                                    38.9 KiB  0.00B/s 00:00 [############################################################] 100%
 mintty-1~2.7.3-1-x86_64                                                       174.9 KiB  2.16M/s 00:00 [############################################################] 100%
 pacman-5.0.1-2-x86_64                                                           5.9 MiB  2.15M/s 00:03 [############################################################] 100%
(5/5) checking keys in keyring                                                                          [############################################################] 100%
(5/5) checking package integrity                                                                        [############################################################] 100%
(5/5) loading package files                                                                             [############################################################] 100%
(5/5) checking for file conflicts                                                                       [############################################################] 100%
(5/5) checking available disk space                                                                     [############################################################] 100%
warning: could not get file information for opt/
:: Processing package changes...
(1/5) upgrading msys2-runtime                                                                           [############################################################] 100%
(2/5) upgrading bash                                                                                    [############################################################] 100%
(3/5) upgrading filesystem                                                                              [############################################################] 100%
(4/5) upgrading mintty                                                                                  [############################################################] 100%
(5/5) upgrading pacman                                                                                  [############################################################] 100%
warning: terminate MSYS2 without returning to shell and check for updates again
warning: for example close your terminal window instead of calling exit

-----------------------

$ pacman -Su
:: Starting core system upgrade...
 there is nothing to do
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (35) bsdcpio-3.2.2-2  bsdtar-3.2.2-2  coreutils-8.26-1  crypt-1.4-1  curl-7.52.1-1  file-5.29-1  flex-2.6.3-1  gawk-4.1.4-2  gcc-libs-6.3.0-1
              gmp-6.1.2-1  gnupg-1.4.21-2  grep-2.27-1  libarchive-3.2.2-2  libcrypt-1.4-1  libcurl-7.52.1-1  libexpat-2.2.0-2  libgpg-error-1.25-1
              liblzma-5.2.3-1  libopenssl-1.0.2.k-1  libpcre-8.40-2  libpcre16-8.40-2  libpcre32-8.40-2  libpcrecpp-8.40-2  libpcreposix-8.40-2
              libreadline-7.0.003-1  libxml2-2.9.2-3  m4-1.4.18-1  mpfr-3.1.5.1-3  ncurses-6.0.20170121-1  openssl-1.0.2.k-1  pcre-8.40-2  sed-4.4-1
              wget-1.19.1-1  xz-5.2.3-1  zlib-1.2.11-1

Total Download Size:   15.94 MiB
Total Installed Size:  81.34 MiB
Net Upgrade Size:       0.79 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 gcc-libs-6.3.0-1-x86_64                                              819.1 KiB  1619K/s 00:01 [#######################################################] 100%
 liblzma-5.2.3-1-x86_64                                                78.3 KiB  0.00B/s 00:00 [#######################################################] 100%
 gmp-6.1.2-1-x86_64                                                   371.3 KiB  2.57M/s 00:00 [#######################################################] 100%
 coreutils-8.26-1-x86_64                                                2.2 MiB  1432K/s 00:02 [#######################################################] 100%
 ncurses-6.0.20170121-1-x86_64                                       1141.8 KiB   721K/s 00:02 [#######################################################] 100%
 libreadline-7.0.003-1-x86_64                                         266.8 KiB  2.55M/s 00:00 [#######################################################] 100%
 zlib-1.2.11-1-x86_64                                                  55.1 KiB  0.00B/s 00:00 [#######################################################] 100%
 libxml2-2.9.2-3-x86_64                                               497.0 KiB  2.31M/s 00:00 [#######################################################] 100%
 bsdcpio-3.2.2-2-x86_64                                               728.3 KiB  3.76M/s 00:00 [#######################################################] 100%
 bsdtar-3.2.2-2-x86_64                                                765.4 KiB  3.83M/s 00:00 [#######################################################] 100%
 libcrypt-1.4-1-x86_64                                                 16.1 KiB  0.00B/s 00:00 [#######################################################] 100%
 crypt-1.4-1-x86_64                                                    16.3 KiB  0.00B/s 00:00 [#######################################################] 100%
 libopenssl-1.0.2.k-1-x86_64                                          810.9 KiB  2.23M/s 00:00 [#######################################################] 100%
 openssl-1.0.2.k-1-x86_64                                            1363.3 KiB   799K/s 00:02 [#######################################################] 100%
 sed-4.4-1-x86_64                                                     212.8 KiB  1730K/s 00:00 [#######################################################] 100%
 libpcre-8.40-2-x86_64                                                 94.2 KiB  0.00B/s 00:00 [#######################################################] 100%
 libexpat-2.2.0-2-x86_64                                               59.3 KiB  57.9M/s 00:00 [#######################################################] 100%
 libcurl-7.52.1-1-x86_64                                              198.2 KiB  2.39M/s 00:00 [#######################################################] 100%
 curl-7.52.1-1-x86_64                                                 641.9 KiB  1893K/s 00:00 [#######################################################] 100%
 file-5.29-1-x86_64                                                   453.6 KiB  2.15M/s 00:00 [#######################################################] 100%
 m4-1.4.18-1-x86_64                                                   213.6 KiB  2.51M/s 00:00 [#######################################################] 100%
 flex-2.6.3-1-x86_64                                                  294.0 KiB  1709K/s 00:00 [#######################################################] 100%
 mpfr-3.1.5.1-3-x86_64                                                242.0 KiB  2.63M/s 00:00 [#######################################################] 100%
 gawk-4.1.4-2-x86_64                                                  986.4 KiB  2.35M/s 00:00 [#######################################################] 100%
 gnupg-1.4.21-2-x86_64                                               1031.7 KiB  2.48M/s 00:00 [#######################################################] 100%
 grep-2.27-1-x86_64                                                   239.5 KiB  2.60M/s 00:00 [#######################################################] 100%
 libarchive-3.2.2-2-x86_64                                            724.2 KiB  3.78M/s 00:00 [#######################################################] 100%
 libgpg-error-1.25-1-x86_64                                           110.4 KiB  1555K/s 00:00 [#######################################################] 100%
 libpcre16-8.40-2-x86_64                                               92.6 KiB  90.5M/s 00:00 [#######################################################] 100%
 libpcre32-8.40-2-x86_64                                               86.6 KiB  84.6M/s 00:00 [#######################################################] 100%
 libpcrecpp-8.40-2-x86_64                                              22.7 KiB  22.2M/s 00:00 [#######################################################] 100%
 libpcreposix-8.40-2-x86_64                                            16.2 KiB  0.00B/s 00:00 [#######################################################] 100%
 pcre-8.40-2-x86_64                                                   589.2 KiB  2.15M/s 00:00 [#######################################################] 100%
 wget-1.19.1-1-x86_64                                                 637.9 KiB  3.78M/s 00:00 [#######################################################] 100%
 xz-5.2.3-1-x86_64                                                    145.4 KiB   676K/s 00:00 [#######################################################] 100%
(35/35) checking keys in keyring                                                               [#######################################################] 100%
(35/35) checking package integrity                                                             [#######################################################] 100%
(35/35) loading package files                                                                  [#######################################################] 100%
(35/35) checking for file conflicts                                                            [#######################################################] 100%
(35/35) checking available disk space                                                          [#######################################################] 100%
:: Processing package changes...
( 1/35) upgrading gcc-libs                                                                     [#######################################################] 100%
( 2/35) upgrading liblzma                                                                      [#######################################################] 100%
( 3/35) upgrading gmp                                                                          [#######################################################] 100%
( 4/35) upgrading coreutils                                                                    [#######################################################] 100%
( 5/35) upgrading ncurses                                                                      [#######################################################] 100%
( 6/35) upgrading libreadline                                                                  [#######################################################] 100%
( 7/35) upgrading zlib                                                                         [#######################################################] 100%
( 8/35) upgrading libxml2                                                                      [#######################################################] 100%
( 9/35) upgrading bsdcpio                                                                      [#######################################################] 100%
(10/35) upgrading bsdtar                                                                       [#######################################################] 100%
(11/35) upgrading libcrypt                                                                     [#######################################################] 100%
(12/35) upgrading crypt                                                                        [#######################################################] 100%
(13/35) upgrading libopenssl                                                                   [#######################################################] 100%
(14/35) upgrading openssl                                                                      [#######################################################] 100%
(15/35) upgrading sed                                                                          [#######################################################] 100%
(16/35) upgrading libpcre                                                                      [#######################################################] 100%
(17/35) upgrading libexpat                                                                     [#######################################################] 100%
(18/35) upgrading libcurl                                                                      [#######################################################] 100%
(19/35) upgrading curl                                                                         [#######################################################] 100%
(20/35) upgrading file                                                                         [#######################################################] 100%
(21/35) upgrading m4                                                                           [#######################################################] 100%
(22/35) upgrading flex                                                                         [#######################################################] 100%
(23/35) upgrading mpfr                                                                         [#######################################################] 100%
(24/35) upgrading gawk                                                                         [#######################################################] 100%
(25/35) upgrading gnupg                                                                        [#######################################################] 100%
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: Generating pacman keyring master key...
gpg: skipping control `%no-protection' ()
+++++
.+++++
gpg: key BD839C78 marked as ultimately trusted
gpg: Done
==> Updating trust database...
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
==> Appending keys from msys2.gpg...
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
==> Locally signing trusted keys in keyring...
  -> Locally signing key D55E7A6D7CE9BA1587C0ACACF40D263ECA25678A...
  -> Locally signing key 123D4D51A1793859C2BE916BBBE514E53E0D0813...
  -> Locally signing key B91BCF3303284BF90CC043CA9F418C233E652008...
  -> Locally signing key 9DD0D4217D75A33B896159E6DA7EF2ABAEEA755C...
==> Importing owner trust values...
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
==> Updating trust database...
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   1  signed:   4  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   4  signed:   3  trust: 0-, 0q, 0n, 4m, 0f, 0u
gpg: depth: 2  valid:   3  signed:   0  trust: 3-, 0q, 0n, 0m, 0f, 0u
(26/35) upgrading grep                                                                         [#######################################################] 100%
(27/35) upgrading libarchive                                                                   [#######################################################] 100%
(28/35) upgrading libgpg-error                                                                 [#######################################################] 100%
(29/35) upgrading libpcre16                                                                    [#######################################################] 100%
(30/35) upgrading libpcre32                                                                    [#######################################################] 100%
(31/35) upgrading libpcrecpp                                                                   [#######################################################] 100%
(32/35) upgrading libpcreposix                                                                 [#######################################################] 100%
(33/35) upgrading pcre                                                                         [#######################################################] 100%
(34/35) upgrading wget                                                                         [#######################################################] 100%
(35/35) upgrading xz                                                                           [#######################################################] 100%

--- MSYS ~
$

$ go version
bash: go: command not found

At this point I usually go into the .bash_profile and change the GOPATH etc like this:

export GOPATH="/c/goworksp"
export GOROOT="/c/Go"
export GOBIN="/c/Go/bin"
export PATH=$PATH:"/c/Go/bin"

Should I even need to do this? I thought MSYS2 could interpret the default windows environment paths (which it sees), as SET reports:

GOBIN='%GOPATH%\bin'
GOPATH='C:\goworksp'
GOROOT='C:\Go\'

from raylib-go.

gen2brain avatar gen2brain commented on May 26, 2024

I don't know how that works on Windows, but what happens when you just use this line?
pacman -S mingw-w64-x86_64-openal mingw-w64-x86_64-glfw mingw-w64-x86_64-gcc mingw-w64-x86_64-go git
And Go from mingw and pacman repo?

from raylib-go.

5k3105 avatar 5k3105 commented on May 26, 2024

At the MSYS2 shell:

$ pacman -S mingw-w64-x86_64-openal mingw-w64-x86_64-glfw mingw-w64-x86_64-gcc mingw-w64-x86_64-go git
resolving dependencies...
looking for conflicting packages...

Packages (52) db-5.3.28-2  expat-2.2.0-2  gdbm-1.11-3  heimdal-1.5.3-9  libgdbm-1.11-3  mingw-w64-x86_64-binutils-2.27-3  mingw-w64-x86_64-bzip2-1.0.6-6
              mingw-w64-x86_64-crt-git-5.0.0.4772.0a1b0885-1  mingw-w64-x86_64-gcc-libs-6.3.0-1  mingw-w64-x86_64-gmp-6.1.2-1  mingw-w64-x86_64-headers-git-5.0.0.4774.3b51067b-1
              mingw-w64-x86_64-isl-0.17.1-1  mingw-w64-x86_64-libiconv-1.14-6  mingw-w64-x86_64-libwinpthread-git-5.0.0.4761.02bea78-1  mingw-w64-x86_64-mpc-1.0.3-2
              mingw-w64-x86_64-mpfr-3.1.5.p1-1  mingw-w64-x86_64-windows-default-manifest-6.4-3  mingw-w64-x86_64-winpthreads-git-5.0.0.4761.02bea78-1  mingw-w64-x86_64-zlib-1.2.11-1
              openssh-7.3p1-2  perl-5.24.1-2  perl-Authen-SASL-2.16-2  perl-Convert-BinHex-1.123-2  perl-Encode-Locale-1.04-1  perl-Error-0.17024-1  perl-File-Listing-6.04-2
              perl-HTML-Parser-3.72-1  perl-HTML-Tagset-3.20-2  perl-HTTP-Cookies-6.01-2  perl-HTTP-Daemon-6.01-2  perl-HTTP-Date-6.02-2  perl-HTTP-Message-6.06-2
              perl-HTTP-Negotiate-6.01-2  perl-IO-Socket-SSL-2.016-1  perl-IO-stringy-2.111-1  perl-LWP-MediaTypes-6.02-2  perl-MIME-tools-5.506-1  perl-MailTools-2.14-1
              perl-Net-HTTP-6.09-1  perl-Net-SMTP-SSL-1.02-1  perl-Net-SSLeay-1.80-1  perl-TermReadKey-2.37-1  perl-TimeDate-2.30-2  perl-URI-1.68-1  perl-WWW-RobotRules-6.02-2
              perl-libwww-6.13-1  vim-8.0.0237-1  git-2.11.1-1  mingw-w64-x86_64-gcc-6.3.0-1  mingw-w64-x86_64-glfw-3.2.1-2  mingw-w64-x86_64-go-1.8-1  mingw-w64-x86_64-openal-1.16.0-4

Total Download Size:   125.40 MiB
Total Installed Size:  719.22 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 mingw-w64-x86_64-openal-1.16.0-4-any                                                     363.0 KiB  1163K/s 00:00 [###################################################################] 100%
 mingw-w64-x86_64-gmp-6.1.2-1-any                                                         486.0 KiB  3.14M/s 00:00 [###################################################################] 100%
 mingw-w64-x86_64-libwinpthread-git-5.0.0.4761.02bea78-1-any                               35.8 KiB  0.00B/s 00:00 [###################################################################] 100%
 mingw-w64-x86_64-gcc-libs-6.3.0-1-any                                                    561.8 KiB  2.02M/s 00:00 [###################################################################] 100%
 mingw-w64-x86_64-glfw-3.2.1-2-any                                                         95.5 KiB  93.3M/s 00:00 [###################################################################] 100%
 mingw-w64-x86_64-libiconv-1.14-6-any                                                     609.5 KiB  3.40M/s 00:00 [###################################################################] 100%
 mingw-w64-x86_64-bzip2-1.0.6-6-any                                                        81.3 KiB  0.00B/s 00:00 [###################################################################] 100%
 mingw-w64-x86_64-zlib-1.2.11-1-any                                                       164.8 KiB  1169K/s 00:00 [###################################################################] 100%
 mingw-w64-x86_64-binutils-2.27-3-any                                                      12.8 MiB  17.9M/s 00:01 [###################################################################] 100%
 mingw-w64-x86_64-headers-git-5.0.0.4774.3b51067b-1-any                                     5.0 MiB  8.91M/s 00:01 [###################################################################] 100%
 mingw-w64-x86_64-crt-git-5.0.0.4772.0a1b0885-1-any                                         2.9 MiB  5.39M/s 00:01 [###################################################################] 100%
 mingw-w64-x86_64-isl-0.17.1-1-any                                                        556.2 KiB  8.11M/s 00:00 [###################################################################] 100%
 mingw-w64-x86_64-mpfr-3.1.5.p1-1-any                                                     279.5 KiB  6.35M/s 00:00 [###################################################################] 100%
 mingw-w64-x86_64-mpc-1.0.3-2-any                                                          62.3 KiB  0.00B/s 00:00 [###################################################################] 100%
 mingw-w64-x86_64-windows-default-manifest-6.4-3-any                                       12.9 KiB  0.00B/s 00:00 [###################################################################] 100%
 mingw-w64-x86_64-winpthreads-git-5.0.0.4761.02bea78-1-any                                 44.7 KiB  0.00B/s 00:00 [###################################################################] 100%
 mingw-w64-x86_64-gcc-6.3.0-1-any                                                          27.2 MiB  26.9M/s 00:01 [###################################################################] 100%
 mingw-w64-x86_64-go-1.8-1-any                                                             48.7 MiB  21.2M/s 00:02 [###################################################################] 100%
 expat-2.2.0-2-x86_64                                                                      24.6 KiB  0.00B/s 00:00 [###################################################################] 100%
 vim-8.0.0237-1-x86_64                                                                      6.3 MiB  4.75M/s 00:01 [###################################################################] 100%
 heimdal-1.5.3-9-x86_64                                                                   546.6 KiB   586K/s 00:01 [###################################################################] 100%
 openssh-7.3p1-2-x86_64                                                                   670.1 KiB  1796K/s 00:00 [###################################################################] 100%
 db-5.3.28-2-x86_64                                                                        41.7 KiB  0.00B/s 00:00 [###################################################################] 100%
 libgdbm-1.11-3-x86_64                                                                     20.4 KiB  19.9M/s 00:00 [###################################################################] 100%
 gdbm-1.11-3-x86_64                                                                       108.5 KiB   861K/s 00:00 [###################################################################] 100%
 perl-5.24.1-2-x86_64                                                                      12.5 MiB  24.5M/s 00:01 [###################################################################] 100%
 perl-Error-0.17024-1-any                                                                  17.1 KiB  0.00B/s 00:00 [###################################################################] 100%
 perl-Authen-SASL-2.16-2-any                                                               42.4 KiB  41.4M/s 00:00 [###################################################################] 100%
 perl-Encode-Locale-1.04-1-any                                                              9.7 KiB  0.00B/s 00:00 [###################################################################] 100%
 perl-HTTP-Date-6.02-2-any                                                                  8.6 KiB  0.00B/s 00:00 [###################################################################] 100%
 perl-File-Listing-6.04-2-any                                                               7.7 KiB  0.00B/s 00:00 [###################################################################] 100%
 perl-HTML-Tagset-3.20-2-any                                                               10.3 KiB  0.00B/s 00:00 [###################################################################] 100%
 perl-HTML-Parser-3.72-1-x86_64                                                            88.6 KiB  0.00B/s 00:00 [###################################################################] 100%
 perl-LWP-MediaTypes-6.02-2-any                                                            18.0 KiB  0.00B/s 00:00 [###################################################################] 100%
 perl-URI-1.68-1-any                                                                       75.6 KiB  73.8M/s 00:00 [###################################################################] 100%
 perl-HTTP-Message-6.06-2-any                                                              71.3 KiB  0.00B/s 00:00 [###################################################################] 100%
 perl-HTTP-Cookies-6.01-2-any                                                              20.4 KiB  0.00B/s 00:00 [###################################################################] 100%
 perl-HTTP-Daemon-6.01-2-any                                                               14.2 KiB  0.00B/s 00:00 [###################################################################] 100%
 perl-HTTP-Negotiate-6.01-2-any                                                            11.4 KiB  11.2M/s 00:00 [###################################################################] 100%
 perl-Net-HTTP-6.09-1-any                                                                  19.8 KiB  0.00B/s 00:00 [###################################################################] 100%
 perl-WWW-RobotRules-6.02-2-any                                                            12.2 KiB  0.00B/s 00:00 [###################################################################] 100%
 perl-libwww-6.13-1-any                                                                   122.2 KiB  2.39M/s 00:00 [###################################################################] 100%
 perl-TimeDate-2.30-2-any                                                                  35.9 KiB  0.00B/s 00:00 [###################################################################] 100%
 perl-MailTools-2.14-1-any                                                                 58.4 KiB  0.00B/s 00:00 [###################################################################] 100%
 perl-IO-stringy-2.111-1-any                                                               52.6 KiB  51.4M/s 00:00 [###################################################################] 100%
 perl-Convert-BinHex-1.123-2-any                                                           30.1 KiB  0.00B/s 00:00 [###################################################################] 100%
 perl-MIME-tools-5.506-1-any                                                              180.4 KiB  2.55M/s 00:00 [###################################################################] 100%
 perl-Net-SSLeay-1.80-1-x86_64                                                            207.0 KiB  1725K/s 00:00 [###################################################################] 100%
 perl-IO-Socket-SSL-2.016-1-any                                                           112.5 KiB  2.68M/s 00:00 [###################################################################] 100%
 perl-Net-SMTP-SSL-1.02-1-any                                                               3.5 KiB  0.00B/s 00:00 [###################################################################] 100%
 perl-TermReadKey-2.37-1-x86_64                                                            30.6 KiB  0.00B/s 00:00 [###################################################################] 100%
 git-2.11.1-1-x86_64                                                                        4.1 MiB  2.13M/s 00:02 [###################################################################] 100%
(52/52) checking keys in keyring                                                                                   [###################################################################] 100%
(52/52) checking package integrity                                                                                 [###################################################################] 100%
(52/52) loading package files                                                                                      [###################################################################] 100%
(52/52) checking for file conflicts                                                                                [###################################################################] 100%
(52/52) checking available disk space                                                                              [###################################################################] 100%
:: Processing package changes...
( 1/52) installing mingw-w64-x86_64-openal                                                                         [###################################################################] 100%
( 2/52) installing mingw-w64-x86_64-gmp                                                                            [###################################################################] 100%
( 3/52) installing mingw-w64-x86_64-libwinpthread-git                                                              [###################################################################] 100%
( 4/52) installing mingw-w64-x86_64-gcc-libs                                                                       [###################################################################] 100%
( 5/52) installing mingw-w64-x86_64-glfw                                                                           [###################################################################] 100%
( 6/52) installing mingw-w64-x86_64-libiconv                                                                       [###################################################################] 100%
( 7/52) installing mingw-w64-x86_64-bzip2                                                                          [###################################################################] 100%
( 8/52) installing mingw-w64-x86_64-zlib                                                                           [###################################################################] 100%
( 9/52) installing mingw-w64-x86_64-binutils                                                                       [###################################################################] 100%
(10/52) installing mingw-w64-x86_64-headers-git                                                                    [###################################################################] 100%
(11/52) installing mingw-w64-x86_64-crt-git                                                                        [###################################################################] 100%
(12/52) installing mingw-w64-x86_64-isl                                                                            [###################################################################] 100%
(13/52) installing mingw-w64-x86_64-mpfr                                                                           [###################################################################] 100%
(14/52) installing mingw-w64-x86_64-mpc                                                                            [###################################################################] 100%
(15/52) installing mingw-w64-x86_64-windows-default-manifest                                                       [###################################################################] 100%
(16/52) installing mingw-w64-x86_64-winpthreads-git                                                                [###################################################################] 100%
(17/52) installing mingw-w64-x86_64-gcc                                                                            [###################################################################] 100%
(18/52) installing mingw-w64-x86_64-go                                                                             [###################################################################] 100%
(19/52) installing expat                                                                                           [###################################################################] 100%
(20/52) installing vim                                                                                             [###################################################################] 100%
(21/52) installing heimdal                                                                                         [###################################################################] 100%
(22/52) installing openssh                                                                                         [###################################################################] 100%
(23/52) installing db                                                                                              [###################################################################] 100%
(24/52) installing libgdbm                                                                                         [###################################################################] 100%
(25/52) installing gdbm                                                                                            [###################################################################] 100%
(26/52) installing perl                                                                                            [###################################################################] 100%
(27/52) installing perl-Error                                                                                      [###################################################################] 100%
(28/52) installing perl-Authen-SASL                                                                                [###################################################################] 100%
(29/52) installing perl-Encode-Locale                                                                              [###################################################################] 100%
(30/52) installing perl-HTTP-Date                                                                                  [###################################################################] 100%
(31/52) installing perl-File-Listing                                                                               [###################################################################] 100%
(32/52) installing perl-HTML-Tagset                                                                                [###################################################################] 100%
(33/52) installing perl-HTML-Parser                                                                                [###################################################################] 100%
(34/52) installing perl-LWP-MediaTypes                                                                             [###################################################################] 100%
(35/52) installing perl-URI                                                                                        [###################################################################] 100%
(36/52) installing perl-HTTP-Message                                                                               [###################################################################] 100%
(37/52) installing perl-HTTP-Cookies                                                                               [###################################################################] 100%
(38/52) installing perl-HTTP-Daemon                                                                                [###################################################################] 100%
(39/52) installing perl-HTTP-Negotiate                                                                             [###################################################################] 100%
(40/52) installing perl-Net-HTTP                                                                                   [###################################################################] 100%
(41/52) installing perl-WWW-RobotRules                                                                             [###################################################################] 100%
(42/52) installing perl-libwww                                                                                     [###################################################################] 100%
Optional dependencies for perl-libwww
    perl-LWP-Protocol-HTTPS: for https:// url schemes
(43/52) installing perl-TimeDate                                                                                   [###################################################################] 100%
(44/52) installing perl-MailTools                                                                                  [###################################################################] 100%
(45/52) installing perl-IO-stringy                                                                                 [###################################################################] 100%
(46/52) installing perl-Convert-BinHex                                                                             [###################################################################] 100%
module test... pass.
(47/52) installing perl-MIME-tools                                                                                 [###################################################################] 100%
(48/52) installing perl-Net-SSLeay                                                                                 [###################################################################] 100%
(49/52) installing perl-IO-Socket-SSL                                                                              [###################################################################] 100%
(50/52) installing perl-Net-SMTP-SSL                                                                               [###################################################################] 100%
(51/52) installing perl-TermReadKey                                                                                [###################################################################] 100%
(52/52) installing git                                                                                             [###################################################################] 100%
Optional dependencies for git
    python2: various helper scripts
    subversion: git svn

AL/al.h now exists but endian.h is still not there.

Also, Go 8 is installed in C:\msys64\mingw64\bin so MinGW64bit shell finds it.

 MINGW64 /c/goworksp/src/github.com/gen2brain/raylib-go/raylib
$ go install
# github.com/gen2brain/raylib-go/raylib
In file included from .\audio.c:89:0:
.\external/dr_flac.h:686:20: fatal error: endian.h: No such file or directory
 #include <endian.h>
                    ^
compilation terminated.

from raylib-go.

gen2brain avatar gen2brain commented on May 26, 2024

Just tried in VM with clean msys2. It builds fine.

    Milan Nikolic@PC MSYS ~
    # export GOPATH=/home/Milan\ Nikolic/golang                                     
    Milan Nikolic@PC MSYS ~
    # export GOROOT=/mingw64/lib/go

    Milan Nikolic@PC MSYS ~
    # export PATH=/mingw64/bin:/mingw64/lib:$PATH

    Milan Nikolic@PC MSYS ~
    # /mingw64/bin/go get -v github.com/gen2brain/raylib-go/raylib                  github.com/gen2brain/raylib-go (download)
    github.com/gen2brain/raylib-go/raylib

    Milan Nikolic@PC MSYS ~
    #

Also, I can change that endian.h to whatever and it doesn't complain, #ifdef __linux__ should not be true on Windows?

from raylib-go.

5k3105 avatar 5k3105 commented on May 26, 2024

Also, I can change that endian.h to whatever and it doesn't complain,#ifdef linux` should not be true on Windows?

Well, this was completely my fault.

I had CGO_CFLAGS=-D__linux__=1

from some previous experiment sitting in my env vars.

I deleted this, removed and reinstalled MSYS2. It complained about not finding al.h so I also ran the install for glfw and AL etc like above.

Your first example builds and I get:

2017-02-20 15_33_23-ray_test1 exe - entry point not found

from raylib-go.

gen2brain avatar gen2brain commented on May 26, 2024

GLFW version 3.2 is required, for window icons, fullscreen toggle etc. Not sure what is the version in MSYS2, but you can also compile it like this:

cd glfw
cmake -G "MSYS Makefiles" -DBUILD_SHARED_LIBS=ON -DGLFW_BUILD_EXAMPLES=OFF -DGLFW_BUILD_TESTS=OFF -DGLFW_BUILD_DOCS=OFF .
make

Or just try to comment SetWindowIcon in core.go for now, and do another go get so it doesn't rebuild whole package for every example.

from raylib-go.

gen2brain avatar gen2brain commented on May 26, 2024

GLFW is now bundled in raylib-go sources. You can try again without installing library.

from raylib-go.

5k3105 avatar 5k3105 commented on May 26, 2024

Hi!

Thank you for all your help.

This did work:

2017-02-21 16_54_18-program manager

-- but only from MINGW64 command line.

Clicking on the exe from explorer view in windows gives this:

2017-02-21 16_56_38-windows msys2 - endian h issue 5 gen2brain_raylib-go

Copying libopenal-1.dll to the executable folder allows it to run.

However, a command window opens in the background displaying configuration/debug info. Is there a way to turn this off?

Thanks for all your help.

from raylib-go.

5k3105 avatar 5k3105 commented on May 26, 2024

To recap, my steps to install were:

  1. install MSYS2
  2. run the regular pacman updates
  3. run pacman -S mingw-w64-x86_64-openal mingw-w64-x86_64-gcc mingw-w64-x86_64-go git
  4. open MSYS2 Mingw 64-bit shell
  5. go install raylib

from raylib-go.

gen2brain avatar gen2brain commented on May 26, 2024

Well yes, openal is required as .dll unless you compile it statically in binary. Also, command window is also "normal", if you don't want it compile binary with -ldflags "-H=windowsgui" , that is also not specific for Go, that is how Windows works.

from raylib-go.

gen2brain avatar gen2brain commented on May 26, 2024

To compile openal as static lib just pass -DLIBTYPE=STATIC to cmake when compiling, and pass -tags static to go build.

from raylib-go.

5k3105 avatar 5k3105 commented on May 26, 2024

All examples are working fine :)

Thank you!

from raylib-go.

Related Issues (20)

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.