Mac OS X yosemite compiling problems

Linux geeks and Mac OS hipsters unite! A board for discussion of Supermodel on non-Windows platforms.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

Mac OS X yosemite compiling problems

Postby skylab » Thu May 16, 2019 2:11 am

Hi, I have a lot of problems compiling latest versions in mac os x yosemite 10.10.5

Version 773, 774 and 775 don’t link:

Code: Select all
Linking Supermodel     : bin/supermodel
--------------------------------------------------------------------------------
ld: warning: option -s is obsolete and being ignored
Undefined symbols for architecture x86_64:
  "_main", referenced from:
     implicit entry/start for main executable
     (maybe you meant: _SDL_main)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [bin/supermodel] Error 1


All previous versions don’t compile with the makefile included. I can compile only with this makefile with some changes:
https://gist.github.com/christ776/1dfc7 ... d014ff24f3


All version from 748 to 772 compile (with makefile as above), run, game starts but crash with these errors:

Code: Select all
ERROR: 0:110: Invalid call of undeclared identifier 'texture2DLod'
ERROR: 0:111: Invalid call of undeclared identifier 'texture2DLod'
ERROR: 0:112: Invalid call of undeclared identifier 'texture2DLod'
ERROR: 0:113: Invalid call of undeclared identifier 'texture2DLod'
ERROR: 0:116: Use of undeclared identifier 'p0q0'
ERROR: 0:116: Use of undeclared identifier 'p1q0'
ERROR: 0:116: Use of undeclared identifier 'p1q0'
ERROR: 0:116: Use of undeclared identifier 'p0q0'
ERROR: 0:117: Use of undeclared identifier 'p0q0'
ERROR: 0:117: Use of undeclared identifier 'p0q1'
ERROR: 0:117: Use of undeclared identifier 'p0q1'
ERROR: 0:117: Use of undeclared identifier 'p0q0'
ERROR: 0:119: Use of undeclared identifier 'p1q0'
ERROR: 0:119: Use of undeclared identifier 'p0q0'
ERROR: 0:119: Use of undeclared identifier 'p0q0'
ERROR: 0:119: Use of undeclared identifier 'p1q0'
ERROR: 0:120: Use of undeclared identifier 'p1q0'
ERROR: 0:120: Use of undeclared identifier 'p1q1'
ERROR: 0:120: Use of undeclared identifier 'p1q1'
ERROR: 0:120: Use of undeclared identifier 'p1q0'
ERROR: 0:122: Use of undeclared identifier 'p0q1'
ERROR: 0:122: Use of undeclared identifier 'p0q0'
ERROR: 0:122: Use of undeclared identifier 'p0q0'
ERROR: 0:122: Use of undeclared identifier 'p0q1'
ERROR: 0:123: Use of undeclared identifier 'p0q1'
ERROR: 0:123: Use of undeclared identifier 'p1q1'
ERROR: 0:123: Use of undeclared identifier 'p1q1'
ERROR: 0:123: Use of undeclared identifier 'p0q1'
ERROR: 0:125: Use of undeclared identifier 'p1q1'
ERROR: 0:125: Use of undeclared identifier 'p0q1'
ERROR: 0:125: Use of undeclared identifier 'p0q1'
ERROR: 0:125: Use of undeclared identifier 'p1q1'
ERROR: 0:126: Use of undeclared identifier 'p1q1'
ERROR: 0:126: Use of undeclared identifier 'p1q0'
ERROR: 0:126: Use of undeclared identifier 'p1q0'
ERROR: 0:126: Use of undeclared identifier 'p1q1'
ERROR: 0:130: Use of undeclared identifier 'p0q0'
ERROR: 0:130: Use of undeclared identifier 'p1q0'
ERROR: 0:131: Use of undeclared identifier 'p0q1'
ERROR: 0:131: Use of undeclared identifier 'p1q1'
ERROR: 0:133: Use of undeclared identifier 'pInterp_q0'
ERROR: 0:133: Use of undeclared identifier 'pInterp_q1'

ERROR: One or more attached shaders not successfully compiled

Segmentation fault: 11


All versions before 748 works perfectly but compile only with makefile as above.

My specs:

OS X Yosemite 10.10.5
MacBook Pro 13” Mid 2010
Intel Core 2 Duo @ 2.4GHz
Memory 8GB 1066MHz DDR3
Nvidia GeForce 320M 256MB


Thanks
skylab
 
Posts: 1
Joined: Mon May 13, 2019 11:59 pm

Re: Mac OS X yosemite compiling problems

Postby Bart » Fri May 17, 2019 1:16 am

Regarding texture2dLod, use the search bar to search for that term. Ian has mentioned it before. Some drivers seem to fail to support it and it might be fixable by changing the shader code to use 'textureLod' instead. Give it a try and see if that helps.

As for the linker error, I'm not sure. Did anything change in the Makefiles at the commit that broke linkage?
User avatar
Bart
Site Admin
 
Posts: 2295
Joined: Thu Sep 01, 2011 2:13 pm
Location: New York City


Return to Alternative Fashion

Who is online

Users browsing this forum: No registered users and 1 guest