Skip to content

Commit

Permalink
bindings/perl: Fix RPATH and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
drdanz committed Jan 10, 2020
1 parent d58a812 commit 5fbea1e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bindings/perl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ set_target_properties(${SWIG_MODULE_yarp_perl_REAL_NAME} PROPERTIES PREFIX ""

# Update RPATH
if(NOT CMAKE_SKIP_RPATH AND NOT CMAKE_SKIP_INSTALL_RPATH)
file(RELATIVE_PATH _rel_path "${CMAKE_INSTALL_FULL_PERLDIR}" "${CMAKE_INSTALL_FULL_LIBDIR}")
file(RELATIVE_PATH _rel_path "${CMAKE_INSTALL_FULL_PERLDIR}/auto/yarp" "${CMAKE_INSTALL_FULL_LIBDIR}")
get_target_property(_current_rpath "${SWIG_MODULE_yarp_perl_REAL_NAME}" INSTALL_RPATH)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
list(APPEND _current_rpath "@loader_path/${_rel_path}")
Expand Down
2 changes: 1 addition & 1 deletion bindings/perl/examples/example.pl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
$bottle->addInt32($top);
print "Sending ", $bottle->toString(), "\n";
$p->write();
yarp::Time::delay(0.5);
yarp::delay(0.5);
}

$p->close();
Expand Down
2 changes: 1 addition & 1 deletion bindings/perl/examples/example2.pl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
my $dev = new yarp::PolyDriver($prop);

# get the "IFrameGrabberImage" interface
my $grabber = $dev->viewFrameGrabberImage();
my $grabber = $dev->viewIFrameGrabberImage();

# grab 30 images
my $img = new yarp::ImageRgb();
Expand Down
8 changes: 8 additions & 0 deletions doc/release/yarp_3_3/fixPerlBindings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
fixPerlBindings {#yarp_3_3}
---------------

### Bindings

#### Perl

* The RPATH for installed perl bindings is now correct.

0 comments on commit 5fbea1e

Please sign in to comment.