ganeshredcobra / animata

Automatically exported from code.google.com/p/animata
GNU General Public License v3.0
0 stars 0 forks source link

Does not compile on Ubuntu 8.10 #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have fltk-dev installed.
scons gives this:

src/ImageBox.h:27:23: error: Fl/Fl_Box.h: No such file or directory
src/ImageBox.h:28:25: error: Fl/Fl_Image.h: No such file or directory
In file included from src/Bone.cpp:31:
src/animataUI.h:10:32: error: Fl/Fl_File_Chooser.h: No such file or
directory
In file included from src/animataUI.h:14,
                 from src/Bone.cpp:31:
src/Playback.h:35:19: error: Fl/Fl.h: No such file or directory
src/Playback.h:36:29: error: Fl/Fl_Gl_Window.h: No such file or directory
In file included from src/Bone.cpp:31:
src/animataUI.h:18:30: error: Fl/Fl_JPEG_Image.h: No such file or directory
src/animataUI.h:19:29: error: Fl/Fl_PNG_Image.h: No such file or directory
In file included from src/Face.h:28,
                 from src/Mesh.h:30,
                 from src/animata.h:45,
                 from src/Bone.cpp:30:
src/Texture.h:73: error: multiple parameters named 'd'
In file included from src/TextureManager.h:29,
                 from src/Selection.h:38,
                 from src/animata.h:47,
                 from src/Bone.cpp:30:
src/ImageBox.h:33: error: expected class-name before '{' token
src/ImageBox.h:40: error: 'PATH_MAX' was not declared in this scope
src/ImageBox.h: In member function 'char* ImageBox::getFilename()':
src/ImageBox.h:52: error: 'filename' was not declared in this scope
In file included from src/Bone.cpp:30:
src/animata.h: At global scope:
src/animata.h:205: error: 'PATH_MAX' was not declared in this scope
src/animata.h: In member function 'const char*
AnimataWindow::getFilename()':
src/animata.h:214: error: 'filename' was not declared in this scope
In file included from src/Bone.cpp:31:
src/animataUI.h: At global scope:
src/animataUI.h:201: error: ISO C++ forbids declaration of
'Fl_File_Chooser' with no type
src/animataUI.h:201: error: expected ';' before '*' token
scons: *** [build/Bone.o] Error 1
scons: building terminated because of errors.

Original issue reported on code.google.com by gislefro...@gmail.com on 25 Nov 2008 at 4:36

GoogleCodeExporter commented 9 years ago
i heard about this problem in ubuntu, but not having a ubuntu box i cannot test 
it.
could you please check your fltk include dirs? i think there is some
lowercase/uppercase character mixup with the include files. probably it's not 
Fl/Fl.h
but FL/fl.h or something in ubuntu.

Original comment by gabor.p...@gmail.com on 25 Nov 2008 at 5:01

GoogleCodeExporter commented 9 years ago
Yes, I noticed the case problem and made a symlink Fl/ --> FL/ but it still 
doen't
work because on my box all files in the FL/ subdir has uppercase H endings.

Does it compile on other Linux distros?

Original comment by gislefro...@gmail.com on 25 Nov 2008 at 5:16

GoogleCodeExporter commented 9 years ago
yes, i tried it in fedora and it compiles fine. i think it has symlinks. so you 
have
FL/Fl.H and FL/Fl_Gl_Window.H?

Original comment by gabor.p...@gmail.com on 25 Nov 2008 at 5:24

GoogleCodeExporter commented 9 years ago
yes, that's correct.

Original comment by gislefro...@gmail.com on 25 Nov 2008 at 5:41

GoogleCodeExporter commented 9 years ago
Just tried compiling on Fedora Core 6 and it works fine. They have actually 
symlinked
all Fl header files with both upper and lowercase H ending.

Original comment by gislefro...@gmail.com on 25 Nov 2008 at 7:09

GoogleCodeExporter commented 9 years ago
Ok, I made the symlinks on my Ubuntu box, and the compile goes a bit further. 
Now it
stops with this:

In file included from src/Face.h:28,
                 from src/Mesh.h:30,
                 from src/animata.h:45,
                 from src/Bone.cpp:30:
src/Texture.h:73: error: multiple parameters named 'd'
In file included from src/TextureManager.h:29,
                 from src/Selection.h:38,
                 from src/animata.h:47,
                 from src/Bone.cpp:30:
src/ImageBox.h:40: error: 'PATH_MAX' was not declared in this scope
src/ImageBox.h: In member function 'char* ImageBox::getFilename()':
src/ImageBox.h:52: error: 'filename' was not declared in this scope
In file included from src/Bone.cpp:30:
src/animata.h: At global scope:
src/animata.h:205: error: 'PATH_MAX' was not declared in this scope
src/animata.h: In member function 'const char* AnimataWindow::getFilename()':
src/animata.h:214: error: 'filename' was not declared in this scope
scons: *** [build/Bone.o] Error 1

Original comment by gislefro...@gmail.com on 25 Nov 2008 at 9:57

GoogleCodeExporter commented 9 years ago
i tried to fix the typo in texture.h. the other problem is that PATH_MAX is not
defined. it should be defined by including limits.h. maybe in your distro it is 
done
elsewhere. try searching for it in /usr/include. maybe something like this can 
help:
grep -r "[[:space:]]PATH_MAX[[:space:]]" /usr/include/ | grep \#define

Original comment by gabor.p...@gmail.com on 26 Nov 2008 at 11:09

GoogleCodeExporter commented 9 years ago
yes, I found it in /usr/include/linux, but cn't find a way to get scons to look 
for
icludes in the right directories. Now it can't even find pthread.h which is in
/usr/include...

Original comment by gislefro...@gmail.com on 27 Nov 2008 at 8:54

GoogleCodeExporter commented 9 years ago
in osx when limits.h is included from /usr/include it includes
/usr/include/machine/limits.h which defines PATH_MAX. probably it is similar in 
ubuntu.

Original comment by gabor.p...@gmail.com on 27 Nov 2008 at 11:31

GoogleCodeExporter commented 9 years ago
the svn version should compile with gcc 4.3 now. please test it.

Original comment by gabor.p...@gmail.com on 29 Nov 2008 at 10:31

GoogleCodeExporter commented 9 years ago

Original comment by gabor.p...@gmail.com on 12 Dec 2008 at 8:35

GoogleCodeExporter commented 9 years ago
works well.

I had to type (on ubuntu intrepid 8.10):
{{{
sudo apt-get install libfltk1.1-dev
export LIBGL_DRIVERS_PATH=/usr/lib/dri/
scons
}}}

There may be more libs (that I installed for past things) find them like this:
{{{
apt-cache search GUESS_LIB_NAME|grep dev
}}}

How do I add sound?

Original comment by david.ko...@gmail.com on 4 Mar 2009 at 11:27