[MacPorts] #65813: codeblocks @20.03: error: Could not find a version of the library!

MacPorts noreply at macports.org
Mon Oct 3 19:11:01 UTC 2022


#65813: codeblocks @20.03: error: Could not find a version of the library!
-------------------------+------------------------
  Reporter:  ryandesign  |      Owner:  ryandesign
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.7.2
Resolution:  fixed       |   Keywords:  arm64
      Port:  codeblocks  |
-------------------------+------------------------

Comment (by kencu):

 the libs are here:

 {{{/opt/local/libexec/boost/1.76/lib/libboost_atomic-mt.dylib}}}

 It looks like the search algorithm might not be considering that the build
 is done on an i386 system:

 {{{
     AS_CASE([${host_cpu}],
       [x86_64],[libsubdirs="lib64 libx32 lib lib64"],
       [ppc64|s390x|sparc64|aarch64|ppc64le],[libsubdirs="lib64 lib
 lib64"],
       [libsubdirs="lib"],
     )

     dnl allow for real multi-arch paths e.g. /usr/lib/x86_64-linux-gnu.
 Give
     dnl them priority over the other paths since, if libs are found there,
 they
     dnl are almost assuredly the ones desired.
     AS_CASE([${host_cpu}],
       [i?86],[multiarch_libsubdir="lib/i386-${host_os}"],
       [multiarch_libsubdir="lib/${host_cpu}-${host_os}"]
     )
 }}}

 but you can override the search algorithm completely by specifying the
 boost you want with this {{{--with-boost=${prefix}/libexec/boost/1.76}}}
 and there is also {{{--with-boost-libdir}}} if that is needed.

-- 
Ticket URL: <https://trac.macports.org/ticket/65813#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list