DeVaukz / SOIL

An OS X optimized libSOIL using the CMake build system.
23 stars 14 forks source link

Undefined symbols for architecture x86_64: #3

Open GreenALan opened 6 years ago

GreenALan commented 6 years ago

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

DeVaukz commented 6 years ago

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.