Nerox Posted January 17, 2013 Share Posted January 17, 2013 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/ Quote Link to comment Share on other sites More sharing options...
Nerox Posted January 17, 2013 Author Share Posted January 17, 2013 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 :-) Quote Link to comment Share on other sites More sharing options...
graham Posted January 17, 2013 Share Posted January 17, 2013 You're missing the various development libraries necessary to compile. Something like libX11-dev, libGL-dev, etc... You should be able to find them from the package manager. Quote Link to comment Share on other sites More sharing options...
Nerox Posted January 17, 2013 Author Share Posted January 17, 2013 (edited) 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-perland non of the once you suggest are in that list. So I guess I shouldn't install that. Edited January 17, 2013 by Nerox Quote Link to comment Share on other sites More sharing options...
graham Posted January 17, 2013 Share Posted January 17, 2013 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. Quote Link to comment Share on other sites More sharing options...
Nerox Posted January 17, 2013 Author Share Posted January 17, 2013 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 cshsudo apt-get install g++sudo apt-get install libglu-devsudo apt-get install libgl-devsudo apt-get install libglsudo apt-get install libGL-devsudo apt-get install libX11-devsudo apt-get install libXext-devsudo apt-get install libXi-devsudo apt-get install libXi-dev[/CODE] Quote Link to comment Share on other sites More sharing options...
lukeiamyourfather Posted January 17, 2013 Share Posted January 17, 2013 sudo apt-get install cshsudo apt-get install g++sudo apt-get install libglu-devsudo apt-get install libgl-devsudo apt-get install libglsudo apt-get install libGL-devsudo apt-get install libX11-devsudo apt-get install libXext-devsudo apt-get install libXi-devsudo 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. [CODE]sudo apt-get install csh g++ libglu-dev libgl-dev libgl libGL-dev libX11-dev libXext-dev libXi-dev[/CODE] 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.