Page 1 of 1

Using QxORM on ARM architectures?

PostPosted: Tue Jun 14, 2016 10:19 pm
by JOJO
Is there a way of using QxORM with arm architectures?

If yes, how can i build the hole QxOrm library for arm processors?

Re: Using QxORM on ARM architectures?

PostPosted: Wed Jun 15, 2016 7:30 am
by qxorm
Hello,

Yes of course it is possible : QxOrm can be built on every type of environment.
For example, there is someone who built QxOrm on Raspberry Pi in the french forum here : http://www.developpez.net/forums/d12665 ... pberry-pi/

The first thing to do is to get a Qt package for ARM architecture : https://www.qt.io/download-open-source/
If you don't find the Qt package you want here, I think you can find a lot of resources and tutorials on Google searching "Qt ARM" or something like this.

Once you have Qt for ARM installed, just download and unzip boost package somewhere on your environment.
Since QxOrm depends only on boost headers files by default, you don't have to build something for boost.

Then, last step : open QxOrm.pri file, put the boost location Inside.
And it is finished.

Just build QxOrm with qmake provided by your Qt ARM package.

Re: Using QxORM on ARM architectures?

PostPosted: Mon Jun 27, 2016 1:36 pm
by JOJO
The QxOrm library works very well on my computer with amd processor.

Now i need to compile the library for arm processors.
I am new in the world of cross compiling, so maybe there is some information missing in my mind.

When i understand the world of cross compiling correct, then the most important thing is to compile the code with a cross compiler.
I installed the compiler with the following command from ubuntu: sudo apt-get install gcc-arm-linux-gnueabihf

My question is: How do i compile QxOrm with the gcc-arm-linux-gnueabihf compiler? If i start the compiling with the gcc_build_all_release_minimal.sh script (provided by QxORM) then is is going to compile with the GCC compiler.
I did not find a way to use the gcc-arm-linux-gnueabihf compiler by now.

Can anybody please help me?

Re: Using QxORM on ARM architectures?

PostPosted: Mon Jun 27, 2016 6:58 pm
by qxorm
The QxOrm library works very well on my computer with amd processor.

Great :)

I am new in the world of cross compiling

Sorry, I'm not an expert on this topic too.
I think this is not the best place to ask this question : since QxOrm library depends on Qt, I think the best place is to ask on a Qt forum.

The first thing to do is to have a Qt version for your environment (maybe you have to build Qt libraies yourself, or maybe you can download them).
You should ask on a Qt forum.

Re: Using QxORM on ARM architectures?

PostPosted: Tue Jun 28, 2016 1:48 pm
by JOJO
I found out, that the cross compiler has problems with the pre-compiled headers.

My questions is:
* Has the pre-compiled header anything to do with the boost library?
* Where are the pre-compiled header files located in the QxOrm library. My next try is to delete this headers. My hope is to force the cross-compiler to rebuild the pre-compiled header.

Re: Using QxORM on ARM architectures?

PostPosted: Tue Jun 28, 2016 7:47 pm
by qxorm
the cross compiler has problems with the pre-compiled headers

Hello, if you have problems with precompiled headers (like recent versions of MinGW on Windows), then you can enable the QX_NO_PRECOMPILED_HEADER compilation option in the QxOrm.pri configuration file.