Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter SDK
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Orbiter SDK Orbiter software developers post your questions and answers about the SDK, the API interface, LUA, meshing, etc.

Reply
 
Thread Tools
Old 06-18-2017, 03:41 PM   #1
Xunie
Orbinaut
 
Xunie's Avatar
Project When to link against what?

The OrbiterSDK (2016) comes with 7 libs to link against.
  • Lua/lua5.1.lib
  • Lua/lua51.lib
  • orbiter.lib
  • Orbitersdk.lib
  • DlgCtrl.lib
  • gcAPI.lib (part of D3D9Client)
  • GDIClient.lib

But in what cases do you link against which ones? Are any of them dependent on others? etc.

This information isn't given in API_Guide.pdf or on the orbiter wiki. Maybe this kind of information needs a tiny paragraph or two in the aforementioned pdf?


I'm asking all of this because I'm trying to set up a simple/minimal CMakeLists.txt so I (and anyone else) won't have to deal with Visual Studio and can just build the solution from a batch script using CMake and msbuild.

Turns out you can't just download old versions of Visual Studio anymore and the latest version of VS is being horrible and can't convert the old .vcproj files to the new version without bugging out and you having to 'fix' the solutions and re-add linking dependencies.

I'll share the (easy to use) CMakeLists.txt far and wide when I've got it all worked out, of course.

Last edited by Xunie; 06-18-2017 at 07:07 PM.
Xunie is offline   Reply With Quote
Thanked by:
Old 06-18-2017, 04:17 PM   #2
Urwumpe
Certain Super User
 
Urwumpe's Avatar

Default

I worked on a FindOrbiter.cmake before going into parental leave, interested in collaboration there?
Urwumpe is offline   Reply With Quote
Old 06-18-2017, 04:22 PM   #3
Face
Beta Tester
 
Face's Avatar

Default

(emphasis mine)
Quote:
Originally Posted by Xunie View Post
 The OrbiterSDK (2016) comes with 7 libs to link against.
  • Lua/lua5.1.lib
  • Lua/lua51.lib
  • orbiter.lib
  • Orbitersdk.lib
  • DlgCtrl.lib
  • gcAPI.lib
  • GDIClient.lib
I think gcAPI.lib does not come with OrbiterSDK, but specifically only with D3D9Client.

I also think I only ever linked to orbiter.lib and Orbitersdk.lib.
Face is offline   Reply With Quote
Old 06-18-2017, 06:27 PM   #4
Xunie
Orbinaut
 
Xunie's Avatar
Default

Quote:
Originally Posted by Urwumpe View Post
 interested in collaboration?
I'm a firm believer of "Perfection achieved when nothing is left to take away". So I'm not sure there's much room for collaboration considering I want to keep the damn thing as small as possible and easy to use. Emphasis on "small" here.

I'll paste what I got so far: https://pastebin.com/raw/cCaRHVBF

Quote:
Originally Posted by Face View Post
 I think gcAPI.lib does not come with OrbiterSDK, but specifically only with D3D9Client.
Well, hot diggity damn. You're right!

(Edited original post to reflect.)

Last edited by Xunie; 06-18-2017 at 06:33 PM.
Xunie is offline   Reply With Quote
Thanked by:
Reply

  Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter SDK

Tags
cmake, linking, microsoft die please, visual studio sucks


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 10:42 AM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.