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

Mac OS X Build Errors #3

Open
normanhh3 opened this issue Dec 24, 2013 · 1 comment
Open

Mac OS X Build Errors #3

normanhh3 opened this issue Dec 24, 2013 · 1 comment

Comments

@normanhh3
Copy link
Contributor

Hello,

I've been trying to compile the source on Mac OS X 10.7.5 following the homebrew installation steps (including adding a PR for updated steps).

I'm currently stymied in the build process (using make) with the following output.

If you have any pointers on where to start looking to fix this I'd be appreciative!

[  2%] Building CXX object src/3rdparty/cvblobs/CMakeFiles/cvblobs.dir/blob.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
[  5%] Building CXX object src/3rdparty/cvblobs/CMakeFiles/cvblobs.dir/BlobContour.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
[  8%] Building CXX object src/3rdparty/cvblobs/CMakeFiles/cvblobs.dir/BlobOperators.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
/Users/nharebottl/Documents/Dev/OpenTLD-cuda/src/3rdparty/cvblobs/BlobOperators.cpp:8:1: warning: '/*' within block comment [-Wcomment]
/**************************************************************************/
^
1 warning generated.
[ 11%] Building CXX object src/3rdparty/cvblobs/CMakeFiles/cvblobs.dir/BlobProperties.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
[ 14%] Building CXX object src/3rdparty/cvblobs/CMakeFiles/cvblobs.dir/BlobResult.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
/Users/nharebottl/Documents/Dev/OpenTLD-cuda/src/3rdparty/cvblobs/BlobResult.cpp:938:130: warning: more '%' conversions than data arguments [-Wformat]
                fprintf( fitxer_sortida, "blob %d ->\t a=%7.0f\t p=%8.2f (%8.2f extern)\t pconvex=%8.2f\t ext=%.0f\t m=%7.2f\t c=%3.2f\t l=%8.2f\n",
                                                                                                                                           ~~~~^
1 warning generated.
[ 17%] Building CXX object src/3rdparty/cvblobs/CMakeFiles/cvblobs.dir/ComponentLabeling.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
Linking CXX static library ../../../lib/libcvblobs.a
[ 17%] Built target cvblobs
[ 20%] Building C object src/3rdparty/libconfig/CMakeFiles/config++.dir/grammar.c.o
clang: warning: argument unused during compilation: '-fopenmp'
[ 23%] Building C object src/3rdparty/libconfig/CMakeFiles/config++.dir/libconfig.c.o
clang: warning: argument unused during compilation: '-fopenmp'
/Users/nharebottl/Documents/Dev/OpenTLD-cuda/src/3rdparty/libconfig/libconfig.c:121:2: warning: "No way to modify calling thread's locale!" [-W#warnings]
#warning "No way to modify calling thread's locale!"
 ^
1 warning generated.
[ 26%] Building CXX object src/3rdparty/libconfig/CMakeFiles/config++.dir/libconfigcpp.cc.o
clang: warning: argument unused during compilation: '-fopenmp'
[ 29%] Building C object src/3rdparty/libconfig/CMakeFiles/config++.dir/scanctx.c.o
clang: warning: argument unused during compilation: '-fopenmp'
[ 32%] Building C object src/3rdparty/libconfig/CMakeFiles/config++.dir/scanner.c.o
clang: warning: argument unused during compilation: '-fopenmp'
[ 35%] Building C object src/3rdparty/libconfig/CMakeFiles/config++.dir/strbuf.c.o
clang: warning: argument unused during compilation: '-fopenmp'
Linking CXX static library ../../../lib/libconfig++.a
[ 35%] Built target config++
[ 38%] Building CXX object src/libopentld/CMakeFiles/libopentld.dir/imacq/ImAcq.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
[ 41%] Building CXX object src/libopentld/CMakeFiles/libopentld.dir/mftracker/BB.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
[ 44%] Building CXX object src/libopentld/CMakeFiles/libopentld.dir/mftracker/BBPredict.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
[ 47%] Building CXX object src/libopentld/CMakeFiles/libopentld.dir/mftracker/FBTrack.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
[ 50%] Building CXX object src/libopentld/CMakeFiles/libopentld.dir/mftracker/Lk.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
[ 52%] Building CXX object src/libopentld/CMakeFiles/libopentld.dir/mftracker/Median.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
[ 55%] Building CXX object src/libopentld/CMakeFiles/libopentld.dir/tld/Clustering.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
[ 58%] Building CXX object src/libopentld/CMakeFiles/libopentld.dir/tld/DetectionResult.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
[ 61%] Building CXX object src/libopentld/CMakeFiles/libopentld.dir/tld/detector/DetectorCascade.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
/Users/nharebottl/Documents/Dev/OpenTLD-cuda/src/libopentld/tld/detector/DetectorCascade.cpp:73:5: warning: delete called on 'tld::IEnsembleClassifier' that is abstract but has non-virtual destructor
      [-Wdelete-non-virtual-dtor]
    delete ensembleClassifier;
    ^
/Users/nharebottl/Documents/Dev/OpenTLD-cuda/src/libopentld/tld/detector/DetectorCascade.cpp:74:5: warning: delete called on 'tld::INNClassifier' that is abstract but has non-virtual destructor
      [-Wdelete-non-virtual-dtor]
    delete nnClassifier;
    ^
2 warnings generated.
[ 64%] Building CXX object src/libopentld/CMakeFiles/libopentld.dir/tld/MedianFlowTracker.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
[ 67%] Building CXX object src/libopentld/CMakeFiles/libopentld.dir/tld/TLD.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
/Users/nharebottl/Documents/Dev/OpenTLD-cuda/src/libopentld/tld/TLD.cpp:72:5: warning: delete called on 'tld::IDetectorCascade' that is abstract but has non-virtual destructor
      [-Wdelete-non-virtual-dtor]
    delete detectorCascade;
    ^
/Users/nharebottl/Documents/Dev/OpenTLD-cuda/src/libopentld/tld/TLD.cpp:404:49: warning: format specifies type 'int' but the argument has type 'size_type' (aka 'unsigned long') [-Wformat]
    fprintf(file, "%d #Positive Sample Size\n", nn->truePositives->size());
                   ~~                           ^~~~~~~~~~~~~~~~~~~~~~~~~
                   %ld
/Users/nharebottl/Documents/Dev/OpenTLD-cuda/src/libopentld/tld/TLD.cpp:423:49: warning: format specifies type 'int' but the argument has type 'size_type' (aka 'unsigned long') [-Wformat]
    fprintf(file, "%d #Negative Sample Size\n", nn->falsePositives->size());
                   ~~                           ^~~~~~~~~~~~~~~~~~~~~~~~~~
                   %ld
/Users/nharebottl/Documents/Dev/OpenTLD-cuda/src/libopentld/tld/TLD.cpp:472:42: warning: format specifies type 'int' but the argument has type 'size_type' (aka 'unsigned long') [-Wformat]
        fprintf(file, "%d #numLeaves\n", list.size());
                       ~~                ^~~~~~~~~~~
                       %ld
4 warnings generated.
[ 70%] Building CXX object src/libopentld/CMakeFiles/libopentld.dir/tld/TLDUtil.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
[ 73%] Building CXX object src/libopentld/CMakeFiles/libopentld.dir/tld/detector/EnsembleClassifier.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
/Users/nharebottl/Documents/Dev/OpenTLD-cuda/src/libopentld/tld/detector/EnsembleClassifier.cpp:43:9: warning: 'sub2idx' macro redefined
#define sub2idx(x,y,widthstep) ((int) (floor((x)+0.5) + floor((y)+0.5)*(widthstep)))
        ^
/Users/nharebottl/Documents/Dev/OpenTLD-cuda/src/libopentld/tld/IDetectorCascade.h:45:9: note: previous definition is here
#define sub2idx(x,y,imgWidthStep) ((int) (floor((x)+0.5) + floor((y)+0.5)*(imgWidthStep)))
        ^
1 warning generated.
[ 76%] Building CXX object src/libopentld/CMakeFiles/libopentld.dir/tld/detector/ForegroundDetector.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
[ 79%] Building CXX object src/libopentld/CMakeFiles/libopentld.dir/tld/detector/NNClassifier.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
[ 82%] Building CXX object src/libopentld/CMakeFiles/libopentld.dir/tld/detector/VarianceFilter.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
Linking CXX static library ../../lib/libopentld.a
[ 82%] Built target libopentld
[ 85%] Building CXX object src/opentld/CMakeFiles/main.dir/main/Config.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
[ 88%] Building CXX object src/opentld/CMakeFiles/main.dir/main/Gui.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
/Users/nharebottl/Documents/Dev/OpenTLD-cuda/src/opentld/main/Gui.cpp:129:55: warning: multi-character character constant [-Wmultichar]
        if(((key == '\n') || (key == '\r') || (key == '\r\n')) && (bb->x != -1) && (bb->y != -1))
                                                      ^
1 warning generated.
[ 91%] Building CXX object src/opentld/CMakeFiles/main.dir/main/Main.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
[ 94%] Building CXX object src/opentld/CMakeFiles/main.dir/main/Settings.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
[ 97%] Building CXX object src/opentld/CMakeFiles/main.dir/main/Trajectory.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
Linking CXX static library ../../lib/libmain.a
[ 97%] Built target main
[100%] Building CXX object src/opentld/CMakeFiles/opentld.dir/OpenTLD.cpp.o
clang: warning: argument unused during compilation: '-fopenmp'
Linking CXX executable ../../bin/opentld
ld: warning: directory not found for option '-L/usr/local/share/OpenCV/3rdparty/lib'
ld: library not found for -lgomp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [bin/opentld] Error 1
make[1]: *** [src/opentld/CMakeFiles/opentld.dir/all] Error 2
make: *** [all] Error 2
@robert-wettstaedt
Copy link

For anyone else having this problem, I solved it and was able to compile it on MacOS by following this comment on a similar problem

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