Hey Guys,

I tried to install and set up the PrizmSDK today. I am using Linux Mint. I followed all instructions on https://prizm.cemetech.net/index.php?title=PrizmSDK_Setup_Guide, and am now at the point "Compiling mkg3a". I downloaded mkg3a from the provided link. Here are all files:

Code:

laslo@MyTreasure-LinuxMint:~/Development/Prizm/mkg3a-master$ ls
CMakeLists.txt  COPYING  doc  example  fx-imglib  README.md  src

Then I ran cmake, like in the tutorial:

Code:
laslo@MyTreasure-LinuxMint:~/Development/Prizm/mkg3a-master$ cmake .
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- libpng icon loading support enabled.
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.16/Modules/FindPNG.cmake:146 (find_package_handle_standard_args)
  src/CMakeLists.txt:29 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/laslo/Development/Prizm/mkg3a-master/CMakeFiles/CMakeOutput.log".

So far so good. Again a list of all files:

Code:

laslo@MyTreasure-LinuxMint:~/Development/Prizm/mkg3a-master$ ls
CMakeCache.txt  CMakeLists.txt  doc      fx-imglib  src
CMakeFiles      COPYING         example  README.md

But when I try to run make:

Code:

laslo@MyTreasure-LinuxMint:~/Development/Prizm/mkg3a-master$ make
make: *** No targets specified and no makefile found.  Stop.


I don't know what is going on since I am an experienced programmer but never used C++ nor Make nor PrizmSDK. I had a hart time finding where to start, so if any of you guys could link a tutorial they recommend or something? That would be great.
Lasslos wrote:


Code:
laslo@MyTreasure-LinuxMint:~/Development/Prizm/mkg3a-master$ cmake .
...
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)



I think this is your problem.
mkg3a requires libpng (package libpng-dev), so you will need to install this.
Alternatively, if you don't mind not having support for using PNG files to define icons, you can disable PNG support by running cmake -DUSE_PNG=OFF ..
Thank you so much. I couldn't find the packages, so I used this article: https://askubuntu.com/questions/508934/how-to-install-libpng-and-zlib. It works now.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement