on cmake one can pass a path like so:
Code: Select all
-DCMAKE_PREFIX_PATH=/opt/Qt/5.6/lib/cmake
Code: Select all
cmake -G "Unix Makefiles" --build .. -DBOOST_ROOT=/usr/local -DCMAKE_PREFIX_PATH=/opt/Qt/5.6/lib/cmake
Code: Select all
-DCMAKE_PREFIX_PATH=/opt/Qt/5.6/lib/cmake
Code: Select all
cmake -G "Unix Makefiles" --build .. -DBOOST_ROOT=/usr/local -DCMAKE_PREFIX_PATH=/opt/Qt/5.6/lib/cmake
Code: Select all
brew install boost cmake qt5 libtiff libpng jpeg
git clone https://github.com/4lex4/scantailor-advanced.git
export CMAKE_PREFIX_PATH="/usr/local/opt/qt/lib/cmake"
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"
cd scantailor-advanced
mkdir build && cd build
cmake -G "Unix Makefiles" --build ..
make -j `nproc`
make install
i8dcI32QWRfiwVj wrote: ↑18 Aug 2018, 08:31Actually, have just managed to build ST Advanced on macOS 10.13.6 myself. Not that difficult with Macports. Here's how I did it:i8dcI32QWRfiwVj wrote: ↑17 Aug 2018, 08:15Would be amazing to have a howto for building ST Advanced on macOS! Also, is there anything that stands in the way of packing the app you compiled into a .dng container and making it available? (Honest question! I don't know much about creating standalone apps on macOS.)codeone wrote: ↑23 Jul 2018, 08:44
I know your inquiries re: macOS are a few months old, now, but I wanted to note I was able to compile in macOS High Sierra on an 2013 Macbook Pro. While I did get some warnings during the build process, nothing failed outright. The latest version of the source (as of 2018-07-23 -- 1.0.16) did appear to build successfully and install...I start ScanTailor Advanced from the Terminal and it just works as far as I can tell, though I haven't stress tested every possible feature. I do see errors in Terminal when running--I think these are related to stylesheets of the UI but they haven't crashed the app and I don't actually have a sense of what isn't being executed.
Still, if anyone would like me to add a HOWTO build Advanced for macOS, I could do that--just let me know if this is still needed and I can write up how I got the source compiled. It's also possible one or more of you did this on your own and with better results than me, so I'd also be happy to hear from people who got this working on their own, too.
Done!
- Preparation:
Installed all dependencies and tools (see list at https://github.com/4lex4/scantailor-lib ... pendencies). In my case:
Then cloned the ST Advanced github repository:Code: Select all
sudo port install boost cmake qt5 tiff libpng jpeg zlib
Code: Select all
git clone https://github.com/4lex4/scantailor-advanced.git
- Followed Linux build instructions (see https://github.com/4lex4/scantailor-libs-build#linux):
Then:Code: Select all
cd ".../scantailor-advanced-1.x.x" mkdir build && cd build cmake -G "Unix Makefiles" --build .. make -j `nproc`
Code: Select all
sudo make install
Executable runs fine from Terminal. Found it impossible to package my build into an .app bundle, though, and would greatly appreciate some help here.
Code: Select all
brew install boost cmake qt5 libtiff libpng jpeg
git clone https://github.com/4lex4/scantailor-advanced.git
export CMAKE_PREFIX_PATH="/usr/local/opt/qt/lib/cmake"
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"
cd scantailor-advanced
mkdir build && cd build
cmake -G "Unix Makefiles" --build ..
make
make install
alan wrote: ↑27 Feb 2019, 22:27 I was able to build ScanTailor Advanced on macOS 10.14.3 (Mojave) using Homebrew instead of Macports (as I already use Homebrew).
zlib is already available on macOSCode: Select all
brew install boost cmake qt5 libtiff libpng jpeg git clone https://github.com/4lex4/scantailor-advanced.git export CMAKE_PREFIX_PATH="/usr/local/opt/qt/lib/cmake" export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig" cd scantailor-advanced mkdir build && cd build cmake -G "Unix Makefiles" --build .. make -j `nproc` make install
The only obvious issue so far is that icons (such as previous/next page) are not properly displayed, but the tooltips work.
i8dcI32QWRfiwVj wrote: ↑18 Aug 2018, 08:31Actually, have just managed to build ST Advanced on macOS 10.13.6 myself. Not that difficult with Macports. Here's how I did it:i8dcI32QWRfiwVj wrote: ↑17 Aug 2018, 08:15
Would be amazing to have a howto for building ST Advanced on macOS! Also, is there anything that stands in the way of packing the app you compiled into a .dng container and making it available? (Honest question! I don't know much about creating standalone apps on macOS.)
Done!
- Preparation:
Installed all dependencies and tools (see list at https://github.com/4lex4/scantailor-lib ... pendencies). In my case:
Then cloned the ST Advanced github repository:Code: Select all
sudo port install boost cmake qt5 tiff libpng jpeg zlib
Code: Select all
git clone https://github.com/4lex4/scantailor-advanced.git
- Followed Linux build instructions (see https://github.com/4lex4/scantailor-libs-build#linux):
Then:Code: Select all
cd ".../scantailor-advanced-1.x.x" mkdir build && cd build cmake -G "Unix Makefiles" --build .. make -j `nproc`
Code: Select all
sudo make install
Executable runs fine from Terminal. Found it impossible to package my build into an .app bundle, though, and would greatly appreciate some help here.
Might be possible to find out more by comparing changes between develop/master versions: