LiangliangNan / PolyFit

Polygonal Surface Reconstruction from Point Clouds
https://3d.bk.tudelft.nl/liangliang/publications/2017/polyfit/polyfit.html
GNU General Public License v3.0
723 stars 121 forks source link

Compilation issues, fedora 29 #10

Closed Karltlbm closed 5 years ago

Karltlbm commented 5 years ago

Hi !

Thank you for sharing this work.

I am having an issue during compilation.

[ 91%] Building CXX object basic/CMakeFiles/basic.dir/attribute_adapter.cpp.o
In file included from /home/karlmontalban/dev/PolyFit/basic/record_id.h:43,
                 from /home/karlmontalban/dev/PolyFit/basic/raw_attribute_store.h:43,
                 from /home/karlmontalban/dev/PolyFit/basic/rat.h:43,
                 from /home/karlmontalban/dev/PolyFit/basic/attribute_manager.h:42,
                 from /home/karlmontalban/dev/PolyFit/basic/attribute.h:43,
                 from /home/karlmontalban/dev/PolyFit/basic/attribute_adapter.h:42,
                 from /home/karlmontalban/dev/PolyFit/basic/attribute_adapter.cpp:39:
/home/karlmontalban/dev/PolyFit/basic/../basic/basic_types.h: Dans la fonction « void Memory::clear(void*, size_t) »:
/home/karlmontalban/dev/PolyFit/basic/../basic/basic_types.h:87:5: error: « ::memset » n'a pas été déclaré
   ::memset(addr, 0, size) ;

Memset seems to be the problem.

Any idea ?

LiangliangNan commented 5 years ago

Which OS and compiler did you use? Can you please translate the error message into English?

Karltlbm commented 5 years ago

Thanks for your reply !

error is : memset hasn't been declared.

I am using fedora 29 and i use cmake 3.14.5

LiangliangNan commented 5 years ago

add #include <cstring> to that file.

Karltlbm commented 5 years ago

Thanks ! this resolved this issue.

But another one appears:

/home/karlmontalban/dev/PolyFit/basic/logger.cpp: Dans la fonction « void graphite_printf(const char*, ...) »:
/home/karlmontalban/dev/PolyFit/basic/logger.cpp:392:2: error: « va_start » n'a pas été déclaré dans cette portée

va_start has not been declared

LiangliangNan commented 5 years ago

You can solve such type of errors by including the related header files :) Weird that the same code has been compiled under macOS, windows, and Ubuntu without any problem.

On Wed, 17 Jul 2019 at 13:16 Karltlbm notifications@github.com wrote:

Thanks ! this resolved this issue.

But another one appears:

/home/karlmontalban/dev/PolyFit/basic/logger.cpp: Dans la fonction « void graphite_printf(const char*, ...) »:

/home/karlmontalban/dev/PolyFit/basic/logger.cpp:392:2: error: « va_start » n'a pas été déclaré dans cette portée

va_start has not been declared

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/LiangliangNan/PolyFit/issues/10?email_source=notifications&email_token=ADWOVCB2VYRNMDEWI3CDWGLP735QNA5CNFSM4ID6SLB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2D3SHY#issuecomment-512211231, or mute the thread https://github.com/notifications/unsubscribe-auth/ADWOVCH6YNI6K6AG5VQIFV3P735QNANCNFSM4ID6SLBQ .

-- Liangliang

Karltlbm commented 5 years ago

Thanks ! Then I had to

Now I have an issue with QColorMap:

dev/PolyFit/PolyFit/paint_canvas.cpp:44:10: erreur fatale: QColorMap : No such file or directory
 #include <QColorMap>

Which is strange because other QT stuffs are included successfully juste before in the same file

#include <QFileDialog>
#include <QMouseEvent>
#include <QMessageBox>

Any idea ?

LiangliangNan commented 5 years ago

Different Qt versions put the header files in different places. Maybe you should search the file in the Qt root directory.

On Wed, 17 Jul 2019 at 14:13 Karltlbm notifications@github.com wrote:

Thanks ! Then I had to

-

add: add_compile_options(-fPIC) in the CmakeLists because I was getting a lot of errors like this: usr/bin/ld: ../lib/lib3rd_soplex.a(spxboundflippingrt.cpp.o): relocation R_X86_64_32 against .rodata can not be used when making un objet partagé; recompilé avec -fPIC

change the include of kdTree.h because vector2D and vector3D had a capital letter

Now I have an issue with QColorMap:

dev/PolyFit/PolyFit/paint_canvas.cpp:44:10: erreur fatale: QColorMap : No such file or directory

include

Which is strange because other QT stuffs are included successfully juste before in the same file

include

include

include

Any idea ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/LiangliangNan/PolyFit/issues/10?email_source=notifications&email_token=ADWOVCACPXTIVWOIUAB72GTP74EE7A5CNFSM4ID6SLB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2D7U6I#issuecomment-512227961, or mute the thread https://github.com/notifications/unsubscribe-auth/ADWOVCFHQVMMIQZO7K32UGDP74EE7ANCNFSM4ID6SLBQ .

-- Liangliang

Karltlbm commented 5 years ago

Actually I can't find QColorMap anywhere on my computer ... I commented the include line and the compilation succeded, is QColorMap necessary ?

LiangliangNan commented 5 years ago

Then I think it must have been included by other Qt header files.

On Wed, Jul 17, 2019 at 4:24 PM Karltlbm notifications@github.com wrote:

Actually I can't find QColorMap anywhere on my computer ... I commented the include line and the compilation succeded, is QColorMap necessary ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/LiangliangNan/PolyFit/issues/10?email_source=notifications&email_token=ADWOVCBALG7UZAXGM5AXVV3P74TTPA5CNFSM4ID6SLB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2EL5FQ#issuecomment-512278166, or mute the thread https://github.com/notifications/unsubscribe-auth/ADWOVCABCWWZ364GYT5X3B3P74TTPANCNFSM4ID6SLBQ .

Karltlbm commented 5 years ago

Thanks for your answers !