LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-14-2023, 08:13 PM   #1
jay.cross.bee
LQ Newbie
 
Registered: Dec 2023
Location: USA
Distribution: Kubuntu
Posts: 4

Rep: Reputation: 0
How to re-install system libraries using different compilation options? Is it safe?


I'm trying to learn whether I can re-install a static library (fltk) as a shared library. I'm trying to install gmsh (and several modules for it) from source and the instructions recommend having fltk as a shared library.

There are a few other library recommendations, too, that already are in lib or usr/lib.

What should I do? Can I build them from source and install them in home/me/local and then adjust my path to use them when I build the gmsh and the supporting programs?

Any advice?

I'm running Kubuntu 23.10 with 6.5.0-14-generic #14-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 14 14:59:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux.
 
Old 12-14-2023, 09:29 PM   #2
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 808

Rep: Reputation: 259Reputation: 259Reputation: 259
I wouldn't overwrite your fltk system install. I saw your other thread and that fltk doesn't look right. I'd be surprised if Kubuntu doesn't have a full fltk install. You should have stuff like
Code:
...
usr/include/FL/mac.H
usr/include/FL/math.h
usr/include/FL/names.h
usr/include/FL/platform.H
usr/include/FL/win32.H
usr/include/FL/x.H
usr/lib64/
usr/lib64/libfltk.so.1.3
usr/lib64/libfltk_cairo.so.1.3
usr/lib64/libfltk_forms.so.1.3
usr/lib64/libfltk_gl.so.1.3
usr/lib64/libfltk_images.so.1.3
...
not a bunch of cmake files in /usr/lib. It's probably in multiple packages, with a "dev" and a regular one. Try to build against that.
 
Old 12-15-2023, 09:09 AM   #3
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,660

Rep: Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584
Quote:
Originally Posted by jayjwa View Post
It's probably in multiple packages, with a "dev" and a regular one. Try to build against that.
Ubuntu uses the same tools as Debian, which allows anyone to query package information online without having it installed, and confirm stuff like this.

libfltk1.3 only has a single SO, but the -dev package has the files you mention (only in /usr/lib/x86_64-linux-gnu instead of /usr/lib64):

//packages.ubuntu.com/mantic/amd64/libfltk1.3/filelist
//packages.ubuntu.com/mantic/amd64/libfltk1.3-dev/filelist

 
Old 12-16-2023, 01:20 PM   #4
jay.cross.bee
LQ Newbie
 
Registered: Dec 2023
Location: USA
Distribution: Kubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
Code:
$ ls /lib/fltk/
CMakeCache.txt  FLTKConfig.cmake      FLTK-Targets.cmake       FLTKUse.cmake
CMakeFiles      FLTK-Functions.cmake  FLTK-Targets-none.cmake  UseFLTK.cmake
Code:
$ ls /usr/lib/fltk/
CMakeCache.txt  FLTKConfig.cmake      FLTK-Targets.cmake       FLTKUse.cmake
CMakeFiles      FLTK-Functions.cmake  FLTK-Targets-none.cmake  UseFLTK.cmake
When I type fltk and hit [TAB] twice, here is the output:
Code:
$ fltk-config
Then this:
Code:
$ fltk-config 
Usage: fltk-config [OPTIONS]
Options:
        [--version]
        [--api-version]

Options telling what we are doing:
        [--use-gl]        use GL
        [--use-images]    use extra image formats (PNG, JPEG)
        [--use-glut]      use glut compatibility layer
        [--use-forms]     use forms compatibility layer
        [--use-cairo]     use cairo graphics lib

Options telling what information we request:
        [--cc]            return C compiler used to compile FLTK
        [--cxx]           return C++ compiler used to compile FLTK
        [--optim]         return compiler optimization used to compile FLTK
        [--cflags]        return flags to compile C using FLTK
        [--cxxflags]      return flags to compile C++ using FLTK
        [--ldflags]       return flags to link against FLTK
        [--ldstaticflags] return flags to link against static FLTK library
                                          even if there are DSOs installed
        [--libs]          return FLTK libraries full path for dependencies
        [--prefix]        return FLTK install time --prefix directory
        [--includedir]    return FLTK install time include directory

Options to compile and link an application:
        [-g]              compile the program with debugging information
        [-Dname[=value]]  compile the program with the given define
        [--compile program.cxx]
        [--post program]  prepare the program for desktop use
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it safe to install infected with virus programs on different profile through wine? peter7089 Linux - Newbie 7 02-01-2021 12:49 PM
[SOLVED] after install how to keep file system safe and use another partion for my file system highrolla Linux - Newbie 25 04-08-2013 02:22 PM
Can I mount a device onto two different points with different options? fc6_user Linux - General 4 06-05-2007 05:38 AM
Cross compilation (QT libraries) using gcc for Windows arunak Programming 15 04-06-2007 01:12 AM
Kernel Compilation - Being Safe Campy19 Mandriva 1 03-08-2004 09:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration