LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-26-2015, 02:24 AM   #1
rajkar
LQ Newbie
 
Registered: Mar 2015
Posts: 7

Rep: Reputation: Disabled
Exclamation How to add .so file to the makefile(LINUX)


I want to add a TBB dynamic library in Makefile.
I m using .libirml.so in the makefile. It shows the error like that:libirml.so.1 file not recognized: File format not recognized

How to proceed further TO finish the task?
 
Old 03-26-2015, 03:04 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

Rep: Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274
whould be nice to show that makefile, also post what you have tried exactly and what was the error message exactly.
 
1 members found this post helpful.
Old 03-26-2015, 04:23 AM   #3
rajkar
LQ Newbie
 
Registered: Mar 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
Question Need to include TBB libs in makefile.

TBB LIBS included in makefile are: -lirml -ltbb -ltbb_preview...

Error:TBB/libirml.so.1: file not recognized: File format not recognized
collect2: ld returned 1 exit status
 
Old 03-26-2015, 04:28 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

Rep: Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274
looks like you mixed 32-64 bit libraries (or something similar).
what will file libirml.so.1 respond? What kind of OS/compiler do you have, what is your target platform?

Last edited by pan64; 03-27-2015 at 03:33 AM. Reason: typo
 
Old 03-26-2015, 04:44 AM   #5
rajkar
LQ Newbie
 
Registered: Mar 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
Linux OS,TBB .so files and am include in Makefile but it return the error like tht.
gcc compiler .
I am using c++ in Linux OS.
 
Old 03-26-2015, 07:31 AM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
As pan64 pointed out, there seems to be a problem with your libirml.so.1 file. Either it's not a valid library file or it is for a different architecture. You need to run the "file" command that pan64 posted and show the outputs.
 
Old 03-27-2015, 02:26 AM   #7
rajkar
LQ Newbie
 
Registered: Mar 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
Question To check whether .so file.1 is valid file or not.

How to check the libirml.so.1 file in Linux.
 
Old 03-27-2015, 03:35 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

Rep: Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274
see post #4, but checking a single file is not enough, see #2
 
Old 03-27-2015, 01:21 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
or you placed the lib in a non standard location
i have this issue sometimes if i build NEW code on older OS's

-- 64 bit defaults
/usr/lib64/LibName.so ( /usr/lib64/libQt5Core.so.5.3.2 )
/usr/lib64/GroupName/LibName.so ( /usr/lib64/gegl-0.2/gegl-buffer-load-op.so )


if not in /usr/lib64

you need to add it to ldconf
or if using autotools it has a .pc file for packageconfig
or
export the location in the makefile


if this is a simple hand wrote Makefile ( say 20 lines or so )
post it
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] need of makefile info ? how the linux make file is different from simple c makefile ? rpittala Linux - Newbie 2 05-07-2012 08:04 PM
[SOLVED] [makefile] Add start/end time? littlebigman Linux - Software 3 05-23-2011 10:10 AM
how to add ldconfig call to Makefile.am RGummi Programming 4 09-14-2008 01:00 PM
Makefile issue: "Makefile.src: File not found" m3rkury Linux - Software 1 02-22-2007 10:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:29 AM.

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