What's new

Mac OSX glide64mk2 compiling problems

kinetique

New member
Hello,

I've been trying to compile and install mupen64plus without using something like m64py for a while, and though I can do it with no real problems on arch linux I'm hitting a brick wall with osx 10.8.

Every plugin and component bar glide64mk2 has compiled and ran just fine, but I'm getting errors such as the following
  Spoiler:
../../src/GlideHQ/TxHiResCache.h:37:10: fatal error: 'boost/filesystem.hpp' file not found

despite having installed boost both manually and with macports.

Here is the whole compiling process if it helps.

  Spoiler:
make all
CC _obj/GlideHQ/tc-1.1+/fxt1.o
CC _obj/GlideHQ/tc-1.1+/dxtn.o
CC _obj/GlideHQ/tc-1.1+/wrapper.o
CC _obj/GlideHQ/tc-1.1+/texstore.o
CC _obj/Glide64/osal_dynamiclib_unix.o
CXX _obj/Glitch64/combiner.o
CXX _obj/Glitch64/geometry.o
CXX _obj/Glitch64/glitchmain.o
CXX _obj/Glitch64/textures.o
CXX _obj/Glide64/3dmath.o
CXX _obj/Glide64/Combine.o
CXX _obj/Glide64/Config.o
CXX _obj/Glide64/CRC.o
CXX _obj/Glide64/Debugger.o
CXX _obj/Glide64/DepthBufferRender.o
CXX _obj/Glide64/FBtoScreen.o
CXX _obj/Glide64/Ini.o
CXX _obj/Glide64/Keys.o
CXX _obj/Glide64/Main.o
CXX _obj/Glide64/rdp.o
../../src/Glide64/rdp.cpp:2735:30: warning: equality comparison with extraneous
parentheses [-Wparentheses-equality]
if ((rdp.ci_status == ci_aux)) //for PPL
~~~~~~~~~~~~~~^~~~~~~~~
../../src/Glide64/rdp.cpp:2735:30: note: remove extraneous parentheses around
the comparison to silence this warning
if ((rdp.ci_status == ci_aux)) //for PPL
~ ^ ~
../../src/Glide64/rdp.cpp:2735:30: note: use '=' to turn this equality
comparison into an assignment
if ((rdp.ci_status == ci_aux)) //for PPL
^~
=
In file included from ../../src/Glide64/rdp.cpp:3391:
../../src/Glide64/ucodeFB.h:65:16: warning: equality comparison with extraneous
parentheses [-Wparentheses-equality]
if ( (status == ci_copy) )
~~~~~~~^~~~~~~~~~
../../src/Glide64/ucodeFB.h:65:16: note: remove extraneous parentheses around
the comparison to silence this warning
if ( (status == ci_copy) )
~ ^ ~
../../src/Glide64/ucodeFB.h:65:16: note: use '=' to turn this equality
comparison into an assignment
if ( (status == ci_copy) )
^~
=
2 warnings generated.
CXX _obj/Glide64/TexBuffer.o
CXX _obj/Glide64/TexCache.o
../../src/Glide64/TexCache.cpp:889:16: warning: variable 'tmu' is used
uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
else if (i==1) tmu=tmu_1;
^~~~
../../src/Glide64/TexCache.cpp:891:11: note: uninitialized use occurs here
if (tmu >= voodoo.num_tmu) continue;
^~~
../../src/Glide64/TexCache.cpp:889:12: note: remove the 'if' if its condition is
always true
else if (i==1) tmu=tmu_1;
^~~~~~~~~~
../../src/Glide64/TexCache.cpp:887:14: note: initialize the variable 'tmu' to
silence this warning
int tmu;
^
= 0
1 warning generated.
CXX _obj/Glide64/Util.o
CXX _obj/GlideHQ/Ext_TxFilter.o
CXX _obj/GlideHQ/TxFilterExport.o
In file included from ../../src/GlideHQ/TxFilterExport.cpp:28:
In file included from ../../src/GlideHQ/TxFilter.h:29:
../../src/GlideHQ/TxHiResCache.h:37:10: fatal error: 'boost/filesystem.hpp' file
not found
#include "boost/filesystem.hpp"
^
1 error generated.
make: *** [_obj/GlideHQ/TxFilterExport.o] Error 1


Any help would be great :)
 
OP
K

kinetique

New member
Ok I fixed the problem I was having, to anyone having a similar error edit the makefile of glide64mk2 in /projects/unix to include -I/path/to/boost in the sections where this: CFLAGS += $(OPTFLAGS) $(WARNFLAGS) -ffast-math -fno-strict-aliasing -fvisibility=hidden -I../../src -I../../src/Glitch64/inc is located.
 

dknwrtd

New member
Ok I fixed the problem I was having, to anyone having a similar error edit the makefile of glide64mk2 in /projects/unix to include -I/path/to/boost in the sections where this: CFLAGS += $(OPTFLAGS) $(WARNFLAGS) -ffast-math -fno-strict-aliasing -fvisibility=hidden -I../../src -I../../src/Glitch64/inc is located.

YES this is what fixed it for me, thank you so much!! I've been looking for this forever. For maximum clarity: I edited this file: mupen64plus-bundle-src-2.0/source/mupen64plus-video-glide64mk2/projects/unix/makefile

The code in question is line 127. Original:

Code:
CFLAGS += $(OPTFLAGS) $(WARNFLAGS) -ffast-math -fno-strict-aliasing -fvisibility=hidden -I../../src -I../../src/Glitch64/inc -DGCC

Edited to:

Code:
CFLAGS += $(OPTFLAGS) $(WARNFLAGS) -ffast-math -fno-strict-aliasing -fvisibility=hidden -I../../src -I../../src/Glitch64/inc [B]-I/opt/local/include[/B] -DGCC

Remember to add the path of the parent folder of boost, not the folder itself. In my case that's /opt/local/include.
 

Top