Closed mkeeter closed 7 years ago
In general, now that LTS 16.04 is out, I'll be putting less effort into supporting 14.04.
You can try to keep bringing in packages from the future, but you may need a non-default Qt, gcc
, and perhaps even cmake
(all of which work fine by default in 16.04; see 9f99631ccbd4d5d2023fb33a83c6679c9db4d48e which removed 14.04 special-cases).
Do you know how I tell CMake that I have Qt5.4 in a specific directory (where I built it, but did not install it in the system directories)?
In the Mac build instructions, we point cmake
to a particular Qt folder:
cmake -DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.6.1 -GNinja ..
Can you see if that works for you?
I think that the C++11 and C99 warnings may be because you have an older version of cmake
that doesn't support the CXX_STANDARD
property.
I've pushed a commit to develop
(9a3b127a7a91230db4c62142586d93a850219e4a) that asks cmake
to use C99
as the C default (in the same way that we ask for C++11), but if the issue is cmake
, then this won't fix the problem.
Using -DCMAKE_PREFIX_PATH=
improves things. It seems to use my custom Qt.
@mkeeter , Now I get an error, "ui_base_window.h: No such file or directory":
FAILED: /usr/bin/c++ -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -Wall -Wextra -g -Werror=switch -O3 -DRELEASE -fPIE -Iapp -I../app -isystem /usr/include/python3.3m -isystem /usr/include/x86_64-linux-gnu/python3.3m -I/home/awgrover/dev/thirdparty/qt5.4/install/5.4/gcc_64/include -I/home/awgrover/dev/thirdparty/qt5.4/install/5.4/gcc_64/include/QtWidgets -I/home/awgrover/dev/thirdparty/qt5.4/install/5.4/gcc_64/include/QtGui -I/home/awgrover/dev/thirdparty/qt5.4/install/5.4/gcc_64/include/QtCore -I/home/awgrover/dev/thirdparty/qt5.4/install/5.4/gcc_64/mkspecs/linux-g++ -I/home/awgrover/dev/thirdparty/qt5.4/install/5.4/gcc_64/include/QtOpenGL -I/home/awgrover/dev/thirdparty/qt5.4/install/5.4/gcc_64/include/QtNetwork -I/home/awgrover/dev/thirdparty/qt5.4/install/5.4/gcc_64/include/QtConcurrent -I../lib/graph/inc -I../lib/fab/inc -D'GITREV="'a6a2c52'+ "' -D'GITTAG="0.9.2b "' -D'GITBRANCH="master "' -std=c++11 -std=c11 -MMD -MT app/CMakeFiles/antimony.dir/window/quad.cpp.o -MF "app/CMakeFiles/antimony.dir/window/quad.cpp.o.d" -o app/CMakeFiles/antimony.dir/window/quad.cpp.o -c ../app/window/quad.cpp
cc1plus: warning: command line option ‘-std=c11’ is valid for C/ObjC but not for C++
In file included from ../app/window/base_viewport_window.h:4:0,
from ../app/window/quad.h:3,
from ../app/window/quad.cpp:3:
../app/window/base.h:5:28: fatal error: ui_base_window.h: No such file or directory
#include "ui_base_window.h"
(I used the master branch above).
That file isn't in master, or develop branches (nor the build directory after cmake+ninja). Is it supposed be made from app/window/base_window.ui? Is this something new in Qt 5.6 (I'm using 5.4.1)?
Yes, and that should automatically be built with the AUTOUIC
directive in app/CMakeLists.txt
.
Have you upgraded cmake
yet? Their documents don't give good indications of when features are added, but I suspect that many of your issues are because cmake 2.8
doesn't have appropriate features.
To enforce this behavior, I've pushed an update to develop
to require at least cmake 3.1
(which was released in December 2014, so it's hardly bleeding-edge).
Ok, updated to cmake 3.2.2. It builds ui_base_window.h. And I can launch Antimony (with the "add" menu)!
Building for Ubuntu 14.04
You are going to need cmake 3.x, python 3.3:
apt-get install -y python-software-properties
add-apt-repository -y ppa:fkrull/deadsnakes
add-apt-repository ppa:george-edison55/cmake-3.x
apt-get update
apt-get install -y python3.3 python3.3-dev cmake
Download and build qt5.6 If you built qt5, but didn't install it in the system, then the build statements are:
# the /some/dir/for/qt5 should have lib/libQt5*.so inside it
cmake -DCMAKE_PREFIX_PATH=/some/dir/for/qt5 -GNinja ..
ninja
I added
add_compile_options(-std=c++11)
add_compile_options(-std=c11)
to CMakeLists.txt
Need to test your cflag thing noted above.
Just built 0.9.3 Did not need to edit CMakeLists.txt
Okay, sounds good – let's close this issue.
Copied from @awgrover 's comment here
I'm still having problems: checked out on release/0.9.2b @ b9f01e14d2f9000e2c74361ffd9bf19c0b042616
Install from fkrull/deadsnakes
That seems to work. Should you specify "apt-get install python3.3 python3.3-dev" ?
I did the quick and dirty addition to CMakeLists.txt:
add_compile_options(-std=c++11)
Which seems to work (though I get warnings for "c" compiles.../lib/fab/src/formats/stl.c:14:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
I did the quick and dirty addition to CMakeLists.txt:add_compile_options(-std=c11)
Which seems to work (though I get warnings for "c++" compiles.I see some messages about "QStandardPaths::AppDataLocation ... was introduced in Qt 5.4"
@mkeeter: Do you know how I tell CMake that I have Qt5.4 in a specific directory (where I built it, but did not install it in the system directories)?
Here's the output of cmake:
Some versions: