1. Christian Breu
  2. Other Discussions
  3. Sonntag, April 23 2017, 06:52 AM
  4.  Abonnieren via E-Mail
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!
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
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/
Kommentar
There are no comments made yet.
Christian Breu Akzeptierte Antwort
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...
Anhänge
Kommentar
There are no comments made yet.
Christian Breu Akzeptierte Antwort
Do I have to tell the application where to find the vcomponents!?
Kommentar
There are no comments made yet.
Christian Breu Akzeptierte Antwort
And still cannot install the software v 6.6.9 on Linux...
Anhänge
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
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.
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
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
Kommentar
There are no comments made yet.
Christian Breu Akzeptierte Antwort
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?
Kommentar
There are no comments made yet.
Christian Breu Akzeptierte Antwort
Another thing I found...

V4RB: PluginEntry()
V4RB: DisableRBDB file IS NOT found. Disabling RBDB.
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
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.
Kommentar
There are no comments made yet.
Christian Breu Akzeptierte Antwort
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)?
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Yes, no need to write a path.
Kommentar
There are no comments made yet.
Christian Breu Akzeptierte Antwort
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?
Anhänge
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
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.
Kommentar
There are no comments made yet.
Christian Breu Akzeptierte Antwort
Hello Sergey

Did not see a crashlog.
I am not sure but the chosen libraries seem to be the wrong ones!?
Anhänge
Kommentar
There are no comments made yet.
Christian Breu Akzeptierte Antwort
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?
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Hi Christian,

So now ldd points to libraries in the application.

VServer log doesn't contain connection attempt, right?
Is it a web application?
Kommentar
There are no comments made yet.
Christian Breu Akzeptierte Antwort
Hello Sergey

Yes, points to the App.
No log about connecting.
It is a Desktop Application.
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
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?
Kommentar
There are no comments made yet.
Christian Breu Akzeptierte Antwort
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!
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
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.
Kommentar
There are no comments made yet.
  • Seite :
  • 1
  • 2


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Das Thema ist derzeit gesperrt. Du kannst derzeit keine Antwort erstellen.

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