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

Bumped openddw to the latest commit. #16

Merged
merged 7 commits into from
Oct 19, 2023
Merged

Conversation

doug1234
Copy link
Contributor

@doug1234 doug1234 commented Oct 2, 2023

No description provided.

@doug1234
Copy link
Contributor Author

doug1234 commented Oct 2, 2023

Seems that the install of dependencies isn't working on windows.

@mitza-oci
Copy link
Member

Seems that the install of dependencies isn't working on windows.

Try changing the version of vcpkg listed in the yml file

           vcpkgGitCommitId: 688ece714204fb5e9ad790ad9ad6d9f571d2b032

@doug1234
Copy link
Contributor Author

doug1234 commented Oct 3, 2023

OK... should be good to go now.

@doug1234
Copy link
Contributor Author

This is a necessary update. Is there something I am missing for merge?

test/CMakeLists.txt Outdated Show resolved Hide resolved
@@ -137,6 +137,7 @@ target_link_libraries(monitor

target_include_directories(monitor PRIVATE
${QWT_INCLUDE_DIR}
${PROJECT_SOURCE_DIR}/thirdparty/OpenDDW/src
Copy link
Member

Choose a reason for hiding this comment

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

Linking to OpenDDW should take care of this. What happens without it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It doesn't build without it. The directories don't line up right due to the directory layout.

Copy link
Member

Choose a reason for hiding this comment

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

In CMake if you have to use target_include_directories on a library you're already using target_link_libraries on means something isn't right in that library's CMake files. What is the exact error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The cmake is looking in the install directory which doesn't have the include files until the install phase. That works fine when you are using an installed package. But we need to include the source directory manually for using it as a submodule.

Copy link
Member

Choose a reason for hiding this comment

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

It's part of the monitor build, so there shouldn't be any reason for it to be looking at the installed location. I built this locally to see what it's doing and I see what it's doing now after looking at the -I options it passed to the compiler. It used to be including src before OpenDDS/OpenDDW#13 and now it's just ${CMAKE_CURRENT_SOURCE_DIR}.

Changing that to ${CMAKE_CURRENT_SOURCE_DIR}/src in OpenDDW allows the monitor to build without this added line. I've created a OpenDDW PR that does this: OpenDDS/OpenDDW#15.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK but the source directory isn't necessary to build OpenDDW or to use it from an installed location. Its only a concern if you are using it as a submodule.

Copy link
Member

Choose a reason for hiding this comment

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

The include would be required for every target in the same build that wants to use OpenDDW. If a test was added to OpenDDW it would have the same problem. It's better to fix it once than to require a manual include for every target.

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'll remove the directory and bump the submodule once the other pull request is merged.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Any chance this can be moved along. These changes are about as trivial as they come. It would be nice to have a version that builds again.

@iguessthislldo
Copy link
Member

Also it looks the cached builds of OpenDDS here have the same problem as OpenDDS/OpenDDW#11. They need to checkout the submodules.

@doug1234
Copy link
Contributor Author

What is the path forward on this.

@simpsont-oci
Copy link
Contributor

I cleared the build caches and triggered a rerun of the CI.

@doug1234
Copy link
Contributor Author

I think this and PR 17 need to get merged for everything to build in CI.

iguessthislldo added a commit to iguessthislldo/OpenDDW that referenced this pull request Oct 17, 2023
@jrw972 jrw972 merged commit 87e9d50 into OpenDDS:master Oct 19, 2023
12 checks passed
@iguessthislldo
Copy link
Member

This was not supposed to be merged, @doug1234, can you please open a new PR to remove the unneeded includes?

@doug1234
Copy link
Contributor Author

I will add a new pr that removes the unneeded includes and bumps to the latest openddw commit.

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

Successfully merging this pull request may close these issues.

5 participants