Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build fixes for OSX #9

Closed
meshula opened this issue Feb 22, 2014 · 10 comments
Closed

build fixes for OSX #9

meshula opened this issue Feb 22, 2014 · 10 comments

Comments

@meshula
Copy link

meshula commented Feb 22, 2014

Hey all, in case it's useful:

To build on OSX, I had to add -lz to the Makefile to pick up the zlib symbols. Also, I had to modify Paths.cpp to allow it to find files. I hardcoded my own path to get past that hurdle, so I'm not providing a patch here, there's probably a proper way to resolve the problem.

@Gronis
Copy link

Gronis commented Feb 6, 2016

What makefile did you use? The repo does not contain a makefile.

@meshula
Copy link
Author

meshula commented Feb 8, 2016

Good question :\ It was two years ago, I'll see if I can find what I was working on and report back.

@Gronis
Copy link

Gronis commented Feb 9, 2016

Nice! Thank you for helping out!

@mkae
Copy link

mkae commented Feb 9, 2016

I got it to work on OSX 10.10 with MacPorts installed in the qt4-creator after tiny additions to the pro file:

diff --git a/src/brdf/brdf.pro b/src/brdf/brdf.pro
index 532caf1..4a5bd12 100644
--- a/src/brdf/brdf.pro
+++ b/src/brdf/brdf.pro
@@ -58,7 +58,9 @@ QT   += opengl
 DEFINES += PTEX_STATIC NOMINMAX

 macx {
-       INCLUDEPATH += /usr/X11/include
+    INCLUDEPATH += /usr/X11/include
+    INCLUDEPATH += /opt/local/include/
+    LIBS += -L/opt/local/lib/
 }

This was the correspondingly created qmake call:

Starting: "/opt/local/libexec/qt4/bin/qmake" /Users/marko/WC/GIT/brdf/main.pro -r -spec macx-g++ CONFIG+=x86_64 prefix=/opt/local/

@meshula
Copy link
Author

meshula commented Feb 10, 2016

Nice! I haven't got that far yet.

@aselle
Copy link
Contributor

aselle commented Feb 11, 2016

Here's a bunch of fixes that I have yet to pull in... I used Brew for glew.
https://github.com/aselle/brdf

@mkae
Copy link

mkae commented Feb 12, 2016

Thanks aselle for the update. (I've left some questions and comments in your repo.)

@aselle
Copy link
Contributor

aselle commented Feb 13, 2016

What version of Qt and Mac OS did you all use? I was having trouble with
the OpenGL deprecation fiasco. If I set a coreprofile I get nullptr's on
generateMipmaps(). If I don't I get shader compile errors?
-A

On Fri, Feb 12, 2016 at 2:23 PM, Marko Käning [email protected]
wrote:

Thanks aselle for the update. (I've left some questions and comments in
your repo.)


Reply to this email directly or view it on GitHub
#9 (comment).

@mkae
Copy link

mkae commented Feb 13, 2016

See my other issue #12 for info on my system!

$ port installed qt4-mac
The following ports are currently installed:
  qt4-mac @4.8.7_3 (active)

How do you "set a coreprofile" on your end?

@meshula
Copy link
Author

meshula commented Jan 21, 2022

closing as not an issue any more

@meshula meshula closed this as completed Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants