Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Distrobution

This thread is locked; no one can reply to it. rss feed Print
 1   2 
Distrobution
adamk kromm
Member #5,432
January 2005

When people try my game on other computers they get this error when trying to open the game

this application has failed to start becase the application cnfiguration is incorrect. reinstalling the applicatin may fix the probelm

how do i fix that?

----------
-Adam Kromm

My Website

Matthew Leverton
Supreme Loser
January 1999
avatar

Sounds like you are using a beta version of your compiler, because the error messages are all misspelled. Alternatively, it could be because you are using MSVC 8 / Express and aren't including the Microsoft VC Runtime package.

adamk kromm
Member #5,432
January 2005

I'm using msvc 2005 express, and the spelling errors are because my friend cant spell very good. Is there a way to statically link the Microsoft VC Runtime Package? or a way to build the program so it doesn't need them?

----------
-Adam Kromm

My Website

Jonatan Hedborg
Member #4,886
July 2004
avatar

Yes! Use mingw! :D
...
sorry. No idea actually.

Matthew Leverton
Supreme Loser
January 1999
avatar

Quote:

Is there a way to statically link the Microsoft VC Runtime Package? or a way to build the program so it doesn't need them?

Yes, but you need to rebuild Allegro (STATICLINK=1 STATICRUNTIME=1) and every 3rd party library with a static runtime as well.

adamk kromm
Member #5,432
January 2005

any ideas what those 3rd party libraries are ;D

----------
-Adam Kromm

My Website

Matthew Leverton
Supreme Loser
January 1999
avatar

I'm referring to any 3rd party libraries that you might be using, such as AllegroGL, FBlend, DUMB, etc...

adamk kromm
Member #5,432
January 2005

ohh, ok, thanks. Now just to test it.

----------
-Adam Kromm

My Website

_Dante
Member #7,398
June 2006
avatar

Quote:

Yes, but you need to rebuild Allegro (STATICLINK=1 STATICRUNTIME=1) and every 3rd party library with a static runtime as well.

The binary packages (at least the ones distrubuted on this site) come with statically linked versions of the libraries, no?

-----------------------------
Anatidaephobia: The fear that somehow, somewhere, a duck is watching you

Matthew Leverton
Supreme Loser
January 1999
avatar

They do not come with static runtimes. There are 12 versions of Allegro for MSVC:

  1. Optimized

  2. Debugging

  3. Profiling

  4. Static Optimized

  5. Static Debugging

  6. Static Profiling

  7. Optimized, Static C Runtime

  8. Debugging, Static C Runtime

  9. Profiling, Static C Runtime

  10. Static Optimized, Static C Runtime

  11. Static Debugging, Static C Runtime

  12. Static Profiling, Static C Runtime

The binaries only include the first six, but he will want the 10th version on the list.

Jonatan Hedborg
Member #4,886
July 2004
avatar

Just out of curiosity; what is the difference between for example 4 and 10?

Matthew Leverton
Supreme Loser
January 1999
avatar

External dependence on the C Runtime.

A J
Member #3,025
December 2002
avatar

if you can stick with static for everything, it will lead to less end-user headaches

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

adamk kromm
Member #5,432
January 2005

ok, i added STATIC_RUNTIME to the linking and they still get the same error, am i missing something?

----------
-Adam Kromm

My Website

Matthew Leverton
Supreme Loser
January 1999
avatar

You have to completely rebuild the alleg_s.lib file.

adamk kromm
Member #5,432
January 2005

as in dl the source then do a make && make install?

----------
-Adam Kromm

My Website

Matthew Leverton
Supreme Loser
January 1999
avatar

adamk kromm
Member #5,432
January 2005

i've aleady done that, and i also did

make install DEBUGMODE
make install PROFILEMODE
make install STATICLINK

but i'll try again and see what happens

----------
-Adam Kromm

My Website

Matthew Leverton
Supreme Loser
January 1999
avatar

You have to use the static runtime flag.

adamk kromm
Member #5,432
January 2005

you'll have to forgive my newbyness, but what's the static runtime flag?

----------
-Adam Kromm

My Website

A J
Member #3,025
December 2002
avatar

have you COMPLETELY read the /docs/html/build/[my_compiler].html ?

Quote:

make install DEBUGMODE
make install PROFILEMODE
make install STATICLINK

STATICLINK and DEBUGMODE are not different sides of a coin, they are different attributes of a build.

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

adamk kromm
Member #5,432
January 2005

yep, i've read it, and i've make installed all the ones the doc said to, and right now im linking with

alleg_s.lib
kernel32.lib
user32.lib
comdlg32.lib
gdi32.lib
ole32.lib
dinput.lib
ddraw.lib
dxguid.lib
winmm.lib
dsound.lib

and i get the error. Am i missing a lib?

----------
-Adam Kromm

My Website

A J
Member #3,025
December 2002
avatar

which error ?
specifically as possible,

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

Matthew Leverton
Supreme Loser
January 1999
avatar

How many times do I have to say that STATICRUNTIME and STATICLINK are not the same things? :-/

fix msvc8 --msvcpaths
make STATICRUNTIME=1 STATICLINK=1
make install STATICRUNTIME=1 STATICLINK=1

After this is finished, I would rename the new alleg_s.lib to something else like alleg_s_srt.lib.

adamk kromm
Member #5,432
January 2005

"This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."

thats the error. Also before i was compiling with runtime library Multi-threaded DLL (stupid me) but after changing it to just Multi-Threaded i got errors like this.

1>alleg_s.lib(allegro.obj) : error LNK2001: unresolved external symbol __imp__sprintf

EDIT: thank you Matthew, but after doing that i still get errors like the following

1>alleg_srt.lib(allegro.obj) : error LNK2001: unresolved external symbol __imp__sprintf
1>alleg_srt.lib(allegro.obj) : error LNK2001: unresolved external symbol __imp__vsprintf

(i cant believe im having so much trouble...)

----------
-Adam Kromm

My Website

 1   2 


Go to: