Create QxORM for Android

Forum for posting problems using QxOrm library

Create QxORM for Android

Postby MrBlond » Wed Aug 20, 2014 2:23 pm

Hello,

I have a problem creating QxOM with Android. I´m using QxOrM 1.2.9, Boost 1.54 and Android NDK32 R10 (compiler Android GCC arm-4.8).

When I want to create QxORM there is a failure.

Code: Select all
C:\Libs\QxOrm\include\QxCollection\IxCollection.h:58: Fehler: variable 'qx::QX_DLL_EXPORT qx::IxCollection' has initializer but incomplete type class QX_DLL_EXPORT IxCollection
...


There a many more failures according to IxCollection

Here is the class

Code: Select all
#ifndef _IX_COLLECTION_H_
#define _IX_COLLECTION_H_

#ifdef _MSC_VER
#pragma once
#endif

/*!
 * \file IxCollection.h
 * \author Lionel Marty
 * \ingroup QxCollection
 * \brief Common interface for all QxOrm containers qx::QxCollection<Key, Value>
 */

#include <boost/any.hpp>

#include <QxTraits/get_class_name.h>

#include <QxCommon/QxAnyCastDynamic.h>

namespace qx {

/*!
 * \ingroup QxCollection
 * \brief qx::IxCollection : common interface for all QxOrm containers qx::QxCollection<Key, Value>
 */
class QX_DLL_EXPORT IxCollection
{

public:

   IxCollection() { ; }
   virtual ~IxCollection() = 0;

   virtual long _count() const = 0;
   virtual void _clear() = 0;
   virtual bool _remove(long index) = 0;
   virtual boost::any _at(long index) const = 0;

   template <typename T>
   T _get(long index) const
   { return qx::any_cast_dynamic<T>::get(_at(index)); }

};

typedef boost::shared_ptr<qx::IxCollection> IxCollection_ptr;

} // namespace qx

QX_REGISTER_CLASS_NAME(IxCollection)

#endif // _IX_COLLECTION_H_



I think it´s a problem with "QX_DLL_EXPORT". If I delete this part the same failure "variable ... has initializer but incomplete type" appears in another class.

What I have to do to solve? Please can you help to create.

THX in advance.

Regards!
MrBlond
 
Posts: 3
Joined: Fri Aug 15, 2014 7:09 am

Re: Create QxORM for Android

Postby qxorm » Wed Aug 20, 2014 5:28 pm

Hello,

I think it´s a problem with "QX_DLL_EXPORT". If I delete this part the same failure "variable ... has initializer but incomplete type" appears in another class.

QX_DLL_EXPORT is defined in ./QxCommon/QxMacro.h, which is included in QxPrecompiled.h ==> so QX_DLL_EXPORT is defined everywhere in QxOrm library (since it is inside the precompiled header).

Have you modified some files in the QxOrm package ?

Note : I never tried to build QxOrm for Android, but it should work without any problem.
I heard that it is easier to work on Linux (to develop Android apps).
Before trying to build QxOrm library on Android, you must :
1- download and install Qt for Android ;
2- build boost serialization for Android.
qxorm
Site Admin
 
Posts: 481
Joined: Mon Apr 12, 2010 7:45 am


Return to QxOrm - Help

Who is online

Users browsing this forum: No registered users and 8 guests

cron