Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: cant start on other pc's  (Read 11829 times)

0 Members and 1 Guest are viewing this topic.

hacky

  • Newbie
  • *
  • Posts: 26
    • View Profile
cant start on other pc's
« on: July 19, 2008, 09:34:20 pm »
my compiled exe dont start on other pc's but i gave them all dll's =/
it always gave them a run-time error =(

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
cant start on other pc's
« Reply #1 on: July 20, 2008, 03:31:39 am »
Which error ? Do you give a release build of your app ? Do other people install the Visual C++ runtime DLLs (vcredist_x86) ?
Laurent Gomila - SFML developer

hacky

  • Newbie
  • *
  • Posts: 26
    • View Profile
cant start on other pc's
« Reply #2 on: July 20, 2008, 10:53:17 am »
uuhm..
i have linked the sfml-window.lib , the sfml-system.lib and the sfml-graphics.lib

or do i need other ones for release?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
cant start on other pc's
« Reply #3 on: July 20, 2008, 01:46:42 pm »
The Visual C++ runtime DLLs, if you compile with it.

And I also asked for the exact error message, please.
Laurent Gomila - SFML developer

hacky

  • Newbie
  • *
  • Posts: 26
    • View Profile
cant start on other pc's
« Reply #4 on: July 20, 2008, 02:01:16 pm »
no i tested it on my laptop -> only the console starts and closes suddenly

also tested it on my other pc where vc is installed -> works

wich dll i have to copy?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Laurent Gomila - SFML developer

hacky

  • Newbie
  • *
  • Posts: 26
    • View Profile
cant start on other pc's
« Reply #6 on: July 20, 2008, 02:32:56 pm »
hm cant i just give my game out with a dll? so they dont need to install the vc runtime

e: isnt it msvcp60.dll?

quasius

  • Full Member
  • ***
  • Posts: 166
    • View Profile
cant start on other pc's
« Reply #7 on: July 20, 2008, 03:58:12 pm »
Quote from: "hacky"
hm cant i just give my game out with a dll? so they dont need to install the vc runtime

e: isnt it msvcp60.dll?


You should be able to just give out the dll's.  I don't know the name of the file, but a bit of experimentation should figure it out...

Ankou

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
cant start on other pc's
« Reply #8 on: July 20, 2008, 04:13:47 pm »
you can do a static link
google says you can do this with Properties | Configuration | C/C++ | Code Generation | Runtime Library.
but I don't know if it's really there and I have no visual studio on this pc

Daazku

  • Hero Member
  • *****
  • Posts: 896
    • View Profile
cant start on other pc's
« Reply #9 on: July 20, 2008, 04:29:10 pm »
Download code::block, install minGW and no more dll problem :P

That what i did XD.
Pensez à mettre le tag [Résolu] une fois la réponse à votre question trouvée.
Remember to add the tag [Solved] when you got an answer to your question.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
cant start on other pc's
« Reply #10 on: July 20, 2008, 05:07:14 pm »
Quote from: "Ankou"
you can do a static link
google says you can do this with Properties | Configuration | C/C++ | Code Generation | Runtime Library.
but I don't know if it's really there and I have no visual studio on this pc

No, because you need to use the same CRT option as SFML (and generally all libraries you're using), and SFML uses dynamic link.
Laurent Gomila - SFML developer

dabo

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
    • http://www.dabostudios.net
cant start on other pc's
« Reply #11 on: July 20, 2008, 05:14:29 pm »
Use this setting (release mode): Multi-threaded (/MT)

Under:
Properties | Configuration | C/C++ | Code Generation | Runtime Library

You probably have to rebuild the libraries, can't remember.

dunce

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
cant start on other pc's
« Reply #12 on: July 21, 2008, 01:10:34 pm »
Besides ms redist pack there is another way to distribute legally ms runtime libraries. I mean including in your distribution pack those dlls along with the manifest file.

Ankou

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
cant start on other pc's
« Reply #13 on: July 21, 2008, 01:21:27 pm »
Quote
No, because you need to use the same CRT option as SFML (and generally all libraries you're using), and SFML uses dynamic link.

That's why I compiled them myself with a static link on windows.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
cant start on other pc's
« Reply #14 on: July 21, 2008, 01:30:41 pm »
Quote
That's why I compiled them myself with a static link on windows.

Well, you should take extra care when doing this, it can cause many issues.
Laurent Gomila - SFML developer

 

anything