Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 15 Mar 2013
Offline Last Active Aug 04 2016 03:36 AM

Posts I've Made

In Topic: Statically Link Sdl

04 August 2016 - 03:26 AM


Invoking: GCC C++ Linker
g++ -Wl,-Bstatic -lSDL -Wl,-Bdynamic,-rpath=. -shared -o "lin.xpl"  ./main.o ./myList.o   -lopenal -lcurl -lGL
Finished building target: lin.xpl


I get:

dlerror:/media/michael/DATA/X-Plane_10/Aircraft/General Aviation/P4/plugins/p4/64/lin.xpl: undefined symbol: SDL_Quit


Many thanks

In Topic: Statically Link Sdl

03 August 2016 - 11:39 PM

@sergamer I use sdl1.2 and static linking



I do with Eclipse on Ubuntu:

Invoking: GCC C++ Linker
g++ -Wl,-Bstatic -lSDL -Wl,-Bdynamic,-rpath=. -shared -o "lin.xpl" ./main.o ./myList.o -lopenal -lcurl -lGL
Finished building target: lin.xpl

without -lSDL at the end I get sdl-quit not found or alike errors. How to link statically sdl and later sdl_ttf for a X-Plane plugin.


For Ubuntu dynamic linking is ok, but I don't want to ship sdl and sdl_ttf with my app on other os.

In Topic: About text in OpenGl

03 August 2016 - 03:09 AM

Seems to need glut, freetype etc., but I don't want dependencies. I'll try to link statically sdl_ttf now.

In Topic: About text in OpenGl

02 August 2016 - 09:22 AM

WiredCat now that looks easy. No additional libs like glut needed? Thanks for the code, I'll try tomorrow.

In Topic: Your Preferred Os And Why

26 July 2016 - 04:31 AM

I use Windows + Ubuntu + MAC

I really don't like how the programs for Linux seem to be dependent on eachother and then on certain versions of certain other programs. I understand the problem of packaging binaries in the opensource world, but the inability of programs to ship with their own dependencies sometimes causes a big pain.


Yes me to and no synaptic is very easy to use. One click to install headers etc. while on Windows I thought "no it can't get worse" I was wrong. Mac is a nightmare, also Xcode is the worst IDE that I've ever used. With my C++/Eclipse/Ubuntu development I only feel sorry about people saying needing to rewrite lots of code for compiling on other os.

We also get Snappy and Flatpak.