Closed markus-k closed 7 years ago
Never seen that problem before. It's especially weird since the file exists. Can you try commenting or removing line 127 of src/src.pro
where it adds some directories to INCLUDEPATH
? Then you probably want to make clean
and rerun qmake
and make
.
Yep, that helps. It doesn't like being included with with -isystem
flags, thats weird.
Next up it won't add -lopencv_imgcodecs
to the linker flags, even though it's in pkg-config --libs opencv
.
There also seems to be a problem with the precompiled object files on my platform:
g++ -m64 -Wl,-O1 -o ../bin/openskystacker ../build/o/linux/main.o ../build/o/linux/mainwindow.o ../build/o/linux/imagestacker.o ../build/o/linux/processingdialog.o ../build/o/linux/star.o ../build/o/linux/stardetector.o ../build/o/linux/pixel.o ../build/o/linux/adjoiningpixel.o ../build/o/linux/focas.o ../build/o/linux/stackergraphicsview.o ../build/o/linux/triangle.o ../build/o/linux/imagerecord.o ../build/o/linux/imagetablemodel.o ../build/o/linux/optionsdialog.o ../build/o/linux/moc_mainwindow.o ../build/o/linux/moc_imagestacker.o ../build/o/linux/moc_processingdialog.o ../build/o/linux/moc_stackergraphicsview.o ../build/o/linux/moc_optionsdialog.o -L/usr/X11R6/lib64 -lopencv_core -lopencv_highgui -lopencv_imgcodecs -lopencv_imgproc /home/markus/build/OpenSkyStacker/src/3rdparty/focas/unix/hfti.o /home/markus/build/OpenSkyStacker/src/3rdparty/focas/unix/h12.o /home/markus/build/OpenSkyStacker/src/3rdparty/focas/unix/diff.o -lraw -lstdc++ -fopenmp -llcms2 -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
/usr/bin/ld: /home/markus/build/OpenSkyStacker/src/3rdparty/focas/unix/hfti.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
I'll try to figure those out.
OpenCV for Ubuntu seems to use opencv_highgui
for stuff that other versions use opencv_imgcodecs
for. It's strange that it would be in your pkg-config
. Might be best to remove that line entirely.
For the 3rdparty stuff, you need to get gfortran. Then compile with -fPIC
like the error says:
gfortran -c hfti.f -fPIC
And repeat for h12.f and diff.f.
I got it working now. Maybe the qmake version shipped with 17.10 is still a little buggy. My RAWs are not read correctly, but thats a separate problem, possibly not related to this project.
As for the fortran code, it might be best to either integrate it into the build process or transcode the code to C, shipping precompiled objects is not really a good idea IMO.
I'm trying to compile on Ubuntu 17.10 (beta), but something seems to be wrong with the include paths. I'm not entirely sure if this is a project with the Qt project or a problem in Ubuntu, the latter seems unlikely to me though.
But
stdlib.h
exists:Some version info:
Any idea what's wrong here?