View unanswered posts | View active topics It is currently Mon Apr 06, 2020 2:53 am



Reply to topic  [ 8 posts ] 
 Unable to build GLC_lib on Windows 7 64bit 
Author Message

Joined: Sat Mar 10, 2012 10:32 am
Posts: 5
Post Unable to build GLC_lib on Windows 7 64bit
I am unable to build source code from SVN:
https://glc-lib.svn.sourceforge.net/svnroot/glc-lib
from glc_lib/trunk

The machine is Windows7 64, QtCreator 2.4.1, Based on Qt 4.7.4(32 bit)

Build output is:
d:\miroslav\sa_svna\3rdparty\glext\glext.h:370: warning: C4005: 'GL_BLEND_EQUATION_RGB' : macro redefinition
c:\qtsdk\desktop\qt\4.8.0\msvc2010\include\qtopengl\qglfunctions.h:1445: see previous definition of 'GL_BLEND_EQUATION_RGB'
D:\Miroslav\GLC_lib-build-desktop-Qt_4_8_0_for_Desktop_-_MSVC2010__Qt_SDK__Debug\..\sa_svna\maths\glc_geomtools.cpp:31: error: C2065: 'defaultPrecision' : undeclared identifier


Sun Mar 11, 2012 12:55 pm
Profile
Site Admin

Joined: Sun Jan 03, 2010 4:27 pm
Posts: 390
Post Re: Unable to build GLC_lib on Windows 7 64bit
Hi,
miroslavign wrote:
D:\Miroslav\GLC_lib-build-desktop-Qt_4_8_0_for_Desktop_-_MSVC2010__Qt_SDK__Debug\..\sa_svna\maths\glc_geomtools.cpp:31: error: C2065: 'defaultPrecision' : undeclared identifier

That's true, in order to compile GLC_lib you have to replace :
Code:
double glc::comparedPrecision= defaultPrecision;

by
Code:
double glc::comparedPrecision= glc::defaultPrecision;


At line 31 of glc_geomtools.cpp

Thanks for reporting this bug.

I don't know why but the compilation worked with gcc on Mac OSX.

The SVN has been updated.

@+


Sun Mar 11, 2012 2:48 pm
Profile

Joined: Sat Mar 10, 2012 10:32 am
Posts: 5
Post Re: Unable to build GLC_lib on Windows 7 64bit
Thank you for that.
Still not working.

Just to be sure:

1. downloaded the code which has GLC_Context class, so this is the latest with changes as you suggested (from svn)
2. first installed the old GLC_lib, and then overWritten with all from with this new build (all .h files, .dll . . .)
3. build new Example07

But on execution:
Starting D:\Miroslav\GLC_lib\Exemple07-build-desktop-Qt_4_8_0_for_Desktop_-_MSVC2010__Qt_SDK__Debug\debug\Exemple07.exe...
The program has unexpectedly finished.
D:\Miroslav\GLC_lib\Exemple07-build-desktop-Qt_4_8_0_for_Desktop_-_MSVC2010__Qt_SDK__Debug\debug\Exemple07.exe exited with code -1073741819


Might I add
1. GLC_lib is build with MSVC2010 qtsdk(4.8.4) - it gives .dll as well as as .lib, which I put in /lib folder of GLC installation dir
2. Example07 is built with with MSVC2010 qtsdk(4.8.4), and it can not be built ok with say MiniGW

Any ideas am I missing something?


Sun Mar 11, 2012 3:33 pm
Profile
Site Admin

Joined: Sun Jan 03, 2010 4:27 pm
Posts: 390
Post Re: Unable to build GLC_lib on Windows 7 64bit
Hello,
I doesn't use msvc 2010...
miroslavign wrote:
1. downloaded the code which has GLC_Context class, so this is the latest with changes as you suggested (from svn)
2. first installed the old GLC_lib, and then overWritten with all from with this new build (all .h files, .dll . . .)
3. build new Example07

Yes, it's good. but to install GLC_lib compiled with msvc, the better way is to run :
Code:
nmake install


miroslavign wrote:
But on execution:
Starting D:\Miroslav\GLC_lib\Exemple07-build-desktop-Qt_4_8_0_for_Desktop_-_MSVC2010__Qt_SDK__Debug\debug\Exemple07.exe...
The program has unexpectedly finished.
D:\Miroslav\GLC_lib\Exemple07-build-desktop-Qt_4_8_0_for_Desktop_-_MSVC2010__Qt_SDK__Debug\debug\Exemple07.exe exited with code -1073741819


Can you give me more information. Perhaps running Exemple07.exe with a debugger to find where is the problem ?
laumaya wrote:
Might I add
1. GLC_lib is build with MSVC2010 qtsdk(4.8.4) - it gives .dll as well as as .lib, which I put in /lib folder of GLC installation dir
2. Example07 is built with with MSVC2010 qtsdk(4.8.4), and it can not be built ok with say MiniGW


