Skip to content

[gazebo] fix gazebo linux dependency#24969

Closed
talregev wants to merge 50 commits intomicrosoft:masterfrom
talregev:TalR/fix_gazebo
Closed

[gazebo] fix gazebo linux dependency#24969
talregev wants to merge 50 commits intomicrosoft:masterfrom
talregev:TalR/fix_gazebo

Conversation

@talregev
Copy link
Contributor

@talregev talregev commented May 28, 2022

Describe the pull request

Depends on:

@talregev
Copy link
Contributor Author

talregev commented May 28, 2022

error logs from ci:
failure logs for x64-linux.zip

Please help me to solve these errors.

@talregev
Copy link
Contributor Author

@dg0yt It not find OGRE library (and few other) in linux. How to inject the:
find_package(OGRE CONFIG REQUIRED) into to the CMakeLists.txt ?

@JackBoosY JackBoosY added the category:port-bug The issue is with a library, which is something the port should already support label May 30, 2022
@JackBoosY
Copy link
Contributor

JackBoosY commented May 30, 2022

CMake Error at CMakeLists.txt:196 (string):
  string sub-command REPLACE requires at least four arguments.

line 193:

set(OGRE_RESOURCE_PATH ${OGRE_PLUGINDIR})
# Seems that OGRE_PLUGINDIR can end in a newline, which will cause problems when
# we pass it to the compiler later.
string(REPLACE "\n" "" OGRE_RESOURCE_PATH ${OGRE_RESOURCE_PATH})

@talregev
Copy link
Contributor Author

CMake Error at CMakeLists.txt:196 (string):
  string sub-command REPLACE requires at least four arguments.

line 193:

set(OGRE_RESOURCE_PATH ${OGRE_PLUGINDIR})
# Seems that OGRE_PLUGINDIR can end in a newline, which will cause problems when
# we pass it to the compiler later.
string(REPLACE "\n" "" OGRE_RESOURCE_PATH ${OGRE_RESOURCE_PATH})

This error is due that it not find the orge lib plugin dir

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

PRs must add only one version and must not modify any published versions

When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.

error: checked-in files for gazebo have changed but the version was not updated
version: 2022-01-20#2
old SHA: 0575eb88760d8605617cd01db94b58444afccccc
new SHA: fdd2f6d0cf11bafd2b0b3ba2513fc2060fc90aeb
Did you remember to update the version or port version?
Use --overwrite-version to bypass this check
***No files were updated***

@JackBoosY
Copy link
Contributor

Please do not update version record until the fix is correct.

@JackBoosY JackBoosY added category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist and removed category:port-bug The issue is with a library, which is something the port should already support labels May 30, 2022
@JackBoosY
Copy link
Contributor

This port requres libtar in non-Windows.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

PRs must add only one version and must not modify any published versions

When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.

error: checked-in files for gazebo have changed but the version was not updated
version: 2022-01-20#2
old SHA: 0575eb88760d8605617cd01db94b58444afccccc
new SHA: e92c3ca1ef1cd3e18e626ceec2560b54276f169c
Did you remember to update the version or port version?
Use --overwrite-version to bypass this check
***No files were updated***

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

PRs must add only one version and must not modify any published versions

When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.

error: checked-in files for gazebo have changed but the version was not updated
version: 2022-01-20#2
old SHA: 0575eb88760d8605617cd01db94b58444afccccc
new SHA: 6f1307abb14934d599e7fe38167c90946c453984
Did you remember to update the version or port version?
Use --overwrite-version to bypass this check
***No files were updated***

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

PRs must add only one version and must not modify any published versions

When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.

error: checked-in files for gazebo have changed but the version was not updated
version: 2022-01-20#2
old SHA: 0575eb88760d8605617cd01db94b58444afccccc
new SHA: 8c2227dddb4562ad149103b51628731402c3f1ab
Did you remember to update the version or port version?
Use --overwrite-version to bypass this check
***No files were updated***

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

PRs must add only one version and must not modify any published versions

When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.

