Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile help? #203

Open
BlueRidgeDog opened this issue Oct 28, 2019 · 10 comments
Open

Compile help? #203

BlueRidgeDog opened this issue Oct 28, 2019 · 10 comments
Assignees
Labels

Comments

@BlueRidgeDog
Copy link

BlueRidgeDog commented Oct 28, 2019

After installing the dependencies, cmake hangs at the end Linking CXX executable photoflow with:

/usr/bin/ld: libpfgui.a(mainwindow.cc.o): in function `PF::MainWindow::MainWindow()':
/home/jervin/Downloads/PhotoFlow-stable/src/gui/mainwindow.cc:113: undefined reference to `PF::version_string'
/usr/bin/ld: libpfgui.a(mainwindow.cc.o): in function `PF::MainWindow::MainWindow()':
/home/jervin/Downloads/PhotoFlow-stable/src/gui/mainwindow.cc:113: undefined reference to `PF::version_string'
/usr/bin/ld: libpfgui.a(mainwindow.cc.o): in function `PF::MainWindow::set_image_name(Glib::ustring)':
/home/jervin/Downloads/PhotoFlow-stable/src/gui/mainwindow.cc:296: undefined reference to `PF::version_string'
/usr/bin/ld: libpfgui.a(settingsdialog.cc.o): in function `PF::SettingsDialog::SettingsDialog()':
/home/jervin/Downloads/PhotoFlow-stable/src/gui/settingsdialog.cc:264: undefined reference to `PF::version_string'
/usr/bin/ld: libpfgui.a(settingsdialog.cc.o): in function `PF::SettingsDialog::SettingsDialog()':
/home/jervin/Downloads/PhotoFlow-stable/src/gui/settingsdialog.cc:264: undefined reference to `PF::version_string'
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/photoflow.dir/build.make:112: src/photoflow] Error 1
make[2]: Leaving directory '/home/jervin/Downloads/PhotoFlow-stable/build'
make[1]: *** [CMakeFiles/Makefile2:435: src/CMakeFiles/photoflow.dir/all] Error 2
make[1]: Leaving directory '/home/jervin/Downloads/PhotoFlow-stable/build'
make: *** [Makefile:130: all] Error 2
Building PhotoFlow finished with return code 2.

Compiling on Ubuntu 19.10 (Kubuntu).

@aferrero2707
Copy link
Owner

Could you post the exact cmake command (or build command) that you have used?

@aferrero2707 aferrero2707 self-assigned this Oct 31, 2019
@BlueRidgeDog
Copy link
Author

I used the "bash build.sh" provided.
I also tried:
cd /home/jervin/Downloads/PhotoFlow-stable/build/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/photoflow.dir/link.txt --verbose=1
The final build ends up formulated as the following either way:

[/usr/bin/c++   -DPF_HAS_LENSFUN   -O0 -g -DNDEBUG  -std=gnu++14 -march=nocona -mno-sse3 -mtune=generic -Wno-error=narrowing -Dgmic_build -Dcimg_use_vt100 -Dgmic_is_parallel -Dcimg_use_fftw3 -Dcimg_use_tiff -Dcimg_use_zlib -Dcimg_display=0 -fno-ipa-sra -fpermissive -I/home/jervin/Downloads/PhotoFlow-stable/src/dt -DLIBRAW_NODLL -DINSTALL_PREFIX='"/home/jervin/Downloads/PhotoFlow-stable/build/Debug"'  -Wno-deprecated-register -Wno-deprecated-declarations -DLOCALEDIR="/home/jervin/Downloads/PhotoFlow-stable/build/Debug/share/locale" -DGTKMM_2 -DBUNDLED_EXIV2=1 -Wno-unused-parameter   -Wl,--as-needed -rdynamic CMakeFiles/photoflow.dir/main.cc.o  -o photoflow  -L/usr/local/lib -Wl,-rpath,/usr/local/lib: libpfgui.a libpfbase.a libpfgmic.a libpfdt.a libpfrtprocess.a external/rawspeed/librawspeed.a -ltiff -lpng -lz -ljpeg -llcms2 -lvips -lgobject-2.0 -lglib-2.0 -ltiff -lpng -lz -ljpeg -llcms2 -lexpat -lpugixml -lfftw3 -lxml2 -lexif external/exiv2/src/libexiv2.a external/exiv2/xmpsdk/libxmp.a -llensfun -lsigc-2.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lpixman-1 -lgtkmm-2.4 -latkmm-1.6 -lgtk-x11-2.0 -lgdkmm-2.4 -lgiomm-2.4 -lpangomm-1.4 -lglibmm-2.4 -lcairomm-1.0 -lsigc-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lglibmm-2.4 -lgobject-2.0 -lglib-2.0 -lsigc-2.0 -lglib-2.0 -lgmodule-2.0 -lglib-2.0 -lgobject-2.0 -lglib-2.0 -lgthread-2.0 -lglib-2.0 -lz -lfftw3_threads -lpthread -ldl /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/x86_64-linux-gnu/libz.so -ltiff -lpng -ljpeg -llcms2 -lvips -lgobject-2.0 -lexpat -lfftw3 -lxml2 -lexif external/exiv2/src/libexiv2.a external/exiv2/xmpsdk/libxmp.a -llensfun -lsigc-2.0 -lpango-1.0 -lpangoft2-1.0 -lfontconfig -lfreetype -lpixman-1 -lgtkmm-2.4 -latkmm-1.6 -lgtk-x11-2.0 -lgdkmm-2.4 -lgiomm-2.4 -lpangomm-1.4 -lglibmm-2.4 -lcairomm-1.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgmodule-2.0 -lgthread-2.0 -lpugixml -lfftw3_threads -lpthread -ldl
](url)


The full log of the build is attached.
buillog.txt

@aferrero2707
Copy link
Owner

I am trying to understand what could be wrong. Will get back to you as soon as I have some idea...

@aferrero2707
Copy link
Owner

@BlueRidgeDog looks like there is some problem in retrieving the version information via git on your system. I have added default values for the version info variables, so that the version.cc file still gets properly generated.

Could you please try to update your local stable branch and re-build?

@BlueRidgeDog
Copy link
Author

Excellent. It compiled fine. Now to get VIPS to do the same...it compiles but fails its tests, appears to link to its own libjpeg vs my installed on. I did not know this until PhotoFlow attempted to use vips to open a file!! Pressing on.

@aferrero2707
Copy link
Owner

@BlueRidgeDog any success? Is there anything I can do to help? If you are still struggling with VIPS you can post here the build error messages, I can have a look and see if I can figure out what is going wrong.

@alexmyczko
Copy link

alexmyczko commented Jan 14, 2020

here's a debian source package http://sid.ethz.ch/debian/photoflow/
i was able to build it for 20.04, don't have 19.10 to try, you tell me:

dget http://sid.ethz.ch/debian/photoflow/photoflow_0.2.8%2Bgit20200114-1.dsc
dpkg-source -x *.dsc
cd photofl*/
debuild
cd ..
dpkg -i photo*.deb

@aferrero2707
Copy link
Owner

@alexmyczko should I try to install the debian package you are providing, and check if photoflow runs correctly? Or is there any other action required from my side?

Thanks!!!

@alexmyczko
Copy link

can you install and test it? that would be great

@aferrero2707
Copy link
Owner

Sure! I will initially test it in a Docker container, then we can discuss wether another test on a full Debian system is required or not...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants