Seeking help collaborating on an XOP on Mac and PC
dtadams
Our problem is that the XOP toolkit does not have built-in cross-platform support. It provides "project files", which handle most of the XOP setup process automatically, but these project files only come with the extensions "sln" or "xcodeproj". "Sln" projects can only be opened by Visual Studio (which only works on Windows), and "xcodeproj" files can only be opened by XCode (which only works on Macs). So there's no way for my partner and I to use the same project file or have the same setup.
It seems like the best solution would be to build an XOP without using these project files. The C++ code we need exists independently of them. We just need to find a way to compile and build it into an "xop" file on our own. Both my partner and I are fairly new to C++ development, so we are not sure how to do this.
Does anyone with experience with XOPs know how to build them manually, or by using different software?
The easiest solution is that both of you work with the project files for the platform they are on.
This obviously means that you have to tune two different sets of project files to your needs.
And yes you quickly run into situations where the setup is slightly different.
The only real way out, is to use a project file generator like CMAKE. This is a long overdue wish of mine to have, but definitly not someting you should tackle as rookie.
June 25, 2015 at 03:00 pm - Permalink
When you add a file to one project you will have to add it to the other. This is usually not a big impediment.
June 26, 2015 at 04:44 am - Permalink
You can download the Qt installer, which includes Qt Creator, for free from https://www.qt.io/download-open-source. If you already have Qt installed for some other work you are doing, you could probably use that version (I have only tried doing this with Qt 5.4 and 5.5).
This is something that I would recommend only for a relatively advanced programmer who is already familiar with building projects using qmake. Qt project files are text, and so configuring them is more difficult than using Xcode and Visual Studio, where for most things you can point and click to set things up properly.
As Howard said, you are better off creating two projects (an Xcode project and a VS project) that use the same source code files.
If you want to take the approach of using qmake, I think I have one xop that I have built successfully on both platforms using the same Qt .pro file. I could provide that as an example but I couldn't provide additional technical support.
June 26, 2015 at 06:12 am - Permalink
On another note, I would love to see Igor address this at some point in the future. Getting the XOP toolkit up to date and giving it cross-platform support would be incredibly helpful -- my partner and I have spent 2 days trying to get around these issues on our own.
June 26, 2015 at 07:24 am - Permalink
I would be interested in the qmake project file. Maybe it's short enough for the code snippet section here in the forum.
June 26, 2015 at 08:11 am - Permalink
October 16, 2017 at 09:51 am - Permalink