Instaling Qt4 and IPC in Argos - LCAD-UFES/carmen_lcad GitHub Wiki
First, install openssl-1.0.2u:
cd ~/packages_carmen wget wget https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz tar -xvzf openssl-1.0.2u.tar.gz cd openssl-1.0.2u ./Configure linux-aarch64 -fPIC shared make sudo make install sudo ldconfig sudo updatedb cd ../..
Include the lines below in ~/.bashrc:
#OpenSSL 1.0.x -> due to installation of Qt4 via source export PATH=/usr/local/ssl/bin:$PATH export LD_LIBRARY_PATH=/usr/local/ssl/lib:$LD_LIBRARY_PATH export OPENSSL_LIBS='-L/usr/local/ssl/lib -lssl -lcrypto' export OPENSSL_INCDIR=/usr/local/ssl/include export OPENSSL_LIBDIR=/usr/local/ssl/lib
Restart the terminal and, then, download and configure Qt4:
cd ~/packages_carmen wget https://download.qt.io/archive/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz tar -xvzf qt-everywhere-opensource-src-4.8.7.tar.gz cd qt-everywhere-opensource-src-4.8.7 CXXFLAGS="-fpermissive -Wno-deprecated-copy -Wno-class-memaccess -Wno-parentheses -Wno-implicit-fallthrough -Wno-deprecated-declarations -Wno-unused-function -Wno-misleading-indentation -Wno-cast-function-type -Wno-terminate -Wno-placement-new" ./configure -prefix /usr/local/qt4.8.7 -opensource -confirm-license -release -shared -no-phonon -no-phonon-backend -no-webkit -openssl -I /usr/local/ssl/include -L /usr/local/ssl/lib
Download and apply this patch:
wget -O qtscript-4.8.7-gcc-6.0.patch https://bugs.gentoo.org/attachment.cgi?id=433746 patch -p1 < qtscript-4.8.7-gcc-6.0.patch
Edit the file ./src/sql/drivers/mysql/qsql_mysql.cpp and add “typedef bool my_bool;” to line 57.
Edit the file ./src/plugins/accessible/widgets/itemviews.cpp and chamge line 396 from:
view()->selectionModel()->select(index, QItemSelectionModel::Columns & QItemSelectionModel::Deselect);
to:
view()->selectionModel()->select(index, (QItemSelectionModel::SelectionFlags) (QItemSelectionModel::Columns & QItemSelectionModel::Deselect));
Finally, compile Qt4:
make -j 12 sudo make install
Include the following lines in ~/.bashrc:
#Qt4 export PATH=/usr/local/qt4.8.7/bin:$PATH export LD_LIBRARY_PATH=/usr/local/qt4.8.7/lib:$LD_LIBRARY_PATH
And add the following link:
sudo ln -s /usr/local/qt4.8.7/bin/qmake /usr/local/qt4.8.7/bin/qmake-qt4
Download the IPC for Jetson from:
https://drive.google.com/file/d/1ZfF7nIi2aTKff9CbO68mNrufM8BBCxDO/view?usp=sharing
Then:
cd ~/packages_carmen unzip ~/Downloads/ipc.zip cd ipc mkdir build cd build cmake .. make sudo cp c/central /usr/local/bin/ sudo cp c/libs/libipc.a /usr/local/lib/