Skip to content

Commit

Permalink
dxfrw
Browse files Browse the repository at this point in the history
  • Loading branch information
dxli committed Aug 19, 2023
1 parent a10be80 commit a989244
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions scripts/ubuntu-install/installDependenciesAndBuildRepo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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


0 comments on commit a989244

Please sign in to comment.