Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » first time installing allegro

This thread is locked; no one can reply to it. rss feed Print
 1   2   3 
first time installing allegro
Tyler Wrobel
Member #16,594
November 2016

I am trying to install allegro for the first time. I am following this guide on wiki but have ran into a few problems. I am hoping to get some advice from some experts or experienced individuals. I am using this link https://wiki.allegro.cc/index.php?title=Building_with_msys2#Install_dependencies.

My first problem it would seem is that although MSYS seems to be building a make file it appears to be skipping quite a few of the libraries as it says it cannot find them. But, I am not getting and directx or dinput errors. I did install all the dependencies with pacman.

My second problem would be that either I am doing something wrong or this wiki need to be updated. When I run the cmake portion in part 1 of the build process I realized I could not build with the directory set to allegro in the last part of the instructions, I had to change this part to say allegro5 so it would match with the source files. Was this the right thing to do?

And lastly, when I run the 'make && make install' instruction I was getting errors say that no target was specified. So, I typed dir into the MSYS terminal and tried the 'make cmake_install && make install' options and it told me that no cmake files existed but when I typed dir into the MSYS teminal it clearly show a cmake in that folder. What is the proper way to use the 'make && make install' instruction in this case and or resolve the location of this directory?

I am using the mingw64 version of MSYS with pacman recommended in the wiki guide.
Any help is greatly appreciated.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

After you install the dependencies, you change to the 'allegro5' source directory. From there you create a build directory and change to it and then you run cmake with the desired options, then you run make && make install.

Post a complete log of the commands you are entering and the output you receive and we will be able to help you more effectively.

Tyler Wrobel
Member #16,594
November 2016

Here it is

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~
$ dir
allegro5 build_allegro_monolith

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~
$ cd allegro5

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~/allegro5
$ dir
addons docs README.txt README_pkgconfig.txt
allegro5.cfg examples README_android.txt README_raspberrypi.txt
android include README_cmake.txt README_releasing.txt
appveyor.yml indent.pro README_iphone.txt README_windows.txt
cmake LICENSE.txt README_macosx.txt src
CMakeLists.txt misc README_make.txt tests
CONTRIBUTORS.txt python README_msvc.txt tools
demos README.md README_packaging.txt

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~/allegro5
$ mkdir build_allegro_monolith

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~/allegro5
$ dir
addons demos README.md README_packaging.txt
allegro5.cfg docs README.txt README_pkgconfig.txt
android examples README_android.txt README_raspberrypi.txt
appveyor.yml include README_cmake.txt README_releasing.txt
build_allegro_monolith indent.pro README_iphone.txt README_windows.txt
cmake LICENSE.txt README_macosx.txt src
CMakeLists.txt misc README_make.txt tests
CONTRIBUTORS.txt python README_msvc.txt tools

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~/allegro5
$ cd build_allegro_monolith

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~/allegro5/build_allegro_monolith
$ cmake \ -G"MSYS Makefiles" \ -DCMAKE_INSTALL_PREFIX=/mingw64/x64_64-w64-mingw32 \ -DWANT_MONOLITH=on \ ../allegro5
CMake Error: The source directory "C:/msys64/home/headgearxthree/allegro5/build_allegro_monolith/ ../allegro5" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.

Usually I do this from outside the allegro5 folder. But, you definetly said build 1 layer inside the allegro5 folder do I guess this is right but now I am getting this wierd error.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

The error is in your cmake command. You should be specifying the allegro5 directory as the directory to look for for cmake files. In your current command, you specify "../allegro5", which as the error message says, does not exist. This is an error in the wiki page. I have since corrected it.

From your 'build' directory, you specify the parent directory, by using two dots (..). This will then tell cmake to look one directory up for the cmake files, which is the allegro5 folder.

That should fix your initial problem.

If you have more, please post the full log again on your next try.

Please post the whole log anyway, as you said you had problems with cmake detecting the dependencies for the addon libraries.

Tyler Wrobel
Member #16,594
November 2016

