Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Discussing about "Building a development environment for Windows"
04-01-2015, 06:42 AM
Post: #11
RE: Building a development environment for Windows [updated 06/19/14]
'which EXECUTEABLE' is unix command looking up where if anywhere in the path the exectuable is first.

for example:
~/src/wings (dgud/wx-backend):> which ls
/bin/ls.exe
~/src/wings (dgud/wx-backend):>

But as Micheus just said you must have it in your PATH variable to find it,
which btw I don't :-)
Reply
04-01-2015, 06:53 AM
Post: #12
RE: Building a development environment for Windows [updated 06/19/14]
A DLL by itsself is not a proper executable. Not at all. Dan ... you have ever used 'which' to locate a DLL ?
Reply
04-01-2015, 07:09 AM
Post: #13
RE: Building a development environment for Windows [updated 06/19/14]
No it's not but it is something required by windows to be in PATH.
So it seems to be a mingw/cygwin hack, I don't think it is possible to find .so on unix.

Yes I have, Micheus instructions comes from me or Björn...probably an old readme or something.

~/src/wings (dgud/wx-backend):$> which msys-1.0.dll
/bin/msys-1.0.dll
Reply
04-01-2015, 09:28 AM
Post: #14
RE: Building a development environment for Windows [updated 06/19/14]
Interesting ... I went grepping on which to see if I could find this usage which.

FYI ... a DLL does not need to be in path. My personal preference from days gone by
was to use application directory or even explicit load. Using the path can be taking a chance due to
competition for path order.
Reply
04-01-2015, 12:00 PM
Post: #15
RE: Discussing about "Building a development environment for Windows"
I had a small time for that...
...let's start again.

(06-20-2014 11:25 PM)ggaliens Wrote:  I think I see something odd in #3. With SDL_DIR assignment ?
that #3 is related to building the ESDL pack. This line:
$ SDL_DIR=/mingw rebar compile
which now a days I'm using:
$ SDL_DIR=/usr/local rebar compile


Take a look on Readme file in the ESDL repository. You will find:
Quote:...
You need rebar, see: github.com/rebar/rebar
Build with:
rebar compile
On windows:
===========
SDL_DIR=/opt/local rebar compile (requires Microsoft's SDK)
or
CC=gcc SDL_DIR=/opt/local rebar compile (requires mingw)
also copy SDL.dll to esdl/priv dir or put SDL.dll somewhere in your path.
...

So, if it was put "somewhere in you path" the which command that is able to search into all folders/path/directories included in the $PATH environment variable will find executables as well as .DLL too (who knows why?)

As the "which" command is ran in the MSys console, the $PATH environment variable is not that one own by Windows, but the one provide by MSys plus the folders we append in the bash_profile script.

My Wings3D Collection at G+
Reply
04-01-2015, 12:45 PM
Post: #16
RE: Discussing about "Building a development environment for Windows"
Copy it to esdl/priv.
Reply
04-01-2015, 12:56 PM
Post: #17
RE: Discussing about "Building a development environment for Windows"
Lets say I had two options and I decided to use that one. Wink

But, I can change it in the tutorial.
Anyway, all repositories have a readme file full of information - and sometimes options. It's a good habit read them.

My Wings3D Collection at G+
Reply
04-10-2016, 09:37 AM
Post: #18
RE: Discussing about "Building a development environment for Windows"
I know its a hassle Micheus but is now a good time to update the howto dev post to show how to use wxwidgets instead of SDL ?
or can you point me in right direction...
Reply
04-10-2016, 12:49 PM (This post was last modified: 04-10-2016 12:49 PM by micheus.)
Post: #19
RE: Discussing about "Building a development environment for Windows"
Yeah, an update would be an option.
Until we get it, you can start checking the file named BUILD.??? In the repository root. It's the official guide. Smile

My Wings3D Collection at G+
Reply
04-10-2016, 08:28 PM
Post: #20
RE: Discussing about "Building a development environment for Windows"
You can just scratch the SDL part, wxWidgets is included in the erlang install on windows.
Reply


Forum Jump:


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