Author Topic: R1Q2 Mac Os X and Linux  (Read 6608 times)

Offline QwazyWabbit

  • Carpal Tunnel Member
  • ******
  • Posts: 1243
    • View Profile
  • Rated:
Re: R1Q2 Mac Os X and Linux
« Reply #15 on: March 18, 2015, 07:53:21 PM »
Minor quibble, there are lots of places in this code where Com_Printf is called without a level argument and LLVM complains with a warning. Example in snd_dl.c, where it should probably be called with LOG_CLIENT for level:

Code: [Select]
qboolean SNDDMA_Init(int fullInit)
{
SDL_AudioSpec desired, obtained;
int desired_bits, freq;

if (SDL_WasInit(SDL_INIT_EVERYTHING) == 0) {
if (SDL_Init(SDL_INIT_AUDIO) < 0) {
Com_Printf ("Couldn't init SDL audio: %s\n", LOG_CLIENT, SDL_GetError ());
return 0;
}
} else if (SDL_WasInit(SDL_INIT_AUDIO) == 0) {
if (SDL_InitSubSystem(SDL_INIT_AUDIO) < 0) {
Com_Printf ("Couldn't init SDL audio: %s\n", LOG_CLIENT, SDL_GetError ());
return 0;
}
}
....

This project is originally based on b6990 and I have not compared it to b8012 which is the last version r1ch released.
« Last Edit: March 18, 2015, 08:42:34 PM by QwazyWabbit »
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline julian

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • Rated:
Re: R1Q2 Mac Os X and Linux
« Reply #16 on: March 28, 2015, 01:41:00 PM »
Ok, here it is. Thanks!

Last login: Sun Mar 29 00:31:38 on console
Edmunds-Air:~ Edmund$ /Users/Edmund/Desktop/untitled\ folder/Quake\ II\ Starter/r1gl.app/Contents/MacOS/r1gl ; exit;
Added packfile ./baseq2/pak0.pak (1106 files)
Added packfile ./baseq2/pak1.pak (279 files)
Added packfile ./baseq2/pak2.pak (2 files)
Added packfile ./baseq2/pak7.pak (28 files)
Added packfile ./baseq2/pak8.pak (234 files)
Added packfile ./baseq2/pak9.pak (736 files)
====== Quake2 Initialized ======
R1Q2/SDL build 6990, compiled Jan 28 2007.
http://www.r1ch.net/stuff/r1q2/
OSX i386 (/Users/Edmund/Desktop/untitled folder/Quake II Starter/r1gl.app/Contents/MacOS/r1gl)

Console initialized.
vid_ref = ref_r1gl.so
------- PWD: /Users/Edmund/Desktop/untitled folder/Quake II Starter -------
------- Loading ref_r1gl.so from ./ref_r1gl.so -------
LoadLibrary("ref_r1gl.so") failed: No such file or directory
Failed to initialize video!
Error: Failed to initialize video!
logout

[Process completed]
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline Jay Dolan

  • Swanky Member
  • *****
  • Posts: 641
    • View Profile
    • Quetoo.org
  • Rated:
Re: R1Q2 Mac Os X and Linux
« Reply #17 on: March 29, 2015, 07:56:16 PM »
The error is pretty obvious, no?

Code: [Select]
vid_ref = ref_r1gl.so
------- PWD: /Users/Edmund/Desktop/untitled folder/Quake II Starter -------
------- Loading ref_r1gl.so from ./ref_r1gl.so -------
LoadLibrary("ref_r1gl.so") failed: No such file or directory

So the working directory is `/Users/Edmund/Desktop/untitled folder/Quake II Starter`, but R1Q2 lives underneath that, in `./r1gl.app/Contents/MacOS` (probably).

Slayer you may wish to add a little logic to help the game figure out its paths when running from within a .app bundle. There's code that does this in Quetoo here:

https://github.com/jdolan/quetoo/blob/master/src/sys.c#L64
https://github.com/jdolan/quetoo/blob/master/src/filesystem.c#L574

A simpler approach would be to use an environment variable (R1Q2_HOME or something) from within the game, and then modify the app bundle to launch via a shell script, which sets the variable by looking at $0.

Offline Slayer

  • Newbie
  • *
  • Posts: 10
    • View Profile
  • Rated:
Re: R1Q2 Mac Os X and Linux
« Reply #18 on: September 06, 2015, 02:14:39 PM »
Code: [Select]
vid_ref = ref_r1gl.so
------- PWD: /Users/Edmund/Desktop/untitled folder/Quake II Starter -------
------- Loading ref_r1gl.so from ./ref_r1gl.so -------
LoadLibrary("ref_r1gl.so") failed: No such file or directory

Julian, make sure ref_r1gl.so it is in the folder that contains r1q2.app. It should automatically search there. If it still can not find it, try using the ref_gl.so i am attaching to this post. Back when i was messing with this more i remember having trouble getting r1q2 to find r1gl.so. The normal gl file that i am sending should work if you put it in your main quake folder (the one that contains r1q2.app and baseq2). The only two files i have inside the .app bundle are the actual program in /MacOS and SDL.framework in /Frameworks (besides icon files and the like) So i don't know if it looks for the gl files within the bundle itself or not.

I'm going to start tinkering with this again soon. It is still my favorite mac client by far, in some cases i even like it more than the windows version. Like i said before, none of this is my own work. I'm learning as i go along.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline yani

  • Newbie
  • *
  • Posts: 1
    • View Profile
  • Rated:
Re: R1Q2 Mac Os X and Linux
« Reply #19 on: November 06, 2019, 03:04:32 PM »
what can I do with this problem?

/Users/yani/Downloads/q2/r1gl.app/Contents/MacOS/r1gl ; exit;
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.200.3/Common/ChunkCompression.cpp:49: Error: unsupported compressor 8
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.200.3/Libraries/CompressData/CompressData.c:353: Error: Unknown compression scheme encountered for file '/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Exceptions.plist'
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.200.3/Common/ChunkCompression.cpp:49: Error: unsupported compressor 8
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.200.3/Libraries/CompressData/CompressData.c:353: Error: Unknown compression scheme encountered for file '/System/Library/CoreServices/CoreTypes.bundle/Contents/Library/AppExceptions.bundle/Exceptions.plist'
Added packfile ./baseq2/pak0.pak (1040 files)
Added packfile ./baseq2/pak9.pak (51 files)
====== Quake2 Initialized ======
R1Q2/SDL build 6990, compiled Jan 28 2007.
http://www.r1ch.net/stuff/r1q2/
OSX i386 (/Users/yani/Downloads/q2/r1gl.app/Contents/MacOS/r1gl)

Unknown command "+mlook"
Console initialized.
vid_ref = ref_gl.so
------- PWD: /Users/yani/Downloads/q2 -------
------- Loading ref_gl.so from ./ref_gl.so -------
LoadLibrary("./ref_gl.so")
couldn't exec r1gl.cfg
ref_gl version: R1GL 0.1.5.35
dlopen(./opengl32, 1): image not found
ref_gl::R_Init() - could not load "opengl32"
Failed to initialize video!
Error: Failed to initialize video!
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline quadz

  • Phenomenally Prodigious Member
  • **
  • Posts: 3938
    • View Profile
  • Rated:
Re: R1Q2 Mac Os X and Linux
« Reply #20 on: November 06, 2019, 07:22:47 PM »
ref_gl version: R1GL 0.1.5.35
dlopen(./opengl32, 1): image not found
ref_gl::R_Init() - could not load "opengl32"
Failed to initialize video!

Apparently missing the opengl32.so library.

I understand Apple has deprecated OpenGL in favor of their homegrown Metal library. Not sure if that might be relevant here?

:exqueezeme:

  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
"He knew all the tricks, dramatic irony, metaphor, bathos, puns, parody, litotes and... satire. He was vicious."

Offline Jay Dolan

  • Swanky Member
  • *****
  • Posts: 641
    • View Profile
    • Quetoo.org
  • Rated:
Re: R1Q2 Mac Os X and Linux
« Reply #21 on: November 12, 2019, 09:27:16 AM »
No, you can still run OpenGL apps just fine on macOS. But it looks like (to me) that build is not correctly setup to support macOS. It's looking for opengl32.so, which it will not find anywhere on Mac. It should be looking for libOpenGL.so.

Why not run a Quake2 build that is actually maintained for macOS, like Q2Pro or Yamagi?

Offline SquiSHeR

  • Full Member
  • ***
  • Posts: 127
  • test
    • View Profile
  • Rated:
Re: R1Q2 Mac Os X and Linux
« Reply #22 on: November 12, 2019, 09:44:03 AM »
No, you can still run OpenGL apps just fine on macOS. But it looks like (to me) that build is not correctly setup to support macOS. It's looking for opengl32.so, which it will not find anywhere on Mac. It should be looking for libOpenGL.so.

Why not run a Quake2 build that is actually maintained for macOS, like Q2Pro or Yamagi?

When I was running Quake 2 on a Mac years ago this would help me to specify the location of the opengl driver (just add to autoexec.cfg and adapt file path)
Code: [Select]
set gl_driver "/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries/libGL.dylib"
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

 

El Box de Shoutamente

Last 10 Shouts:

-Unh0ly-

December 03, 2019, 09:19:59 PM
NEW ! texture pak  V 2.0 get it at http://unh0ly.wordpress.com

Some screen shots on website.
 

quadz

November 29, 2019, 11:00:53 AM
Some snazzy updates to the ray-traced version of Q2:


https://www.youtube.com/watch?v=CnYtathGvdw
 

Prophet

November 28, 2019, 10:10:38 AM
Did the server just crash? Dont see the address pulling up all of a sudden after I got a phonejack
 

|iR|Focalor

November 27, 2019, 11:55:59 PM
 

Admin

November 26, 2019, 07:22:56 PM
Hm. And the network had seemed so well-behaved of late.
 

|iR|Focalor

November 26, 2019, 12:23:48 PM
Servers went haywire again. Was in the middle of a game on vanilla when the graph started showing green sawtooth stuff. My address book is only showing IRTDM1, IRTDM2 and FOX. No DM, no Vanilla, no Railz.
 

quadz

November 24, 2019, 10:14:15 PM
 

quadz

November 22, 2019, 07:38:43 PM
FYI - massive data breach

https://www.dataviper.io/blog/2019/pdl-data-exposure-billion-people/

"1.2 billion unique people, and 650 million unique email addresses"

RyU

November 14, 2019, 04:31:34 AM
since 06 bro no I dont cheat  :)

-Unh0ly-

November 13, 2019, 10:18:16 AM
uhhhh q2 servers .com is down

Show 50 latest
Welcome, Guest. Please login or register.
December 05, 2019, 11:39:55 PM

Login with username, password and session length