Author Topic: Mac .command scripts issue on 10.12.1  (Read 135 times)

Aramis

  • Newbie
  • *
  • Posts: 38
Mac .command scripts issue on 10.12.1
« on: January 09, 2017, 01:20:48 am »
I don't know if this is germain to anyone else... but...
When I upgraded to 10.12, my extant QB64 install broke.

So, I uninstalled, updated XCode, and the Xcode command line tools (using $ xcode-select --install)...
And grabbed aQB64 package: qb64-1.1-20160902.48-macosx.tar.gz
and the setup .command files all failed.
I was able to manually install using the terminal... (pulling the commands from the various files)

Code: [Select]
$ cd qb64
$ cd internal/c/libqb/os/osx
$ g++ -c -w -Wall ../../../libqb.mm -D DEPENDENCY_LOADFONT -o libqb_setup.o
$ cd ../../../../..
$ cd internal/c/parts/video/font/ttf/os/osx
$ g++ -s -c -w -Wall ../../src/freetypeamalgam.c -o src.o
$ cd ../../../../../../../..
$ cd internal/c/parts/user_mods/os/osx
$ gcc -I../../../../ -I../../include -c ../../src/luke_mods.cpp -o temp/luke_mods.o
gcc -I../../../../ -I../../include -c ../../src/steve_mods.cpp -o temp/steve_mods.o
ar rcs src.a temp/steve_mods.o temp/luke_mods.o
$ cd ../../../../../..
$ cp ./internal/source/* ./internal/temp/
$ cd internal/c
$ g++ -w qbx.cpp libqb/os/osx/libqb_setup.o parts/video/font/ttf/os/osx/src.o -framework GLUT -framework OpenGL -framework Cocoa -o ../../qb64
$ cd ../..
And then, to test it,
Code: [Select]
./qb64
And a simple helloworld.qb... which did compile.

I don't know if it's that I use zsh, that I upgraded to 10.12.1, or something else.

Anyway, if someone else finds the same issue, it may help...

also, got 3 warnings:
Code: [Select]
$ cd internal/c/parts/user_mods/os/osx

$ gcc -I../../../../ -I../../include -c ../../src/luke_mods.cpp -o temp/luke_mods.o
gcc -I../../../../ -I../../include -c ../../src/steve_mods.cpp -o temp/steve_mods.o
ar rcs src.a temp/steve_mods.o temp/luke_mods.o

In file included from ../../src/steve_mods.cpp:6:
../../src/Steve Stuff/screeninfo.cpp:3:9: warning: 'glutGet' is deprecated: first deprecated in macOS 10.9 [-Wdeprecated-declarations]
        return glutGet(GLUT_SCREEN_WIDTH);
               ^
/System/Library/Frameworks/GLUT.framework/Headers/glut.h:545:21: note: 'glutGet' has been explicitly marked deprecated here
extern int APIENTRY glutGet(GLenum type) OPENGL_DEPRECATED(10_0, 10_9);
                    ^
In file included from ../../src/steve_mods.cpp:6:
../../src/Steve Stuff/screeninfo.cpp:8:9: warning: 'glutGet' is deprecated: first deprecated in macOS 10.9 [-Wdeprecated-declarations]
        return glutGet(GLUT_SCREEN_HEIGHT);
               ^
/System/Library/Frameworks/GLUT.framework/Headers/glut.h:545:21: note: 'glutGet' has been explicitly marked deprecated here
extern int APIENTRY glutGet(GLenum type) OPENGL_DEPRECATED(10_0, 10_9);
                    ^
In file included from ../../src/steve_mods.cpp:6:
../../src/Steve Stuff/screeninfo.cpp:13:2: warning: 'glutIconifyWindow' is deprecated: first deprecated in macOS 10.9 [-Wdeprecated-declarations]
        glutIconifyWindow();
        ^
/System/Library/Frameworks/GLUT.framework/Headers/glut.h:457:22: note: 'glutIconifyWindow' has been explicitly marked deprecated here
extern void APIENTRY glutIconifyWindow(void) OPENGL_DEPRECATED(10_0, 10_9);
                     ^
3 warnings generated.
$ cd ../../../../../..

FellippeHeitor

  • QB64 Partner Site Owner
  • Hero Member
  • *
  • Posts: 1155
  • LET IT = BE
    • QB64.org
Re: Mac .command scripts issue on 10.12.1
« Reply #1 on: January 09, 2017, 01:55:48 am »
Get it from www.qb64.org (not .net) and reinstall (to a new folder). No need to reinstall Xcode.

Also, the "deprecated" warnings can be ignored for now.
« Last Edit: January 09, 2017, 04:50:06 am by FellippeHeitor »

Aramis

  • Newbie
  • *
  • Posts: 38
Re: Mac .command scripts issue on 10.12.1
« Reply #2 on: January 09, 2017, 07:43:29 am »
Get it from www.qb64.org (not .net) and reinstall (to a new folder). No need to reinstall Xcode.

Actually, there is a need to do so - if one uses Xcode at all, that is - as the prior version had several bad hooks under 10.12.1... forced upgrade, essentially.