CarVac / filmulator-gui

Filmulator --- Simplified raw editing with the power of film
https://filmulator.org
Other
669 stars 31 forks source link

building from commandline #108

Closed norayr closed 4 years ago

norayr commented 4 years ago

i don't have a qt creator, but i have all the necessary dependencies. how should i build the software from commandline?

Benitoite commented 4 years ago

Which operating system?

norayr commented 4 years ago

ok i found it,

qmake filmulator-gui.pro

now i have problem:

 # make
Makefile:1042: warning: overriding recipe for target 'install_itemfolder_01'
Makefile:1033: warning: ignoring old recipe for target 'install_itemfolder_01'
Makefile:1046: warning: overriding recipe for target 'uninstall_itemfolder_01'
Makefile:1037: warning: ignoring old recipe for target 'uninstall_itemfolder_01'
g++ -c -pipe -std=c++11 -DTOUT -O3 -fprefetch-loop-arrays -fopenmp -fno-strict-aliasing -ffast-math -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSql -isystem /usr/include/qt5/QtCore -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o imagePipeline.o core/imagePipeline.cpp
core/imagePipeline.cpp: In member function ‘matrix<short unsigned int> ImagePipeline::processImage(ParameterManager*, Interface*, Exiv2::ExifData&)’:
core/imagePipeline.cpp:166:19: error: ‘struct libraw_output_params_t’ has no member named ‘ca_correc’; did you mean ‘exp_correc’?
             PARAM.ca_correc = demosaicParam.caEnabled;//Turn on CA auto correction
                   ^~~~~~~~~
                   exp_correc
core/imagePipeline.cpp:167:19: error: ‘struct libraw_output_params_t’ has no member named ‘cared’
             PARAM.cared = 0;
                   ^~~~~
core/imagePipeline.cpp:168:19: error: ‘struct libraw_output_params_t’ has no member named ‘cablue’
             PARAM.cablue = 0;
                   ^~~~~~
core/imagePipeline.cpp:179:23: error: ‘struct libraw_output_params_t’ has no member named ‘ca_correc’; did you mean ‘exp_correc’?
                 PARAM.ca_correc = 0;//turn off auto CA correction.
                       ^~~~~~~~~
                       exp_correc
make: *** [Makefile:782: imagePipeline.o] Error 1

libraw version i have in my gentoo is libraw-0.19.2

Benitoite commented 4 years ago

Thanks, which branch are you trying to build?

norayr commented 4 years ago

oh, master. i did not notice there are other branches.

CarVac commented 4 years ago

The dev branch is fairly up-to-date at the moment and always kept in working order.

norayr commented 4 years ago

switched to dev. now i have this:

noch@amamiya ~/filmulator-gui/filmulator-gui $ make
Makefile:1062: warning: overriding recipe for target 'install_itemfolder_01'
Makefile:1053: warning: ignoring old recipe for target 'install_itemfolder_01'
Makefile:1066: warning: overriding recipe for target 'uninstall_itemfolder_01'
Makefile:1057: warning: ignoring old recipe for target 'uninstall_itemfolder_01'
g++ -c -pipe -std=c++14 -DTOUT -O3 -fprefetch-loop-arrays -fno-strict-aliasing -ffast-math -fopenmp -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSql -isystem /usr/include/qt5/QtCore -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o main.o main.cpp
In file included from ui/filmImageProvider.h:11,
                 from main.cpp:13:
ui/../core/imagePipeline.h:8:10: fatal error: rtprocess/librtprocess.h: No such file or directory
    8 | #include <rtprocess/librtprocess.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:727: main.o] Error 1

searched debian package directories for rtprocess.h. didn't find any package. then found it in your repos. should i build and install it separately? where then? can i not install it in /usr, but prefix? then how can i build filmulator with that prefixed rtprocess?

CarVac commented 4 years ago

Yes, you need to build librtprocess from my repository.

If you build and install librtprocess according to the instructions, qmake should know where to find the library. Same with cmake.

If you tell it to install somewhere different from usual, (as far as I know) when building Filmulator you need to notify cmake where to go looking for it with -DCMAKE_PREFIX_PATH and whatnot.