[Compile] Cross compilation for Qnx
Added by Paul T... over 9 years ago
Hi all,
I'd like to know if anyone tried to compile Wt for Qnx.
I'm currently developing for armv7le on Windows using the Qnx environment : Momentics.
I'd like to compile and deploy Wt on my embeded system but I'm a real newbie regarding cross-compilation etc...
Is there anyone who can guide me throught the process or who can give me some references to read ?
(I tried to google it but so far it is still kind of dark)
Thanks for any help.
Paul
Replies (5)
RE: [Compile] Cross compilation for Qnx - Added by Mario Charest over 9 years ago
Been using Witty under QNX6.5.0 for the last two years.
You missed:
http://redmine.webtoolkit.eu/projects/wt/wiki/Installing_Wt_on_QNX
I used that documentation as a starting point. The hardest thing for me was building boost (1_55_0 at the time ) and dealing with generation of static/dynamic libs. Through our support plan, Emweb help me tweak cmake for QNX. However we cross develop under Ubuntu which makes all this stuff a LOT easier.
If I may, you should look into using Ubuntu instead of Windows. We run Ubuntu in a virtual machine ( VMWARE ) under Windows and beleive it or not, the compilation is significantely faster then on Windows, on the same machine!
RE: [Compile] Cross compilation for Qnx - Added by Paul T... over 9 years ago
Hello Mario,
Thanks for your answer... Good to know that I'm not alone in this ;)
Yes, I intended to build a VM under Ubuntu in order to build boost and WT.
I already got the wuki page... but I must admit it was quite dark to me...
Anyway, I'll try to build boost firstly and get back to you if I need any help (is that ok ?)
Again, thank you.
Paul
RE: [Compile] Cross compilation for Qnx - Added by Paul T... over 9 years ago
Hey Mario,
I tried today, here is the steps I followed
- Install Ubuntu 14.04 on a Virtual Box
- Install Qnx 6.6 on that VBox
- set the environment variables (source /opt/qnx660/qnx660-env.sh)
- download boost 1.59.0
- Apply the patches ( operations.cpp ; exception_ptr.hpp is already ok)
- ./bootstrap.sh ---with-libraries=date_time,filesystem,program_options,regex,signals,system,thread
- ./b2 toolset=qcc variant=release link=static threading=multi install
=> Here... not 2 sec of compilation: error regarding g ...
It's not starting ok...
RE: [Compile] Cross compilation for Qnx - Added by Mario Charest over 9 years ago
Here is all the config file I used for boost 1_55_0. Our active config is 650 with the 4.8.3 compiler. Haven`t tried 6.6.0 for a while as we decided to skip it and wait for the next one.
For 4.8.3 we had to do bunch of changes to boost, it had a macro "I", which created havoc. I tried 1_56_0 once and it build ok, so I assume 1_59_0 should be ok too.
RE: [Compile] Cross compilation for Qnx - Added by Paul T... over 9 years ago
Hello Mario,
Thanks for you help.
I'm confronted to the same problem as you with the macro "I", could you explain what changes did you do ?
Regards.
Paul