elfmz / far2l

Linux port of FAR v2
GNU General Public License v2.0
1.76k stars 171 forks source link

Unable to build with XCode #662

Open ADDubovik opened 4 years ago

ADDubovik commented 4 years ago

XCode build failed with error:

cd /Users/user/Projects/far/build_xcode/far2l/bootstrap && /Users/user/Projects/far/build_xcode/tools/farlng generator -nc -i /Users/user/Projects/far/build_xcode/far2l/bootstrap/lang.ini -ol /Users/user/Projects/far/build_xcode/far2l/bootstrap /Users/user/Projects/far/build_xcode/far2l/bootstrap/farlang.templ /bin/sh: /Users/user/Projects/far/build_xcode/tools/farlng: No such file or directory

There's in main CMakeLists.txt: set_target_properties(farlng PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${TOOLS_DIR}" )

And there's in CMake documentation:

RUNTIME_OUTPUT_DIRECTORY Multi-configuration generators (VS, Xcode) append a per-configuration subdirectory to the specified directory unless a generator expression is used.

So, farlng tool is built as:

/Users/user/Projects/far/build_xcode/tools/Release/farlng

ADDubovik commented 4 years ago

And the same issue with libWinPort.a library:

ld: warning: directory not found for option '-L/usr/local/lib/Release' ld: file not found: /Users/user/Projects/far/build_xcode/WinPort/libWinPort.a clang: error: linker command failed with exit code 1 (use -v to see invocation)

libWinPort.a is actually built as:

/Users/user/Projects/far/build_xcode/WinPort/Release/libWinPort.a

Also, far2l executable is placed to:

/Users/Adubovik/Projects/far/build_xcode/install/Release

, while other build files (.lng, .sh and "Plugins" directory) are placed to

/Users/user/Projects/far/build_xcode/install/