You are not logged in.

#1 2012-10-09 22:52:50

freddy311082
Member
Registered: 2010-06-15
Posts: 32

Error compiling QxOrm

hi to everybody

I'm trying to compiling the QxOrm library which is an ORM library. During the compiling process I had the following error and I don't what I have to do:

/usr/bin/ld: cannot find -lboost_serialization-mt
collect2: error: ld returned 1 exit status
make[1]: *** [lib/libQxOrm.so.1.2.4] Error 1

I had instaled the boost, boost-libs and boost-build pakages, and I had the same result during the compilation.....

somebody help me... pleeeeaaaasseeeeee.....

best regards

Freddy

Offline

#2 2012-10-09 22:54:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: Error compiling QxOrm

Are you using PKGBUILD from the comments https://aur.archlinux.org/packages.php?ID=45233 ?

Offline

#3 2012-10-09 23:35:43

freddy311082
Member
Registered: 2010-06-15
Posts: 32

Re: Error compiling QxOrm

yes.... but the QxOrm is not the same version that sed in the AUR QxOrm page....

I've the QxOrm 1.2.4 and the file version here http://www.qxorm.com/version/QxOrm_1.1.3.zip is the QxOrm 1.1.3, but I need to used the 1.2.4 version which is the last version on the QxOrm page...

I can begin with the version 1.1.3, but I need the orther... what can I doo with the boost libraries which I can't see ??

best regards

Offline

#4 2012-10-09 23:45:52

freddy311082
Member
Registered: 2010-06-15
Posts: 32

Re: Error compiling QxOrm

biside.... I was testing with the QxOrm 1.1.3 pakage which is in the https://aur.archlinux.org/packages.php?ID=45233, and I've the same error... I need to solve it, because I need this ORM....

please... somebody help me !!!!

regards

Offline

#5 2012-10-09 23:50:08

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 4,788

Re: Error compiling QxOrm

A quick google search shows this:http://www.linuxquestions.org/questions/slackware-14/cannot-find-lboost_system-mt-805905/

Sounds like you need an older version of boost or you need to change the configure script. I'm sure that's what the sed commands in the pkgbuild attempt to do, but obviously it doesn't work. Maybe you can rebuild boost-libs from the abs and include the needed libs somehow?

Last edited by Scimmia (2012-10-10 00:02:22)

Offline

#6 2012-10-10 00:13:53

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: Error compiling QxOrm

I've tried

