Allegro.cc - Online Community

Allegro.cc Forums » Off-Topic Ordeals » damn these make files

This thread is locked; no one can reply to it. rss feed Print
 1   2   3   4 
damn these make files
IronBob
Member #3,248
February 2003
avatar

ok ive been trying to install some extension libs for allegro lately and so far ive only gotten one to work. that was allegroGL and now im going to try and add more. ive been working on libnet, hawknl, and freetype. the closest one ive gotten to being finished is libnet. and only one thing is in the way of that.

questions:

libnet:
1) where can i download the unix tools so that i can use cp in the make file. or how would i edit the make file so it copies the file another way. right now its got (CP_F) in there and i dont know what to change it to.

freetype:
1) whenever i try to use make it always spits out:

make: Nothing to be done for `all'.

even with make setup. i dont know what parameters to do for it to install on dev-c++.

hawknl:
probably not going to use this but anways

1) gives me this:

err.c: In function `nlGetError':
err.c:117: warning: control reaches end of non-void function
gcc -Wall -I../include -funroll-all-loops -ffast-math -fomit-frame-pointer -O2 -
thread.o thread.c
thread.c:62: pthread.h: No such file or directory
thread.c:63: sched.h: No such file or directory
make: *** [thread.o] Error 1

ive tried putting the other headers in different directories but nothing seems to work, gives me this:

c:\devcpp\bin\..\lib\gcc-lib\mingw32\2.95.3-6\..\..\..\..\mingw32\bin\ld.exe: ca
C
make: *** [all] Error 1

any suggestions on how to get these working (preferably libnet and freetype) would be just fine and dandy.

X-G
Member #856
December 2000
avatar

Errr. For hawknl, GO INSTALL PTHREADS FIRST! :P

--
Since 2008-Jun-18, democracy in Sweden is dead. | 悪霊退散!悪霊退散!怨霊、物の怪、困った時は ドーマン!セーマン!ドーマン!セーマン! 直ぐに呼びましょう陰陽師レッツゴー!

IronBob
Member #3,248
February 2003
avatar

1) is pthreads in the hawknl download
2) if so how do i install it
3) if not where do i download it

X-G
Member #856
December 2000
avatar

1) No
2) -
3) Google

--
Since 2008-Jun-18, democracy in Sweden is dead. | 悪霊退散!悪霊退散!怨霊、物の怪、困った時は ドーマン!セーマン!ドーマン!セーマン! 直ぐに呼びましょう陰陽師レッツゴー!

IronBob
Member #3,248
February 2003
avatar

ive already tryed google. all i got was crap.

MiquelFire
Member #3,110
January 2003
avatar

---
Febreze (and other air fresheners actually) is just below perfumes/colognes, and that's just below dead skunks in terms of smells that offend my nose.
MiquelFire.red
If anyone is of the opinion that there is no systemic racism in America, they're either blind, stupid, or racist too. ~Edgar Reynaldo

X-G
Member #856
December 2000
avatar

What do you mean? IT'S THE SECOND GOD DAMN HIT ON A SEARCH FOR "pthreads"! >_<

--
Since 2008-Jun-18, democracy in Sweden is dead. | 悪霊退散!悪霊退散!怨霊、物の怪、困った時は ドーマン!セーマン!ドーマン!セーマン! 直ぐに呼びましょう陰陽師レッツゴー!

IronBob
Member #3,248
February 2003
avatar

ok i got it. the next problem is figuring out how to install this monster.

X-G
Member #856
December 2000
avatar

make, make install? Or maybe RTFM? :P

--
Since 2008-Jun-18, democracy in Sweden is dead. | 悪霊退散!悪霊退散!怨霊、物の怪、困った時は ドーマン!セーマン!ドーマン!セーマン! 直ぐに呼びましょう陰陽師レッツゴー!

IronBob
Member #3,248
February 2003
avatar

ya i know im doing make its so huge i just dont know exactly what to do for it to work.

[edit]ok, now i need those unix tools for cp AGAIN. all i can find is some stupid thing with a gay thinstall thing that does total crap.[/edit]

CGamesPlay
Member #2,559
July 2002
avatar

This should prolly be in programming questions, but since its not:

the Web Support said:

Tell your daddy to get an iMac. It's a computer for idi... for mommies and daddies.

No offense or nothin'... You're just having a lot of trouble with stuff I didn't find troubling...

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

Korval
Member #1,538
September 2001
avatar

Quote:

Tell your daddy to get an iMac. It's a computer for idi... for mommies and daddies.

