Skip to content

Commit

Permalink
ubuntu troublehooting
Browse files Browse the repository at this point in the history
  • Loading branch information
dxli committed Aug 18, 2023
1 parent 11aca98 commit 49ac9c1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 6 additions & 1 deletion scripts/ubuntu-install/createAppImage.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@

echo "start building build"
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=On
make -j 4
echo "done building build"

sudo make install DESTDIR=AppDir
ls ../

echo "copying "
sudo cp ../AppImage/librecad.* AppDir/
echo "done"
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage

Expand All @@ -17,4 +22,4 @@ sudo cp ../AppImage/librecad.* AppDir/
sudo cp /usr/local/lib/libdxfrw.so.1 AppDir/usr/lib


sudo LD_LIBRARY_PATH=AppDir/usr/lib/x86_64-linux-gnu/:AppDir/usr/lib64:AppDir/usr/lib ./linuxdeploy-x86_64.AppImage --appdir AppDir --output appimage --executable AppDir/usr/bin/librecad --desktop-file AppDir/librecad.desktop --icon-file AppDir/librecad.svg --plugin qt
sudo LD_LIBRARY_PATH=AppDir/usr/lib/x86_64-linux-gnu/:AppDir/usr/lib64:AppDir/usr/lib ./linuxdeploy-x86_64.AppImage --appdir AppDir --output appimage --executable AppDir/usr/bin/librecad --desktop-file AppDir/librecad.desktop --icon-file AppDir/librecad.svg --plugin qt
8 changes: 5 additions & 3 deletions scripts/ubuntu-install/installDependenciesAndBuildRepo.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
sudo apt update
sudo apt upgrade
sudo apt install -qq cmake qttools5-dev qttools5-dev-tools libqt5opengl5-dev liblua5.2-dev git gcc \
sudo apt install -qq cmake qttools5-dev qttools5-dev-tools libqt5opengl5-dev liblua5.3-dev git gcc \
libcairo2-dev libpango-1.0-0 libpango1.0-dev libboost-dev libboost-log-dev libboost-program-options-dev \
libqt5svg5-dev libgtest-dev libeigen3-dev libcurl4-gnutls-dev libgtk-3-dev libglew-dev rapidjson-dev \
libbz2-dev libglfw3-dev libglm-dev libfltk1.3-dev doxygen mkdocs qtchooser liblua5.3-dev
libbz2-dev libglfw3-dev libglm-dev libfltk1.3-dev doxygen mkdocs qtchooser

#This is for versions older that 20.04, like ubuntu 18.04

Expand All @@ -18,7 +18,7 @@ libbz2-dev libglfw3-dev libglm-dev libfltk1.3-dev doxygen mkdocs qtchooser liblu
#sudo rm /etc/apt/trusted.gpg.d/kitware.gpg
#sudo apt update
#sudo apt install cmake

echo on
cd /usr/src/gtest
sudo cmake CMakeLists.txt
sudo make
Expand All @@ -31,6 +31,8 @@ git clone --branch LibreCAD_3 https://github.com/LibreCAD/libdxfrw
cd libdxfrw
mkdir release
cd release
echo "start LibreCAD_3"
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON ..
make
sudo make install
echo "done LibreCAD_3"

0 comments on commit 49ac9c1

Please sign in to comment.