Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiling Wings3D in OSX
06-12-2016, 01:50 PM (This post was last modified: 06-12-2016 01:54 PM by alelepd.)
Post: #1
Compiling Wings3D in OSX
Hello there!

I am very new to Wings3D,

I am a User Interface designer and I want to help with Wings 3D UI. I am not a developer though, so I found very hard to compile source on OSX.

My goal is to create a redesigned version of Wings 3D, including new brand logo, icons and a new theme.

This is a personal project and challenge for me as a designer and it requires to use a modeling app (wings 3d) that I am not used to work with so I can have the perception of a new user which is learning from the very first time to use the app and therefore create a better path to improve the user interface.

I will need to set up a development environment on my mac and be able to see the progress I made on the design but so far the compiling process always fail.

I already installed erlang and rebar with homebrew. I also set up the ERB_LIBS path to home/me/src and there is the cl folder which I already compiled with rebar compile. I also put the wings-2.0.4 folder in home/me/src, but I think I am missing some steps in the way. This is the error I got when trying "make macosx" or just "make"

Code:
make macosx
(cd intl_tools; /Applications/Xcode.app/Contents/Developer/usr/bin/make)
/Applications/Xcode.app/Contents/Developer/usr/bin/make TYPE=opt common
make[2]: Nothing to be done for `common'.
(cd src; /Applications/Xcode.app/Contents/Developer/usr/bin/make)
/Applications/Xcode.app/Contents/Developer/usr/bin/make TYPE=opt common
erlc -Werror -I ../e3d +debug_info '-Dwings_version="2.0.4"' -pa ../intl_tools  -o../ebin wings_cl.erl
wings_cl.erl:15: can't find include lib "cl/include/cl.hrl"
wings_cl.erl:61: record cl undefined
wings_cl.erl:62: record cl undefined
wings_cl.erl:63: record cl undefined
wings_cl.erl:100: record cl undefined
wings_cl.erl:101: record cl undefined
wings_cl.erl:104: record cl undefined
wings_cl.erl:115: record cl undefined
wings_cl.erl:239: record cl_image_format undefined
make[2]: *** [../ebin/wings_cl.beam] Error 1
make[1]: *** [opt] Error 2
make: *** [all] Error 2


I noticed that here in the forum are two really good guidelines to set up a development environment in Linux and Windows, I wonder if there's anything similar to set up the environment in mac OSX.
Reply
06-12-2016, 05:07 PM
Post: #2
RE: Compiling Wings3D in OSX
Hmm, it seems you have done something wrong with ERL_LIBS
Basically(*) the compiler should be able to find the include file with the absolute path:
$ERL_LIBS/cl/include/cl.hrl

* ERL_LIBS might contain several directories which the compiler will try and the application
directory name may contain version number, i.e. cl-1.12/include/cl.hrl which the compiler will expand.

If you want to help out with the UI I have remade most of it on my wx-backend branch on github
so I don't want any patches on the old UI just now, I expect/hope to release the new wx-backend
before summer.

In the new branch I have changed (or will change) the icons to be PNG with alpha instead BMP with hard coded background colors.
Reply
06-13-2016, 01:16 AM (This post was last modified: 06-13-2016 01:19 AM by alelepd.)
Post: #3
RE: Compiling Wings3D in OSX
Indeed, I'll check what's going on with the ERL_LIBS path, right now it seems it is fine though.

About the UI, don't worry, I am just working on a concept, I'll probably upload screenshots in another thread to receive feedback. As I said before, this is more a design experiment for me.


Thank so much! I check what you said! If someone else have a clue of why is this happening it would be great Biggrin
Reply
06-13-2016, 06:46 AM (This post was last modified: 06-13-2016 06:47 AM by alelepd.)
Post: #4
RE: Compiling Wings3D in OSX
I finally solved the issue. The problem was that I miss to execute the "source" command after editing the bash profile. Before that the value of the variable was empty.

I already sucesfully compiled the .dmg file Biggrin

¬°¬°Thanks!!
Reply


Forum Jump:


User(s) browsing this thread: 1 Guest(s)