gentoo ebuild

Forum for posting problems using QxOrm library

gentoo ebuild

Postby ruddy32 » Tue Mar 29, 2011 11:06 pm

Hi,
I create an ebuild to deploy QxOrm on Gento properly. The project does not implement the install part.
Could you include this part in the next version? Is it possible to have a patch for the current version?
Thanks,

Gentoo ebuild
Code: Select all
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/pidgin-sipe/pidgin-sipe-1.10.0.ebuild,v 1.3 2010/05/24 12:12:35 pva Exp $

EAPI="2"

inherit qt4-r2

DESCRIPTION="C++ Object Relational Mapping library"
HOMEPAGE="http://www.qxorm.com/qxorm_en/home.html"
#SRC_URI="http://www.s-db-s.com/files/QxOrm_${PV}.zip"
SRC_URI="http://sourceforge.net/projects/qxorm/files/QxOrm_${PV}.zip"
S=${WORKDIR}/QxOrm

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"

RDEPEND="x11-libs/qt-sql:4"

DEPEND="${RDEPEND}"

src_configure() {
   eqmake4 "${S}/QxOrm.pro"
}
ruddy32
 

Re: gentoo ebuild

Postby QxOrm admin » Wed Mar 30, 2011 7:30 am

Hi,

Yes it's possible to have a patch for the current version.
But I'm not an expert in Unix and Gentoo environment.

So what kind of patch do you need ?
It is needed to create a new file in the QxOrm package with your code ?
If yes, what is the name of this new file ?
I need your help for this patch...

I see this web page :
http://bugs.gentoo.org/show_bug.cgi?id=351563

You say : "There is a bug with the qt4 project"
What is this bug ?

Thanks
QxOrm admin
 

Re: gentoo ebuild

Postby Guest » Wed Mar 30, 2011 10:44 am

I get the following messages at the end of the build.
Code: Select all
ln -s libQxOrm.so.1.0.0 libQxOrm.so
ln -s libQxOrm.so.1.0.0 libQxOrm.so.1
ln -s libQxOrm.so.1.0.0 libQxOrm.so.1.0
rm -f lib/libQxOrm.so.1.0.0
rm -f lib/libQxOrm.so
rm -f lib/libQxOrm.so.1
rm -f lib/libQxOrm.so.1.0
mv -f libQxOrm.so.1.0.0 libQxOrm.so libQxOrm.so.1 libQxOrm.so.1.0 lib/

The generated library is just deployed in the local lib directory. How is it possible to make the project deploy lib and include in the system? I guess that Qt provide such a feature (may be I'm wrong).

If it's not possible, I will update the package to deploy library and headers to the system.
Guest
 

Re: gentoo ebuild

Postby Guest » Wed Mar 30, 2011 11:54 am

I fix the problem. The package install library and headers itself.

It would be better to do it using Qt tools if possible.
Guest
 

Re: gentoo ebuild

Postby QxOrm admin » Wed Mar 30, 2011 2:34 pm

Thanks very much for your work ;)
I will include your file "qxorm-1.1.5.ebuild" in the next release...

But what is exactly the main purpose of this file ?
To make easier installation process of QxOrm library in Unix environment ?
QxOrm admin
 

Re: gentoo ebuild

Postby feniksa » Sun Apr 10, 2011 7:37 pm

QxOrm admin wrote:But what is exactly the main purpose of this file ?
To make easier installation process of QxOrm library in Unix environment ?


This ebuild provide easy way to install QxOrm in gentoo distribution (and all distribution like gentoo).
Maybe, in a future this library will be in main gentoo repository.
feniksa
 

Re: gentoo ebuild

Postby Guest » Mon Apr 11, 2011 5:22 pm

This ebuild now will not work, i just tried it. For now sourcefourge doesn't allow direct download. While qxorm library not in official gentoo repository it will be better to download library from this qxorm.com

This ebuild allow only basic installation of library into system, without required system checks, with dummy ebuild header. Sorry, i haven't enought time to write good ebuild, i will just post fixed ebuild

$ cat qxorm-1.1.5.ebuild

Code: Select all
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-cpp/qxorm/qxorm-1.1.5.ebuild,v 1.3 2011/04/11 20:22:35 pva Exp $

EAPI="2"

inherit qt4-r2
                                                                                                                                                                     
DESCRIPTION="C++ Object Relational Mapping library"                                                                                                                   
HOMEPAGE="http://www.qxorm.com/qxorm_en/home.html"                                                                                                                   
#SRC_URI="http://www.s-db-s.com/files/QxOrm_${PV}.zip"                                                                                                               
SRC_URI="http://www.qxorm.com/version/QxOrm_${PV}.zip"                                                                                                               
S=${WORKDIR}/QxOrm                                                                                                                                                   
                                                                                                                                                                     
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"

RDEPEND="x11-libs/qt-sql:4"

DEPEND="${RDEPEND}"

src_configure() {
   eqmake4 "${S}/QxOrm.pro"
}
Guest
 

Re: gentoo ebuild

Postby Guest » Wed Apr 13, 2011 1:57 pm

The ebuild has been update. It doesn't work on a some machine. I get an error while compiling :
x86_64-pc-linux-gnu-g++ -c -include QxOrm -pipe -march=nocona -O2 -pipe -Wall -W -D_REENTRANT -fPIC -D_QX_BUILDING_QX_ORM -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql -I/usr/include/qt4 -Iinclude -I/usr/include -Iqt/moc -o IxSingleton.o src/QxSingleton/IxSingleton.cpp
cc1plus: cc1plus: error: error: QxOrm: No such file or directoryQxOrm: No such file or directory

cc1plus: cc1plus: error: error: one or more PCH files were found, but they were invalidone or more PCH files were found, but they were invalid

cc1plus: cc1plus: error: error: use -Winvalid-pch for more informationuse -Winvalid-pch for more information

cc1plus: error: QxOrm: No such file or directory
cc1plus: error: one or more PCH files were found, but they were invalid
cc1plus: error: use -Winvalid-pch for more information
make: *** [bool_array.o] Error 1
make: *** Waiting for unfinished jobs....
cc1plus: error: QxOrm: No such file or directory
cc1plus: error: one or more PCH files were found, but they were invalid
cc1plus: error: use -Winvalid-pch for more information
cc1plus: error: QxOrm: No such file or directory
cc1plus: error: one or more PCH files were found, but they were invalid
cc1plus: error: use -Winvalid-pch for more information
make: *** [mem_pool_base.o] Error 1
make: *** [static_mem_pool.o] Error 1
make: *** [debug_new.o] Error 1
make: *** [IxSingleton.o] Error 1

It does happened on some computer only with no X console. Anyu idea?
Guest
 

Re: gentoo ebuild

Postby QxOrm admin » Wed Apr 13, 2011 2:24 pm

Sorry but I can't help you to resolve your gentoo ebuild error.
I have never worked with this kind of file.

Maybe a gentoo forum is more appropriate :?:

Anyway, thanks very much for your work :)
QxOrm admin
 

Re: gentoo ebuild

Postby Guest » Wed Apr 13, 2011 2:59 pm

I get the same result building under console. This is not caused by the gentoo ebuild. something might missing in the server environment.

If I remove the "-include QxOrm" cflags option in the generated Makefile, it works better but still failed when compiling the "qt/moc/moc_QxThreadPool.cpp" file with boost version related errors. I have boost-1.45 installed. :?:
Guest
 

Next

Return to QxOrm - Help

Who is online

Users browsing this forum: No registered users and 8 guests

cron