Allegro.cc - Online Community

Allegro.cc Forums » Allegro Development » Allegro 4.1.18 WIP

This thread is locked; no one can reply to it. rss feed Print
 1   2   3 
Allegro 4.1.18 WIP
ReyBrujo
Moderator
January 2001
avatar

Quote:

echo #define ALLEGRO_GENERATED_BY_MAKEFILE_TST > obj\mingw32\asmcapa.h
The system cannot find the path specified.

Maybe it is executing it from the wrong path?

(OT: By the way, just noticed 7-Zip shows the original user and group in the tar.gz file :))

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

gnolam
Member #2,030
March 2002
avatar

Quote:

Does the obj/mingw32 directory actually exist (it should)?

Yep... :-/

But is it really supposed to go in obj/mingw32 and not obj/mingw32/alleg or something like that?

--
Move to the Democratic People's Republic of Vivendi Universal (formerly known as Sweden) - officially democracy- and privacy-free since 2008-06-18!

A J
Member #3,025
December 2002
avatar

i added CPU_IA64 CPU_SSE3 CPU_AMD64 detection.
so the changlog text is wrong.. big deal!

___________________________
The more you talk, the more AJ is right. - ML

ReyBrujo
Moderator
January 2001
avatar

Quote:

But is it really supposed to go in obj/mingw32 and not obj/mingw32/alleg or something like that?

Yes, it goes in obj/mingw32, because no matter if you are building the release, profiling or debug libraries, the detection is always the same.

Go to allegro directory, and type echo #define ALLEGRO_GENERATED_BY_MAKEFILE_TST > obj\mingw32\asmcapa.h

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

gnolam
Member #2,030
March 2002
avatar

Quote:

Go to allegro directory, and type echo #define ALLEGRO_GENERATED_BY_MAKEFILE_TST > obj\mingw32\asmcapa.h

Yep, works if I do it by hand... ???

After that it can continue to compile past that part, only to choke and die a bit later:

gcc -Wall -Wno-unused -I. -I./include -x assembler-with-cpp -o obj/mingw32/alleg
/asmlock.o -c src/win/asmlock.s
windres --include-dir include -O coff -o obj/mingw32/alleg/dllver.o -i src/win/d
llver.rc
gcc: src/win/dllver.rc: No such file or directory
gcc: warning: `-x c' after last input file has no effect
gcc: no input files
windres: no resources
make: *** [obj/mingw32/alleg/dllver.o] Error 1

--
Move to the Democratic People's Republic of Vivendi Universal (formerly known as Sweden) - officially democracy- and privacy-free since 2008-06-18!

Evert
Member #794
November 2000
avatar

Does that file exist? (Again, it should... it does in my local installation at any rate, which may not say much as that's a UNIX installation, but still... the contents of the archive should be the same).

Mika Halttunen
Member #760
November 2000
avatar

Interesting:
When I build 4.1.18 with TARGET_ARCH_COMPAT=i686 all the programs crash upon exit when run in windowed mode. I built Allegro using i586 and everything works.

I'm using GCC 3.4.2 (mingw)

---------------------------------------------
.:MHGames | @mhgames_ :.

Daniel Schlyder
Member #257
April 2000
avatar

Not that it helps you, but the Zip archive compiled cleanly for me using MinGW GCC 3.4.2. I have downloaded the individual MinGW packages though, not the installer, but I don't see why that would matter. Maybe your uncompressor messed up the Allegro archive?

gnolam
Member #2,030
March 2002
avatar

Quote:

Does that file exist? (Again, it should... it does in my local installation at any rate, which may not say much as that's a UNIX installation, but still... the contents of the archive should be the same).

And again, it does. :P
And if I type the line manually with an absolute path it works... until the next .rc... and the next .rc... and so on. :P

[EDIT]
Found the problem. I have "cd c:\" in my autorun for the Windows console. Apparently, make is borked somehow and spawns new instances of cmd.exe over and over again instead of running the commands directly, thus changing the working directory...

--
Move to the Democratic People's Republic of Vivendi Universal (formerly known as Sweden) - officially democracy- and privacy-free since 2008-06-18!

Daniel Schlyder
Member #257
April 2000
avatar

Quote:

Found the problem. I have "cd c:\" in my autorun for the Windows console.

"autorun"? You mean shortcut? If so, you can set 'Start in' under Properties -> Shortcut to "c:\" instead.

ReyBrujo
Moderator
January 2001
avatar

Ugh, yes, makes seems to spawn a new command, which cd's back. Remove that autocommand and try make clean and build again from scratch. And turn off the antivirus for the windres problem. Might help.

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

gnolam
Member #2,030
March 2002
avatar

No, I mean in my autorun. :)

HKEY_LOCAL_MACHINE->SOFTWARE->Microsoft->Command Processor->Autorun

The "start in" property of shortcuts only apply to (no surprise here) shortcuts, so when starting the console manually you'll still end up in c:\blah\foo\bar\annoyinglylongpath\somewhereyoudon'twanttobe\ ... unless you add a CD command to the console autorun.

--
Move to the Democratic People's Republic of Vivendi Universal (formerly known as Sweden) - officially democracy- and privacy-free since 2008-06-18!

Daniel Schlyder
Member #257
April 2000
avatar

Aha, ok, cool. :) I didn't know of that registry key. There's additional benefits to using a shortcut though, like being able to change appearance. I've placed a customised console shortcut on Quick Launch. I keep forgetting how bad the default is. :)

lucaz
Member #4,194
January 2004

The manual isn't in tatula.demon, when it will be updated?

Oscar Giner
Member #2,207
April 2002
avatar

I just installed SUSE 9.2 64 bit version and decided to give Allegro 4.1.18 a try. The library compiles fine, but it fails when compiling the demo:

gcc -DHAVE_CONFIG_H -I. -Iinclude -Iinclude/allegro -I./include -I./include/allegro  -DALLEGRO_USE_C -DALLEGRO_LIB_BUILD   -O2 -funroll-loops -ffast-math -fomit-frame-pointer -Wall -Wno-unused  -c ./demo/demo.c -o obj/unix/demo.o
gcc -s -Wl,--export-dynamic  -o demo/demo obj/unix/demo.o -Llib/unix -lalleg-4.1.18 -lalleg_unsharable -lm
lib/unix/liballeg-4.1.18.so: undefined reference to `_colorconv_rgb_scale_5x35'
lib/unix/liballeg-4.1.18.so: undefined reference to `_colorconv_indexed_palette'
lib/unix/liballeg-4.1.18.so: undefined reference to `_colorconv_rgb_map'
collect2: ld devolvió el estado de salida 1
make: *** [demo/demo] Error 1

