Skip to content

Conversation

@akleshchev
Copy link
Contributor

@akleshchev akleshchev commented Sep 5, 2025

Build fixes to make mac and windows pass cmake stage.

Build fixes, instead of resolving unclear boost filesystem errors just
updated to std in affected places.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong. The lib names start with libboost for all 3 OS now.

Copy link
Contributor Author

@akleshchev akleshchev Sep 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Old variant builds just fine on mac os (intel) but wasn't configuring on windows. I agree that logically mac should have been fine with libboost (files in the package are libboost), will try unifying.

Edit: mac fails configuration with libboost, despite libraries being libboost

cmake_minimum_required(VERSION 3.16.0...4.0 FATAL_ERROR)
cmake_policy(SET CMP0156 NEW)
cmake_policy(SET CMP0179 NEW)
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.29.0")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The policies should probably only be set for CMake versions less than 4.0 and the minimum required CMake version should only specify a minimum version. Specifying a maximum version here is going to produce empty lines in the build output at least if using CMake 4.1.0.

Copy link
Contributor Author

@akleshchev akleshchev Sep 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The policies should probably only be set for CMake versions less than 4.0

Why even have them in such case if they only get a narrow window (3.29..4.0) to work?
The problem was that they don't build at 3.24 nor 3.27 so I added a check to not use them (3.29 is the first implementation).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you checked the content of the 3p packages? Pretty sure the lib names got unified.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked the newest one. kdu.lib and libkdu.a

@akleshchev akleshchev force-pushed the andreyk/viewer_cef branch 2 times, most recently from 22f8815 to 493d7d9 Compare September 5, 2025 15:09
@akleshchev akleshchev marked this pull request as ready for review September 5, 2025 15:13
@akleshchev akleshchev merged commit 12704b9 into project/mac_universal Sep 5, 2025
20 of 24 checks passed
@akleshchev akleshchev deleted the andreyk/viewer_cef branch September 5, 2025 16:00
@github-actions github-actions bot locked and limited conversation to collaborators Sep 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants