wdas / brdf

BRDF Explorer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build fixes for OSX

meshula opened this issue · comments

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.

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

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

Nice! Thank you for helping out!

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/

Nice! I haven't got that far yet.

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

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

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 notifications@github.com
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).

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?

closing as not an issue any more