error: checked-in files for gazebo have changed but the version was not updated
version: 2022-01-20#2
old SHA: 0575eb88760d8605617cd01db94b58444afccccc
new SHA: 143c9f1d2e768b7efcaf3101a8af0586fb4511d8
Did you remember to update the version or port version?
Use --overwrite-version to bypass this check
***No files were updated***

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

PRs must add only one version and must not modify any published versions

When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.

error: checked-in files for gazebo have changed but the version was not updated
version: 2022-01-20#2
old SHA: 0575eb88760d8605617cd01db94b58444afccccc
new SHA: f5027e77c637cc69dfb87c13839e73143ea593a8
Did you remember to update the version or port version?
Use --overwrite-version to bypass this check
***No files were updated***

@JackBoosY
Copy link
Contributor

JackBoosY commented May 31, 2022

port ignition-common3 has usage issue:

CMake Error at /home/work/vcpkg/scripts/buildsystems/vcpkg.cmake:573 (_add_executable):
  Target "sample" links to target "GTS::GTS" but the target was not found.
  Perhaps a find_package() call is missing for an IMPORTED target, or an
  ALIAS target is missing?
Call Stack (most recent call first):
  CMakeLists.txt:45 (add_executable)


CMake Error at /home/work/vcpkg/scripts/buildsystems/vcpkg.cmake:573 (_add_executable):
  Target "sample" links to target "FreeImage::FreeImage" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  CMakeLists.txt:45 (add_executable)


CMake Error at /home/work/vcpkg/scripts/buildsystems/vcpkg.cmake:573 (_add_executable):
  Target "sample" links to target "TINYXML2::TINYXML2" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
Call Stack (most recent call first):
  CMakeLists.txt:45 (add_executable)

for ignition-common3-graphics.

github-actions[bot]
github-actions bot previously approved these changes Jul 16, 2022
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

You have modified or added at least one vcpkg.json where you should check the license field.

Details

If you feel able to do so, please consider adding a "license" field to the following files:

  • ports/libtar/vcpkg.json

Valid values for the license field can be found in the documentation

@dg0yt
Copy link
Contributor

dg0yt commented Jul 16, 2022

I looked at the gazebo dependencies and at the gazebo CMake code. I must say that I have no desire to deal with it. Too much bad code on the way.

@talregev
Copy link
Contributor Author

I looked at the gazebo dependencies and at the gazebo CMake code. I must say that I have no desire to deal with it. Too much bad code on the way.

I understand. Thank you for your time that you looking up, and also for your advice.

@JackBoosY
Copy link
Contributor

JackBoosY commented Jul 20, 2022

@JackBoosY It not orge usage.

It is.
-lboost-thread-mt and -lfreeimage comes from ogre's pkgconfig file:
In debug/lib/pkgconfig/OGRE.pc:

Libs: -L"${libdir}" -L"${plugindir}" -lOgreMainStatic  -lpthread -lboost-thread-mt -lfreeimage

link list from command line:

-lOgreTerrainStatic
-lOgrePagingStatic
-lOgreMainStatic
-lpthread
-lboost-thread-mt
-lfreeimage
...

-lboost-thread-mt should be -lboost_thread, and -lfreeimage should be -lFreeImaged.

@talregev
Copy link
Contributor Author

@JackBoosY It not orge usage.

It is. -lboost-thread-mt and -lfreeimage comes from ogre's pkgconfig file: In debug/lib/pkgconfig/OGRE.pc:

Libs: -L"${libdir}" -L"${plugindir}" -lOgreMainStatic  -lpthread -lboost-thread-mt -lfreeimage

link list from command line:

-lOgreTerrainStatic
-lOgrePagingStatic
-lOgreMainStatic
-lpthread
-lboost-thread-mt
-lfreeimage
...

-lboost-thread-mt should be -lboost_thread, and -lfreeimage should be -lFreeImaged.

I didn't know that. Thank you for let me know.

@JackBoosY JackBoosY mentioned this pull request Jul 20, 2022
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

PRs must add only one version and must not modify any published versions

When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.

