Jump to content

Compile on Ubuntu 12.04lts


Recommended Posts

Hi,

I'm trying to compile HOT for Ubuntu 12.04lts but I run into a problem with compiling SOP_Star.C to begin with.

I installeded csh, g++

Then when I run: hcustom SOP_Star.C

I get:

Making SOP_Star.o and /home/nick/houdini12.1/dso/SOP_Star.so from SOP_Star.C

Assembler messages:

Fatal error: can't create SOP_Star.o: Permission denied

Compile failed

To me it seems that it can't write the file to my home dir but I find that odd because the dir rights are as open as they can be. Any suggestions?

drwxrwxrwx 35 nick nick 4096 Jan 17 13:37 nick/

drwxrwxrwx 7 nick nick 4096 Jan 17 15:42 houdini12.1/

drwxrwxrwx 2 nick nick 4096 Jan 17 16:12 dso/

Link to comment
Share on other sites

I've changed the rights of /opt/hfs.X.Y/toolkit/samples/SOP and now I'm one step ahead. Though I still run into trouble:

hcustom SOP_Star.C

Making SOP_Star.o and /home/nick/houdini12.1/dso/SOP_Star.so from SOP_Star.C

/usr/bin/ld: cannot find -lGLU

/usr/bin/ld: cannot find -lGL

/usr/bin/ld: cannot find -lX11

/usr/bin/ld: cannot find -lXext

/usr/bin/ld: cannot find -lXi

collect2: ld returned 1 exit status

Link failed

Any suggestion is more then welcome :-)

Link to comment
Share on other sites

Thanks graham, any idea how I can figure out which libraries I exactly need?

I've found

sudo apt-get install build-essential checkinstall[/CODE]

But that wants to install:

build-essential checkinstall dpkg-dev libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl libtimedate-perl

and non of the once you suggest are in that list. So I guess I shouldn't install that.

Edited by Nerox
Link to comment
Share on other sites

The libs are basically the things it says it is missing, minus the leading -l : GLU, GL, X11, Xext, Xi

If you search the manager for those, usuually lib{name}-dev you should be able to install them. The graphical package manager might work better for this.

Link to comment
Share on other sites

Ah! that makes sense :-)

To be honest I never realized that those were packages. The leading 'l' is a bit misleading as well.

Nevertheless it did the trick!

So the main things I installed is:


sudo apt-get install csh
sudo apt-get install g++
sudo apt-get install libglu-dev
sudo apt-get install libgl-dev
sudo apt-get install libgl
sudo apt-get install libGL-dev
sudo apt-get install libX11-dev
sudo apt-get install libXext-dev
sudo apt-get install libXi-dev
sudo apt-get install libXi-dev
[/CODE]

Link to comment
Share on other sites


sudo apt-get install csh
sudo apt-get install g++
sudo apt-get install libglu-dev
sudo apt-get install libgl-dev
sudo apt-get install libgl
sudo apt-get install libGL-dev
sudo apt-get install libX11-dev
sudo apt-get install libXext-dev
sudo apt-get install libXi-dev
sudo apt-get install libXi-dev
[/CODE]

I'm glad you got it working. In the future you can install them all at once if you want to save a little time. :D

[CODE]
sudo apt-get install csh g++ libglu-dev libgl-dev libgl libGL-dev libX11-dev libXext-dev libXi-dev
[/CODE]

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...