Isn't that what I did. I call ../allegro5 from the build_allegro_monolith which is nested inside the allegro5 folder.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Your setup

/allegro5
         /build_allegro_monolith

When in the build_allegro_monolith directory, and you refer to ../allegro5 you are referring to a directory that doesn't exist. The parent directory is allegro5 and you refer to it by using two dots, and only two dots.

cd build
cmake -G "MSYS Makefiles" [OPTIONS] ..

Tyler Wrobel
Member #16,594
November 2016

Just so you know I am using Windows.

So here it is, same problem. Am I supposed to execute some kind of batch file everytime in run msys or after I restart like some 64 bit compilers I use? MSYS64 was working fine after I initially installed it with the exception of the build phase, then sometime and I restarted my computer. Now. it is as if it is as if cmake itself does not have access to the rest of the machine. Here it is.

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~
$ dir
allegro5 build_allegro_monolith

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~
$ cd allegro5

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~/allegro5
$ dir
addons demos README.md README_packaging.txt
allegro5.cfg docs README.txt README_pkgconfig.txt
android examples README_android.txt README_raspberrypi.txt
appveyor.yml include README_cmake.txt README_releasing.txt
build_allegro_monolith indent.pro README_iphone.txt README_windows.txt
cmake LICENSE.txt README_macosx.txt src
CMakeLists.txt misc README_make.txt tests
CONTRIBUTORS.txt python README_msvc.txt tools

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~/allegro5
$ cd build_allegro_monolith

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~/allegro5/build_allegro_monolith
$ dir
allegro

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~/allegro5/build_allegro_monolith
$ cmake \ -G"MSYS Makefiles" \ -DCMAKE_INSTALL_PREFIX=/mingw64/x64_64-w64-mingw32 \ -DWANT_MONOLITH=on \ ..allegro5
CMake Error: The source directory "C:/msys64/home/headgearxthree/allegro5/build_allegro_monolith/ ..allegro5" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.

Why would it does this?

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Listen to the error. Pay attention to my directions. Two dots by themselves specify the parent directory.

I know you're on Windows you're using msys. As long as your path is set up correctly you don't need to run any batch scripts.

Tyler Wrobel
Member #16,594
November 2016

Ok, so this is what I got.

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~/allegro5/build_allegro_monolith
$ cmake \
-G "MSYS Makefiles" \
-DCMAKE_INSTALL_PREFIX=/mingw64/x64_64-w64-mingw32 \
-DWANT_MONOLITH=on \
..
-- Building for: Visual Studio 14 2015
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Guessed MSVC directory: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC
-- Found PkgConfig: C:/msys64/mingw64/bin/pkg-config.exe (found version "0.29.1")
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for include file dirent.h
-- Looking for include file dirent.h - not found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file linux/input.h
-- Looking for include file linux/input.h - not found
-- Looking for include file stdbool.h
-- Looking for include file stdbool.h - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file sys/io.h
-- Looking for include file sys/io.h - not found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - not found
-- Looking for include file time.h
-- Looking for include file time.h - found
-- Looking for include file sys/utsname.h
-- Looking for include file sys/utsname.h - not found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file soundcard.h
-- Looking for include file soundcard.h - not found
-- Looking for include file sys/soundcard.h
-- Looking for include file sys/soundcard.h - not found
-- Looking for include file machine/soundcard.h
-- Looking for include file machine/soundcard.h - not found
-- Looking for include file linux/soundcard.h
-- Looking for include file linux/soundcard.h - not found
-- Looking for include file libkern/OSAtomic.h
-- Looking for include file libkern/OSAtomic.h - not found
-- Looking for include file sys/inotify.h
-- Looking for include file sys/inotify.h - not found
-- Looking for include file sal.h
-- Looking for include file sal.h - found
-- Looking for getexecname
-- Looking for getexecname - not found
-- Looking for mkstemp
-- Looking for mkstemp - not found
-- Looking for mmap
-- Looking for mmap - not found
-- Looking for mprotect
-- Looking for mprotect - not found
-- Looking for sched_yield
-- Looking for sched_yield - not found
-- Looking for sysconf
-- Looking for sysconf - not found
-- Looking for fseeko
-- Looking for fseeko - not found
-- Looking for ftello
-- Looking for ftello - not found
-- Looking for strerror_r
-- Looking for strerror_r - not found
-- Looking for strerror_s
-- Looking for strerror_s - found
-- Check size of _Bool
-- Check size of _Bool - done
-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV
-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV - Failed
-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H
-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H - Failed
-- Performing Test ALLEGRO_HAVE_VA_COPY
-- Performing Test ALLEGRO_HAVE_VA_COPY - Success
-- Found OpenGL: opengl32
S3TC locking disabled. You will not be able to load/save pre-compressed textures with OpenGL.
-- Found DINPUT: C:/Program Files (x86)/Windows Kits/8.1/Include/um
-- Found D3D9: C:/Program Files (x86)/Windows Kits/8.1/Include/shared
-- Could NOT find D3DX9 (missing: D3DX9_INCLUDE_DIR D3DX9_LIBRARY)
-- Found DSOUND: C:/Program Files (x86)/Windows Kits/8.1/Include/um
-- Found XINPUT: C:/Program Files (x86)/Windows Kits/8.1/Include/um
D3DX9 not found. You will not be able to compress or decompress textures on the GPU.
-- Found GDIPLUS: C:/Program Files (x86)/Windows Kits/8.1/Include/um
-- Performing Test SUPPORT_GDIPLUS
-- Performing Test SUPPORT_GDIPLUS - Success
-- Could NOT find D3DX9 (missing: D3DX9_INCLUDE_DIR D3DX9_LIBRARY)
-- Could NOT find OpenAL (missing: OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
-- Could NOT find OPENSL (missing: OPENSL_INCLUDE_DIR OPENSL_LIBRARY)
-- Could NOT find FLAC (missing: OGG_LIBRARY FLAC_LIBRARY)
WARNING: libFLAC not found or compile test failed, disabling support.
-- Could NOT find DUMB (missing: DUMB_LIBRARY)
WARNING: libdumb not found or compile test failed, disabling support. <http://dumb.sourceforge.net/>
-- Could NOT find OGG (missing: OGG_LIBRARY)
WARNING: libvorbis not found or compile test failed, disabling support.
WARNING: libopus not found or compile test failed, disabling support.
-- Could NOT find Freetype (missing: FREETYPE_LIBRARY) (found version "2.7.0")
WARNING: FreeType not found, disabling support.
-- Could NOT find PhysFS (missing: PHYSFS_LIBRARY)
-- Could NOT find PHYSFS (missing: PHYSFS_LIBRARY)
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found version "1.2.8")
WARNING: allegro_video wanted but no supported backend found
-- Not building ex_color
-- Not building ex_depth_mask
-- Not building ex_haptic2
-- Not building ex_physfs
-- Not building ex_video
-- Not building ex_font_justify
-- Not building ex_font_multiline
-- Not building ex_logo
-- Not building ex_projection
-- Not building ex_ttf
-- Not building ex_audio_chain
-- Not building ex_synth
-- Could NOT find ENET (missing: ENET_INCLUDE_DIR ENET_LIBRARY)
-- Not building tests due to missing library. Have: allegro allegro_main allegro_image allegro_color allegro_font allegro_primitives
-- Could NOT find LATEX (missing: LATEX_COMPILER)
-- Configuring done
-- Generating done
-- Build files have been written to: C:/msys64/home/headgearxthree/allegro5/build_allegro_monolith

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~/allegro5/build_allegro_monolith
$ make && make install
make: *** No targets specified and no makefile found. Stop.

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~/allegro5/build_allegro_monolith
$

Now I am getting the no makefile found error and alot of things were not found.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Your first problem is that cmake thinks you want Visual Studio project files. This should be overridden by "-G "MSYS Makefiles". Try entering all the cmake commands on one line without the separating backslashes.

cmake -G "MSYS Makefiles" -DWANT_MONOLITH=On -DCMAKE_INSTALL_PREFIX=/mingw64/x64_64-w64-mingw32 ..

EDIT
Something else you can do is to delete CMakeCache.txt before re-running CMake. It's in your build directory. It will force CMake to completely regenerate it's option cache.

Tyler Wrobel
Member #16,594
November 2016

Ok, I will try that.

So here is what I got. I feel like I myself can probably have played around a little bit before posting this? But, here is what is happening... I am pretty sure I was getting direct_x before when it was trying to compile for visual studios...

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~
$ dir
allegro5

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~
$ cd allegro5

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~/allegro5
$ cd build_allegro_monolith

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~/allegro5/build_allegro_monolith
$ cmake -G "MSYS Makefiles" -DWANT_MONOLITH=On -DCMAKE_INSTALL_PREFIX=/mingw64/x64_64-w64-mingw32 ..
CMake Error: Error: generator : MSYS Makefiles
Does not match the generator used previously: Visual Studio 14 2015
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.

/* After I got this cmake error i went into the dir in windows file explorer and deleted that .txt file and the CMakeFiles directory and did this */

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~/allegro5/build_allegro_monolith
$ cmake -G "MSYS Makefiles" -DWANT_MONOLITH=On -DCMAKE_INSTALL_PREFIX=/mingw64/x64_64-w64-mingw32 ..
-- The C compiler identification is GNU 6.2.0
-- The CXX compiler identification is GNU 6.2.0
-- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe
-- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/msys64/mingw64/bin/g++.exe
-- Check for working CXX compiler: C:/msys64/mingw64/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Guessed MinGW directory: C:/msys64/mingw64
-- Performing Test HAVE_DM_POSITION
-- Performing Test HAVE_DM_POSITION - Success
-- Found PkgConfig: C:/msys64/mingw64/bin/pkg-config.exe (found version "0.29.1")
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for include file dirent.h
-- Looking for include file dirent.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file linux/input.h
-- Looking for include file linux/input.h - not found
-- Looking for include file stdbool.h
-- Looking for include file stdbool.h - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file sys/io.h
-- Looking for include file sys/io.h - not found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - found
-- Looking for include file time.h
-- Looking for include file time.h - found
-- Looking for include file sys/utsname.h
-- Looking for include file sys/utsname.h - not found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file soundcard.h
-- Looking for include file soundcard.h - not found
-- Looking for include file sys/soundcard.h
-- Looking for include file sys/soundcard.h - not found
-- Looking for include file machine/soundcard.h
-- Looking for include file machine/soundcard.h - not found
-- Looking for include file linux/soundcard.h
-- Looking for include file linux/soundcard.h - not found
-- Looking for include file libkern/OSAtomic.h
-- Looking for include file libkern/OSAtomic.h - not found
-- Looking for include file sys/inotify.h
-- Looking for include file sys/inotify.h - not found
-- Looking for include file sal.h
-- Looking for include file sal.h - found
-- Looking for getexecname
-- Looking for getexecname - not found
-- Looking for mkstemp
-- Looking for mkstemp - found
-- Looking for mmap
-- Looking for mmap - not found
-- Looking for mprotect
-- Looking for mprotect - found
-- Looking for sched_yield
-- Looking for sched_yield - found
-- Looking for sysconf
-- Looking for sysconf - not found
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for ftello
-- Looking for ftello - found
-- Looking for strerror_r
-- Looking for strerror_r - not found
-- Looking for strerror_s
-- Looking for strerror_s - found
-- Check size of _Bool
-- Check size of _Bool - done
-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV
-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV - Failed
-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H
-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H - Failed
-- Performing Test ALLEGRO_HAVE_VA_COPY
-- Performing Test ALLEGRO_HAVE_VA_COPY - Success
-- Found OpenGL: opengl32
S3TC locking disabled. You will not be able to load/save pre-compressed textures with OpenGL.
-- Could NOT find DINPUT (missing: DINPUT_INCLUDE_DIR)
-- Could NOT find D3D9 (missing: D3D9_INCLUDE_DIR)
-- Could NOT find D3DX9 (missing: D3DX9_INCLUDE_DIR D3DX9_LIBRARY)
-- Could NOT find DSOUND (missing: DSOUND_INCLUDE_DIR)
-- Could NOT find XINPUT (missing: XINPUT_INCLUDE_DIR XINPUT_LIBRARY)
CMake Error at CMakeLists.txt:703 (message):
Windows port requires DirectInput (not found).

-- Configuring incomplete, errors occurred!
See also "C:/msys64/home/headgearxthree/allegro5/build_allegro_monolith/CMakeFiles/CMakeOutput.log".
See also "C:/msys64/home/headgearxthree/allegro5/build_allegro_monolith/CMakeFiles/CMakeError.log".

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~/allegro5/build_allegro_monolith
$

I am going to try with a clean directory.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

The wiki covers this :

Quote:

If you receive errors relating to CMake such as Could NOT find DINPUT (missing: DINPUT_INCLUDE_DIR) it's likely CMake isn't resolving the directx headers and libraries. These are included in msys.

Try passing an altered PATH variable by replacing cmake with PATH=/mingw64/x86_64-w64-mingw32/bin:$PATH cmake in the above install line.

Tyler Wrobel
Member #16,594
November 2016

Ok, so I definetly messed up bad. I went along and removed the \ slashes and it didn't resolve my direct_x issue. Just for the sake of it I went back to executing it the way I was earlier because I though that didn't add up. And needless to say even when I compile it now it still can't find direct x. I think I deleted something. I am sure it was before because at least it would complete are return with few not found errors. I am going to reinstall all dependencies now.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

I went along and removed the \ slashes and it didn't resolve my direct_x issue.

It wouldn't. The backslashes have to do with continuing a line in MSYS.

Quote:

And needless to say even when I compile it now it still can't find direct x.

That's why I suggested you follow the wiki and alter your PATH variable before calling cmake.

Okay, here's a basic rundown :

1. Install dependencies via pacman (including git and cmake).

2. Clone allegro

3. cd allegro5

4. mkdir build

5. cd build

6. PATH=/mingw64/x86_64-w64-mingw32/bin:$PATH cmake -G "MSYS Makefiles" -DWANT_MONOLITH=On -DCMAKE_INSTALL_PREFIX=/mingw64/x64_64-w64-mingw32 ..

7. make

8. make install

Step #6 is the most important. It's altering your path to detect the installed DirectX, telling cmake to create MSYS Makefiles, create the monolith, and install to /mingw64/x64_64-w64-mingw32. Ensure all those paths are correct for your compiler.

Tyler Wrobel
Member #16,594
November 2016

Got the above. But, in the Run Msys section at the beginning of the artical it says to run the " mingwXX_shell.bat" file. However I only have executables in that directory. Is a bat file supposed to be there?

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Tyler Wrobel
Member #16,594
November 2016

I don't have those.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Tyler Wrobel
Member #16,594
November 2016

I guess I got a crap install then. I ran the autorebase.bat that is in that directory though. I will probably have to reinstall msys. Do you think you could open either one of those bat files in notepad and post its contents here? I started executing the autorebase.bat file that was in the msys/ directory becuase I thought maybe my directory was built slightly differently but then I opened it just now to find it contents

@echo off

set PATH=%~dp0\usr\bin;%PATH%
dash /usr/bin/rebaseall -p

this looks like it could be playing a part in msys no longer resolving directx also.
I dont even have a msys/msys64 directory. all my executables are in the c:\msys directory. I forget where I downloaded this from I may need to find a different source.
I tried to attach a photo of the msys directory.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Tyler Wrobel
Member #16,594
November 2016

Ok

EDIT:

So I was able to make some progress with that edit you showed me. I still got some errors along the way but I am going to try to compile something with GCC and Allegro and see what happens.

I got this. I am not sure what the ARGV_C are, but I was thinking that could either be bad or negligible.

headgearxthree@DESKTOP-PFLMU84 MINGW64 ~/allegro5/build
$ PATH=/mingw64/x86_64-w64-mingw32/bin:$PATH cmake -G "MSYS Makefiles" -DWANT_MONOLITH=On -DCMAKE_INSTALL_PREFIX=/mingw64/x64_64-w64-mingw32 ..
-- Guessed MinGW directory: C:/msys64/mingw64
-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV
-- Performing Test ALLEGRO_HAVE_PROCFS_ARGCV - Failed
-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H
-- Performing Test ALLEGRO_HAVE_SV_PROCFS_H - Failed
S3TC locking disabled. You will not be able to load/save pre-compressed textures with OpenGL.
-- Found DINPUT: C:/msys64/mingw64/x86_64-w64-mingw32/include
-- Found D3D9: C:/msys64/mingw64/x86_64-w64-mingw32/include
-- Found D3DX9: C:/msys64/mingw64/x86_64-w64-mingw32/include
-- Found DSOUND: C:/msys64/mingw64/x86_64-w64-mingw32/include
-- Found XINPUT: C:/msys64/mingw64/x86_64-w64-mingw32/include
-- Found GDIPLUS: C:/msys64/mingw64/x86_64-w64-mingw32/include
-- Performing Test SUPPORT_GDIPLUS
-- Performing Test SUPPORT_GDIPLUS - Success
-- Could NOT find OpenAL (missing: OPENAL_INCLUDE_DIR)
-- Could NOT find OPENSL (missing: OPENSL_INCLUDE_DIR OPENSL_LIBRARY)
-- Found FLAC: C:/msys64/mingw64/include
-- Performing Test FLAC_COMPILES
-- Performing Test FLAC_COMPILES - Success
-- Found DUMB: C:/msys64/mingw64/include
-- Performing Test DUMB_COMPILES
-- Performing Test DUMB_COMPILES - Success
-- Found OGG: C:/msys64/mingw64/include
-- Found VORBIS: C:/msys64/mingw64/include
-- Performing Test VORBIS_COMPILES
-- Performing Test VORBIS_COMPILES - Success
-- Could NOT find OPUS (missing: OPUS_INCLUDE_DIR OPUS_LIBRARY OPUSFILE_LIBRARY)
WARNING: libopus not found or compile test failed, disabling support.
-- Found Freetype: C:/msys64/mingw64/lib/libfreetype.dll.a (found version "2.7.0")
-- Found ZLIB: C:/msys64/mingw64/lib/libz.dll.a (found version "1.2.8")
-- Found PhysFS: C:/msys64/mingw64/lib/libphysfs.dll.a
-- Found PHYSFS: C:/msys64/mingw64/lib/libphysfs.dll.a
-- Performing Test PHYSFS_IMPLICIT_ZLIB
-- Performing Test PHYSFS_IMPLICIT_ZLIB - Success
-- Found THEORA: C:/msys64/mingw64/include
-- Could NOT find ENET (missing: ENET_INCLUDE_DIR ENET_LIBRARY)
-- Could NOT find LATEX (missing: LATEX_COMPILER)
-- Configuring done
-- Generating done
-- Build files have been written to: C:/msys64/home/headgearxthree/allegro5/build

**After this I just ran make and then make install and didnt note any errors just alot of linking and compiling.

Also I did get a really wierd serious of errors when I was running pacman, I accidentally exited out of that window. And since lost what it said, so thats why I am going to run a test trial before I attemp to figure out what the were.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Tyler Wrobel
Member #16,594
November 2016

Ok

