Hi.
I'm trying to add an external library (libmesh) to a project that must be created under Linux environment.
I've downloaded and compiled the library myself, so it's in a not standard location. The location is in
mydir/lib/libmesh.so
while headers are located in
mydir/include
in this directory I've many subfolders (base, geom etc).
The first thing that I'd like to know is how I can include all include subfolders without declare a INCLUDEPATH for everyone, but telling that I want to use all subfolders of mydir/include.
Then, I'd like to know how include the .so file in my project.
I've tried to use
LIBS += $$quote(mydir/lib/libmesh.so)
and
LIBS += -L$$quote(mydir/lib/libmesh.so)
but nothing happens: I got a lot of "undefined reference" errors.
Have you any suggestion?


 
					
					 
							
						 
    
    
    
    
    
    
   
    
    
       
    
    
    
    
   Including a static library
 Including a static library
		 
				
				
				
					 Reply With Quote
  Reply With Quote
 
    
    
       Re: Including a static library
 Re: Including a static library
		 
							
								 Originally Posted by jepessen
 Originally Posted by jepessen
					

Bookmarks