Help me compile procedural terrain generators!

Help me compile procedural terrain generators!

Postby qubodup » 25 Jan 2012, 01:32

I tried out some heightmap generators to make a map for trigger rally. I failed at all but one. My test system: arch linux 32bit, gcc (GCC) 4.6.2 20111223 (prerelease)

Perhaps looking at these errors will give you an idea what I did wrong?

hme
http://hme.sourceforge.net/ v1.3.1

{l Code}: {l Select All Code}
$ gcc -o terrained -g *.c -lSDL -lpthread
/usr/bin/ld: /tmp/ccqwhsFF.o: undefined reference to symbol 'sqrt@@GLIBC_2.0'
/usr/bin/ld: note: 'sqrt@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try adding it to the linker command line
/lib/libm.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status


picogen
http://picogen.org git

http://picogen.org/forum/viewtopic.php? ... 1098#p1098


terraineer
http://terraineer.sourceforge.net/ v0.3

I install the dependencies, create a /usr/bin/ncc that contains 'mono /opt/nemerle/ncc.exe $@'

I get this msg a few times:

{l Code}: {l Select All Code}
____________________________________________________________
Package gtk-sharp was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk-sharp.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk-sharp' found

but it compiles.

mono terraineer.exe throws an error of course

{l Code}: {l Select All Code}
$ mono terraineer.exe

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Nemerle, Version=1.0.0.9832, Culture=neutral, PublicKeyToken=e080a9c724e2bfcd' or one of its dependencies.
File name: 'Nemerle, Version=1.0.0.9832, Culture=neutral, PublicKeyToken=e080a9c724e2bfcd'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'Nemerle, Version=1.0.0.9832, Culture=neutral, PublicKeyToken=e080a9c724e2bfcd' or one of its dependencies.
File name: 'Nemerle, Version=1.0.0.9832, Culture=neutral, PublicKeyToken=e080a9c724e2bfcd'


I don't know how to link? gtk-sharp...


geomorph
http://geomorph.sourceforge.net v0.6

works!
User avatar
qubodup
Global Moderator
 
Posts: 1671
Joined: 08 Nov 2009, 22:52
Location: Berlin, Germany

Re: Help me compile procedural terrain generators!

Postby andrewj » 25 Jan 2012, 01:46

For terrained you need '-lm' (lowercase L, no quotes) on the gcc command line, which links with the standard math library.

Dunno about the rest.
User avatar
andrewj
 
Posts: 194
Joined: 15 Dec 2009, 16:32
Location: Tasmania

Re: Help me compile procedural terrain generators!

Postby richardjames13 » 25 Jan 2012, 02:22

andrewj {l Wrote}:For terrained you need '-lm' (lowercase L, no quotes) on the gcc command line, which links with the standard math library.


Don't you mean hme not terrained?
richardjames13
 
Posts: 27
Joined: 03 Jan 2011, 05:16

Re: Help me compile procedural terrain generators!

Postby qubodup » 25 Jan 2012, 17:03

right: hme compiles into a binary called terrained. And the hint allowed me to compile successfully!
User avatar
qubodup
Global Moderator
 
Posts: 1671
Joined: 08 Nov 2009, 22:52
Location: Berlin, Germany

Who is online

Users browsing this forum: No registered users and 1 guest