Having to download Unix tools onto a PC is the most rediculous thing I've ever heard. Makefiles are a flaming pile of crap. That's the fundamental problem with the "Open Source Movement", and it will be the fundamental reason why it fails to really catch on with the home user.

The common way OSM libraries are distributed:

Here's a library. But, wait, in order to use it, you have to compile it, because God forbid that I ever give you something that is immediately useable out of the box. After all, you'll probably want to wade through my thousands of lines of uncommented, crappily written, code to change things. And, of course, you're never going to use the unmodified library, so there's no need to give out a compiled binary.

In order to compile it, you have to download these 10 other libraries. But, of course, I'm not going to do anything like give them to you, add the library headers to my distribution, or even go so far as to provide a friggin' link to them.

Oh, and heaven forbid that you not be using *NIX as your OS of choice. In that case, you're going to have to download about 100MB worth of tools that, considering that you're a non-*NIX user, have never, ever needed before. And, likely, will never ever need again.

But, here's the real kicker. If you happen to be using a real development environment like VC++, you're on your own, as the libraries that the makefile builds can't be used by your compiler. Oh, sure, I probably have VC++ myself, and I probably used it in part to develop this library, but I can't possibly be bothered with doing so much as giving out a simple .dsp file (which has the equivalent weight of a makefile, but in a nicer package). So, instead, you're going to have to create a project yourself, add all the relevant files to it (Oh, and, just to be cute, I'm not going to tell you what is and is not relevant), and set up the project with whatever #defines and switches that you can do on the command line with gcc that you have to set up in project settings. Of course, I'm not going to help you do this in any way, shape, or form. So, I hope you know your dev environment inside and out, as well as how to read a makefile (since that's where the relevant info is anyway).

[End spiel]

Guess what. Not all of us are living in the 1980s!! Some of us have decided to move into an era where we don't need makefiles. There are better ways to build projects nowadays.

This comes after a weekend where I spent an entire day trying to get LuaBind to compile. And, once I did, I came to the realization that I can't use a .a file, and now I have to build a VC++ project for it.

And here you come with your rediculous notion that makefiles, and the associated crap that comes with them, are trivial.

The only reason makefiles haven't been abandoned for something more reasonable is because of traditions. The people in the best position to think of something better are the same people who swear by this outdated crap.

psundlin
Member #175
April 2000

I'm dumb!
Now that was funny! ;D

[edit] Sometimes makefile can be a royal pain, but most of the time it works perfectly for me. And it is not so difficult to create one. Lots of stuff in google.

23yrold3yrold
Member #1,134
March 2001
avatar

No, it was accurate. I hate makefiles too, for exactly the same reasons.

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Thomas Fjellstrom
Member #476
June 2000
avatar

;D. I LOVE makefiles. They allow me to build my projects on multiple OS's, ARCHs, etc..

Once I get into auto conf, I won't even have to deal with Makefiles, or making sure pre-reqs are there.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Matthew Leverton
Supreme Loser
January 1999
avatar

I think most people that dislike makefile really do because they don't understand them. What if MSVC natively supported "unix" style Makefiles? Then you would love them.

Korval's mini rant is basically just against projects that are hard to compile for his MSVC platform. I don't think he mentioned one reason why makefiles are bad. So to say you hate makefiles for the same reason - well that doesn't make much sense.

Sure, not everyone uses unix/gcc style coding with makefiles. But on the same hand not everyone uses MSVC either. What good would Korvals MSVC libraries do for a Java developer? Or a MacOS X developer? Or a UNIX developer? All of which, I believe are still being sold and used in this modern year of 2003.

23yrold3yrold
Member #1,134
March 2001
avatar

I agree with Korval's reasons why makefiles suck :P I agree they have good points and Korval exaggerated a bit but look at some of the trouble they cause :P See IronBob's post, or any thread in Installation about cryptic error messages. I only put up with them because I have to.