error: checked-in files for gazebo have changed but the version was not updated
version: 11.11.0
old SHA: cb1797db605abbde18f8925fb96144daf28331a4
new SHA: 5b371c6736101c009f35972adfe3b5dfa2ac8871
Did you remember to update the version or port version?
Use --overwrite-version to bypass this check
***No files were updated***

You have modified or added at least one vcpkg.json where you should check the license field.

Details

If you feel able to do so, please consider adding a "license" field to the following files:

  • ports/libtar/vcpkg.json

Valid values for the license field can be found in the documentation

@JackBoosY
Copy link
Contributor

Needs to fix dependency gdal.

@dg0yt
Copy link
Contributor

dg0yt commented Jul 20, 2022

Needs to fix dependency gdal.

You need to turn gazebo's include(FindGDAL) into a proper find_package(GDAL).
https://github.com/osrf/gazebo/blob/323fc1c58178bcbc5076e97bf7e6ff736c21cc7d/cmake/SearchForStuff.cmake#L656

And maybe take care of all other include (Find...), too.

@JackBoosY
Copy link
Contributor

Also need to fix dependency qwt.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

PRs must add only one version and must not modify any published versions

When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.

error: checked-in files for gazebo have changed but the version was not updated
version: 11.11.0
old SHA: cb1797db605abbde18f8925fb96144daf28331a4
new SHA: 5b371c6736101c009f35972adfe3b5dfa2ac8871
Did you remember to update the version or port version?
Use --overwrite-version to bypass this check
***No files were updated***

You have modified or added at least one vcpkg.json where you should check the license field.

Details

If you feel able to do so, please consider adding a "license" field to the following files:

  • ports/libtar/vcpkg.json

Valid values for the license field can be found in the documentation

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

PRs must add only one version and must not modify any published versions

When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.

error: checked-in files for gazebo have changed but the version was not updated
version: 11.11.0
old SHA: cb1797db605abbde18f8925fb96144daf28331a4
new SHA: 5b371c6736101c009f35972adfe3b5dfa2ac8871
Did you remember to update the version or port version?
Use --overwrite-version to bypass this check
***No files were updated***

You have modified or added at least one vcpkg.json where you should check the license field.

Details

If you feel able to do so, please consider adding a "license" field to the following files:

  • ports/libtar/vcpkg.json

Valid values for the license field can be found in the documentation

@talregev
Copy link
Contributor Author

Fix conflicts

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

PRs must add only one version and must not modify any published versions

When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.

error: checked-in files for gazebo have changed but the version was not updated
version: 11.11.0
old SHA: cb1797db605abbde18f8925fb96144daf28331a4
new SHA: 5b371c6736101c009f35972adfe3b5dfa2ac8871
Did you remember to update the version or port version?
Use --overwrite-version to bypass this check
***No files were updated***

You have modified or added at least one vcpkg.json where you should check the license field.

Details

If you feel able to do so, please consider adding a "license" field to the following files:

  • ports/libtar/vcpkg.json

Valid values for the license field can be found in the documentation

@JackBoosY
Copy link
Contributor

Sorry but I currently don't have the energy to continue fixing this PR, any volunteers to take over this PR?

@talregev
Copy link
Contributor Author

talregev commented Oct 2, 2022

@luncliff Are you ready for next challenge?
Maybe compile the new gazebo: ignite gazebo? That is different repo:
https://github.com/gazebosim/gz-sim

You can open a new PR, and I will close this one.

@JackBoosY JackBoosY assigned LilyWangLL and unassigned JackBoosY Oct 14, 2022
@LilyWangLL
Copy link
Contributor

Convert this PR to draft since there is no progress. Please ping us if this PR is ready for review again.

@LilyWangLL LilyWangLL marked this pull request as draft October 14, 2022 07:41
@LilyWangLL
Copy link
Contributor

Closing this PR since it seems that no progress is being made. Please ping us to reopen if work is still being done.

@LilyWangLL LilyWangLL closed this Nov 25, 2022
@talregev talregev deleted the TalR/fix_gazebo branch March 10, 2024 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:new-port The issue is requesting a new library to be added; consider making a PR! category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants