mirror of
https://github.com/Poikilos/b3view.git
synced 2023-10-03 07:58:48 -07:00
Move freetype search dir from debug to project...
Improve formatting of readme and output.
This commit is contained in:
parent
3e6f8324eb
commit
ff0ac8b279
7
build.sh
7
build.sh
@ -89,7 +89,12 @@ if [ -f "$$OUT_BIN" ]; then
|
|||||||
fi
|
fi
|
||||||
g++ -o build/b3view $OBJDIR/main.o $OBJDIR/Engine.o $OBJDIR/EventHandler.o $OBJDIR/UserInterface.o $OBJDIR/Debug.o $OBJDIR/View.o $OBJDIR/CGUITTFont.o $OBJDIR/Utility.o $OBJDIR/settings.o -lIrrlicht -lX11 -lGL -lXxf86vm -lXcursor -lstdc++fs -lfreetype
|
g++ -o build/b3view $OBJDIR/main.o $OBJDIR/Engine.o $OBJDIR/EventHandler.o $OBJDIR/UserInterface.o $OBJDIR/Debug.o $OBJDIR/View.o $OBJDIR/CGUITTFont.o $OBJDIR/Utility.o $OBJDIR/settings.o -lIrrlicht -lX11 -lGL -lXxf86vm -lXcursor -lstdc++fs -lfreetype
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "* linking failed."
|
cat <<END
|
||||||
|
Error: Linking failed. Ensure you have installed:
|
||||||
|
- irrlicht-devel and its dependencies: mesa-libGL-devel (requires libglvnd-devel which requires libX11-devel) libXxf86vm-devel
|
||||||
|
- libXcursor-devel
|
||||||
|
- freetype-devel
|
||||||
|
END
|
||||||
else
|
else
|
||||||
echo "* linking succeeded."
|
echo "* linking succeeded."
|
||||||
fi
|
fi
|
||||||
|
10
install.sh
10
install.sh
@ -66,21 +66,21 @@ for try_build_path in "$BUILD_DIR" "../build" "../../build-$project_unix_name-D
|
|||||||
do
|
do
|
||||||
try_src_path="$try_build_path/$src_name"
|
try_src_path="$try_build_path/$src_name"
|
||||||
if [ ! -f $src_path ]; then
|
if [ ! -f $src_path ]; then
|
||||||
echo "Checking for $src_path...NOT FOUND"
|
echo "* checking for $src_path...NOT FOUND"
|
||||||
if [ -f "$try_src_path" ]; then
|
if [ -f "$try_src_path" ]; then
|
||||||
echo "* Checking for $src_name in $try_build_path...FOUND"
|
echo "* checking for $src_name in $try_build_path...FOUND"
|
||||||
src_path="$try_src_path"
|
src_path="$try_src_path"
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
echo "* Checking for $src_name in $try_build_path...NOT FOUND"
|
echo "* checking for $src_name in $try_build_path...NOT FOUND"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ ! -f "$src_path" ]; then
|
if [ ! -f "$src_path" ]; then
|
||||||
customExit "(Nothing done) missing $src_name (You must build first, such as using build.sh or Qt Creator (Release))."
|
customExit "(Nothing done) missing $src_name (You must build first, such as using build.sh or Qt Creator (Release))."
|
||||||
else
|
else
|
||||||
echo "Checking for $src_path...FOUND"
|
echo "* checking for \"$src_path\"...FOUND"
|
||||||
echo "* current directory: `pwd`"
|
echo "* current directory: \"`pwd`\""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "$dest_bin" ]; then
|
if [ -d "$dest_bin" ]; then
|
||||||
|
@ -107,9 +107,10 @@ with other formats which also have the B3D extension.
|
|||||||
### Linux
|
### Linux
|
||||||
* To generate a working makefile, edit the .pro file to reflect your
|
* To generate a working makefile, edit the .pro file to reflect your
|
||||||
path settings and run:
|
path settings and run:
|
||||||
```bash
|
```bash
|
||||||
qmake make -f Makefile.Debug
|
qmake make -f Makefile.Debug
|
||||||
```
|
```
|
||||||
|
|
||||||
This will (hopefully) build a binary in the "build" subdirectory.
|
This will (hopefully) build a binary in the "build" subdirectory.
|
||||||
See [Troubleshooting](#Troubleshooting) for compiling via GUI.
|
See [Troubleshooting](#Troubleshooting) for compiling via GUI.
|
||||||
|
|
||||||
@ -221,6 +222,7 @@ only applies to Visual Studio users.)
|
|||||||
### Command-line arguments
|
### Command-line arguments
|
||||||
- `--test-and-exit`: This option is primarily for test scripts to run the program and see if it is working. It loads "dist/share/b3view/meshes/penguin-lowpoly-poikilos.b3d", loads the next texture, and (may perform other tests and) exits. It only works if the file exists such as if you are running from the repo directory.
|
- `--test-and-exit`: This option is primarily for test scripts to run the program and see if it is working. It loads "dist/share/b3view/meshes/penguin-lowpoly-poikilos.b3d", loads the next texture, and (may perform other tests and) exits. It only works if the file exists such as if you are running from the repo directory.
|
||||||
|
|
||||||
|
|
||||||
## Known Issues
|
## Known Issues
|
||||||
* Warn on missing texture.
|
* Warn on missing texture.
|
||||||
* Test and complete install.bat on Windows.
|
* Test and complete install.bat on Windows.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user