Skip to content

Error while compiling micmac on macOS #265

@jfvilleforceix

Description

@jfvilleforceix

J'ai un bug de compilation avec la dernière version de micmac. Je lance cmake comme suit :

cmake -DWITH_QT5=1 -DCMAKE_PREFIX_PATH=/opt/homebrew/Cellar/qt@5/5.15.16 -DWITH_HEADER_PRECOMP=OFF -DBUILD_POISSON=OFF ..

Et voici les infos de compilation :

-- The C compiler identification is AppleClang 17.0.0.17000013
-- The CXX compiler identification is AppleClang 17.0.0.17000013
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework
-- -----> OpenGL found
-- -----> using Qt 5.15.16
-- -----> Compile with c++11 support
-- -- FLAG:  -std=gnu++11
-- Found Git: /opt/homebrew/bin/git (found version "2.48.1")
-- -- Git executable found
-- Derniere revision git de MicMac : v1.0.beta14-2198-gb94a89441
-- Found X11: /opt/homebrew/include
-- Looking for XOpenDisplay in /opt/homebrew/lib/libX11.dylib;/opt/homebrew/lib/libXext.dylib
-- Looking for XOpenDisplay in /opt/homebrew/lib/libX11.dylib;/opt/homebrew/lib/libXext.dylib - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - not found
CMake Deprecation Warning at src/saisieQT/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Configuring done (1.2s)
-- Generating done (0.2s)
-- Build files have been written to: /micmac/build

mais le make install renvoie :

In file included from /micmac/CodeGenere/File2String/Str_ParamChantierPhotogram.cpp:1:
In file included from /micmac/include/StdAfx.h:147:
/micmac/include/ext_stl/fixed.h:159:24: error: reference to non-static member function must be called
  159 |              _x+= ((p2.x*this->aSF)<<this->b2);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions