Jump to content

Recommended Posts

I'm trying to build Simplex's Ktools and Krane programs which are found here:

I have a PC running on Windows 10 and followed the instructions located in the Github README:

Windows

Note for MinGW users: ImageMagick 6.8.9 was reported to not compile under MinGW. Version 6.8.8-10 was confirmed to work. You may also need to install (and likely compile) libpng and zlib.

Open CMake, select the ktools directory as the source folder ("Where is the source code") and whichever directory you'd like as the build folder ("Where to build the binaries"). Click "Configure" and select a generator (typically either a version of Visual Studio of "MinGW Makefiles"). Leave "Use default native compilers" checked and click "Finish". If you with to customize some compilation option (which shouldn't be necessary) do so now, in the options presented in red after the configure step finishes. If any option was changed, click "Configure" again. Finally, click "Generate", which should place the project files in the build directory you selected.

For MinGW, proceed as in the Linux/Mac case (i.e., simply run make in the build directory).

For Visual Studio, open the ALL_BUILD.vcxproj file, right click the 'ktools' solution on the left pane, click on "Configuration Manager..." and make sure to select "Release" as the active solution configuration. Then build the solution (which may be done by pressing "F7").

 

 

So I got ImageMagick and the version is 7.0.2 and I also got CMake 3.6.0., and am using Visual Studios 14.0? I think. I also have folders for 11.0 and 12.0. I guess maybe this ALL_BUILD.vcxproj is important but I don't know where or what that is. Anyway the first problem I had was when it was compiling the program and it tried to check the size of ssize_t:

Check size of ssize_t - failed

 

The error log said:

failed in lines: 19, 20, 21, 22, 23 of SSIZE_T.c

error C2065: 'ssize_t': undeclared identifier

 

The SSIZE_T.c file (lines 19-23 start at the first ('0' +...) and end at the last ('0' +...)) had this:

#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>


#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#endif

#define SIZE (sizeof(ssize_t))
char info_size[] =  {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
  ('0' + ((SIZE / 10000)%10)),
  ('0' + ((SIZE / 1000)%10)),
  ('0' + ((SIZE / 100)%10)),
  ('0' + ((SIZE / 10)%10)),
  ('0' +  (SIZE    % 10)),
  ']',
#ifdef KEY
  ' ','k','e','y','[', KEY, ']',
#endif
  '\0'};

#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
  int require = 0;
  require += info_size[argc];
  (void)argv;
  return require;
}

 

Then there was a whole bunch of red text:

CMake Warning at cmake/thirdparty/OptimizeForArchitecture.cmake:108 (message):
Your CPU (family 6, model 78) is not known. Auto-detection of optimization
flags failed and will use the 65nm Core 2 CPU settings.
Call Stack (most recent call first):
cmake/thirdparty/OptimizeForArchitecture.cmake:154 (AutodetectHostArchitecture)
CMakeLists.txt:50 (OptimizeForArchitecture)

 

Detected CPU: merom

Performing Test check_cxx_compiler_flag__arch_SSE2

Performing Test check_cxx_compiler_flag__arch_SSE2 - Success

CMake Error at C:/Program Files/CMake/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find ImageMagick (missing: ImageMagick_Magick++_LIBRARY
ImageMagick_MagickWand_LIBRARY ImageMagick_MagickCore_LIBRARY)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.6/Modules/FindImageMagick.cmake:268 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:60 (FIND_PACKAGE)

 

So by the time it's finished trying to configure I get the overall error message that the project files may be invalid.

 

If someone can help me with this that would be very appreciated. If worse comes to worse maybe someone has already built the Ktools program and could provide me with a link to download? I'm just having a lot of troubles. Thanks in advance.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...