-
Notifications
You must be signed in to change notification settings - Fork 25
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
Conan v2 + OS SDK 3.8.0-rc2 #712
Conversation
```shell | ||
conan --version | ||
conan remote add -f nrel-v2 http://conan.openstudio.net/artifactory/api/conan/conan-v2 | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Step 1
```shell | ||
conan install . --output-folder=../OSApp-build-release --build=missing -c tools.cmake.cmaketoolchain:generator=Ninja -s compiler.cppstd=20 -s build_type=Release | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Step 2, at root of repo, with conan2
``` | ||
cmake --preset conan-release \ | ||
-DQT_INSTALL_DIR:PATH=/opt/Qt/6.6.3/gcc_64 \ | ||
-DBUILD_PACKAGE:BOOL=ON | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Step 3, at root still
Building | ||
|
||
``` | ||
cmake --build --preset conan-release | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Step 4, at root still.
ab88582
to
b482f2b
Compare
if [ "${{ matrix.SELF_HOSTED }}" == "true" ]; then | ||
# TODO: temp... this is unfortunate but the OS SDK arm64 rc2 package has a different sha when extracted... | ||
# OpenStudio-3.8.0-rc2+af997f4fef-Darwin-x86_64.tar.gz on github, but when extracted it's OpenStudio-3.8.0-rc2+06d9d975e1-Darwin-arm64 | ||
cmake --preset conan-release -DQT_INSTALL_DIR:PATH=${{ env.QT_INSTALL_DIR }} \ | ||
-DBUILD_DOCUMENTATION:BOOL=${{ env.BUILD_DOCUMENTATION }} \ | ||
-DBUILD_PACKAGE:BOOL=${{ env.BUILD_PACKAGE }} \ | ||
-DANALYTICS_API_SECRET:STRING=${{ secrets.ANALYTICS_API_SECRET }} \ | ||
-DANALYTICS_MEASUREMENT_ID:STRING=${{ secrets.ANALYTICS_MEASUREMENT_ID }} || true | ||
|
||
ls $(pwd)/build/OpenStudio-3.8.0 || true | ||
OS_DIR=$(find "$(pwd)/build/OpenStudio-3.8.0" -name openstudioConfig.cmake) | ||
OS_DIR=$(dirname $OS_DIR) | ||
cmake --preset conan-release -DQT_INSTALL_DIR:PATH=${{ env.QT_INSTALL_DIR }} \ | ||
-DBUILD_DOCUMENTATION:BOOL=${{ env.BUILD_DOCUMENTATION }} \ | ||
-DBUILD_PACKAGE:BOOL=${{ env.BUILD_PACKAGE }} \ | ||
-DANALYTICS_API_SECRET:STRING=${{ secrets.ANALYTICS_API_SECRET }} \ | ||
-DANALYTICS_MEASUREMENT_ID:STRING=${{ secrets.ANALYTICS_MEASUREMENT_ID }} -Dopenstudio_DIR:PATH=$OS_DIR | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to remove that block soon. OS SDK 3.8.0-RC2 has a different extracted folder (different SHA) than the github hosted tar.gz and that pwned me real bad.
Alright, I got all platforms to build but separately, reverted my temp commit that disabled ubuntu and windows, letting a final CI run that hopefully should be all green, and then we can merge this. |
@jmarrec I built develop with no major issues, thanks for the great instructions! I was able to load the binaries into SketchUp 2024 which is a first. Now it is on to debugging the Ruby API changes (apparently no more |
Yeah some deprecated stuff was removed in 3.x. File.exists? => File.exist?, tiny stuff like this |
No description provided.