Skip to content

Commit ce8fcd2

Browse files
authored
Merge pull request #31 from ruby-processing/video
fix video binary folder macosx
2 parents 2afc192 + 9e30770 commit ce8fcd2

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
**v1.3.1** Bump to jruby-9.1.9.0 which should be last before jruby-9.2.x.x series (ruby-2.4 here we come).
1+
**v1.3.1** The native binaries for the video library in MacOS are in the `macosx64` folder not the `macosx` this release should provide a quick fix. Note the library loader is in line for quite a major refactor in the near future, so this is a temporary fix.
22

33
**v1.3.0** Not strictly semantic versioning in the sense that the significant internal refactoring of `launcher.rb` (and `sketch_writer.rb`) should not be evident to user. Bump to jruby-9.1.8.0 which should be last before jruby-9.2.x.x series (ruby-2.4 here we come).
44
**v1.2.9** Grid method now in java (and corrected for step greater than 1). Update to processing-3.3. Update examples to 2.0, which features WOVNS examples that make use of `grid` method and in part caused me to look again a its implementation.

lib/jruby_art/library_loader.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,10 @@ def platform
8282
end
8383

8484
def get_platform_specific_library_paths(basename)
85-
# for MacOS, but does this even work, or does Mac return '64'?
86-
bits = 'universal'
85+
bits = '64'
8786
if java.lang.System.getProperty('sun.arch.data.model') == '32' ||
8887
java.lang.System.getProperty('java.vm.name').index('32')
89-
bits = '32'
90-
elsif java.lang.System.getProperty('sun.arch.data.model') == '64' ||
91-
java.lang.System.getProperty('java.vm.name').index('64')
92-
bits = '64' unless platform =~ /macosx/
88+
bits = '32' unless platform =~ /macosx/
9389
end
9490
[platform, platform + bits].map { |p| File.join(basename, p) }
9591
end

0 commit comments

Comments
 (0)