Jump to content


Member Since 15 Mar 2013
Offline Last Active Dec 10 2016 04:45 AM

Posts I've Made

In Topic: transparency OpenGL

10 December 2016 - 04:49 AM

I do a X-Plane plugin. Disabling depth doesn't change anything. I nearly get the impressions that most of my stuff simply gets ignored. It worked in xp10 but in xp11 they added ambient shadows etc. Thanks

In Topic: static linking

02 December 2016 - 01:31 AM

whole archive gets me closer than trying individual libs:


Building target: lin.xpl
Invoking: GCC C++ Linker
g++  -Wl,--whole-archive /usr/lib/x86_64-linux-gnu/libcurl.a -Wl,--no-whole-archive,-Bdynamic,-rpath=. -shared -o "lin.xpl"  ./BitmapSupport.o ./main.o ./myList.o   -lopenal -lSDL -lGL
Finished building target: lin.xpl


I get this runtime error:

undefined symbol: GSS_C_NT_HOSTBASED_SERVICE

Any idea? Probably exclude a lib somehow?



PS: got it working compiling curl to tmp while disabling lots of stuff alike:


In Topic: static linking

01 December 2016 - 10:59 AM

You mean pass the *.a to the linker? That's what I've tried a long time ago without success. Should I need to pass all .a, around ten or so for curl alone, to the linker like above?


Building target: lin.xpl
Invoking: GCC C++ Linker
g++ /usr/lib/x86_64-linux-gnu/libcurl.a /usr/lib/x86_64-linux-gnu/libSDL.a -Wl,-Bdynamic,-rpath=. -shared -o "lin.xpl"  ./BitmapSupport.o ./main.o ./myList.o   -lopenal -lcurl -lSDL -lGL
Finished building target: lin.xpl


like this it compiles but is not statically linked like ldd shows:


    libcurl-gnutls.so.4 => /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4 (0x00007fbce28dd000)
    libSDL-1.2.so.0 => /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0 (0x00007fbce2643000)

Thanks again

In Topic: std::string move up one directory

21 October 2016 - 03:11 AM

What I do now is erase also the last two letters (/ or \\) then get the last / or \\. Works as I know the upper directory to contain at least two letters.


  InFileCopyFrom.erase (InFileCopyFrom.end()-18, InFileCopyFrom.end());

  string::size_type nn = InFileCopyFrom.find_last_of("/\\:");
  if (nn == string::npos) XPLMDebugString("The plugin folder is missing.\n");
  InFileCopyFrom = InFileCopyFrom.substr(0, nn + 1);

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