1. Jonathan Ashwell
  2. Valentina Database ADK
  3. 水, 9月 27 2017, 05:28 PM
  4.  メールで購読
I have a user who is unable to launch a Xojo app on two different machines (running 10.12.6, not 10.13). The error is

Assertion failed: (false, "Could not open plugin v4rb_cocoa_64.dylib", function RuntimeLoadPlugin, file Common/plugin.cpp, line 1026.

He has no problem with the 32-bit build.

I'm using Valentina 7.2. Is this a known issue? And if so is it fixed in a newer update?
コメント
There are no comments made yet.
Jonathan Ashwell 承諾済みの回答
Hi Ruslan, I'll renew later this month before releasing a 64-bit build of my app.

Thanks for checking.
コメント
There are no comments made yet.
Jonathan Ashwell 承諾済みの回答
Could this be a problem with the deployment script? I was using the one from 2015. I've found the one for Valentina 7 and have made a new build with that. I'll report back if that fixes the problem.
コメント
There are no comments made yet.
Ruslan Zasukhin 承諾済みの回答
Hi Jon,

script has the second parameter architecture.
When you build 64 bit app you shold specify 64 as the second param.
If parameter is not specifed - default is 32.
コメント
There are no comments made yet.
Jonathan Ashwell 承諾済みの回答
Thanks, but I must be doing something wrong.

I changed the second param to

arch=$"64"

Now the 64-bit libraries are installed correctly. But when I try to launch my app I am getting that error:

Could not open plugin in v$rg_cocoa_664.dylib

I don't think it matters, but I'm executing the script as a Xojo post-build script.

P.S. I also tried setting arch=$64 without the quote marks, but then it was built as a 32-bit app.
コメント
There are no comments made yet.
Ruslan Zasukhin 承諾済みの回答
You should not change script itself.

you need call it

> ./script app 64
コメント
There are no comments made yet.
Jonathan Ashwell 承諾済みの回答
How can I use it with Xojo post-build scripts? It's incredibly convenient to just build without having to manually use Terminal each time.

This is the Xojo script (written by Beatrix, I think)

dim CountSlashes as Integer = CountFields(ProjectShellPath, "/";)
dim ProjectName as string = NthField(ProjectShellPath, "/", CountSlashes)
dim ProjectPath as String = Left(ProjectShellPath, Len(ProjectShellPath) - Len(ProjectName))
dim cmd as String= ProjectPath + "install_vcomponents_v4rb_v7"
cmd = cmd + " " + CurrentBuildLocation + "/" + getShellString(CurrentBuildAppName) + ".app" + "/"

dim theOutput as string = doShellCommand(cmd)
if theOutput <> "" then print theOutput

function getShellString(theString as String) as string
Return ReplaceAll(theString, " ", "\ ";)
end Function


I've tried changing the 5th line to

cmd = cmd + " " + CurrentBuildLocation + "/" + getShellString(CurrentBuildAppName) + ".app" + "/" + " 64"

But that's not doing the trick. I'll keep experimenting.
コメント
There are no comments made yet.
Jonathan Ashwell 承諾済みの回答
I got it to work, using this

cmd = cmd + " " + CurrentBuildLocation + "/" + getShellString(CurrentBuildAppName) + ".app" + " 64"

One more question -- can I remove libvreport_fat_release_x64.dylib from vcomponents? I don't use VReports and removed the dylib automatically 32-bit builds of Valentina. But with 64-bits if I remove it my app won't launch.

My vcomponents folder for 32 bit builds is ~18 MB. For 64-bit it's 49.5 MB.
コメント
There are no comments made yet.
Ruslan Zasukhin 承諾済みの回答
Hi Jon,

ok - for solved.

In theory yes we try todo that reports dylib is optional.
Sometimes xcode lost this settings.

We will check once again for future build.
v8 - is JS library used by vreports.
コメント
There are no comments made yet.
Ruslan Zasukhin 承諾済みの回答
Well, may be you are using v7.2 ?

I have check V4RB xcode project, for each target Carbon, Cocoa. Cocoa-64 we have optional for VKernel, VClient, VReport
コメント
There are no comments made yet.
Jonathan Ashwell 承諾済みの回答
Yes, I'm using 7.2-- I just upgraded to 7.3.4. Should I be able to get rid of those dylibs in that version? And if so, can I just remove the VReport dylibs manually (in the Finder, or via a bash script), or is there some other way?

I did set install_vreports to 0, but that didn't seen to have any effect:

# YOU can change this to 0 to skip VREPORT.dll
install_vreports=0

Thanks, Ruslan.
コメント
There are no comments made yet.
Ruslan Zasukhin 承諾済みの回答
Good morning,

1) I guess you mean latest 7.4.4

2) yes I hope this version should allow you remove vreports DYLIB, because in our xcode project I see it is marked as optional.
I will wonder if it will not work

3) After run of script to copy vcomponents, yes just remove manually from .app package vreports and v8.
Or you can prepare script which will do that

4) if you using only LOCAL Valentina db then you must be able remove also vclient dylib
コメント
There are no comments made yet.
Jonathan Ashwell 承諾済みの回答
No, I mean 7.3.4, my renewal expired around that time. I have tried removing the dylibs manually in the Finder. It doesn't work. For example, if I remove

libvreport_fat_release_x64

when I launch my app I get this crash:

Application Specific Information:
Assertion failed: (false, "Could not open plugin v4rb_cocoa_64.dylib";), function RuntimeLoadPlugin, file Common/plugin.cpp, line 1026.
コメント
There are no comments made yet.
Ruslan Zasukhin 承諾済みの回答
I confirm that.

7.3.4 - do not starts.
7.4.4 - app mac 64 bit started okay after remove of vreports and v8.

I hope you will be able to use 7.4.4 - I have see your renew order of V4RB few days ago. Right?
コメント
There are no comments made yet.
  • ページ :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories