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

Offline QwazyWabbit

  • Carpal Tunnel Member
  • ******
  • Posts: 1373
    • 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: 644
    • 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

  • Loquaciously Multiloquent Member
  • ****
  • Posts: 5352
    • 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: 644
    • 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:

Costigan_Q2

November 11, 2024, 06:41:06 AM
"Stay cozy folks.

Everything is gonna be fine."

There'll be no excuses for having TDS after January 20th, there'll be no excuses AT ALL!!!
 

|iR|Focalor

November 06, 2024, 03:28:50 AM
 

RailWolf

November 05, 2024, 03:13:44 PM
Nice :)

Tom Servo

November 04, 2024, 05:05:24 PM
The Joe Rogan Experience episode 223 that dropped a couple hours ago with Musk, they're talking about Quake lol.

Costigan_Q2

November 04, 2024, 03:37:55 PM
Stay cozy folks.

Everything is gonna be fine.
 

|iR|Focalor

October 31, 2024, 08:56:37 PM

Costigan_Q2

October 17, 2024, 06:31:53 PM
Not activated your account yet?

Activate it now! join in the fun!

Tom Servo

October 11, 2024, 03:35:36 PM
HAHAHAHAHAHA
 

|iR|Focalor

October 10, 2024, 12:19:41 PM
I don't worship the devil. Jesus is Lord, friend. He died for your sins. He will forgive you if you just ask.
 

rikwad

October 09, 2024, 07:57:21 PM
Sorry, I couldn't resist my inner asshole.

Show 50 latest
Welcome, Guest. Please login or register.
November 24, 2024, 09:22:54 AM

Login with username, password and session length