Hello Liviu,
I wanted to send this to your mail address, but it refused to accept it.
I have been trying to make the CMake files for FET produce results like your binary packages directly, picking up the version automatically from a VERSION file. Maybe this can simplify the build process?
I also wanted to make it easy to build just the command-line version, and of course (for fetrunner) to build the command-line binary without console window (fet-clw) on Windows.
There may be better ways of doing it, but I now have something that has been working well in my tests so far (I can't test MacOS). The modifications are attached.
There is (I think) just one change from your Windows package: I have put the Qt plugins in their own directory. It seemed neater to me.
I have been using the following build commands, always from a "build" directory in the FET root directory.
Linux, to configure, full build:
The empty CMAKE_INSTALL_PREFIX causes the install directory to be named fet-x.y.z, where x.y.z is the version from the VERSION file.
Linux, to configure, cl-only:
Linux, to build and install:
Windows, to configure, full build:
Windows, to configure, cl-only:
Windows, to configure for fet-clw:
Windows, to build and install:
What do you think?
I wanted to send this to your mail address, but it refused to accept it.
I have been trying to make the CMake files for FET produce results like your binary packages directly, picking up the version automatically from a VERSION file. Maybe this can simplify the build process?
I also wanted to make it easy to build just the command-line version, and of course (for fetrunner) to build the command-line binary without console window (fet-clw) on Windows.
There may be better ways of doing it, but I now have something that has been working well in my tests so far (I can't test MacOS). The modifications are attached.
There is (I think) just one change from your Windows package: I have put the Qt plugins in their own directory. It seemed neater to me.
I have been using the following build commands, always from a "build" directory in the FET root directory.
Linux, to configure, full build:
Code Select
$HOME/Qt/Tools/CMake/bin/cmake .. -DCMAKE_PREFIX_PATH=$HOME/Qt/6.10.1/gcc_64 -DCMAKE_INSTALL_PREFIX=The empty CMAKE_INSTALL_PREFIX causes the install directory to be named fet-x.y.z, where x.y.z is the version from the VERSION file.
Linux, to configure, cl-only:
Code Select
$HOME/Qt/Tools/CMake/bin/cmake .. -DCMAKE_PREFIX_PATH=$HOME/Qt/6.10.1/gcc_64 -DCMAKE_INSTALL_PREFIX= -DCL_ONLY=onLinux, to build and install:
Code Select
$HOME/Qt/Tools/CMake/bin/cmake --build . --target install -j 4Windows, to configure, full build:
Code Select
C:\Qt\Tools\CMake_64\bin\cmake.exe .. -DCMAKE_PREFIX_PATH=C:\Qt\6.10.1\mingw_64 -DCMAKE_GENERATOR="MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=Windows, to configure, cl-only:
Code Select
C:\Qt\Tools\CMake_64\bin\cmake.exe .. -DCMAKE_PREFIX_PATH=C:\Qt\6.10.1\mingw_64 -DCMAKE_GENERATOR="MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=install -DCL_ONLY=onWindows, to configure for fet-clw:
Code Select
C:\Qt\Tools\CMake_64\bin\cmake.exe .. -DCMAKE_PREFIX_PATH=C:\Qt\6.10.1\mingw_64 -DCMAKE_GENERATOR="MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=install -DCL_ONLY=on -DNO_WIN_CONSOLE=onWindows, to build and install:
Code Select
C:\Qt\Tools\CMake_64\bin\cmake.exe --build . --target install -j 4What do you think?