Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Build: Irrlicht found, but it is not IrrlichtMt #11231

Closed
AntumDeluge opened this issue Apr 25, 2021 · 2 comments
Closed

Can't Build: Irrlicht found, but it is not IrrlichtMt #11231

AntumDeluge opened this issue Apr 25, 2021 · 2 comments
Labels
Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible

Comments

@AntumDeluge
Copy link
Contributor

AntumDeluge commented Apr 25, 2021

Trying to build current master branch on Windows 10 64-bit.

I've downloaded the 64-bit Minetest Irrlicht libs for Windows, but CMake is complaining that it is the wrong version:

$ cmake ../ -G "MSYS Makefiles" -DRUN_IN_PLACE=TRUE -DIRRLICHT_DLL=../../irrlicht_libs/bin/IrrlichtMt.dll \
    -DIRRLICHT_INCLUDE_DIR=../../irrlicht_libs/include -DIRRLICHT_LIBRARY=../../irrlicht_libs/lib/libIrrlichtMt.dll.a

-- *** Will build version 5.5.0-dev ***
-- Looking for IRRLICHT_VERSION_MT
-- Looking for IRRLICHT_VERSION_MT - not found
CMake Error at CMakeLists.txt:78 (message):
  Irrlicht found, but it is not IrrlichtMt (Minetest's Irrlicht fork).  The
  Minetest team has forked Irrlicht to make their own customizations.  It can
  be found here: https://github.com/minetest/irrlicht

  Building the client with upstream Irrlicht is no longer possible.


-- Configuring incomplete, errors occurred!

Edit: I just realized why probably, the Windows libs are built for Visual Studio? So, I will have to build the libs myself.

Edit: Compiled the libs myself, but get the same error.

-- The C compiler identification is GNU 10.1.0
-- The CXX compiler identification is GNU 10.1.0
-- Check for working C compiler: C:/Users/antum/Environment/MSYS2-x86_64/mingw64/bin/gcc.exe
-- Check for working C compiler: C:/Users/antum/Environment/MSYS2-x86_64/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:/Users/antum/Environment/MSYS2-x86_64/mingw64/bin/g++.exe
-- Check for working CXX compiler: C:/Users/antum/Environment/MSYS2-x86_64/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
-- *** Will build version 5.5.0-dev ***
-- Found Irrlicht: C:/Users/antum/Development/Minetest/irrlicht_libs/lib/libIrrlichtMt.dll.a
-- Looking for IRRLICHT_VERSION_MT
-- Looking for IRRLICHT_VERSION_MT - not found
CMake Error at CMakeLists.txt:78 (message):
  Irrlicht found, but it is not IrrlichtMt (Minetest's Irrlicht fork).  The
  Minetest team has forked Irrlicht to make their own customizations.  It can
  be found here: https://github.com/minetest/irrlicht

  Building the client with upstream Irrlicht is no longer possible.


-- Configuring incomplete, errors occurred!
@AntumDeluge AntumDeluge added the Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible label Apr 25, 2021
@sfan5
Copy link
Member

sfan5 commented Apr 25, 2021

You should have set the include dir to ../../irrlicht_libs/include/irrlichtmt, which is the folder that contains IrrCompileConfig.h.

The error message is misleading as it says Irrlicht was "found" when it actually wasn't (and thus the Irrlicht/IrrlichtMt distinction cannot be verified). I'll improve this.

I just realized why probably, the Windows libs are built for Visual Studio? So, I will have to build the libs myself.

The libraries are built for MinGW, but building yourself is a good idea either way.

@AntumDeluge
Copy link
Contributor Author

AntumDeluge commented Apr 25, 2021

Thank you @sfan5, that worked. Waiting for it to build now.

Edit: Build successful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible
Projects
None yet
Development

No branches or pull requests

2 participants