pkgname=qxorm
_pkgname=QxOrm
pkgver=1.2.4
pkgrel=1
pkgdesc="QxOrm C++ library, provides Object Relational Mapping (ORM) feature in C++. Includes debug version."
arch=('i686' 'x86_64')
url="http://www.qxorm.com/"
license=('GPL')
depends=(boost-libs)
source=(http://www.qxorm.com/version/${_pkgname}_${pkgver}.zip)
md5sums=('01b3eccc64b62c3d94926dadfa88021a')

build() {
  cd "${startdir}/src/${_pkgname}"
  sed -e 's/boost_serialization-mt-d/boost_serialization/g' \
  -e 's/boost_serialization-mt/boost_serialization/g' \
  -i "${startdir}/src/${_pkgname}/QxOrm.pri" 

  qmake QxOrm.pro
  make release
  make release-install
  make debug
  make debug-install
  mkdir -p "${startdir}/pkg/usr"
  cp -r "${startdir}/src/${_pkgname}/lib" "${startdir}/pkg/usr"
  cp -r "${startdir}/src/${_pkgname}/include" "${startdir}/pkg/usr"
  cp -r "${startdir}/src/${_pkgname}/inl" "${startdir}/pkg/usr"
}

but failed

...
ln -s libQxOrm.so.1.2.4 libQxOrm.so
ln -s libQxOrm.so.1.2.4 libQxOrm.so.1
ln -s libQxOrm.so.1.2.4 libQxOrm.so.1.2
rm -f lib/libQxOrm.so.1.2.4
rm -f lib/libQxOrm.so
rm -f lib/libQxOrm.so.1
rm -f lib/libQxOrm.so.1.2
mv -f libQxOrm.so.1.2.4 libQxOrm.so libQxOrm.so.1 libQxOrm.so.1.2 lib/
make[1]: Leaving directory `/home/karol/apps/QxOrm/src/QxOrm'
make -f Makefile.Release install
make[1]: Entering directory `/home/karol/apps/QxOrm/src/QxOrm'
install -m 755 -p "lib/libQxOrm.so.1.2.4" "/usr/local/lib/libQxOrm.so.1.2.4"
install: cannot create regular file ‘/usr/local/lib/libQxOrm.so.1.2.4’: Permission denied
make[1]: [install_target] Error 1 (ignored)
strip --strip-unneeded "/usr/local/lib/libQxOrm.so.1.2.4"
strip: '/usr/local/lib/libQxOrm.so.1.2.4': No such file
make[1]: [install_target] Error 1 (ignored)
ln -f -s "libQxOrm.so.1.2.4" "/usr/local/lib/libQxOrm.so"
ln: failed to create symbolic link ‘/usr/local/lib/libQxOrm.so’: Permission denied
make[1]: [install_target] Error 1 (ignored)
ln -f -s "libQxOrm.so.1.2.4" "/usr/local/lib/libQxOrm.so.1"
ln: failed to create symbolic link ‘/usr/local/lib/libQxOrm.so.1’: Permission denied
make[1]: [install_target] Error 1 (ignored)
ln -f -s "libQxOrm.so.1.2.4" "/usr/local/lib/libQxOrm.so.1.2"
ln: failed to create symbolic link ‘/usr/local/lib/libQxOrm.so.1.2’: Permission denied
make[1]: [install_target] Error 1 (ignored)
cp -f -r /home/karol/apps/QxOrm/src/QxOrm/include/QxCollection /usr/local/include/
cp: cannot create directory ‘/usr/local/include/QxCollection’: Permission denied
make[1]: [install_headers] Error 1 (ignored)
cp -f -r /home/karol/apps/QxOrm/src/QxOrm/include/QxCommon /usr/local/include/
cp: cannot create directory ‘/usr/local/include/QxCommon’: Permission denied
make[1]: [install_headers] Error 1 (ignored)
cp -f -r /home/karol/apps/QxOrm/src/QxOrm/include/QxDao /usr/local/include/
cp: cannot create directory ‘/usr/local/include/QxDao’: Permission denied
make[1]: [install_headers] Error 1 (ignored)
cp -f -r /home/karol/apps/QxOrm/src/QxOrm/include/QxDataMember /usr/local/include/
cp: cannot create directory ‘/usr/local/include/QxDataMember’: Permission denied
make[1]: [install_headers] Error 1 (ignored)
cp -f -r /home/karol/apps/QxOrm/src/QxOrm/include/QxFactory /usr/local/include/
cp: cannot create directory ‘/usr/local/include/QxFactory’: Permission denied
make[1]: [install_headers] Error 1 (ignored)
cp -f -r /home/karol/apps/QxOrm/src/QxOrm/include/QxFunction /usr/local/include/
cp: cannot create directory ‘/usr/local/include/QxFunction’: Permission denied
make[1]: [install_headers] Error 1 (ignored)
cp -f -r /home/karol/apps/QxOrm/src/QxOrm/include/QxMemLeak /usr/local/include/
cp: cannot create directory ‘/usr/local/include/QxMemLeak’: Permission denied
make[1]: [install_headers] Error 1 (ignored)
install -m 644 -p /home/karol/apps/QxOrm/src/QxOrm/include/QxMemLeak.h /usr/local/include/
install: cannot create regular file ‘/usr/local/include/QxMemLeak.h’: Permission denied
make[1]: [install_headers] Error 1 (ignored)
install -m 644 -p /home/karol/apps/QxOrm/src/QxOrm/include/QxOrm.h /usr/local/include/
install: cannot create regular file ‘/usr/local/include/QxOrm.h’: Permission denied
make[1]: [install_headers] Error 1 (ignored)
install -m 644 -p /home/karol/apps/QxOrm/src/QxOrm/include/QxPrecompiled.h /usr/local/include/
install: cannot create regular file ‘/usr/local/include/QxPrecompiled.h’: Permission denied
make[1]: [install_headers] Error 1 (ignored)
cp -f -r /home/karol/apps/QxOrm/src/QxOrm/include/QxRegister /usr/local/include/
cp: cannot create directory ‘/usr/local/include/QxRegister’: Permission denied
make[1]: [install_headers] Error 1 (ignored)
cp -f -r /home/karol/apps/QxOrm/src/QxOrm/include/QxSerialize /usr/local/include/
cp: cannot create directory ‘/usr/local/include/QxSerialize’: Permission denied
make[1]: [install_headers] Error 1 (ignored)
cp -f -r /home/karol/apps/QxOrm/src/QxOrm/include/QxService /usr/local/include/
cp: cannot create directory ‘/usr/local/include/QxService’: Permission denied
make[1]: [install_headers] Error 1 (ignored)
cp -f -r /home/karol/apps/QxOrm/src/QxOrm/include/QxSingleton /usr/local/include/
cp: cannot create directory ‘/usr/local/include/QxSingleton’: Permission denied
make[1]: [install_headers] Error 1 (ignored)
cp -f -r /home/karol/apps/QxOrm/src/QxOrm/include/QxTraits /usr/local/include/
cp: cannot create directory ‘/usr/local/include/QxTraits’: Permission denied
make[1]: [install_headers] Error 1 (ignored)
cp -f -r /home/karol/apps/QxOrm/src/QxOrm/include/QxValidator /usr/local/include/
cp: cannot create directory ‘/usr/local/include/QxValidator’: Permission denied
make[1]: [install_headers] Error 1 (ignored)
cp -f -r /home/karol/apps/QxOrm/src/QxOrm/include/QxXml /usr/local/include/
cp: cannot create directory ‘/usr/local/include/QxXml’: Permission denied
make[1]: [install_headers] Error 1 (ignored)
mkdir: cannot create directory ‘/usr/local/inl/’: Permission denied
make[1]: *** [install_headers_inl] Error 1
make[1]: Leaving directory `/home/karol/apps/QxOrm/src/QxOrm'
make: *** [release-install] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

I'm not sure if I'm reading this right, but maybe 'make *-install' part of the PKGBUILD needs fixing.

Offline

#7 2012-10-12 13:40:25

freddy311082
Member
Registered: 2010-06-15
Posts: 32

Re: Error compiling QxOrm

I solve the problem.... look at inside the QxOrm.pri file the line 55:

unix {
QX_BOOST_INCLUDE_PATH = $$quote(/usr/include)
QX_BOOST_LIB_PATH = $$quote(/usr/lib)
QX_BOOST_LIB_SERIALIZATION_DEBUG = "boost_serialization-mt"
QX_BOOST_LIB_SERIALIZATION_RELEASE = "boost_serialization-mt"
} # unix

and change it by:

unix {
QX_BOOST_INCLUDE_PATH = $$quote(/usr/include)
QX_BOOST_LIB_PATH = $$quote(/usr/lib)
QX_BOOST_LIB_SERIALIZATION_DEBUG = "boost_serialization"
QX_BOOST_LIB_SERIALIZATION_RELEASE = "boost_serialization"
} # unix

regards

Offline

#8 2012-10-12 13:46:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: Error compiling QxOrm

That's what the sed command from the patched PKGBUILD did:

  sed -e 's/boost_serialization-mt-d/boost_serialization/g' \
  -e 's/boost_serialization-mt/boost_serialization/g' \
  -i "${startdir}/src/${_pkgname}/QxOrm.pri" 

Offline

#9 2012-10-13 22:22:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: Error compiling QxOrm

If it's working, please mark the threads as solved.

Offline

Board footer

Powered by FluxBB