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

invalid size of #6

Open
MyraBaba opened this issue Feb 21, 2019 · 18 comments
Open

invalid size of #6

MyraBaba opened this issue Feb 21, 2019 · 18 comments

Comments

@MyraBaba
Copy link

Hi,

When I try to compile in Qt 5.12 I have below errors:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2395:27: error: invalid application of 'sizeof' to an incomplete type 'dlib_tool::face_detector' static_assert(sizeof(_Tp) > 0, "default_delete can not delete incomplete type"); ^~~~~~~~~~~

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2395:27: error: invalid application of 'sizeof' to an incomplete type 'mxnet_tool::face_key_extractor' static_assert(sizeof(_Tp) > 0, "default_delete can not delete incomplete type"); ^~~~~~~~~~~

@stereomatchingkiss
Copy link
Owner

stereomatchingkiss commented Feb 23, 2019

Please the pull the codes again, should be fixed now
The reason is did not declare destructor

@MyraBaba
Copy link
Author

Hi Thanks,

I have 👍
../../../../mxnet/cpp-package/include/mxnet-cpp/op_map.h:99:10: error: unknown type name 'OpHandle' inline OpHandle GetOpHandle(const std::string &name) { ^ ../../../../mxnet/cpp-package/include/mxnet-cpp/op_map.h:105:25: error: use of undeclared identifier 'OpHandle' std::map<std::string, OpHandle> op_handles_; ^ ../../../../mxnet/cpp-package/include/mxnet-cpp/op_map.h:69:5: error: unknown type name 'nn_uint'; did you mean 'mx_uint'? nn_uint num_ops; ^~~~~~~ mx_uint ../../../../mxnet/include/mxnet/c_api.h:58:22: note: 'mx_uint' declared here typedef unsigned int mx_uint; ^ In file included from ../main.cpp:2: In file included from ../../mxnet_face_recognition/../libs/face/key/insight_face_key_extractor_params.hpp:4: In file included from ../../../../mxnet/cpp-package/include/mxnet-cpp/MxNetCpp.h:30: In file included from ../../../../mxnet/cpp-package/include/mxnet-cpp/executor.hpp:32: In file included from ../../../../mxnet/cpp-package/include/mxnet-cpp/executor.h:35: In file included from ../../../../mxnet/cpp-package/include/mxnet-cpp/symbol.h:35: ../../../../mxnet/cpp-package/include/mxnet-cpp/op_map.h:71:9: error: use of undeclared identifier 'NNListAllOpNames'; did you mean 'MXListAllOpNames'?

windows to *nix always painfull. :(

@stereomatchingkiss
Copy link
Owner

Which mxnet version you build(I am using 1.31 I think)? Do your unix os support prebuild version of mxnet?

@MyraBaba
Copy link
Author

I have both mac osx and debian.

We are compiling from source generally.

for the Qt pro file we prefer to use 👍
`CONFIG += link_pkgconfig

PKGCONFIG += opencv

PKGCONFIG += dlib-1`

@stereomatchingkiss
Copy link
Owner

stereomatchingkiss commented Feb 23, 2019 via email

@MyraBaba
Copy link
Author

MyraBaba commented Feb 23, 2019 via email

@MyraBaba
Copy link
Author

MyraBaba commented Feb 23, 2019 via email

@stereomatchingkiss
Copy link
Owner

stereomatchingkiss commented Feb 24, 2019 via email

@MyraBaba
Copy link
Author

This is the .pro file:

`TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle

QT += core

DLIB_PATH = ../../3rdLibs/dlib/dlib/build/install
MXNET_PATH = /Users/pamela/Downloads/incubator-mxnet
OPENCV_PATH = ../../3rdLibs/opencv/opencv_3_4_2/opencv/build

INCLUDEPATH += ../..
INCLUDEPATH += $${BOOST_PATH}
#INCLUDEPATH += $${DLIB_PATH}/include
INCLUDEPATH += $${OPENCV_PATH}/include

INCLUDEPATH += $${MXNET_PATH}/cpp-package/include
#INCLUDEPATH += $${MXNET_PATH}/cpp-package/include/mxnet-cpp/
INCLUDEPATH += $${MXNET_PATH}/3rdparty/dmlc-core/include/
INCLUDEPATH += $${MXNET_PATH}/3rdparty/tvm/nnvm/include
INCLUDEPATH += $${MXNET_PATH}/include

INCLUDEPATH += /opt/intel/compilers_and_libraries_2018.1.126/mac/mkl/include

LIBS += $${MXNET_PATH}/lib/ -lmxnet

QT_CONFIG -= no-pkg-config
CONFIG += link_pkgconfig
PKGCONFIG += opencv
PKGCONFIG += dlib-1

SOURCES +=
main.cpp
/Users/pamela/Projects/blogCodes2/libs/mxnet/common.cpp
face_reg_db.cpp
face_recognition.cpp \
/Users/pamela/Projects/blogCodes2/libs/face/detect/dlib_cnn_face_detector.cpp
/Users/pamela/Projects/blogCodes2/libs/face/key/insight_face_key.cpp
/Users/pamela/Projects/blogCodes2/libs/face/key/insight_face_key_extractor.cpp \

HEADERS +=
/Users/pamela/Projects/blogCodes2/libs/mxnet/common.hpp
face_reg_db.hpp
face_recognition.hpp \
face_reg_info.hpp
/Users/pamela/Projects/blogCodes2/libs/image_format_convert/dlib_to_array.hpp
/Users/pamela/Projects/blogCodes2/libs/face/detect/dlib_cnn_face_detector.hpp
/Users/pamela/Projects/blogCodes2/libs/face/detect/dlib_cnn_face_detector_params.hpp
/Users/pamela/Projects/blogCodes2/libs/face/detect/dlib_face_detector_net.hpp
/Users/pamela/Projects/blogCodes2/libs/face/key/insight_face_key.hpp
/Users/pamela/Projects/blogCodes2/libs/face/key/insight_face_key_extractor.hpp
/Users/pamela/Projects/blogCodes2/libs/face/key/insight_face_key_extractor_params.hpp
/Users/pamela/Projects/blogCodes2/libs/mxnet/generic_predictor.hpp
`

@stereomatchingkiss
Copy link
Owner

stereomatchingkiss commented Feb 24, 2019 via email

@MyraBaba
Copy link
Author

MyraBaba commented Feb 24, 2019 via email

@stereomatchingkiss
Copy link
Owner

stereomatchingkiss commented Feb 24, 2019 via email

@stereomatchingkiss
Copy link
Owner

stereomatchingkiss commented Feb 24, 2019 via email

@MyraBaba
Copy link
Author

I tried many combination.

withou nnvm/include and dmlc-core/include/ . it keeps asking header files.

when I include same error : size_t

i took your time but stuck here. first time i had such crazy situation(blaming microSoft:)

@stereomatchingkiss
Copy link
Owner

stereomatchingkiss commented Feb 25, 2019 via email

@stereomatchingkiss
Copy link
Owner

stereomatchingkiss commented Feb 25, 2019 via email

@MyraBaba
Copy link
Author

Hi,

I didnt see / receive include.7z file. did you forget to attach?

@stereomatchingkiss
Copy link
Owner

stereomatchingkiss commented Feb 25, 2019 via email

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

No branches or pull requests

2 participants