Sign in to follow this  
PnP Bios

Requesting test build, please.

Recommended Posts

Getting the following errors:
hxr2.h:20:19: gl/gl.h: No such file or directory
hxr2.h:21:20: gl/glu.h: No such file or directory
hxr2.h:169:7: warning: no newline at end of file

for the first two, it should be
#include <GL/gl.h>

#include <GL/glu.h>

linux is case sensitive

The new line thing is more of an irritating warning, but can cause a problem in rare situations.

After fixing that I get the following error:
ar rcs hxr2.a hxr2.o
ar: hxr2.o: No such file or directory

I don't have much experience building libraries in linux, but if no one else can help you i'll look into it.

Share this post


Link to post
Share on other sites
You also need to change in hxSDLContext.cpp

hxSDLContext::Setup(int w, int h, int bpp, bool fs, const char *title)

// to

int hxSDLContext::Setup(int w, int h, int bpp, bool fs, const char *title)

Share this post


Link to post
Share on other sites
also in the makefile, change
ar rcs hxr2.a hxr2.o
to
ar rcs hxr2.a hxContext.o hxSurface.o utility_functions.o

and
ar rcs hxSDL2.a hxSDL2.o
to
ar rcs hxSDL2.a hxSDLContext.o hxSDLUtility.o


and it will build - however I can't guarantee it'll work as expected
I don't have the time now, but if I get the chance i'll come back and take a look at it.

Also, that's a really ugly looking Makefile - but not bad for a first try.

Share this post


Link to post
Share on other sites
I know you asked for Linux, but I don't have linux and only FreeBSD installed, but should be able to figure it out all the same.

all:
g++ `sdl11-config --cflags` -I/usr/X11R6/include -c hxContext.cpp hxSurface.cpp utility_functions.cpp
ar rcs hxr2.a hxContext.o hxSurface.o utility_functions.o
g++ `sdl11-config --cflags` -I/usr/X11R6/include -c hxSDLContext.cpp hxSDLUtility.cpp
ar rcs hxSDL2.a hxSDLContext.o hxSDLUtility.o


clean:
rm -f hxr2.a hxr2.o hxSDL2.a hxSDL2.o
install:
install hxr2.a hxSDL2.a /usr/local/lib
install hxr2.h hxSDL2.h /usr/local/include


I just had to change sdl-config to sdl11-config (just how FreeBSD installs it from the ports, leave that as sdl-config for linux I'd imagine). Add -I/usr/X11R6/include as that is where the GL headers are installed at least on FreeBSD not sure where linux distro's install those. For the ar you need to combine all the object files that were compiled from the previous line.

HTH some.

Share this post


Link to post
Share on other sites
Quote:
Original post by Will F
also in the makefile, change
ar rcs hxr2.a hxr2.o
to
ar rcs hxr2.a hxContext.o hxSurface.o utility_functions.o

and
ar rcs hxSDL2.a hxSDL2.o
to
ar rcs hxSDL2.a hxSDLContext.o hxSDLUtility.o


and it will build - however I can't guarantee it'll work as expected
I don't have the time now, but if I get the chance i'll come back and take a look at it.

Also, that's a really ugly looking Makefile - but not bad for a first try.


tis not my makefile. it is one built from an older version of hxRender, so stuff was lost in the translation. thanks, I will make the changes to the makefile.

Share this post


Link to post
Share on other sites
Quote:
Original post by gg83

I just had to change sdl-config to sdl11-config (just how FreeBSD installs it from the ports, leave that as sdl-config for linux I'd imagine).


Yup, leave it as it was for linux.


Quote:
Add -I/usr/X11R6/include as that is where the GL headers are installed at least on FreeBSD not sure where linux distro's install those.


Mine (Fedora Core) are in /usr/include/GL, so you don't need the -I switch.

You might also want to use the -Wall (report all warnings) switch for g++:

g++ -Wall `sdl-config --cflags` -I/usr/X11R6/include -c hxSDLContext.cpp hxSDLUtility.cpp

Share this post


Link to post
Share on other sites
To the OP: if you want to check Linux-compatibility more often, maybe you could look into Knoppix. It is a Linux distribution that runs from CD, so you don't have to install it.

Share this post


Link to post
Share on other sites
I'd rather use cygwin if it came down to that. Hopefully, I can convince somebody else to maintain the linux/unix/mac ports once this thing gets rolling.

I'm working on tutorials as we speak.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this