SOIL icon indicating copy to clipboard operation
SOIL copied to clipboard

Undefined symbols for architecture x86_64:

Open GreenALan opened this issue 7 years ago • 1 comments

hello, i download SOIL and use Xcode get SOIL.a but when i use in project, it gives Undefined symbols for architecture x86_64: i add path search and Library Search

GreenALan avatar Jul 29 '18 09:07 GreenALan

Hey GreenALan

If your project only needs to build for x86_64, then try removing i386 from these two lines in the CMakeLists.txt file:

    SET(CMAKE_OSX_ARCHITECTURES x86_64)
    SET(CMAKE_XCODE_ATTRIBUTE_VALID_ARCHS "x86_64")

Re-run Cmake and rebuild the SOIL static library target.

DeVaukz avatar Jul 30 '18 01:07 DeVaukz