LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-23-2011, 07:23 PM   #1
Roken
Member
 
Registered: Oct 2011
Location: Warrington, UK
Distribution: Arch local, Debian on VPS, several RPIs.
Posts: 300
Blog Entries: 1

Rep: Reputation: 55
HACD Library


OK, I've built a system from source, specifically 64 Bit with a view to building a fully native 64 bit program (binaries exist, but they depend on ia32).

I've hit a snag with hacd library. I haved the source, and it's built without problems. I've copied the headers to /usr/include, and they are found OK. However, hacd library is giving me some problems. The build produces a /bin/libHACD.a, but no .so. (Maybe HACDLib - I forget the precise name and I'm not on the dev system ATM)

Does anyone have any idea whatsoever how I get a working .so from this?

The target build uses cmake, and I've built boost-cmake which is now found. I suspect that boost interacts with hacd somehow, but I'm getting lost.

Just a clue would be nice. HACD docs leave a lot to be desired.
 
Old 11-24-2011, 04:56 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
http://codesuppository.blogspot.com/...te-convex.html
> http://sourceforge.net/projects/hacd/

Example, 32bits :
cd hacd/src/ && mkdir build_shared && cd build_shared/
&& cmake CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -std=c99" ../
&& make
&& cd HACD_Lib/CMakeFiles/HACD_LIB.dir/src/ &&
gcc -shared -Wl,-soname,libHACD.so -o libHACD.so *.o -lc

( Or : gcc -shared -Wl,-soname,libHACD.so.1 -o libHACD.so.1.0 *.o -lc ).


The 'file' command reports this ..
Code:
file libHACD.so
libHACD.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, not stripped

P.S. : No luck so far with the above on a 64bits OS.

..

Last edited by knudfl; 12-18-2011 at 04:25 AM.
 
Old 11-24-2011, 08:33 PM   #3
Roken
Member
 
Registered: Oct 2011
Location: Warrington, UK
Distribution: Arch local, Debian on VPS, several RPIs.
Posts: 300

Original Poster
Blog Entries: 1

Rep: Reputation: 55
Closer than I got, but still no joy with 64 bit here, either. I can start to look over the output tomorrow to try to debug, though. Looks like it's failing on some math here, but I need to look closer.
 
Old 12-18-2011, 06:30 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Simpler than I thought. "HACD_Lib" is a very small application,
159 kB .cpp files, and 88.3 kB headers (inc/).
And uncomplicated : One .cpp file for each object.

("The other 250 MB" in the hacd package is data.)


cd hacd/src/HACD_Lib/src/
g++ -fPIC -g -c -Wall -I../inc *.cpp
gcc -shared -Wl,-soname,libHACD.so -o libHACD.so *.o -lc


The 64bits Slackware 13.1 was used for the test. (g++-4.4.4).
$file libHACD.so :
libHACD.so: ELF 64-bit LSB shared object, x86-64,
version 1 (SYSV), dynamically linked, not stripped

I hope the created libHACD.so will work as expected.

Regards.

.

Last edited by knudfl; 12-18-2011 at 06:46 AM.
 
Old 11-21-2014, 02:27 PM   #5
kmamou
LQ Newbie
 
Registered: Nov 2014
Posts: 1

Rep: Reputation: Disabled
V-hacd v2.0

V-HACD V2.0 is here and it kicks ass. Check it out!
kmamou.blogspot.ca/2014/11/v-hacd-v20-is-here.html
 
1 members found this post helpful.
  


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
[SOLVED] ./configure problem for libsf library due to apparently missing libdb library. vectrum Linux - Software 6 08-05-2011 02:11 PM
install from source - unable to find the libcurl library - but library is installed pulper Linux - Newbie 2 02-23-2009 09:00 PM
LINUX - linking archive (static library) with shared (dynamic) library gurkama Programming 5 03-04-2007 11:11 PM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM

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

All times are GMT -5. The time now is 01: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