duncanca / mosaik-aligner

Automatically exported from code.google.com/p/mosaik-aligner
0 stars 0 forks source link

Building MosaikText fails on Linux 64-bit #104

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. download package source 1.1.0021 worked
2. running "make" worked
3. when running "make utils" everything is compiled except for MosaikText

What is the expected output? What do you see instead?
Expected was:
- Building in MosaikText
  * linking MosaikText
but the output is:

  * compiling MosaikText.cpp
In file included from MosaikText.h:28:0,
                 from MosaikText.cpp:11:
../CommonSource/Utilities/ProgressBar.h: In static member function ‘static 
progress_bar_time_t CProgressBar<K>::GetSystemMilliseconds() [with K = long 
unsigned int, progress_bar_time_t = long long unsigned int]’:
../CommonSource/Utilities/ProgressBar.h:150:2:   instantiated from 
‘CProgressBar<K>::CProgressBar(K*, K, K, std::string) [with K = long unsigned 
int, std::string = std::basic_string<char>]’
../CommonSource/Utilities/ProgressBar.h:256:83:   instantiated from ‘static 
void* CProgressBar<K>::Monitor(void*) [with K = long unsigned int]’
../CommonSource/Utilities/ProgressBar.h:188:76:   instantiated from ‘static 
void CProgressBar<K>::StartThread(K*, K, K, std::string) [with K = long 
unsigned int, std::string = std::basic_string<char>]’
MosaikText.cpp:261:27:   instantiated from here
../CommonSource/Utilities/ProgressBar.h:607:18: error: ‘tz’ has incomplete 
type
make[1]: *** [../../obj/MosaikText.o] Error 1

What version of the product are you using? On what operating system?
Source version of Mosaik 1.1.0021
gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
Linux 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64

Please provide any additional information below.
there seems to be a problem with the ProgressBar code

Original issue reported on code.google.com by jtoedl...@gmail.com on 20 Jun 2011 at 1:52

GoogleCodeExporter commented 8 years ago
I recently faced the same problem.

Just add
#include <sys/time.h>

to CommonSource/Utilities/ProgressBar.h

and it will compile without problems.

Cheers,
G

Original comment by gonzalo....@gmail.com on 18 Jul 2011 at 2:18

GoogleCodeExporter commented 8 years ago
Confirmed.  I also have to add <sys/time.> to 
CommonSource/Utilities/ProgressBar.h

Afterward it compiles without complaining.

At first I thought only 1.1.0021 was affected but 1.1.0018 was also affected.

Best,
Q

Original comment by rdirect...@gmail.com on 14 Sep 2011 at 12:17