[edit]
The same happens when I try to compile any allegro program. Maybe it's a problem with th C only version of the library?

tobing
Member #5,213
November 2004
avatar

So now I've updated and compiled everything on MSVC7.1, and here is the new vcproj-file with the new files included.

Edit: Urgs. Something seems to be missing, I'll correct that...

Edit: Evert, I can't find the implementation of the functions gui_get_screen() and gui_set_screen(), where are they supposed to be? It's strange, I could build everything from the makefiles, but using the workspace these symbols are missing, and using text search I can't find them. ???

Evert
Member #794
November 2000
avatar

Quote:

I just installed SUSE 9.2 64 bit version and decided to give Allegro 4.1.18 a try. The library compiles fine, but it fails when compiling the demo:

That's odd... it's indeed possible that it's a problem with the C version of the library. Peter is working on (has) a patch that makes Allegro work better on 64 bit CPUs, but it hasn't been applied yet. You may want to check with him if he's aware of possible problems.

Quote:

and here is the new vcproj-file with the new files included.

Uhm... where? ;)

Quote:

I can't find the implementation of the functions gui_get_screen() and gui_set_screen(), where are they supposed to be?

Lines 960 and 970 from src/gui.c.

Peter Wang
Member #23
April 2000

Quote:

That's odd... it's indeed possible that it's a problem with the C version of the library. Peter is working on (has) a patch that makes Allegro work better on 64 bit CPUs, but it hasn't been applied yet. You may want to check with him if he's aware of possible problems.

There are no known problems with the patch, but some threading problems seem to show up more on AMD64 than x86 (or at least, on a gentoo box vs a slackware box). The patch itself should be applied fairly soon.

I don't know why you're getting undefined references to the colorconv stuff though. Try make depend first.

BTW, make forking itself over and over is the normal way make operates.

tobing
Member #5,213
November 2004
avatar

Something has gone wrong, my local gui.c was not properly copied or something. Now it works and builds fine, so here's the vcproj-file.

Oscar Giner
Member #2,207
April 2002
avatar

Quote:

I don't know why you're getting undefined references to the colorconv stuff though. Try make depend first.

That didn't work :( I tried with make depend and then make clean. Allegro 1.1.17 works, though.

[edit]
I deleted the full allegro folder and started from scratch and now it works :D I don't know why it didn't work the first time ???

[edit 2]
But now X11 fullscreen doesn't work (it did with 1.1.17).

Kirr
Member #5,060
September 2004
avatar

Perhaps all Allegro docs/build/* docs should begin with a big big warning that you should delete all previous Allegro versions completely, including a search for alleg through all your hard drive. About half of "Allegro doesn't work" problems result from the previous version pieces remaining here and there.

--
"Go to the NW of Stonemarket Plaza to the Blue Glyph Keeper Library door and enter."
- Lunabean's Thief Deadly Shadows Walkthrough, day eight

Oscar Giner
Member #2,207
April 2002
avatar

I installed it on a clean linux. There weren't old allegro versions anywhere (SUSE, at least the 64 bit version, doesn't include allegro).

A J
Member #3,025
December 2002
avatar

tobing, can you please provide some more info to allow this project file to be used properly.

a directory listing, showing the file tree required.. as currently the project file alone does not help you figure out where to put everything.

also some notes about the environment you used to make this project file.

apologies if all this info is in the above posts, i am requesting that you organize it into a single package.

can you also tell me if you still have to go to the command line to generate the asm files?

___________________________
The more you talk, the more AJ is right. - ML

tobing
Member #5,213
November 2004
avatar

Sorry, I missed out the details.

The project file has to be put into the allegro directory, top level (where the makefiles are). Nothing else is required. To use the project file, first build for MSVC using the makefile. After that the project file can be included in any solution and used to rebuild the allegro library. All output files are put where the usual make also puts them, but the solution file automatically adds the output libraries to the linker statement, so it's not necessary to add the allegro libraries to the game project in the linker options.

Would this be sufficient? If not, please let me know...

A J
Member #3,025
December 2002
avatar

thank you, it is most helpful.

i thing leaves me wondering. what was the purpose of having a msvc project for allegro ?
as building it still requires the commandline.
is there any chance the project could be used to build allegro without having to go to command line ?

___________________________
The more you talk, the more AJ is right. - ML

 1   2   3 


Go to: