1. Christian Breu
  2. Other Discussions
  3. Sunday, April 23 2017, 06:52 AM
  4.  Subscribe via email
Another question about Deployment of V4RB...

I am building an Application on MacOS X to run on Linux.
Is it possible to prepare for deployment of V4RB (on the Mac for Linux)?
How to do it?


btw.
I use v 6.6.9.
The downloadlink for this older version is not visible by Firefox on Linux on your website.
And after copy the downloadlink from Mac, the installation on CentOS 7 fails!
Comment
There are no comments made yet.
Sergey Pashkov Accepted Answer
Hello Christian,

Usually we recommend to use Linux system for deployment, so vcomponents for Linux are contained only in the v4rb_x64_6_lin.rpm (or v4rb_x64_6_lin.deb) archive.

However it is possible to get them on macOS:
$ mkdir v4rb_x64_6_lin
$ tar -xvzf v4rb_x64_6_lin.rpm -C v4rb_x64_6_lin


Now you have vresources, vcomponents_32 and vcomponents_64 directories at the following place:
./v4rb_x64_6_lin/opt/V4RB

And you can copy required folders to the application folder to have the following structure:
MyApplication
-- MyApplication
-- MyApplication Libs
-- MyApplication Resources
-- vcomponents
-- vresources

Note: vcomponents_32 (or vcomponents_64) must be renamed to vcomponents (it's a fixed name)

Now you should be able to run this application on Linux.

--

You can find older versions using the direct link, for example:
http://valentina-db.com/download/prev_releases/6.6.9/lin_64/
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 1
Christian Breu Accepted Answer
Hi Sergey

Thank you for your answer.
I followed your advice but I still get an error message when I try to run the application...
Attachments (1)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 2
Christian Breu Accepted Answer
Do I have to tell the application where to find the vcomponents!?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 3
Christian Breu Accepted Answer
And still cannot install the software v 6.6.9 on Linux...
Attachments (1)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 4
Sergey Pashkov Accepted Answer
The application searches libvshared_x64_release.so in the vcomponents folder (not near to executable), so no need to set path to it.
Or that didn't work?

Are you using CentOS 7 64-bit?

I'll check both installation and deployment.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 5
Sergey Pashkov Accepted Answer
Rechecked the rpm package, it works for me on Cent OS 7 (1611) 64-bit.

Maybe installation from the command line will show an error:
# rpm -ivh v4rb_x64_6_lin.rpm
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 6
Christian Breu Accepted Answer
Thank you Sergey, finally it works – the application is running!
Seems there was a conflict about an already installed 7.0.4 version.

Actually I prefer the independent version of vcomponents (near the executable).
I am developing on Mac and want to prepare the correct sets by buildscripts.
What is needed for that?
How to set the path?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 7
Christian Breu Accepted Answer
Another thing I found...

V4RB: PluginEntry()
V4RB: DisableRBDB file IS NOT found. Disabling RBDB.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 8
Sergey Pashkov Accepted Answer
Agree, copying vcomponents libraries to application is preferred for distribution of single application.

There must be changed something since I tried to prepare an application for deployment on Linux the last time.

Current working setup is a bit different:
MyApplication
-- MyApplication
-- MyApplication Libs
-- -- libvshared_release_x64.so
-- -- ...
-- MyApplication Resources
-- vresources

So the content of vcomponents_64 directory should be copied into "ApplicationName Libs" directory, vresources to the application folder.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 9
Christian Breu Accepted Answer
Thank you Sergey

Does it mean, this is the only thing I have to do to let the application connect to these copy of vcomponents (beside the application)?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 10
Sergey Pashkov Accepted Answer
Yes, no need to write a path.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 11
Christian Breu Accepted Answer
Hello Sergey

Sorry to get back to you about this topic.
Seems there is anything wrong/missed.
The App crashes on Linux when trying to connect to the Vserver.
It works fine on Mac.

Could it be the problem of broken links?
How to copy the files to keep the links?
Attachments (3)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 12
Sergey Pashkov Accepted Answer
Hi Christian,

1) Is there any crashlog? Linux may show it automatically.

2) Links should be fine if application starts. But let's check again.
Run terminal, go to the "MyApplication Libs" directory and execute:
ldd v4rb_x64_release.so


Does it point to correct libraries?

3) Log entries about RBDB is just a notification, not an error.
And I think it should be resolved in the latest versions.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 13
Christian Breu Accepted Answer
Hello Sergey

Did not see a crashlog.
I am not sure but the chosen libraries seem to be the wrong ones!?
Attachments (1)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 14
Christian Breu Accepted Answer
Hi Sergey

Now it looks like the right libraries are getting chosen.
But my problem is, the XOJO App always crashes at the point, trying to connect to the VServer.
But only on Linux – On Mac it works smoothly.

I cannot find out the cause of problem.
No Info in Linux, VServer nor XOJO – what error can end up in such a crash without any loginfo?
Maybe it is still about the libraries – is that possible?

Any idea, how to find out the reason for the crash?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 15
Sergey Pashkov Accepted Answer
Hi Christian,

So now ldd points to libraries in the application.

VServer log doesn't contain connection attempt, right?
Is it a web application?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 16
Christian Breu Accepted Answer
Hello Sergey

Yes, points to the App.
No log about connecting.
It is a Desktop Application.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 17
Sergey Pashkov Accepted Answer
My test application worked for local connection, but when I try to connect to VServer I have a crash, too.
I'm checking, what is wrong.

Is it necessary to use version 6.6.9? Or something wrong with newer builds?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 18
Christian Breu Accepted Answer
Thank you for that Sergey.
At least I am not alone anymore...


The productive DB is on 6.6.9 actually.
Can you guarantee no problems when updating from 6.6.9 to 7.1?
Just did not update yet – never change a running system!
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 19
Sergey Pashkov Accepted Answer
7.1 behaves the same.
However with Valentina.Init( 10 * 1024 * 1024 ) before Valentina.InitClient it works - so something is broken in strings.
Could you please try to add this line with 6.6.9 plugin version?

I think we will fix it and release a new version.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 20
  • Page :
  • 1
  • 2


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.

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