PGB-LIV / lcmsWorld

lcmsWorld
GNU Affero General Public License v3.0
5 stars 0 forks source link

Mac error #2

Open ypriverol opened 4 years ago

ypriverol commented 4 years ago

Trying to build in Mac.

 cmake . && cmake --build . --config Release
CMake Warning (dev) at CMakeLists.txt:4 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    CMAKE_PROJECT_VERSION
    CMAKE_PROJECT_VERSION_MAJOR
    CMAKE_PROJECT_VERSION_MINOR
    CMAKE_PROJECT_VERSION_PATCH
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Using Cocoa for window creation
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/yperez/Downloads/lcmsWorld
[ 16%] Built target glfw
[ 17%] Building CXX object CMakeFiles/lcmsWorld.dir/src/Annotations.cpp.o
In file included from /Users/yperez/Downloads/lcmsWorld/src/Annotations.cpp:1:
In file included from /Users/yperez/Downloads/lcmsWorld/src/Annotations.h:3:
In file included from /Users/yperez/Downloads/lcmsWorld/src/Landscape.h:8:
/Users/yperez/Downloads/lcmsWorld/src/Structs.h:4:9: warning: unknown pragma ignored [-Wunknown-pragmas]
#pragma warning (disable : 4267)
        ^
In file included from /Users/yperez/Downloads/lcmsWorld/src/Annotations.cpp:1:
In file included from /Users/yperez/Downloads/lcmsWorld/src/Annotations.h:3:
/Users/yperez/Downloads/lcmsWorld/src/Landscape.h:164:57: warning: unused parameter 'range' [-Wunused-parameter]
        void setVisible(std::string name, bool isVisible, bool range)
                                                               ^
/Users/yperez/Downloads/lcmsWorld/src/Annotations.cpp:38:26: error: no member named 'filename' in 'Annotations'
std::string Annotations::filename;
            ~~~~~~~~~~~~~^
/Users/yperez/Downloads/lcmsWorld/src/Annotations.cpp:102:20: warning: comparison of integers of different signs: 'int' and 'std::__1::vector<int, std::__1::allocator<int>
      >::size_type' (aka 'unsigned long') [-Wsign-compare]
        for (int j = 0; j < modps.size(); j++)
                        ~ ^ ~~~~~~~~~~~~
/Users/yperez/Downloads/lcmsWorld/src/Annotations.cpp:106:21: warning: comparison of integers of different signs: 'int' and 'std::__1::vector<int, std::__1::allocator<int>
      >::size_type' (aka 'unsigned long') [-Wsign-compare]
                for (int i = 0; i < modps.size(); i++)
                                ~ ^ ~~~~~~~~~~~~
/Users/yperez/Downloads/lcmsWorld/src/Annotations.cpp:118:21: warning: comparison of integers of different signs: 'int' and 'std::__1::basic_string<char,
      std::__1::char_traits<char>, std::__1::allocator<char> >::size_type' (aka 'unsigned long') [-Wsign-compare]
                if ((p >=0) && (p <= sequence.length() ))
                                ~ ^  ~~~~~~~~~~~~~~~~~
/Users/yperez/Downloads/lcmsWorld/src/Annotations.cpp:218:26: warning: result of comparison against a string literal is unspecified (use strncmp instead) [-Wstring-compare]
                                                if (scale->value() == "minute")
                                                                   ^  ~~~~~~~~
/Users/yperez/Downloads/lcmsWorld/src/Annotations.cpp:263:21: warning: result of comparison against a string literal is unspecified (use strncmp instead) [-Wstring-compare]
                        if (cva->value() == "MS:1002255" 
                                         ^  ~~~~~~~~~~~~
/Users/yperez/Downloads/lcmsWorld/src/Annotations.cpp:264:21: warning: result of comparison against a string literal is unspecified (use strncmp instead) [-Wstring-compare]
                                || cva->value() == "MS:1002356"
                                                ^  ~~~~~~~~~~~~
/Users/yperez/Downloads/lcmsWorld/src/Annotations.cpp:265:21: warning: result of comparison against a string literal is unspecified (use strncmp instead) [-Wstring-compare]
                                || cva->value() == "MS:1002360"
                                                ^  ~~~~~~~~~~~~
/Users/yperez/Downloads/lcmsWorld/src/Annotations.cpp:266:21: warning: result of comparison against a string literal is unspecified (use strncmp instead) [-Wstring-compare]
                                || cva->value() == "MS:1002049"
                                                ^  ~~~~~~~~~~~~
/Users/yperez/Downloads/lcmsWorld/src/Annotations.cpp:267:21: warning: result of comparison against a string literal is unspecified (use strncmp instead) [-Wstring-compare]
                                || cva->value() == "MS:1002545"
                                                ^  ~~~~~~~~~~~~
/Users/yperez/Downloads/lcmsWorld/src/Annotations.cpp:284:26: warning: result of comparison against a string literal is unspecified (use strncmp instead) [-Wstring-compare]
                        if (thresh_a->value() == "false")
                                              ^  ~~~~~~~
/Users/yperez/Downloads/lcmsWorld/src/Annotations.cpp:439:17: error: no member named 'closing' in 'Globals'
                        if (Globals::closing)
                            ~~~~~~~~~^
/Users/yperez/Downloads/lcmsWorld/src/Annotations.cpp:501:8: warning: unused variable 'length' [-Wunused-variable]
                        int length = Zip::UncompressGzipData( (byte*) buffer, size, (byte*) &zipBuffer[0], decodeSize);
                            ^
/Users/yperez/Downloads/lcmsWorld/src/Annotations.cpp:535:5: error: no member named 'clearAnnotations' in 'Landscape'
        l->clearAnnotations();
        ~  ^
/Users/yperez/Downloads/lcmsWorld/src/Annotations.cpp:627:17: error: no member named 'closing' in 'Globals'
                        if (Globals::closing)
                            ~~~~~~~~~^
/Users/yperez/Downloads/lcmsWorld/src/Annotations.cpp:752:5: error: no member named 'clearAnnotations' in 'Landscape'
        l->clearAnnotations();
        ~  ^
/Users/yperez/Downloads/lcmsWorld/src/Annotations.cpp:762:5: error: no member named 'clearAnnotations' in 'Landscape'
        l->clearAnnotations();
        ~  ^
/Users/yperez/Downloads/lcmsWorld/src/Annotations.cpp:772:5: error: no member named 'clearAnnotations' in 'Landscape'
        l->clearAnnotations();
        ~  ^
13 warnings and 7 errors generated.
make[2]: *** [CMakeFiles/lcmsWorld.dir/src/Annotations.cpp.o] Error 1
make[1]: *** [CMakeFiles/lcmsWorld.dir/all] Error 2
make: *** [all] Error 2
tonyatliv commented 3 years ago

Although I believe that this has been fixed in the latest release, I currently don't have access to a Mac to test it (due to University systems being unavailable). I will close the issue when it is tested.