Syntext Forums - Serna Enterprise XML Editor, Serna Free XML Editor
(#1 (permalink))
Old
Junior Member
 
Posts: 2
Join Date: Jul 2009
Default How to build sources? - 07-28-2009, 01:10 PM

Hi,
I'm trying to build sources on Linux (Mandriva Linux x86_64 Cooker).

I've downloaded sources serna-free-src-20090715.tar.bz2. First I've seen the build.sh script that runs 'make install' command that requires root privileges, but I'm building as a plain user and this command can not be executed correcly. Or is it install something in user's own directories? How to bypass this step and build without root?

Second it tries to build something in '3rd' directory, but most of the libs from this directory already installed in my system and I do not want to build them once again. How to bypass this step? How to configure sources to use system libraries instead? The command './configure --help' gives me an error instead of available options list.

Third, if I just enter 'build' directory and run './configure' and then 'make' I get the following error:
Code:
[olelukoie@olelukoie-linux build]$ make
gmake -C sfworks -f GNUmakefile
gmake[1]: Entering directory `/home/olelukoie/rpmbuild/BUILD/serna-free-src-20090715/build/sfworks'
gmake -C common -j2 -f GNUmakefile
gmake[2]: Entering directory `/home/olelukoie/rpmbuild/BUILD/serna-free-src-20090715/build/sfworks/common'
/home/olelukoie/rpmbuild/BUILD/serna-free-src-20090715/3rd/bin/python /home/olelukoie/rpmbuild/BUILD/serna-free-src-20090715/tools/msggen/msggen.py -H -M common /home/olelukoie/rpmbuild/BUILD/serna-free-src-20090715/build/sfworks/common/CommonMessages.h /home/olelukoie/rpmbuild/BUILD/serna-free-src-20090715/sfworks/common/CommonMessages.msg
gmake[2]: /home/olelukoie/rpmbuild/BUILD/serna-free-src-20090715/3rd/bin/python: Команда не найдена
gmake[2]: *** [/home/olelukoie/rpmbuild/BUILD/serna-free-src-20090715/build/sfworks/common/CommonMessages.h] Ошибка 127
gmake[2]: Leaving directory `/home/olelukoie/rpmbuild/BUILD/serna-free-src-20090715/build/sfworks/common'
gmake[1]: *** [common] Ошибка 2
gmake[1]: Leaving directory `/home/olelukoie/rpmbuild/BUILD/serna-free-src-20090715/build/sfworks'
make: *** [sfworks] Ошибка 2
(Hope you can read Russian )
On my system python is located in /usr/bin, not in home/olelukoie/rpmbuild/BUILD/serna-free-src-20090715/3rd/bin. How to solve this problem?

Next, running build.sh in the root dir of sources stops with the following error
Code:
make[1]: Entering directory `/home/olelukoie/rpmbuild/BUILD/serna-free-src-20090715/3rd/docbook'
for i in 1.68.1; do ( if [ -d $i ]; then make -C $i -f Makefile install; fi; ) || exit $?; done
make[2]: Entering directory `/home/olelukoie/rpmbuild/BUILD/serna-free-src-20090715/3rd/docbook/1.68.1'
make[2]: *** Нет правила для сборки цели `/home/olelukoie/rpmbuild/BUILD/serna-free-src-20090715/3rd/packages/docbook-xsl-1.68.1.tar.bz2', требуемой для `.unpack_done'.  Останов.
Why it tries to build docbook-xsl when I have version 1.75.2 already built and installed in my system?
Code:
$ rpm -q docbook-style-xsl
docbook-style-xsl-1.75.2-1mdv2010.0
Reply With Quote
(#2 (permalink))
Old
kondor's Avatar
линукс-покемон
 
Posts: 49
Join Date: Apr 2009
Default 07-30-2009, 03:53 PM

Quote:
Originally Posted by olelukoie View Post
Hi,
First I've seen the build.sh script that runs 'make install' command that requires root privileges, but I'm building as a plain user and this command can not be executed correcly. Or is it install something in user's own directories? How to bypass this step and build without root?
No root privileges are required. 'make install' command which you see in 'build.sh' is required for internal build process.

Quote:
Originally Posted by olelukoie View Post
Second it tries to build something in '3rd' directory, but most of the libs from this directory already installed in my system and I do not want to build them once again. How to bypass this step?
Currently there is no way to make Serna's build system use system's already installed libraries.

Quote:
Originally Posted by olelukoie View Post
Third, if I just enter 'build' directory and run './configure' and then 'make' I get the following error:
Are you sure you have read INSTALL file?


Get the latest updates on Syntext Blog
Reply With Quote
(#3 (permalink))
Old
Junior Member
 
Posts: 2
Join Date: Jul 2009
Default 07-31-2009, 04:26 PM

Quote:
Originally Posted by kondor View Post
Are you sure you have read INSTALL file?
Yes, I'm sure. Some of my questions was just a gentle hint that it would be great to make it possible to build the program with system libraries. I could help in porting/debugging it on 64-bit Linux, but I won't waste my time until such build process would be possible. I won't install several different versions of the same libs, especially when this libs are standard linux ones (such as Qt4, docbook, libxml2 or Python).
Reply With Quote
(#4 (permalink))
Old
kondor's Avatar
линукс-покемон
 
Posts: 49
Join Date: Apr 2009
Default 08-01-2009, 05:59 AM

Quote:
Originally Posted by olelukoie View Post
Yes, I'm sure. Some of my questions was just a gentle hint that it would be great to make it possible to build the program with system libraries. I could help in porting/debugging it on 64-bit Linux, but I won't waste my time until such build process would be possible. I won't install several different versions of the same libs, especially when this libs are standard linux ones (such as Qt4, docbook, libxml2 or Python).
olelukoie, I fully understand your frustration about Serna build system and I agree with you. We are doing our best to improve it. JFYI, this problem has been grown from the times when Serna was a proprietary product and there were the need to build Serna statically linked with 3rd-party libraries because an end-user may not have them installed.

Your help in this way would be very appreciated.

Thanks,


Get the latest updates on Syntext Blog
Reply With Quote
Reply

Bookmarks

Tags
build, serna free, sources

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.1
vBulletin Skin developed by: vBStyles.com