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

CMAKE static build issue #3260

Open
IRONALEKS opened this issue Nov 16, 2024 · 0 comments
Open

CMAKE static build issue #3260

IRONALEKS opened this issue Nov 16, 2024 · 0 comments

Comments

@IRONALEKS
Copy link

IRONALEKS commented Nov 16, 2024

System Information

  • Ogre Version: 14.3.1
  • Operating System / Platform: Windows 10 x64
  • RenderSystem: any
  • cmake version 3.31.0-rc2

Detailled description

When i try to build ogre into a static library using the following options and commands my build fails

set IRON_PROJECT_ROOT_PATH=%~dp0..\..\
CMAKE_BUILD_TYPE=Debug

rmdir /s /q %IRON_PROJECT_ROOT_PATH%built\assets\libraries\ogre-14.3.1
mkdir %IRON_PROJECT_ROOT_PATH%built\assets\libraries\ogre-14.3.1
mkdir %IRON_PROJECT_ROOT_PATH%built\assets\libraries\ogre-14.3.1\cmake
mkdir %IRON_PROJECT_ROOT_PATH%built\assets\libraries\ogre-14.3.1\result
cd %IRON_PROJECT_ROOT_PATH%libraries\ogre-14.3.1
cmake -S . -B %IRON_PROJECT_ROOT_PATH%built\assets\libraries\ogre-14.3.1\cmake -A x64 -G "Visual Studio 17 2022" -D OGRE_STATIC=TRUE -D BUILD_SHARED_LIBS=OFF -D CMAKE_BUILD_TYPE=Debug -D OGRE_CONFIG_DOUBLE=TRUE -D OGRE_BUILD_SAMPLES=FALSE -D CMAKE_INSTALL_PREFIX=%IRON_PROJECT_ROOT_PATH%built\assets\libraries\ogre-14.3.1\result
cmake --build %IRON_PROJECT_ROOT_PATH%built\assets\libraries\ogre-14.3.1\cmake --config Debug -j -v --target install

It throws an error that it can't find the file "C:/Users/8IRON/Desktop/game_cpp/built/assets/libraries/ogre-14.3.1/cmake/lib/OgreMainStatic_d.pdb", for some reason the file is in "C:/Users/8IRON/Desktop/game_cpp/built/assets/libraries/ogre-14.3.1/cmake/lib/Debug/OgreMainStatic_d.pdb" along with all the rest of the files
Untitled

Ogre.log

The issue seems to be the error below, but i attached the full cmake log aaaa.txt

           file INSTALL cannot find
           "C:/Users/8IRON/Desktop/game_cpp/built/assets/libraries/ogre-14.3.1/cmake/lib/OgreMainStatic_d.pdb":
           File exists.
         Call Stack (most recent call first):
           cmake_install.cmake:145 (include)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant