Install Problem "can't find GLX.h"

 
Thread Tools Search this Thread
Operating Systems OS X (Apple) Install Problem "can't find GLX.h"
# 1  
Old 01-01-2011
Install Problem "can't find GLX.h"

Hi.

Somewhat of a newbie.

Trying to install a scientific software package DReAMM/PSC

The PSC component needs to be compiled.

Per instruction I use this command


env MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS='-O2 -fomit-frame-pointer' \
CXXFLAGS='-O2 -fomit-frame-pointer' ./configure \
--prefix=/usr/local/pscdx --disable-shared --enable-static \
--without-javadx --with-x --with-motif-includes=/sw/include \
--with-motif-libs=/sw/lib --x-includes=/usr/x11 --x-libraries=/usr/x11/lib

Which seems to work fine. Some warnings but no errors.

However sudo make does not succeed:


Making all in src
Making all in exec
Making all in libdx
make all-am
make[4]: Nothing to be done for `all-am'.
Making all in dxmods
make all-am
make[4]: Nothing to be done for `all-am'.
Making all in hwrender
Making all in opengl
sh ../../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../include -I../../../../include -I./.. -I./../../libdx -Dmacos -I/usr/x11 -I/sw/include -O2 -fomit-frame-pointer -I/usr/x11 -I/sw/include -D_GNU_SOURCE -MT hwPortUtilOGL.lo -MD -MP -MF .deps/hwPortUtilOGL.Tpo -c -o hwPortUtilOGL.lo hwPortUtilOGL.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../../include -I../../../../include -I./.. -I./../../libdx -Dmacos -I/usr/x11 -I/sw/include -O2 -fomit-frame-pointer -I/usr/x11 -I/sw/include -D_GNU_SOURCE -MT hwPortUtilOGL.lo -MD -MP -MF .deps/hwPortUtilOGL.Tpo -c hwPortUtilOGL.c -o hwPortUtilOGL.o
In file included from hwPortUtilOGL.c:40:
hwPortOGL.h:25:20: error: GL/glx.h: No such file or directory
hwPortOGL.h:27:19: error: GL/gl.h: No such file or directory
In file included from hwPortUtilOGL.c:40:
hwPortOGL.h:30: error: expected specifier-qualifier-list before ‘GLfloat'
hwPortOGL.h:36: error: expected specifier-qualifier-list before ‘GLfloat'
hwPortOGL.h:100: error: expected specifier-qualifier-list before ‘GLXContext'
hwPortUtilOGL.c:54:20: error: GL/glu.h: No such file or directory
hwPortUtilOGL.c:70: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘screen_door_50'
hwPortUtilOGL.c: In function ‘dots':
hwPortUtilOGL.c:554: error: ‘GL_FALSE' undeclared (first use in this function)
hwPortUtilOGL.c:554: error: (Each undeclared identifier is reported only once
hwPortUtilOGL.c:554: error: for each function it appears in.)
hwPortUtilOGL.c:554: error: ‘GL_TRUE' undeclared (first use in this function)
hwPortUtilOGL.c:554: error: ‘GL_LIGHTING' undeclared (first use in this function)


and the errors continue from there.

I do have the glx.h file.

What am I doing wrong?

Thanks for any help.

---------- Post updated at 04:06 PM ---------- Previous update was at 03:45 PM ----------

ls /usr/X11R6/include/GL
amesa.h glfbdev.h glxext.h mglmesa.h xmesa.h
dmesa.h glu.h glxint.h osmesa.h xmesa_x.h
fxmesa.h glu_mangle.h glxmd.h svgamesa.h xmesa_xf86.h
ggimesa.h glut.h glxproto.h uglglutshapes.h
gl.h glutf90.h glxtokens.h uglmesa.h
gl_mangle.h glx.h internal vms_x_fix.h
glext.h glx_mangle.h mesa_wgl.h wmesa.h


This shows that I have the file correct?
# 2  
Old 01-01-2011
Sounds like you havent got OpenGL development header files (and probably library) installed - or perhaps they are installed somewhere else on the filesystem
# 3  
Old 01-24-2011
You may need to install the developer tools and x11 which are optional installs off the OS X Installer DVD.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

find . -path "*_nobackup*" -prune -iname "*.PDF" \( ! -name "*_nobackup.*" \)

These three finds worked as expected: $ find . -iname "*.PDF" $ find . -iname "*.PDF" \( ! -name "*_nobackup.*" \) $ find . -path "*_nobackup*" -prune -iname "*.PDF" They all returned the match: ./folder/file.pdf :b: This find returned no matches: $ find . -path "*_nobackup*" -prune... (3 Replies)
Discussion started by: wolfv
3 Replies

2. Shell Programming and Scripting

Find lines with "A" then change "E" to "X" same line

I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
Discussion started by: nightwatchrenba
10 Replies

3. Shell Programming and Scripting

Using sed to find text between a "string " and character ","

Hello everyone Sorry I have to add another sed question. I am searching a log file and need only the first 2 occurances of text which comes after (note the space) "string " and before a ",". I have tried sed -n 's/.*string \(*\),.*/\1/p' filewith some, but limited success. This gives out all... (10 Replies)
Discussion started by: haggismn
10 Replies

4. Shell Programming and Scripting

Problem with "find" and "grep" command

I want to list all files/lines which except those which contain the pattern ' /proc/' OR ' /sys/' (mind the leading blank). In a first approach I coded: find / -exec ls -ld {} | grep -v ' /proc/| /sys/' \; > /tmp/list.txt But this doesn't work. I got an error (under Ubuntu): grep:... (5 Replies)
Discussion started by: pstein
5 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. UNIX for Dummies Questions & Answers

how to install "source" command!/ broken "login.cl"!

Hello, I am new to this forums and this is my first "asking help" message! i have 2 problems: 1- for unknown reasons the "source" command is not avalable in my system (UBUNTU). i can't either see it in my bin directory! 2- again for unknown reasons the "login.cl" file in the home... (0 Replies)
Discussion started by: astrosona
0 Replies

7. UNIX for Advanced & Expert Users

A question/problem about oracle "tns listener" and "enterprise manager"

hi, I have a problem about the Oracle related components. I'm not able to find any answer yet, and waiting for your responses... Here is the configuration of my system: * an IBM P550 machine, * an AIX 5.3 running on it and * an oracle database, already installed on it. The problem (or... (1 Reply)
Discussion started by: talipk
1 Replies

8. UNIX and Linux Applications

A question/problem about oracle "tns listener" and "enterprise manager"

hi, I have * an IBM P550 machine, * an AIX 5.3 running on it and * an oracle database, already installed on it. The problem (or question of my own) is: Oracle tns listener, "CT_LISTENER", and the enterprise manager (EM) of the instance, which is uniq instance and called... (0 Replies)
Discussion started by: talipk
0 Replies

9. Shell Programming and Scripting

"find command" to find the files in the current directories but not in the "subdir"

Dear friends, please tell me how to find the files which are existing in the current directory, but it sholud not search in the sub directories.. it is like this, current directory contains file1, file2, file3, dir1, dir2 and dir1 conatins file4, file5 and dir2 contains file6,... (9 Replies)
Discussion started by: swamymns
9 Replies

10. Shell Programming and Scripting

grep to find content in between curly braces, "{" and "},"

problem String ~~~~~~~~~~~~~~~~~~ icecream= { smart peopleLink "good" LC "happy" , smartpeopleLink "dull" LC "sad" } aend = {smart vc4 eatr kalu} output needed ~~~~~~~~~~~~~~~~~~ smart peopleLink "good" LC "happy" , smartpeopleLink "dull" LC "sad" smart vc4... (4 Replies)
Discussion started by: keshav_rk
4 Replies
Login or Register to Ask a Question