New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake build system #2019
Comments
Regarding linux, I tried to run cmake ./ from a fresh openscad clone and got an error about my libxml version. This is on Linux Mint 18.1 (based on Ubuntu 16.04) |
Ok, the next errors I encountered were
and then
After changing those to .h in CMakeLists.txt, cmake exits without error. Log attached. Then running
So I think it needs |
I think I got the Xlib included successfully, via #2069 After that change, the next error I see is some linking error related to QSettingsCached:
edit: I only needed to add QSettingsCached.cc to GUI_SOURCES for the above error (see #2070 ) |
@kintel With the latest changes, the cmake build now completes without any apparent errors on my Linux machine. |
Thanks! |
You're welcome. I figured I might as well also post the logs from the build, so here they are with the commands used to create them: There were also a handful of warnings throughout the make, which I've clipped out from the full log, and pasted below:
|
I've done more testing and I have good news to report. Testing the cmake build on Linux Mint 18, with I did notice that the cmake build took about twice as long to complete tests, and tracked down the issue to the fact that qmake automatically add -O2 optimization, and cmake didn't. (hence PR #2169 ) Here is a little bash script I wrote to test both builds, so you can see the commands I used. It assumes dependencies are already met:
|
I think it would be nice to do some testing of the cmake builds on travis. Can we set up a branch ( |
@thehans If you open a PR with such an edited travis.yml, it should automatically trigger Travis to do the right thing. |
@kintel I just tried replacing qmake in @t-paul was saying in IRC that there may be some restrictions to how travis changes are applied? edit: I just realized I had accidentally indented some lines differently in travis.yml, that might be part of the problem. Trying again with indentation fixed... edit2: Nope, I still see qmake called in the in the logs https://travis-ci.org/openscad/openscad/jobs/296091754 |
You edited the "coverity" section, which is only run when we run the Coverity static analysis tests. |
By the way, I ran the same ctest command that travis uses(copied from |
cmake builds have fully replaced qmake now |
In #1048, we merged a rough first attempt at a CMake build system.
We're not close to be able to use CMake in production, but we'll track improvements ideas here:
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: