GLFW 304 wrapper 1.03 (Win/Lin/OSX x86/x64 Static/Dynamic)

Share your advanced PureBasic knowledge/code with the community.
benmalartre
User
User
Posts: 27
Joined: Thu Mar 14, 2013 11:24 am
Location: paris
Contact:

Re: GLFW 304 wrapper 1.03 (Win/Lin/OSX x86/x64 Static/Dynami

Post by benmalartre »

I solved the problem by providing full path to static libraries

Code: Select all

ImportC LIB_INCLUDE_PATH+"glfw3.a" : EndImport

  ImportC "/usr/lib/x86_64-linux-gnu/libX11.a" : EndImport  
  ImportC "/usr/lib/x86_64-linux-gnu/libXinerama.a" : EndImport  
  ImportC "/usr/lib/x86_64-linux-gnu/libXi.a" : EndImport  
  ImportC "/usr/lib/x86_64-linux-gnu/libXrandr.a" : EndImport 
  ImportC "/usr/lib/x86_64-linux-gnu/libXcursor.a" : EndImport
  ImportC "/usr/lib/x86_64-linux-gnu/libXxf86vm.a" : EndImport 
  ImportC "/usr/lib/x86_64-linux-gnu/libXext.a" : EndImport 
  ImportC "/usr/lib/x86_64-linux-gnu/libXfixes.a" : EndImport 
  ImportC "/usr/lib/x86_64-linux-gnu/libXrender.a" : EndImport 
ImportC LIB_INCLUDE_PATH+"glfw3.a"
before I was linking to shared libraries
I can't explain why it was working before updating to PB 5.4...
Last edited by benmalartre on Sun Mar 06, 2016 6:53 pm, edited 1 time in total.
benmalartre
User
User
Posts: 27
Joined: Thu Mar 14, 2013 11:24 am
Location: paris
Contact:

Re: GLFW 304 wrapper 1.03 (Win/Lin/OSX x86/x64 Static/Dynami

Post by benmalartre »

To compile in Release mode
I had to add

Code: Select all

ImportC "/usr/lib/x86_64-linux-gnu/libxcb.a" : EndImport
ImportC "/usr/lib/x86_64-linux-gnu/libXau.a" : EndImport 
ImportC "/usr/lib/x86_64-linux-gnu/libXdmcp.a" : EndImport 
Post Reply