godotengine / godotengine/FBX2glTF

Can't build on MacOS 13

Open
#47 12 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
425
Forks
117
PR merge metrics
No merged PRs in 30d

Description

### Godot version

N/A

### System information

M1 Macbook Pro, macOS 13.5

### Issue description

I'm hoping to contribute to this project, so I'm starting by trying to get a local build working. Conan is not finding `iconv` even though it's provided by OSX. In searching, I see lots of people having vaguely related problems, but I have no idea how to even debug why Conan can't seem to find `iconv`, much less fix it.

I figured I'd ask in case someone has tried and knows the magic incantation.

### Steps to reproduce

I followed the Github actions, so after cloning the repo and fetching the FBX SDK, I tried running:

```
pip install --upgrade conan==1.58
conan profile new default --detect
conan profile show default
env CMAKE_OSX_ARCHITECTURES=x86_64 conan install . -i build -s build_type=Release --settings arch=x86_64 --build missing
```

But at this point, I get an error about failing to find `iconv`:

```
Performing configuration checks

- default address-model : 64-bit [1]
- default architecture : x86 [1]
- compiler supports SSE2 : yes [2]
- compiler supports SSE4.1 : yes [2]
- has std::atomic_ref : no [2]
- has statx : no [2]
- has statx syscall : no [2]
- has init_priority attribute : yes [2]
- has stat::st_blksize : no [2]
- has stat::st_mtim : no [2]
- has stat::st_mtimensec : no [2]
- has stat::st_mtimespec : yes [2]
- has stat::st_birthtim : no [2]
- has stat::st_birthtimensec : no [2]
- has stat::st_birthtimespec : yes [2]
- zlib : yes [3]
- bzip2 : yes [3]
- iconv (libc) : no [2]
- iconv (separate) : no [2]
- Boost.Locale failed to find iconv (separate) library to be built.
boost/1.78.0:
boost/1.78.0: ERROR: Package 'c9b9cbf463efdfe91cd1b39fbd90e49b9d3ac02b' build failed
boost/1.78.0: WARN: Build folder /Users/elalish/.conan/data/boost/1.78.0/_/_/build/c9b9cbf463efdfe91cd1b39fbd90e49b9d3ac02b/build-release
ERROR: boost/1.78.0: Error in build() method, line 887
self.run(full_command)
ConanException: Error 1 while executing b2 -q target-os=darwin architecture=x86 address-model=64 binary-format=mach-o abi=sysv --layout=system --user-config=/Users/elalish/.conan/data/boost/1.78.0/_/_/source/src/tools/build/user-config.jam -sNO_ZLIB=0 -sNO_BZIP2=0 -sNO_LZMA=1 -sNO_ZSTD=1 boost.locale.icu=off --disable-icu boost.locale.iconv=on boost.locale.iconv.lib=libiconv threading=multi visibility=hidden link=static variant=release --with-atomic --with-chrono --with-container --with-context --with-contract --with-coroutine --with-date_time --with-exception --with-filesystem --with-iostreams --with-locale --with-log --with-program_options --with-random --with-regex --with-serialization --with-stacktrace --with-system --with-test --with-thread --with-timer --with-type_erasure --with-wave toolset=clang-darwin pch=on -sLIBBACKTRACE_PATH=/Users/elalish/.conan/data/libbacktrace/cci.20210118/_/_/package/6841fe8f0f22f6fa260da36a43a94ab525c7ed8d -sICONV_PATH=/Users/elalish/.conan/data/libiconv/1.15/_/_/package/6841fe8f0f22f6fa260da36a43a94ab525c7ed8d linkflags="-stdlib=libc++" cxxflags="-fPIC -stdlib=libc++ -DBOOST_STACKTRACE_ADDR2LINE_LOCATION=/usr/bin/addr2line" install --prefix=/Users/elalish/.conan/data/boost/1.78.0/_/_/package/c9b9cbf463efdfe91cd1b39fbd90e49b9d3ac02b -j10 --abbreviate-paths -d0 --debug-configuration --build-dir="/Users/elalish/.conan/data/boost/1.78.0/_/_/build/c9b9cbf463efdfe91cd1b39fbd90e49b9d3ac02b/build-release"
```

### Minimal reproduction project

N/A

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the documented Conan commands on the reported M1 MacBook Pro running macOS 13.5, including the x86_64 settings and FBX SDK setup. Read the Conan output around Boost 1.78.0, Boost.Locale, and iconv detection; done means the dependency installation completes and the local project build proceeds past this failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, macos
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.