Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Principia DLL failed to load. #2557

Closed
lolotux69 opened this issue May 6, 2020 · 11 comments
Closed

The Principia DLL failed to load. #2557

lolotux69 opened this issue May 6, 2020 · 11 comments

Comments

@lolotux69
Copy link

Hi

I'm under Linux!
$ uname -a
Linux debian 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1+deb10u1 (2020-04-27) x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster

Here my KSP.log
KSP.log

And my folders :
$ tree Principia/
Principia/
├── assets
│   ├── navball_barycentric.png
│   ├── navball_body_direction.png
│   ├── navball_compass.png
│   ├── navball_inertial.png
│   ├── navball_surface.png
│   ├── navball_target.png
│   └── toolbar_button.png
├── ksp_plugin_adapter.dll
├── ksp_plugin_adapter.dll.config
├── ksp_plugin_adapter.pdb
├── Linux64
│   ├── principia.dll
│   └── principia.so
├── MacOS64
│   ├── principia.dll
│   └── principia.so
├── real_solar_system
│   ├── gravity_model.cfg
│   ├── initial_state_jd_2433282_500000000.cfg
│   └── sol_numerics_blueprint.cfg
└── x64
├── libglog.dll
├── libprotobuf.dll
├── principia.dll
├── principia.pdb
├── serialization.dll
└── serialization.pdb

5 directories, 23 files

:/

@pleroy
Copy link
Member

pleroy commented May 6, 2020

I'm under Linux!

You're under Debian. We build for Ubuntu. There is no telling if a binary built for one system will work for the other.

├── Linux64
│ ├── principia.dll
│ └── principia.so
├── MacOS64
│ ├── principia.dll
│ └── principia.so

These principia.dll files under Linux64 and MacOS64 are strange. They are probably not the source of the problem, but they didn't come directly from the install.

Anyway, do you have a recent version of libc++ and libc++abi installed? The error message talks about 6.0.2, but I think you need version 8 these days.

@hdszcg-ksp
Copy link

i have the exact same problem!! the macosx64 and linux64 also shows for me

@lolotux69
Copy link
Author

sudo apt list --installed | grep -i libc++

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libc++abi-7-dev/stable,now 1:7.0.1-8 amd64 [installé]
libc++abi-dev/stable,now 1:7.0-47 amd64 [installé]
libc++abi1-7/stable,now 1:7.0.1-8 amd64 [installé]
libc++abi1/stable,now 1:7.0-47 amd64 [installé]

And mod downloaded from : https://drive.google.com/file/d/1tNPUDpk1UJyBm5Wdj6JGgwg6gfPWctRh/view

???

Sorry, something went wrong.

@lolotux69
Copy link
Author

So I will try with libc++abi 8

Sorry, something went wrong.

@lolotux69
Copy link
Author

sudo apt list --installed | grep -i libc++

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libc++abi1-8/buster-backports,now 1:8.0.1-3~bpo10+1 amd64 [installé]

Now I will install again Principia and I will tell you !

Tks

Sorry, something went wrong.

@lolotux69
Copy link
Author

Hmmmmm

Failed to load assembly /home/lolo/.local/share/Steam/steamapps/common/Kerbal Space Program-1.8.1-principia/GameData/Principia/x64/principia.dll: System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.

:/

@pleroy
Copy link
Member

pleroy commented May 13, 2020

This is well-known and documented.

@pleroy
Copy link
Member

pleroy commented May 13, 2020

Also, I would expect that you would need both libc++ and libc++abi. You seem to only have the latter.

@lolotux69
Copy link
Author

lolotux69 commented May 13, 2020

I'm under Linux!

You're under Debian. We build for Ubuntu. There is no telling if a binary built for one system will work for the other.

├── Linux64
│ ├── principia.dll
│ └── principia.so
├── MacOS64
│ ├── principia.dll
│ └── principia.so

These principia.dll files under Linux64 and MacOS64 are strange. They are probably not the source of the problem, but they didn't come directly from the install.

Anyway, do you have a recent version of libc++ and libc++abi installed? The error message talks about 6.0.2, but I think you need version 8 these days.

Ok but what version of Ubuntu?

Cause my Debian buster seams to be as Ubuntu :
`

  • 19.10 eoan buster / sid
  • 19.04 disco buster / sid
  • 18.10 cosmic buster / sid

`

https://askubuntu.com/questions/445487/what-debian-version-are-the-different-ubuntu-versions-based-on

@pleroy
Copy link
Member

pleroy commented May 13, 2020

We build on 18.04, bionic beaver. Any version of Ubuntu more recent than that should work fine. But anyway it's really only the libraries that matter.

@pleroy
Copy link
Member

pleroy commented Oct 31, 2020

No life signs, closing.

@pleroy pleroy closed this as completed Oct 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants