Wings 3D Development Forum

Full Version: Wings3D & Erlang R15
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Wings3D is important part of my 3D pipeline so I'd like to integrate it with my system. I'd like to install Wings3D on my Funtoo/Gentoo based system, but I'm facing problem connected with compatibility. My setup is:

erlang-15.2.3.1
libsdl-1.2.14-r6
esdl-1.0.1
Wings3D-1.4.1 sources

When I run Wings compiled by Erlang R15B03 I get:

http://bpaste.net/show/RdwJa1L2sJcNN4jissAI/

AFAIK Wings3D should be compiled using Erlang R14, but unfortunately this release of Erlang isn't in Gentoo portage tree. Available versions are: R15 and R16, but compiling with R16 fails because parameterized modules are not supported anymore.

I'd like to ask is there any way to successfully compile and run Wings3D using Erlang R15 or R16.

Michał
Sure get the sources from github instead.

mkdir src
cd src
git clone rebar git://github.com/rebar/rebar.git
git clone esdl git://github.com/dgud/esdl.git
git clone wings git://github.com/dgud/wings.git
git clone cl git@github.com:tonyrog/cl.git

(cd rebar && ./bootstrap)
export ERL_LIBS=/home/$USER/src
export ESDL_LIB=/home/$USER/src/esdl ## Still needed??
(cd esdl && rebar compile)
(cd cl && rebar compile)
(cd wings && make)

Sigh you will need to add 'rebar' to you path as well.
You may consider to update your SDL to SLD 1.2.15 - link
Thanks for response

Compilation process succeeded, but final effect is the same.

Code:
$ erl -pa /usr/lib64/erlang/lib/esdl-1.0.1/ebin -pa /home/michal/src/wings/ebin -run wings_start start_halt

Erlang R15B03 (erts-5.9.3.1) [source] [64-bit] [async-threads:0]

wings-1.5.pre1.82.gda41
Reading preferences from: /home/michal/.wings3d/preferences.txt
Eshell V5.9.3.1  (abort with ^G)
1> Driver failed: Driver compiled with incorrect version of erl_driver.h

=ERROR REPORT==== 30-May-2013::19:17:33 ===
Error in process <0.33.0> with exit value: {badarg,[{erlang,port_control,[esdl_port,21,<<4 bytes>>],[]},{sdl,init,1,[{file,"sdl.erl"},{line,90}]},{wings_init,init,0,[{file,"wings_init.erl"},{line,28}]},{wings,init,1,[{file,"wings.erl"},{line,104}]}]}

sh: line 0: exec: sdl_driver: not found


Fatal internal error - log written to /home/michal/wings_crash.dump


I decided to use Linux build but if somebody has an idea how to fix that I'll check it.
You will need a new esdl built from src (i.e. not esdl-1.0.1).

If you did what I wrote above, and have ERL_LIBS set as described, start wings with
> erl -run wings_start start_halt
or just
> erl -run wings
Hey that works! Thank you very much :-) What's more I don't need to use workaround for jumpy camera moves anymore. Thanks one more time :-)

abigailronald

Hi,

Wings3D is important part of my 3D pipeline so I'd like to integrate it with my system. I'd like to install Wings3D on my Funtoo/Gentoo based system, but I'm facing problem connected with compatibility. My setup is:

erlang-15.2.3.1
libsdl-1.2.14-r6
esdl-1.0.1
Wings3D-1.4.1 sources

When I run Wings compiled by Erlang R15B03 I get:

http://bpaste.net/show/RdwJa1L2sJcNN4jissAI/

AFAIK Wings3D should be compiled using Erlang R14, but unfortunately this release of Erlang isn't in Gentoo portage tree. Available versions are: R15 and R16, but compiling with R16 fails because parameterized modules are not supported anymore.

I'd like to ask is there any way to successfully compile and run Wings3D using Erlang R15 or R16.

Michał
i faced this issue too from awhile but didn't remember how i solved it
You will need to update esdl, to 1.3.1.. from src or easier from my github account.