Skip to content

Commit

Permalink
ubuntu troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
dxli committed Aug 19, 2023
1 parent 49ac9c1 commit 3ae6f5c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 25 deletions.
16 changes: 2 additions & 14 deletions scripts/ubuntu-install/createAppImage.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,13 @@

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

chmod a+x linuxdeploy-x86_64.AppImage
chmod a+x linuxdeploy-plugin-qt-x86_64.AppImage

sudo cp ../AppImage/librecad.* AppDir/
sudo cp /usr/local/lib/libdxfrw.so.1 AppDir/usr/lib
#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
31 changes: 20 additions & 11 deletions scripts/ubuntu-install/installDependenciesAndBuildRepo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,29 @@ libbz2-dev libglfw3-dev libglm-dev libfltk1.3-dev doxygen mkdocs qtchooser
#sudo apt update
#sudo apt install cmake
echo on
cd /usr/src/gtest
sudo cmake CMakeLists.txt
sudo make
echo "building LibreCAD"
git submodule update
cmake . -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=On
make -j 4
echo "installing LibreCAD"
sudo make install DESTDIR=AppDir

cd lib #meeded in ubuntu 20.04+
sudo cp ./*.a /usr/lib
#cd /usr/src/gtest
#sudo cmake CMakeLists.txt
#sudo make


#cd lib #meeded in ubuntu 20.04+
#sudo cp ./*.a /usr/lib

cd
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"
echo "building dxfrw"
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=On ..
make -j 4
echo "installing dxfrw"
sudo make install DESTDIR=AppDir


0 comments on commit 3ae6f5c

Please sign in to comment.