Old 06-10-2010, 01:45 PM   #1
fredv
Human being with feelings
 
Join Date: Dec 2008
Posts: 78
Default How to compile the source ?

Hi,

i'm reading the source files of LICECap and i'm going back to my student years, coding C++

I would be happy to customize a few things in this wondeful tool but i don't know which tool to use to compile it ..

is it Visual Studio 6 ?

can someone tell me ? (i'm on windows and of course as the change i want to do are very small, i could easily use a command line compiler, no need for a modern IDE)

Thanks
fredv is offline   Reply With Quote
Old 06-10-2010, 02:19 PM   #2
fredv
Human being with feelings
 
Join Date: Dec 2008
Posts: 78
Default

hmm i think i have found .. i'm using VC 6.0
it works fine but when compiling, i got some errors like that :

wdl\lice\lice_palette.cpp(270) : error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64

what can i do ?
(only errors, otherwise, it seems to be ok)

Thanks
fredv is offline   Reply With Quote
Old 06-10-2010, 02:47 PM   #3
liteon
Human being with feelings
 
liteon's Avatar
 
Join Date: Apr 2008
Posts: 510
Default

to fix the error you can try installing the "processor pack" from here:
http://msdn.microsoft.com/en-us/visualc/aa336441.aspx

alternatively if you don't want to download extra packages you can try:

open: wdl\lice\lice_palette.cpp

either change the line [11]:
Code:
WDL_UINT64 sumrgb[3];
// to 
WDL_INT64 sumrgb[3];
// or to
signed long long sumrgb[3];
or try changing the lines [270]:
Code:
int r = (int)((double)p->sumrgb[0]/(double)p->colorcount);
int g = (int)((double)p->sumrgb[1]/(double)p->colorcount);
int b = (int)((double)p->sumrgb[2]/(double)p->colorcount);
// to:
int r = (int)((double)((long long)p->sumrgb[0])/(double)((long long)p->colorcount));
int g = (int)((double)((long long)p->sumrgb[1])/(double)((long long)p->colorcount));
int b = (int)((double)((long long)p->sumrgb[2])/(double)((long long)p->colorcount));
hope this solves


---
liteon is offline   Reply With Quote
Old 06-10-2010, 04:32 PM   #4
fredv
Human being with feelings
 
Join Date: Dec 2008
Posts: 78
Default

Quote:
Originally Posted by liteon View Post
either change the line [11]:
Code:
WDL_UINT64 sumrgb[3];
// to 
WDL_INT64 sumrgb[3];
// or to
signed long long sumrgb[3];
hope this solves
---
ok it's ok now .. WDL_INT64 colorcount; was also to convert

Great, i compiled my version of LiceCap with different color for Left or Right click, i'm so happy

Thanks
fredv is offline   Reply With Quote
Old 01-25-2014, 07:38 PM   #5
aruns
Human being with feelings
 
Join Date: Jan 2014
Posts: 2
Default

Quote:
Originally Posted by fredv View Post
ok it's ok now .. WDL_INT64 colorcount; was also to convert

Great, i compiled my version of LiceCap with different color for Left or Right click, i'm so happy

Thanks
I really wish to be happy too. However, I dont know how to edit source code, i want to make some changes to the gui - with borders, colors. The clone from github doesn't get opened up - says some files missing. I dont hv vs6 either. Only vc++2010 express. Any help or guide on how to open the source code successfully will be really appreciated.
I know this is a very old post, but still hoping to get answer from any of the many fans of licecap!

Thanks!
aruns is offline   Reply With Quote
Old 02-12-2014, 11:47 PM   #6
aruns
Human being with feelings
 
Join Date: Jan 2014
Posts: 2
Default I know it's late...still, somebody pls reply to my question

hello,

i know it's > 3 years after the last reply to this thread but am sure somebody has an answer to my question. pls help.

thank you,
aruns
aruns is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:33 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.