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: 3
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: 2333
Joined: Thu Sep 01, 2011 2:13 pm
Location: Santa Clara, California

Re: Mac OS X yosemite compiling problems

Postby skylab » Fri May 17, 2019 5:51 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.


thanks but textureLod doesn't fix the problem:

Code: Select all
ERROR: 0:110: Invalid call of undeclared identifier 'textureLod'
ERROR: 0:111: Invalid call of undeclared identifier 'textureLod'
ERROR: 0:112: Invalid call of undeclared identifier 'textureLod'
ERROR: 0:113: Invalid call of undeclared identifier 'textureLod'
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


instead using texture2D (I found it somewhere in the web) works but there are some glitches.


As for the linker error, I'm not sure. Did anything change in the Makefiles at the commit that broke linkage?


I don't know because older versions don't compile too. I used this makefile with changes for compiling all versions:
https://gist.github.com/christ776/1dfc7 ... d014ff24f3
skylab
 
Posts: 3
Joined: Mon May 13, 2019 11:59 pm

Re: Mac OS X yosemite compiling problems

Postby Bart » Tue May 21, 2019 12:14 am

skylab wrote:instead using texture2D (I found it somewhere in the web) works but there are some glitches.


texture2D and texture2DLod differ, unfortunately, and I guess there is some issue with AMD's support for this function. This may not be fixable, I'm afraid.

As for the linker error, I'm not sure. Did anything change in the Makefiles at the commit that broke linkage?


I don't know because older versions don't compile too. I used this makefile with changes for compiling all versions:
https://gist.github.com/christ776/1dfc7 ... d014ff24f3


I'd like to help but am both pressed for time and technically unable to make code commits anymore due to my employment agreement. However, here is something to try: get your Makefile to print out the commands it is executing. Then, enable verbose mode in my Makefile (there is a flag somewhere that effectively strips out the '@' symbol in front of commands, which is what silences them).

You can then compare the linker commands or at least paste them here and we can work through them and see where the difference is. Should be simple to spot the problem that way.
User avatar
Bart
Site Admin
 
Posts: 2333
Joined: Thu Sep 01, 2011 2:13 pm
Location: Santa Clara, California

Re: Mac OS X yosemite compiling problems

Postby skylab » Tue May 21, 2019 1:29 am

Bart wrote:texture2D and texture2DLod differ, unfortunately, and I guess there is some issue with AMD's support for this function. This may not be fixable, I'm afraid.


AMD? but my video board is geforce 320M
skylab
 
Posts: 3
Joined: Mon May 13, 2019 11:59 pm

Re: Mac OS X yosemite compiling problems

Postby Ian » Wed May 22, 2019 3:22 am

On OS X the drivers are written by apple, not nvidia or amd etc (from what I understand). And apple has depreciated opengl, so if the functions don't exist you are out of luck unfortunately.
Ian
 
Posts: 1638
Joined: Tue Feb 23, 2016 9:23 am


Return to Alternative Fashion

Who is online

Users browsing this forum: No registered users and 1 guest