EDIT:
So I am trying to compile with GCC using dev c++. It actually works quite well and I was having a problem passing an include directory via the command line so I decided to use the IDE. Appearently all allegro files using a header scheme such as allegro5/* so not a big deal. I just added the c:\msys64\home\headgearxthree\allegro5\include include path to my c++ include paths. That got it through alot of the compilation but it appears as if I'm still missing something. I am getting an error on line 28 of the alconfig.h file in the C:\msys64\home\headgearxthree\allegro5\include\allegro5\platform path. The compiler is saying that "alplatf.h" doesn't exist, but I know the compiler is resolving the path. I found this file and wouldn't you know it is a cmake file. The file in the platform directory is alplatf.h.cmake and alconfig.h points to a .h file on line 28. I am hesitant as what to do.

Here is the contents of the alplatf.h.cmake file --

/* alplatf.h is generated from alplatf.h.cmake */
#cmakedefine ALLEGRO_MINGW32
#cmakedefine ALLEGRO_UNIX
#cmakedefine ALLEGRO_MSVC
#cmakedefine ALLEGRO_MACOSX
#cmakedefine ALLEGRO_BCC32
#cmakedefine ALLEGRO_IPHONE
#cmakedefine ALLEGRO_ANDROID
#cmakedefine ALLEGRO_RASPBERRYPI
#cmakedefine ALLEGRO_CFG_NO_FPU
#cmakedefine ALLEGRO_CFG_DLL_TLS
#cmakedefine ALLEGRO_CFG_PTHREADS_TLS
#cmakedefine ALLEGRO_CFG_RELEASE_LOGGING

#cmakedefine ALLEGRO_CFG_D3D
#cmakedefine ALLEGRO_CFG_D3D9EX
#cmakedefine ALLEGRO_CFG_D3DX9
#cmakedefine ALLEGRO_CFG_XINPUT
#cmakedefine ALLEGRO_CFG_OPENGL
#cmakedefine ALLEGRO_CFG_OPENGLES
#cmakedefine ALLEGRO_CFG_OPENGLES2
#cmakedefine ALLEGRO_CFG_OPENGLES3
#cmakedefine ALLEGRO_CFG_OPENGL_PROGRAMMABLE_PIPELINE
#cmakedefine ALLEGRO_CFG_SHADER_GLSL
#cmakedefine ALLEGRO_CFG_SHADER_HLSL
#cmakedefine ALLEGRO_CFG_OPENGL_S3TC_LOCKING

#cmakedefine ALLEGRO_CFG_ANDROID_LEGACY

/*---------------------------------------------------------------------------*/

/* Define to 1 if you have the corresponding header file. */
#cmakedefine ALLEGRO_HAVE_DIRENT_H
#cmakedefine ALLEGRO_HAVE_INTTYPES_H
#cmakedefine ALLEGRO_HAVE_LINUX_AWE_VOICE_H
#cmakedefine ALLEGRO_HAVE_LINUX_INPUT_H
#cmakedefine ALLEGRO_HAVE_LINUX_SOUNDCARD_H
#cmakedefine ALLEGRO_HAVE_MACHINE_SOUNDCARD_H
#cmakedefine ALLEGRO_HAVE_SOUNDCARD_H
#cmakedefine ALLEGRO_HAVE_STDBOOL_H
#cmakedefine ALLEGRO_HAVE_STDINT_H
#cmakedefine ALLEGRO_HAVE_SV_PROCFS_H
#cmakedefine ALLEGRO_HAVE_SYS_IO_H
#cmakedefine ALLEGRO_HAVE_SYS_SOUNDCARD_H
#cmakedefine ALLEGRO_HAVE_SYS_STAT_H
#cmakedefine ALLEGRO_HAVE_SYS_TIME_H
#cmakedefine ALLEGRO_HAVE_TIME_H
#cmakedefine ALLEGRO_HAVE_SYS_UTSNAME_H
#cmakedefine ALLEGRO_HAVE_SYS_TYPES_H
#cmakedefine ALLEGRO_HAVE_OSATOMIC_H
#cmakedefine ALLEGRO_HAVE_SYS_INOTIFY_H
#cmakedefine ALLEGRO_HAVE_SAL_H

