Re: [hatari-users] Can't get cmake to detect libcapsimage.so.5.1 on Linux with latest source |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-users Archives
]
Le 22/01/2018 à 03:11, Ross Campbell a écrit :
Hi,
I need some help. I must be missing something, or there must be a secret
that I haven't found...
Trying to build hatari from mercurial sources *WITH* capsimage support
on Ubuntu 14.04 X64 Linux.
Builds fine, but doesn't detect capsimage.
Runs fine, but won't load IPF files.
So, I'm trying to fix that...
Here's what I've done:
- checked out latest source from hg for hatari
- downloaded spsdeclib_5.1_source.zip
- unzipped, unzipped capsimg_source_linux_macosx.zip
- cd capsimg_source_linux_macosx
- cd CAPSImg/
- chmod a+x configure
- ./configure && make && sudo make install
- sudo mkdir /usr/local/lib/caps5
- sudo cp libcapsimage.so.5.1 /usr/local/lib/caps5
- sudo mkdir /usr/local/include/caps5
- cd ../LibIPF
- sudo cp * /usr/local/include/caps5
- cd ../Core
- sudo cp CommonTypes.h /usr/local/include/caps5/
- cd /usr/local/lib/caps5
- sudo ln -s libcapsimage.so.5.1 libcapsimage.so.5
... that's pretty much what the instructions say to do...
Now, when I cd to hatari source and run ./configure or cmake . , no
capsimage is detected.
I tried hacking on cmake/FindCapsImage.cmake , but I didn't get too far.
What am I missing to get capsimage 5.1 detected on Linux?
Thanks,
-Ross
Hi
I can't say immediately what's wrong with your setup (or if our cmake
file for capslib is not correct), but here's how the file are installed
on my 64 bit linux pc to get caps library detected :
ll /usr/local/include/caps5
total 44
-rw-r--r-- 1 npomarede npomarede 7962 avril 1 2014 CapsAPI.h
-rw-r--r-- 1 npomarede npomarede 8900 mai 30 2014 CapsFDC.h
-rw-r--r-- 1 npomarede npomarede 1659 nov. 27 2004 CapsForm.h
-rw-r--r-- 1 npomarede npomarede 200 mai 13 2014 CapsLibAll.h
-rw-r--r-- 1 npomarede npomarede 2101 juin 13 2014 CapsLib.h
-rw-r--r-- 1 npomarede npomarede 122 mai 12 2014 CapsLibVersion.h
-rw-r--r-- 1 npomarede npomarede 356 juin 13 2014 ComLib.h
-rw-r--r-- 1 npomarede npomarede 2132 juil. 1 2014 CommonTypes.h
ll /usr/local/lib64/caps5/
total 524
lrwxrwxrwx 1 root root 19 mai 15 2017 libcapsimage.so ->
libcapsimage.so.5.1*
lrwxrwxrwx 1 root root 19 mai 15 2017 libcapsimage.so.5 ->
libcapsimage.so.5.1*
-rwxr-xr-x 1 root root 535379 mai 15 2017 libcapsimage.so.5.1*
Note that in my case, libraries must be in /usr/local/lib64 (I'm using
Mageia distrib), maybe ubuntu looks in /usr/local/lib too for 64 bit, I
don't know.
Nicolas