same. ive got 16mb cable and use it for linux
mmm every single debian install cd (all 12 or so) in around an hour and a bit
WOW. Thats fast!:eek:
same. ive got 16mb cable and use it for linux
mmm every single debian install cd (all 12 or so) in around an hour and a bit
WOW. Thats fast!:eek:
I like linux because its open source and very fast. As a non conformist, windows and macs have a very big brother feel to them and seem to be against choice. I am outraged at microsoft for included drm in vista and I consider it wrong. Genuine Advantage is also morally and empiraclly wrong. Linux supports choice and freedom while microsoft and macs support industrial control, and non open source software. (GNU is the only system and linux one of its kernels)
Lol....I thought religious people would be more serious then that.
A position on life that I think most atheists would take would be to not beleive anything without proof. Therefore the 30 second universe theory is false. I could make up the same argument with the piece of pizza beside me that gives me super powers.
I get into this religious debate with many people and most of them say, at some point in the conversation, "can you prove that god does'nt exist?" Of course the answers no, I absolutely cannot prove that god does'nt exists. But since I do not believe in anything without proof, god obviously does not exist. Then usaully comes the retort that god/jesus has done miracles in the past. Can miracles exist? The answer of course, is no. If "god" showed me some miracles I would believe, but alas that hasn't happened ;).
Even though I am an atheist, god, in some sense, exists. Is the imaginary different from the real? Not if people treat the two the same. God and religion have shaped reality, history, and all people from all walks of life.
Even though god does'nt exist physically, he sure has killed alot of people. (which bears testimony of his strength.)
But many people will be disappointed to hear that eventually religion will die as will god. Look at the statistics, every year the number of atheist increases (and not propertional to the population growth).
yeah, ice rocks! a transparent terminal shot was to good to miss...
heres mine running debian etch:
I would download linux distros 24/7!:)
THIS is why I am mad at debian:mad: It wont let me program! Allegro did not work on ubuntu and barely works on debian (it lags soooo...much), SDL is broken, ClanLib doesn't compile (another graphics library), and everything else is broken! Well whatever..thanks for your help. (NOTE: and debian is supposdly a "reliable distro", well I suppose since im taking from testing...;) )
Im not sure I understand. All the SDL stuff is in /usr/include/SDL/ . So I would use SDL/foo as my includes, correct?
ok I located the SDL stuff, its in /usr/include/SDL/*.
So it should be in the specified directory. SDL_ttf.h
is in there..I wonder why its acting up..
Are you sure you have the SDL TTF runtime libraries installed properly?
Apt-get says that I have the following packages installed that relate to ttf:
libfreetype6, libsdl-ttf2.0-0, libsdl-ttf2.0-dev, libttf2, and libttf-dev
The strange thing is I have compiled The Battle for Wesnoth, Sauerbraten, and Action Cubers fine, all of which use ttf fonts. So is it the code? (sigh) My debian install seems rife with problems...;)
I am using debian linux and I cannot seem to get sdl_ttf working. It compiles fine but the program quits due to error checking in the code. It returns false at the ttf_init() part. Do not know if this makes a difference but I got sdl and ttf via apt.
Heres my compilation command :
g++ lesson07.cpp -o test -lSDL -lSDL_image -lSDL_ttf -lfreetype
heres my code (actually its a tutorials code. I do not claim that I made it or whatever)
/*This source code copyrighted by Lazy Foo' Productions (2004-2007) and may not be redestributed without written permission.*/
//The headers
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include "SDL/SDL_ttf.h"
#include <string>
//Screen attributes
const int SCREEN_WIDTH = 640;
const int SCREEN_HEIGHT = 480;
const int SCREEN_BPP = 32;
//The surfaces
SDL_Surface *background = NULL;
SDL_Surface *message = NULL;
SDL_Surface *screen = NULL;
//The event structure
SDL_Event event;
//The font that's going to be used
TTF_Font *font = NULL;
//The color of the font
SDL_Color textColor = { 255, 255, 255 };
SDL_Surface *load_image( std::string filename )
{
//The image that's loaded
SDL_Surface* loadedImage = NULL;
//The optimized surface that will be used
SDL_Surface* optimizedImage = NULL;
//Load the image
loadedImage = IMG_Load( filename.c_str() );
//If the image loaded
if( loadedImage != NULL )
{
//Create an optimized surface
optimizedImage = SDL_DisplayFormat( loadedImage );
//Free the old surface
SDL_FreeSurface( loadedImage );
//If the surface was optimized
if( optimizedImage != NULL )
{
//Color key surface
SDL_SetColorKey( optimizedImage, SDL_RLEACCEL | SDL_SRCCOLORKEY, SDL_MapRGB( …
I have been reading some online that portage does'nt get rid of packages that it is not using while apt does. Is this true? I have tested this out on my debian system but it seems to keep the packages to. Anyway to change this? I guess I have two questions...
search gp2x on google, its the best. Far, far,. far better then a ipod, ds, pda, psp, cell phone, or whatever.
I used to play runescape. Seriously if you are looking for a good online mmorpg thats free play achaea its the most indepth game I have ever played in my life. it may be text based but it is still awesome. Note: roleplaying is a requirement, thats what makes it so good.
The tutorial tells you how to make your buttons recongizable in X. All my buttons are recongized. I was wondering how I could make a script or edit the xorg.conf file so when i clicked a particular button a specified executable would run. At the end of the tutorial it said this is a nice little script that you can bind with your wm. I asked how to do it independent of my wm. I am not sure if my windows manager can actually do that (I use iceWM).
I was wondering if there is any way to map mouse buttons to commands and override the wm's button mapping.
ok one last question: I have a intel core duo 2 processor. is 686 the best for it?
I currently have two kernels: a 2.6.18-4-686 kernel and a 2.6.18-3-686 kernel.
Which is better? The higher the kernel number the better? Is the 2.6.18-4-686 kernel a newer version or something? Thanks in advance.
You are the Sociopath! As a result of your cold, calculating rationality, your introversion (and ability to keep quiet), your brutality, and your arrogance, you would make a very cunning serial killer. You are confident and capable of social interaction, but you prefer the silence of dead bodies to the loud, twittering nitwits you normally encounter in your daily life. You care very little for the feelings of others, possibly because you are not a very emotional person. You are also very calculating and intelligent, making you a perfect criminal mastermind. Also, you are a very arrogant person, tending to see yourself as better than others, providing you with a strong ability to perceive others as weak little animals, so tiny and small. You take great pleasure in the misery of others, and there is nothing sweeter to you than the sweet glory of using someone else's shattered failure to project yourself to success. Except sugar. That just may be sweeter. In short, your personality defect is the fact that you could easily be a sociopath, because you are calculating, unemotional, brutal, and arrogant. Please don't kill me for writing mean things about you! I have a 101 mile-long knife! Don't make me use it!
To put it less negatively:
1. You are more RATIONAL than intuitive.
2. You are more INTROVERTED than extroverted.
3. You are more BRUTAL than gentle.
4. You are more ARROGANT than humble.
cool!
I have a debian base install system and am having problems with performance via allegro. I made a pong game and when I ran it on windows it ran fine but on linux it lags soooo much. Whats the problem?
heh..heh sorry I solved the problem.
I have a hp dv6000t laptop 15" widescreen and I installed the base debian system. After I had installed xorg and some other stuff I booted up with fluxbox. The resolution for my laptop was 1024x768. How do I change the resolution? I looked at the xorg.conf file and it says that I have larger resolutions. But when I run xrandr it says I only have 1024x768. How do I change my resolution to a widescreen resolution? (NOTE: I did not have this problem on a debian full install with gnome)
It does when you cannot install the distro because of the old kernel!
Umm...I have been looking around and supposdly a new debian version is coming this feb or mar. Will this new version have the new kernel? And whats with these old kernels? I looked at slackware it seems to have a 2.4 kernel too. They said that the 2.6 kernel is under expiremental? Isn't the 2.6 kernel a official release (i.e. not developmental)?
Ok thanks ill look into that!
I checked the hp website supposdly I have a SATA hardrive not an ATA one. But whatever...
I have tried some distros of linux but only a few ever work (ubuntu and zenwalk are the only ones). All other distros I have tested (debian, my own rbuilder distro, and foresight) do not work. They never can detect my hardrive. I have a hp dv6000t laptop. I do not know exactly what kind of hardrive is but when I installed ubuntu it said my hardrive was "SCSI1 100 GB ATA ST9100824A5".
Thanks! I meant trying to compile a program with freetype. Probably should of figured that out!;)
What linker command to I need to link freetype?
Well I decided to look into another game programming library ClanLib. Do you have any experience with this? Anyway I got it working in a couple of hours! Seems kind of strange but supposdly you can port games between "any operating system" without changing a single line of code. Thanks trying to help get allegro working. I really did learn alot.
Thanks!
I downloaded and tried to install the driver. But during the installation process it complained that I do not have a proper nvidia kernel. But I do! It then tries to compile one but to no success. I think I am at the end of the line...
Nevermind I found the nvidia x86 drivers for linux in the beta section. Why would this help? I already have a nvidia driver for my graphics card.
I looked under synaptic and it seems that I have the nvidia glx and nvidia glx dev. However I looked at the nvidia website to see if they had a driver for my graphics card (a geforce go 7400 256 mb). Correct me if im wrong but since I have a intel core duo 2 processor I would need an x86 nvidia driver. On there website they do not have any x86 drivers for linux only for solaris and freeBSD.
When I was thinking about linux, supporters of it said it could not crash! They said that supercomputers have been running linux or unix for years and have never rebooted.
Well anyway I looked at your link it seems that his problem is identical to mine! I have all the development files for my graphics card. Is openGL the problem or my graphics card libraries? I have been trying to find how to contact this guy but to no success. What kind of file should I be looking for with synaptic?
One more thing. When I run my compiled file as root from the terminal the whole screen goes black with a flashing underscore on the top left hand side of the screen. My whole system freezes. I thought linux never crashed!
Wow...That was weird. As you said cat crashed my system. Yes I downloaded the "demo library" that contains hundreds of binary allegro applications. None of the apps work. I have America's Army that I play quite often, it works perfectly.
Two files called liballeg.so.4.2 and liballeg-4.2.so both are under /usr/lib/
If I run it in a console with the command "sh myprogram" it returns:
myprogram: 1: Syntax error: "(" unexpected
If I run it by the console with the command "./myprogram" it returns nothing.
Stupid browser.
When I run the command "allegro-config --libs" it returns:
-L/usr/local/lib -Wl,--export-dynamic -lalleg-4.2.1 -lalleg_unsharable
Funny, but when I run the above output with -lalleg at the end it no longer complains about not being able to find a -lalleg.
Yes it is back ticks.
The options for linking with Allegro are quite complicated, since for static versions of the library, depending on how it was configured, it may need to pull in other libraries (X, SVGAlib), as well as just Allegro itself, and for all versions the library is split into two chunks -- one of which is always static, and the other of which is sometimes shared. To avoid you having to work out the right linker commands for yourself, the installation creates a script, allegro-config, that will print out a suitable commandline. You can use this inside a backtick command substitution, for example:
gcc myfile.c -o myprogram `allegro-config --libs`
Or if you want to build a debug version of your program, assuming that you have installed the debug version of Allegro: gcc myfile.c -o myprogram `allegro-config --libs debug`
Unix newbies, take note that these are ` backticks, not normal ' quotes!
ARE YOU A UNIX NEWBIE!?:cheesy:
When I do the command "echo LD_LIBRARY_PATH" it returns "LD_LIBRARY_PATH". Is this what is supposed to happen?
Yes the results when I compile a c++ program with g++ and c program with gcc are identical.
liballeg.a resides in /usr/lib/ But it is a archived file. Should it be archived?
I checked again and I found the ld.so.conf so I added at the end /usr/local/lib. I then ran ldconfig as root. When I use the command:
"g++ new\ file.cpp -o myprogram -lalleg" it returns the following:
/usr/bin/ld: cannot find -lalleg
collect2: ld returned 1 exit status
But when I use the command "g++ new\ file -o myprogram `allegro-config --libs` as it said to do in the allegro tutorial I read, it compiles.
I tried to do the command:
"LD_LIBRARY_PATH = $LD_LIBRARY_PATH:/usr/local/lib:/lib"
It returns the following:
bash: LD_LIBRARY_PATH: command not found
Why does this not work?
I give up! Is there a graphics library for g++ thats as easy as allegro?
I decided to run make install again just to make sure everything was installed. When I ran it I incountered a warning that I missed before:
Warning: shared library destination /usr/local/lib is not in ldd search path.
Unless you add it to /etc/ld.so.conf, you must set LD_LIBRARY_PATH to include
/usr/local/lib each time you want to run an Allegro program.
I looked under /etc/ but I could not find the file ld.so.cnf. How do I fix this error? what is LD_LIBRARY_PATH? Sorry if this is a stupid question.
Yes the program I wrote named new file.cpp compiles with the command
g++ new\ file.cpp -o myprogram `allegro-config --libs`
When I run it nothing happens. does have to do with it does not no what to run it with (kinda like when you try to run program that uses the terminal without one)?
To answer your question yes it compiles. I presume you mean the command "-lalleg"? It returns the same errors as above. Maybe it has to do with the config file that lets me not have to include thousands of header files? Or do you mean specifing the directory of each header file? would the command be something like this "-l/usr/include/allegro.h" or something else?
ok I followed the documentations instructions. My process is as follows
1. I downloaded the allegro source
2. I unziped it
3. I ran ./cconfigure
4. I ran make
5. I ran su -c "make install" as root
6. then I compiled with the command g++ new\ file.cpp -o myprogram `allegro-config --libs`
When I try to run it nothing happens. Any ideas? And how do you make those back tics?
I tried adding the above to my compiling command but it still does not work. Is there some tutorial somewhere that will tell me how to do this?
I downloaded the dev files for allegro and now when I compile it returns the following
-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_show_mouse':
(.text+0xb0d9): undefined reference to `XDefineCursor'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_show_mouse':
(.text+0xb10e): undefined reference to `XUndefineCursor'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_show_mouse':
(.text+0xb11c): undefined reference to `XFreeCursor'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_set_mouse_sprite':
(.text+0xb187): undefined reference to `XcursorImageDestroy'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_set_mouse_sprite':
(.text+0xb1ce): undefined reference to `XcursorImageCreate'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_private_destroy_screen':
(.text+0xb91f): undefined reference to `XUnmapWindow'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_private_destroy_screen':
(.text+0xb939): undefined reference to `XUngrabPointer'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_private_destroy_screen':
(.text+0xb960): undefined reference to `XUngrabKeyboard'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_private_destroy_screen':
(.text+0xb990): undefined reference to `XChangeWindowAttributes'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_private_destroy_screen':
(.text+0xb9b3): undefined reference to `XShmDetach'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_private_destroy_screen':
(.text+0xb9eb): undefined reference to `XF86VidModeLockModeSwitch'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_private_destroy_screen':
(.text+0xba03): undefined reference to `XF86VidModeSwitchToMode'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_private_set_matching_colors':
(.text+0xbd8b): undefined reference to `XStoreColors'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_private_create_screen':
(.text+0xbe64): undefined reference to `XUnmapWindow'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_private_create_screen':
(.text+0xbe76): undefined reference to `XResizeWindow'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_private_create_screen':
(.text+0xbe85): undefined reference to `XMapWindow'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_private_create_screen':
(.text+0xbe8a): undefined reference to `XAllocSizeHints'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_private_create_screen':
(.text+0xbec3): undefined reference to `XSetWMNormalHints'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_private_create_screen':
(.text+0xbecb): undefined reference to `XFree'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_private_create_screen':
(.text+0xbf5a): undefined reference to `XCreateImage'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_private_create_screen':
(.text+0xc06d): undefined reference to `XAllocColor'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_private_create_screen':
(.text+0xc0b8): undefined reference to `XAllocColor'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_private_create_screen':
(.text+0xc106): undefined reference to `XAllocColor'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_private_create_screen':
(.text+0xc154): undefined reference to `XAllocColor'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): In function `_xwin_private_create_screen':
(.text+0xc1a2): undefined reference to `XAllocColor'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o):(.text+0xc1f0): more undefined references to `XAllocColor' follow
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/liballeg.a(xwin.o): …
The only thing I can find is the my allegro file at "/usr/lib/allegro/4.2/"
There are six files in this directory:
1. alleg-alsadigi.so
2. alleg-alsamidi.so
3. alleg-vga.so
4. alleg-dga2.so
5. alleg-fbcon.so
6. modules.lst
Where is allegro.h?