/* Define to 1 if the corresponding functions are available. */
#cmakedefine ALLEGRO_HAVE_GETEXECNAME
#cmakedefine ALLEGRO_HAVE_MKSTEMP
#cmakedefine ALLEGRO_HAVE_MMAP
#cmakedefine ALLEGRO_HAVE_MPROTECT
#cmakedefine ALLEGRO_HAVE_SCHED_YIELD
#cmakedefine ALLEGRO_HAVE_SYSCONF
#cmakedefine ALLEGRO_HAVE_SYSCTL

#cmakedefine ALLEGRO_HAVE_FSEEKO
#cmakedefine ALLEGRO_HAVE_FTELLO
#cmakedefine ALLEGRO_HAVE_STRERROR_R
#cmakedefine ALLEGRO_HAVE_STRERROR_S
#cmakedefine ALLEGRO_HAVE_VA_COPY

/* Define to 1 if procfs reveals argc and argv */
#cmakedefine ALLEGRO_HAVE_PROCFS_ARGCV

/*---------------------------------------------------------------------------*/

/* Define if target machine is little endian. */
#cmakedefine ALLEGRO_LITTLE_ENDIAN

/* Define if target machine is big endian. */
#cmakedefine ALLEGRO_BIG_ENDIAN

/* Define if target platform is Darwin. */
#cmakedefine ALLEGRO_DARWIN

/*---------------------------------------------------------------------------*/

/* Define if you need support for X-Windows. */
#cmakedefine ALLEGRO_WITH_XWINDOWS

/* Define if XCursor ARGB extension is available. */
#cmakedefine ALLEGRO_XWINDOWS_WITH_XCURSOR

/* Define if XF86VidMode extension is supported. */
#cmakedefine ALLEGRO_XWINDOWS_WITH_XF86VIDMODE

/* Define if Xinerama extension is supported. */
#cmakedefine ALLEGRO_XWINDOWS_WITH_XINERAMA

/* Define if XRandR extension is supported. */
#cmakedefine ALLEGRO_XWINDOWS_WITH_XRANDR

/* Define if XIM extension is supported. */
#cmakedefine ALLEGRO_XWINDOWS_WITH_XIM

/* Define if XInput 2.2 X11 extension is supported. */
#cmakedefine ALLEGRO_XWINDOWS_WITH_XINPUT2

/*---------------------------------------------------------------------------*/

/* Define if target platform is linux. */
#cmakedefine ALLEGRO_LINUX

/* Define if we are building with SDL backend. */
#cmakedefine ALLEGRO_SDL

/*---------------------------------------------------------------------------*/
/* vi: set ft=c ts=3 sts=3 sw=3 et: */

I was reading through it and I happened to notice that line 70 is references something about ARGC_V and I was getting a failed for that when I ran cmake and built it, I think this file may have been the culpret. As if for some reason it could not determine that I was building for windows or something it looks like it failed.

I am going to make a copy of this then try to build it myself by using logic and carefuly examing the if statements to build a header file.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Alright, so I have everything done up to step #6 above (cmake).

You'll want to run this from the mingw64 shell. In the latest MSYS2, the default install directory is c:\msys64. In this folder you'll find msys.exe, mingw64.exe and mingw32.exe. You'll want to run mingw64.exe to set up the mingw64 build environment before running cmake.

NOTE : There is an error in the wiki. I fixed it. It should say in the cmake command line parameters to set the CMAKE_INSTALL_PREFIX to the following directory :
-DCMAKE_INSTALL_PREFIX=/mingw64/x86_64-w64-mingw32
(Note the x86_64 and not x64_64 as before). x64 points to a directory that doesn't exist.

After running cmake, make, and make install, you should have something that looks like the following log file :

build_log.txt.

EDIT FOR YOUR EDIT
You're specifying the wrong directory for the include files. You need to specify the msys64//mingw64/x86_64-w64-mingw32/include directory for your include files. I don't know if you can use msys2/mingw64 outside of msys. mingw64.exe sets up a proper build environment for you to build with mingw64.

Tyler Wrobel
Member #16,594
November 2016

Okay, I guess we will see where I stand compared to what you have.

 1   2   3 


Go to: