Closed Karltlbm closed 5 years ago
Which OS and compiler did you use? Can you please translate the error message into English?
Thanks for your reply !
error is : memset hasn't been declared.
I am using fedora 29 and i use cmake 3.14.5
add #include <cstring>
to that file.
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 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
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 <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 ?
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
Actually I can't find QColorMap anywhere on my computer ... I commented the include line and the compilation succeded, is QColorMap necessary ?
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 .
Thanks for your answers !
Hi !
Thank you for sharing this work.
I am having an issue during compilation.
Memset seems to be the problem.
Any idea ?