diff --git a/scripts/ubuntu-install/installDependenciesAndBuildRepo.sh b/scripts/ubuntu-install/installDependenciesAndBuildRepo.sh index aeb6e1af..8b6c37ee 100755 --- a/scripts/ubuntu-install/installDependenciesAndBuildRepo.sh +++ b/scripts/ubuntu-install/installDependenciesAndBuildRepo.sh @@ -21,13 +21,24 @@ libbz2-dev libglfw3-dev libglm-dev libfltk1.3-dev doxygen mkdocs qtchooser freeg echo on echo "building LibreCAD" git submodule update + +git clone --branch LibreCAD_3 https://github.com/LibreCAD/libdxfrw +mkdir -p libdxfrw/release +pushd libdxfrw/release +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 +popd + +echo "building LibreCAD" mkdir build pushd build cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=On make -j 4 echo "installing LibreCAD" sudo make install DESTDIR=AppDir -echo "installing LibreCAD" popd #cd /usr/src/gtest @@ -38,14 +49,5 @@ popd #cd lib #meeded in ubuntu 20.04+ #sudo cp ./*.a /usr/lib -git clone --branch LibreCAD_3 https://github.com/LibreCAD/libdxfrw -cd libdxfrw -mkdir release -cd release -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