SRL Archive - S.M.A.R.T. Questions and Answers.

How do i compile smart ? (I know this has been asked befor but without solution.)


tom99

2010-10-21 08:12:11

I tryed to compile smart with wingw and it dont work.

here is the results http://img145.imageshack.us/f/smartcompilerresult.png/

I dont know if i do anything wrong or not. i used Cd to root dir and make, even with clean befor make still… nothing
I have not compiled a c++ source with makefile earlier.
woud be nice if somone could tell me what i do wrong. :confused:

moparisthebest

2010-10-21 10:07:36

It looks like you ran the makefile, which you can't do. You must simply type 'make' and then your make program will use the makefile to compile smart. I use GNU Make, I don't know what options there are for windows.

tom99

2010-10-21 12:46:12

I tryed make but i only got somekind of description in the compiler window. nothing really happened.

moparisthebest

2010-10-23 21:01:42

From: tom99
I tryed make but i only got somekind of description in the compiler window. nothing really happened.


Maybe reading that description, or posting it here, would help. :)

tom99

2010-10-25 08:14:03

Syntax for SMART makefile:\n For Windows distributions: make windows\n For Linux distributions: make linux\n For new (broken) SCAR distributions: make scar\n For All distributions: make everything\n To clean build files: make clean



This is what i get after i do Cd to repositary directory and do Make.
So whats wrong why wont it compile the source ?

Wizzup?

2010-10-25 08:33:30

Type make windows…?

nielsie95

2010-10-25 08:33:47

Try "make windows"?

Edit: :ninja::crying:

tom99

2010-10-25 09:51:51

I got this error message hwen attempting to do make windows.


$ make windows
compiling main.cpp
make : i586-mingw32msvc-g++: command not found
make: *** {build/windows/main.i] error 127

:S

moparisthebest

2010-10-25 16:26:59

From: tom99
I got this error message hwen attempting to do make windows.


$ make windows
compiling main.cpp
make : i586-mingw32msvc-g++: command not found
make: *** {build/windows/main.i] error 127

:S


So you don't have that program, 'i586-mingw32msvc-g++', get it or another compiler for windows and change the name in the make file.

tom99

2010-10-26 13:55:09

Well where do i get that program ? you sure its not a plugin to mingw ?

BenLand100

2010-10-26 17:01:53

it might just be called g++ if you're in windows, regardless you need to change the name in the makefile to whatever it is for your system

tom99

2010-10-27 04:33:39

Do you need cygwin if you run windows ?


For some reason cygwin dont work for me it wont any commands not make, nothing why is that ? sorry for all my noob questions.

Correct, i manage to get one command work in cygwin and that was dir… now how do i compile this makefile ? somone help me please.



Do i need to define a path in default vars for windows ?

moparisthebest

2010-10-27 12:26:20

You shouldn't need cygwin to compile this in windows, as long as you can find a make that runs without it.

tom99

2010-10-27 12:32:21

But i did read somewhere it was nesesary to compile makefile, while on some modern linux distributions it was inbuildt.
But what else than cygwin can you use then for windows ?

Daniel

2010-10-28 01:54:16

Question: Why are you compiling it in the first place when there is already a pre-compiled binary version available?

tom99

2010-10-28 12:25:00

Because its basic c++ knowledge.

I can compile a c++ source but its just this makefile witch make me confused.

Wizzup?

2010-10-29 14:05:12

You should really get more comfortable with the GNU build tools. Drop all the IDE's. This thread is going no where until you start reading and searching with google.