1. Beatrix Willius
  2. Valentina Database ADK
  3. Friday, July 28 2017, 11:15 AM
  4.  Subscribe via email
I'm trying to work towards 64bit. Unfortunately, I can't get the deployment script to work for 64bit. I've modified my IDE script the following way:


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 + "Contents/install_vcomponents_v4rb_v6 " + CurrentBuildLocation + "/" + getShellString(CurrentBuildAppName) + ".app/"
if CurrentBuildTarget = 16 then
cmd = cmd + " 64"
end if
print cmd

dim theOutput as string = doShellCommand(cmd)
if theOutput <> "" then print "Add Valentina Files: " + theOutput

function getShellString(theString as String) as string
theString = ReplaceAll(theString, " ", "\ ")
theString = ReplaceAll(theString, "&", "\&")
theString = ReplaceAll(theString, "(", "( ")
theString = ReplaceAll(theString, ")", ") ")
return theString
end Function


In the built app there is a folder "vcomponents_x64" with the usual files. However, when I start the app I get a runtime error

Location: common/plugin.cpp: 1026
Condition: false
Message: couldn't open plugin v4rb_cocoa_64.dylib

MacOS 10.11
Xojo 2017r1
Valentina 6.6.5 I think

Any ideas why I could check/change?

Mit freundlichen Grüßen/Regards

Beatrix Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
Comment
There are no comments made yet.
Sergey Pashkov Accepted Answer
Here's the direct link:
http://valentina-db.com/download/prev_releases/6.6.9/mac_32/

I've rebuilt v4rb_cocoa_64.dylib with optional linking to VReport and was able to run the 64-bit application without reporting library at all.

Updated plugin:
https://www.dropbox.com/s/wd9lyiszmqtp502/ValentinaPlugin.xojo_plugin?dl=0
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 1
Beatrix Willius Accepted Answer
I could try to update to 6.6.9 but the url https://www.valentina-db.net/de/other-downloads/download-previous-releases gives me a "forbidden" error.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 2
Sergey Pashkov Accepted Answer
I think I have found the reason why 64-bit application not starting without reports library.

For V4RB 32-bit plugin VReport library is optional, while for 64-bit it is required.

Is it possible to update V4RB to the latest version or at least to 6.6.9, for example?
Then I'll try to rebuild the plugin with proper linking.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 3
Beatrix Willius Accepted Answer
Of course, it was my bad :( With the original Valentina script everything was fine. However, I didn't change much in the script. Here are the three changes I did:


install_vreports=0



#if [ ! -e "$app_vcomp"/libvreport_fat_release$dllsuff.dylib ] ; then
# cp $sys_vcomp/libvreport_fat_release$dllsuff.dylib "$app_vcomp"
#fi



# change id of VREPORT
# install_name_tool -id "@executable_path/../vcomponents$dllsuff/libvreport_fat_release$dllsuff.dylib" "$app_vcomp"/libvreport_fat_release$dllsuff.dylib
# install_name_tool -change $sys_vcomp/libvshared_fat_release$dllsuff.dylib "@executable_path/../vcomponents$dllsuff/libvshared_fat_release$dllsuff.dylib" "$app_vcomp"/libvreport_fat_release$dllsuff.dylib
# install_name_tool -change $sys_vcomp/libvkernel_fat_release$dllsuff.dylib "@executable_path/../vcomponents$dllsuff/libvkernel_fat_release$dllsuff.dylib" "$app_vcomp"/libvreport_fat_release$dllsuff.dylib
# install_name_tool -change $sys_vcomp/libvclient_fat_release$dllsuff.dylib "@executable_path/../vcomponents$dllsuff/libvclient_fat_release$dllsuff.dylib" "$app_vcomp"/libvreport_fat_release$dllsuff.dylib



Why does this screw up the rest of the app? How do I get rid of the VReport stuff? Changing only the value of install_vreports didn't do anything. I can't even see in the script that anything is done with this variable - I'm only a beginner with those ugly script.

Mit freundlichen Grüßen/Regards

Beatrix Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 4
Sergey Pashkov Accepted Answer
At first please try to check if the script changed the install paths:

otool -L Mail\ Archiver\ http://X.app/Contents/Frameworks/v4rb_cocoa_64.dylib
/private/tmp/Mail Archiver http://X.app/Contents/Frameworks/v4rb_cocoa_64.dylib:
/usr/local/lib/v4rb_cocoa_64.dylib (compatibility version 6.6.9, current version 6.6.9)
@executable_path/../vcomponents_x64/libvreport_fat_release_x64.dylib (compatibility version 6.6.9, current version 6.6.9)
@executable_path/../vcomponents_x64/libvclient_fat_release_x64.dylib (compatibility version 6.6.9, current version 6.6.9)
@executable_path/../vcomponents_x64/libvkernel_fat_release_x64.dylib (compatibility version 6.6.9, current version 6.6.9)
@executable_path/../vcomponents_x64/libvshared_fat_release_x64.dylib (compatibility version 6.6.9, current version 6.6.9)


Is this what you get? Or there is an absolute path to /usr/local/lib/vcomponents_x64?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 5
Beatrix Willius Accepted Answer
Hi Serge,

I'm using this script. Did a DiffMerge on the file that I just downloaded for Valentina 6.1 and the only thing I changed was to comment out the reports.

Mit freundlichen Grüßen/Regards

Beatrix Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 6
Beatrix Willius Accepted Answer
Using a simple Terminal command


/Users/beatrixwillius/Documents/Development/Mail\ Archiver/code\ current/Contents/install_vcomponents_v4rb_v6 /Users/beatrixwillius/Documents/Development/Mail\ Archiver/code\ current/Builds\ -\ http://max.rbp/OS\ X\ 64\ bit/Mail\ Archiver\ X.app 64


gives the same result.

Mit freundlichen Grüßen/Regards

Beatrix Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Database ADK
  3. # 8
  • Page :
  • 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