I agree with disliking Unix tools for PC's too. I hate using the command line :P If I had the inclination I'd make proper Windows programs (with GUI's!!) out of them ...

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Thomas Fjellstrom
Member #476
June 2000
avatar

Really? Cool. I want you to make a gui out of the following command. though, you have to make that GUI just as flexible as that command is.. ie: the whole thing is editable.

ls -Rf . | grep text - | perl -e 'for ( <STDIN> ) { chomp; if(/(.*):$/) { $d = $1; } else { print "$d/$_\n";} }'

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

MiquelFire
Member #3,110
January 2003
avatar

Trying to scare people away from the command line there?

---
Febreze (and other air fresheners actually) is just below perfumes/colognes, and that's just below dead skunks in terms of smells that offend my nose.
MiquelFire.red
If anyone is of the opinion that there is no systemic racism in America, they're either blind, stupid, or racist too. ~Edgar Reynaldo

Thomas Fjellstrom
Member #476
June 2000
avatar

Nope. I WANT 23 to make a GUI that can do something like that. So I don't have to type out all that...

I WANT a gui that is that powerful and flexible.

edit: That was a simple example.. Some "find" tools will do something like that.. But I mean in the general sense of the command, the idea that you can tie various programs together to do a job, see instead of printing the files, I could have added them to a tar archive, emailed them with "sendmail", made a html index of all of them, etc...

edit2: for you 'Understandable == Simple' no?

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

23yrold3yrold
Member #1,134
March 2001
avatar

I'll shoot for understandable, thanks ...

Quote:

edit2: for you 'Understandable == Simple' no?

In a way. I don't want to have to spend a day reading a manual to figure out how to get a program to download a file off the internet. Friggin' wgets >:( I still only understand a little about makefiles. Heck, I don't even fully understand my own!

I see nothing wrong with setting a few parameters in a dialog box and hitting "Go". Worst comes to worst, you can have a text box for your fanciness up there (like Dev-C++ can do with compiler flags).

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Thomas Fjellstrom
Member #476
June 2000
avatar

If I can understand it Im sure you can ::) Its not hard, Its not confusing... I mean I only tied 'ls', 'grep', and 'perl' together, utilizing 2 different script languages, them being Perl and Bash Shell, nothing too overly complex there.

I mean really, I can't handle having a life, or a job, or my college classes, letalone more than one of those at once, so I'm absolutely sure you can understand at least the concepts, and even make a kick ass gui that can do some thing like that.

edit:

Quote:

Friggin' wgets

:o :o :o

how hard is wget http://blah.com/myfile.ext??

edit2:

Quote:

Worst comes to worst, you can have a text box for your fanciness up there

Which totaly defeats the gui... Might have just as well done the command from a console/terminal.

edit3: If you can understand as much about C++ as you seem to, makefiles, wget and whatever should be an absolute cinch for you. Maybe you don't try because you "think" its too hard?

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

23yrold3yrold
Member #1,134
March 2001
avatar

Quote:

I mean I only tied 'ls', 'grep', and 'perl' together, utilizing 2 different script languages, them being Perl and Bash Shell, nothing too overly complex there.

Oh? Is that all? 0_o

Quote:

how hard is wget http://blah.com/myfile.ext??

Oh yeah, write a simple example. Now go look up that thread where you all told me I could use it to get that Spirited Away trailer and three hours later I had bupkus. EDIT: I think I had to download 2 different zip files and read a bunch of docs and wtf ... I just want a damn file off the Internet!!!! ;D Wasted evening ...

Quote:

Which totaly defeats the gui... Might have just as well done the command from a console/terminal.

No, for the simple stuff just push some buttons and if you need to do some of the fancy text stuff you can do that too. Again, like how Dev-C++ lets you add compiler flags.

I've tried to learn how my makefile works and it pisses me off. I'll just make the pretty games and let you guys worry about it. I mean, I got a choice; I can spend a day or two reading and learning about some system of compiling that apparently requires its own language, or I can hit F7. I'm here to make games, not become a Unix guru :P

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Thomas Fjellstrom
Member #476
June 2000
avatar

Quote:

I could use it to get that Spirited Away trailer and three hours later I had bupkus.

First you have to realize that QT files are wrapped up... First you download that first file, then you open it up in a text editor, then you grab the url in that file that looks like It'd be what youre lookign for and w0w, you've got it. I did it that way.

Quote:

I've tried to learn how my makefile works and it pisses me off.

I was right. You didn't try.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

23yrold3yrold
Member #1,134
March 2001
avatar

Quote:

First you have to realize that QT files are wrapped up... First you download that first file, then you open it up in a text editor, then you grab the url in that file that looks like It'd be what youre looking for and w0w, you've got it. I did it that way.

I tried it. I couldn't even download the first file, and I typed exactly what you guys told me to.

Quote:

I was right. You didn't try.

I did try. I read the official docs a few times over; I couldn't get anything out of it. I need a beginners tutorial (do Unix users understand "beginners"?) I had no trouble learning OpenGL. I had no trouble learning CSS. I had no trouble learning HTML ... but those stupid makefiles ...

I won't try now, since I don't think it's worth the headache. If that changes in the future, I'll give it another go. In the meantime, I have an actual project and a bunch of other stuff to learn.

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

 1   2   3   4 


Go to: