Jump to content

jkraptor

Members
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Ha! That was it! It builds now and runs. Just had to make this change in the os_osx.mk file OPT_CPU = x64 Thanks Joel. (by the way) in gdriver.h, line 90, there are two const declarations in the same line, which the gcc compiler on the mac is not happy with. just generates a warning). Same issue on gdisp_driver.h, line 735.
  2. I am trying to build uGFX on my mac book pro, running MacOS Sierra - just to get the demos running. I copied the Makefile from ./boards/base/OSX/example/Makefile The problem: the make is trying to build for i386 and so ignores my SDL2 lib which is built for x86_64. Question: how to setup the Make to build this as x86_64 architecture on my mac? linker warning: ld: warning: ignoring file /usr/local/lib/libSDL2.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libSDL2.dylib The linker command: Notice the insertion of -m32 near the end by make: Linker Options........ gcc -L/usr/local/lib -lSDL2 -I/usr/local/include/SDL2 -D_THREAD_SAFE -pthread -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.12 -m32 .build/obj/fakefile.o -o .build/ugfxTest The Makefile settings (I've tried CFLAGS and LDFLAG for `-arch m_64` but it has no effect. ############################################################################################## # Settings # # General settings # See $(GFXLIB)/tools/gmake_scripts/readme.txt for the list of variables OPT_OS = osx OPT_LINK_OPTIMIZE = no # uGFX settings # See $(GFXLIB)/tools/gmake_scripts/library_ugfx.mk for the list of variables GFXLIB = /Users/jeff/Code/ugfx/ GFXBOARD = OSX GFXDEMO = modules/gdisp/basics # OSX settings # See $(GFXLIB)/tools/gmake_scripts/os_osx.mk for the list of variables OSX_SDK = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk OSX_ARCH = -mmacosx-version-min=10.12 ############################################################################################## # Set these for your project # ARCH = SRCFLAGS = -ggdb -O0 CFLAGS = `sdl2-config --libs --cflags` CXXFLAGS = ASFLAGS = LDFLAGS = SRC = OBJS = DEFS = LIBS = INCPATH = LIBPATH = ##############################################################################################
×
×
  • Create New...