博客园 ::  :: 新随笔 :: 联系 ::  :: 管理

2012年6月2日

有两个库,一上午没搞定。
记下来:

 

http://stackoverflow.com/questions/4715530/opengl-how-to-compile-glew32-dll-from-source-file/4716857#4716857

编译glew是简单的,直接vc 6的dsw 用vs2010打开,选择转换,编译即可。在我这儿,四个工程均通过了。

 

而对glut32

http://www.divms.uiowa.edu/~cwyman/classes/common/howto/winGLUT.html

这儿有一个教程,有直接编译好的bin, vs2010也可使用。

这是一篇编译glut的指导,但我在编译时有几个LINK error,没有成功…   http://staff.psc.edu/smp/teaching/is2780-fall2001/glutwincompile.html

 

opengl及glu是vs自带的.

 

 

Opengl程序中常有一些头文件间顺序比较关键,如以下三个:

#include <cstdlib>
// includes //
#include <GL/glew.h>
#include <GL/glut.h>
 

posted @ 2012-06-02 14:00 justin_s 阅读(4) 评论(0) 编辑

2012年5月29日

柳枝编成的船篷,
还旋绕着夏蝉的长鸣。
 

挖一个池沼,
蓄起幻想的流水。
在童年的落叶里,
寻找金色的蝉蜕。

 

我的心收缩,
像石子沉入水底。
我的心膨胀,
像气球升向蓝空。

 

河(一)

当我合上眼,
思想便渐渐地微弱,
闪着蓝光,
像疲乏的烛光。
我生命的源泉,
在夜、在梦、在地层中潜流。

在那溶凝无隙的黑暗里,
它似乎是停止了,
但时光和水花汇成的歌,
却无止息地在传播……

初春的芳香,
浸透了沙岩、石砾,
于是,大地便在荡漾中复活。
淡淡的,
像晨光样渗出,
似露滴般闪烁……
呵!苏醒的风,
吹动半天锦霞、一匹清波……

它在云雾的帐幕中玩耍,
又从彩虹的脊背上滑过,
终于从高天泻下,
淹没了人间的一切沙原、荒漠。

它是什么?
是……
呵,就是我,

是我生命的江河。

 

 

我在一堆稿纸中乱翻,
寻找往日欢乐的诗篇。
谁知欢乐并不是永远闪光的金箔,
早已长满了遗憾的锈斑。

posted @ 2012-05-29 17:03 justin_s 阅读(0) 评论(0) 编辑

2012年5月25日

Are you referring to this project?
http://sourceforge.net/projects/cppunit

If so, use TortoiseSVN for example to get the latest code from svn:
https://cppunit.svn.sourceforge.net/svnroot/cppunit

It contains "INSTALL-VS.Net2008.txt" with instructions for Visual Studio 2008 but it can also be applied to Visual Studio 2010.

You may have to edit src\msvc6\testrunner\MsDevCallerListCtrl.cpp and replace
version("9.0")
with
version("10.0")

You can safely ignore any build errors as long as the sln outputs cppunit(d).lib or whichever dependencies you need.

Have fun! :)

posted @ 2012-05-25 11:18 justin_s 阅读(4) 评论(0) 编辑

2012年5月23日

1. delete   xxx/cache.db

2. amtlib.dll

3.

posted @ 2012-05-23 12:34 justin_s 阅读(0) 评论(0) 编辑

2012年5月21日

之前没有装sqlite plugin,原来不用重新编译整个qt…只找到相关的plugin下 qmake一下就好了

posted @ 2012-05-21 21:47 justin_s 阅读(2) 评论(0) 编辑

2012年5月17日

摘要: 好像很多人都参考这个来的,,http://blog.csdn.net/lkbwx/article/details/5311802 但我觉得这个是有问题的 CLAPACK的vs工程中Code Generation中使用了MT选项,只要对应的Levmar中调成一致就可以了。阅读全文

posted @ 2012-05-17 23:34 justin_s 阅读(3) 评论(0) 编辑

摘要: Uriah Liggett wrote:> I need DLL's compiled in debug mode to have the letter 'd' appended to > their name. For example doStuffd.dll would be the debug version of > doStuff.dll. The generator i'm usi...阅读全文

posted @ 2012-05-17 16:56 justin_s 阅读(0) 评论(0) 编辑

2012年5月6日

摘要: 编译安装,这是 Linux 下安装软件的常见方式,大致步骤 cygwin编译python3一文有述,鉴于原文是墙外的 blogspot,故摘要在这里: 下载源码,解压 Cygwin 下切换到源码目录,运行命令 ./configure –enable-shared –with-wide-unicode make,最后会报错退出,提示缺少 libpython3.2mu.dll.a,只需将当前目录...阅读全文

posted @ 2012-05-06 01:12 justin_s 阅读(7) 评论(0) 编辑

2012年4月20日

摘要: 纹理顶点(UV Vertexs)和网格几何顶点(Mesh Vertexs)无对应关系,但纹理面片(UV Faces)必然和网格面片(Mesh Face)一一对应。大家一定没有发现Mesh类存在一个什么诸如"numTVFaces"之类的成员来标识纹理面片的数量。这当然毫无必要,纹理面片的数目不但和几何面片的数目相同,而且在索引上也是一一对应的关系。tvFace就是纹理面片数组,显然faces[i]对...阅读全文

posted @ 2012-04-20 22:21 justin_s 阅读(1) 评论(0) 编辑

2012年3月23日

摘要: Normalizes the signature of the given method. Qt uses normalized signatures to decide whether two given signals and slots are compatible. Normalization reduces whitespace to a minimum, moves 'const' t...阅读全文

posted @ 2012-03-23 11:26 justin_s 阅读(4) 评论(0) 编辑