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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-23-2011, 07:23 PM
|
#1
|
Member
Registered: Oct 2011
Location: Warrington, UK
Distribution: Arch local, Debian on VPS, several RPIs.
Posts: 300
Rep:
|
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.
|
|
|
11-24-2011, 04:56 PM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
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.
|
|
|
11-24-2011, 08:33 PM
|
#3
|
Member
Registered: Oct 2011
Location: Warrington, UK
Distribution: Arch local, Debian on VPS, several RPIs.
Posts: 300
Original Poster
Rep:
|
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.
|
|
|
12-18-2011, 06:30 AM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
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.
|
|
|
11-21-2014, 02:27 PM
|
#5
|
LQ Newbie
Registered: Nov 2014
Posts: 1
Rep:
|
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.
|
All times are GMT -5. The time now is 02:23 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|