How to build G3D 8.00 beta 1 Source on Ubuntu 9.04

54 views
Skip to first unread message

Bert

unread,
Aug 12, 2009, 4:42:56 PM8/12/09
to G3D Users
Hello everybody.

Thanks for the nice work so far. I am looking forward to the new 8.0
Version of the G3D Engine because of the large enhancements you did
regarding the new ray tracing features.

I am trying to build G3D 8.00 beta 1 on Ubuntu Linux 9.04. I have
everything installed (gcc, python, doxygen and so on) but when trying
to execute buildg3d --install all i get the following error message:

: No such file or directory

When i run buildg3d with: "python buildg3d --install all" i get the
following error message:

iCompile options: []
Traceback (most recent call last):
File "./buildg3d", line 172, in <module>
initOS()
File "./buildg3d", line 110, in initOS
raise Exception('icompile --info returned unparsable data: ' +
info)
: No such file or directoryreturned unparsable data: /usr/bin/env:
python

When i go to the bin directory in the G3D folder and run icompile with
"python icompile" i get:

You have never run iCompile in this directory before.

Current Directory: /home/nexus/Programming/G3D/bin
Contains 1 directory (ice)
Subdirectories contain no C++ files

Are you sure you want to compile the 'bin' project? (Y/N)
Would you like to generate a set of starter files for the 'bin'
project? (Y/N)
Select a project template:
[H]ello World
[G]3D

mkdir build
mkdir source
mkdir doc-files
mkdir data-files
_______________________________________________________________________

Building bind
Computing dependencies
Detected dependency on ../G3D.lib from inclusion of G3D/G3DAll.h by
source/App.cpp
Path ../G3D.lib/../build/linux-i686-g++4.3/lib/ specified in
configuration file does not exist.
Detected dependency on ../GLG3D.lib from inclusion of GLG3D/GLG3D.h by
source/App.cpp
Path ../GLG3D.lib/../build/linux-i686-g++4.3/lib/ specified in
configuration file does not exist.
_______________________________________________________________________

Building libG3Dd.a
Computing dependencies
Detected dependency on ../GLG3D.lib from inclusion of GLG3D/
glheaders.h by source/ImageFormat.cpp
Detected dependency on ../zip.lib from inclusion of zip/zip.h by
source/fileutils.cpp

Compiling
source/Stopwatch.cpp
source/GImage_tga.cpp
source/Intersect.cpp
...

So G3D seems to get build then. At least i get in the G3D/build/linux-
i686-g++4.3/lib the files:
libG3Dd.a libGLG3Dd.a but nothing more (no demos, no
documentation ...).


I would be glad if you could give me any hints on what is going wrong
here and how i could fix this. Thank you very much in advance.

Morgan McGuire

unread,
Aug 12, 2009, 4:47:27 PM8/12/09
to g3d-...@googlegroups.com
It looks like one of the many shell commands that buildg3d is making is failing.  I'm concerned it is because of the way you launched it.  Try putting python in your path (at least temporarily), and then running "./buildg3d lib" by itself.

-m

Prof. Morgan McGuire
Computer Science Department
Williams College
http://cs.williams.edu/~morgan

Ivan Vodopiviz

unread,
Aug 12, 2009, 4:59:27 PM8/12/09
to g3d-...@googlegroups.com
I experienced this some time ago. The problems were a few buildscripts
with Windows line endings; there are a couple of tools you can use to
convert them to Unix style endings.

Cheers,
--
Iván Vodopiviz

Bert

unread,
Aug 14, 2009, 9:40:57 AM8/14/09
to G3D Users
Thank you very much Morgan and Ivan for your fast replies and for your
help (and sorry for my late reply).

Python is already in my path. I launched the buildg3d script that way
only because i wanted to get a hint at which line it fails. Ivan was
right that there are problems with the "buildg3d" and "../bin/
icompile" python scripts. They seem to be edited in windows and after
i converted the line endings of both files with the command "dos2unix"
to unix line endings everything worked.

Now i can build the targets: lib, jar and doc. But when i try to build
the targets test or tools, i get the following error message (linker
error):

Linking
../G3D.lib/../build/linux-i686-g++4.3/lib//libGLG3Dd.a(VideoOutput.o):
In function `G3D::VideoOutput::convertFrame(unsigned char*,
G3D::ImageFormat const*, bool)':
/home/nexus/Programming/G3D/GLG3D.lib/source/VideoOutput.cpp:444:
undefined reference to `img_convert'


Is it because G3D 8.0 is still beta or am i missing some libraries ?



Cheers,

Bert

Morgan McGuire

unread,
Aug 14, 2009, 11:36:32 AM8/14/09
to g3d-...@googlegroups.com
That shouldn't be happening.  We're on the verge of releasing G3D 8.00 b2; that one focuses on cleaning up the Unix build.  You can grab it directly from CVS and avoid the line ending issues:

cvs -z3 -d:pserver:anon...@g3d-cpp.cvs.sf.net:/cvsroot/g3d-cpp co -P G3D

-m

corey taylor

unread,
Aug 14, 2009, 8:52:15 PM8/14/09
to g3d-...@googlegroups.com

The img_convert link error sounds like you have a version of ffmpeg in your paths that conflicts with the version included with G3D.  I suspect you have a package installed.

corey

--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subs...

Reply all
Reply to author
Forward
0 new messages