If you built GLC_lib with msvc it's normal that you can't use MinGW to built a software that use GLC_lib. You have to compile both with the same compiler.

@+


Sun Mar 11, 2012 7:40 pm
Profile

Joined: Sat Mar 10, 2012 10:32 am
Posts: 5
Post Re: Unable to build GLC_lib on Windows 7 64bit
OK,

I did it all from scratch now, and used just miniGW on Windows7 machine.
The results were the same, I will upload image screenShot, and what other
debug info would you need. How can I get you the needed info from inside
QT debugging (I'm new to QT really)


Attachments:
debug.jpg
debug.jpg [ 241.6 KiB | Viewed 11984 times ]
Wed Mar 14, 2012 7:03 pm
Profile
Site Admin

Joined: Sun Jan 03, 2010 4:27 pm
Posts: 390
Post Re: Unable to build GLC_lib on Windows 7 64bit
Sorry, but I haven't enought information to find the reason of your segmentation fault :(

I have trying to compile GLC_lib with Qt creator of the last SDK -> Failed :o

So I will give you all the step to compile it from command line :

First getting GLC_lib : http://glc-lib.svn.sourceforge.net/viewvc/glc-lib/glc-lib/tags/Version_2_2_1/?view=tar
After downloading, for this example extract it to : C:\compil_glc_lib

Then download Exemple7 : http://glc-lib.svn.sourceforge.net/viewvc/glc-lib/exemple07/trunk/?view=tar
For this example extract it to C:\exemple07

Launch a Qt command line prompt
Attachment:
Run command line.jpg
Run command line.jpg [ 27.38 KiB | Viewed 11979 times ]

Into GLC_lib dir :
Lunch qmake
Attachment:
Compilation_GLC_lib_01.JPG
Compilation_GLC_lib_01.JPG [ 29.07 KiB | Viewed 11979 times ]

Lunch compilation
Attachment:
Compilation_GLC_lib_02.JPG
Compilation_GLC_lib_02.JPG [ 30.68 KiB | Viewed 11979 times ]

Compiling in progress, it's may take a while...
Attachment:
Compilation_GLC_lib_03.JPG
Compilation_GLC_lib_03.JPG [ 120.16 KiB | Viewed 11979 times ]

Make installation
Attachment:
Compilation_GLC_lib_04.JPG
Compilation_GLC_lib_04.JPG [ 104.55 KiB | Viewed 11979 times ]

Install Done
Attachment:
Compilation_GLC_lib_05.JPG
Compilation_GLC_lib_05.JPG [ 77.37 KiB | Viewed 11979 times ]


Update system variable :
Attachment:
variable01.JPG
variable01.JPG [ 47.27 KiB | Viewed 11979 times ]

Attachment:
variable02.JPG
variable02.JPG [ 20.66 KiB | Viewed 11979 times ]


Into Exemple07 dir :
Lunch qmake
Attachment:
Compilation_exemple07_01.JPG
Compilation_exemple07_01.JPG [ 75.29 KiB | Viewed 11979 times ]

Lunch compilation
Attachment:
Compilation_exemple07_02.JPG
Compilation_exemple07_02.JPG [ 71.73 KiB | Viewed 11979 times ]

Go to release directory and lunch exemple07.exe
Attachment:
Execution_exemple07_01.JPG
Execution_exemple07_01.JPG [ 97.44 KiB | Viewed 11979 times ]

Attachment:
Execution_exemple07_02.JPG
Execution_exemple07_02.JPG [ 33.16 KiB | Viewed 11979 times ]

It's work on my computer... Windows 7 Pro 64

I hope it's will help.
@+


Wed Mar 14, 2012 10:51 pm
Profile

Joined: Sat Mar 10, 2012 10:32 am
Posts: 5
Post Re: Unable to build GLC_lib on Windows 7 64bit
Thank you for this detailed instruction,
will try that ASAP.


Wed Mar 14, 2012 11:05 pm
Profile

Joined: Sat Mar 10, 2012 10:32 am
Posts: 5
Post Re: Unable to build GLC_lib on Windows 7 64bit
Hello,

the process as you described it really works :D
Anyway, just a few hints:
1. after building glc_lib, we did make install,
I suppose in make files it is defined that default dir
for installing is c:\GLC_lib , so that is one of the reasons all went ok ?

2. now the example07 is also buildable from inside QT creator,
and is executing correctly

I will try this to reproduce on a few more machines, just to figure out what
were the issues in builds/installs from inside QT. Although, installs were made
manually by me - overwriting some of the files in original lib instalation :(

Thank you for helping me out


Thu Mar 15, 2012 2:09 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.