在本文中,我们将为您详细介绍我如何编译Windows的cymunk?的相关知识,并且为您解答关于windows怎么编译c的疑问,此外,我们还会提供一些关于c–如何在Windows7/visualstu
在本文中,我们将为您详细介绍我如何编译Windows的cymunk?的相关知识,并且为您解答关于windows怎么编译c的疑问,此外,我们还会提供一些关于c – 如何在Windows 7 / visual studio 2008下编译Windows XP、configuration,使,git的Windows =如何编译和安装在Windows上、cygwin gcc 编译windowsAPI 报错的一个解决方案、Go交叉编译windows程序的有用信息。
本文目录一览:- 我如何编译Windows的cymunk?(windows怎么编译c)
- c – 如何在Windows 7 / visual studio 2008下编译Windows XP
- configuration,使,git的Windows =如何编译和安装在Windows上
- cygwin gcc 编译windowsAPI 报错的一个解决方案
- Go交叉编译windows程序
我如何编译Windows的cymunk?(windows怎么编译c)
我已经尝试在win7 x32(vBox)和x64上使用mingw和几个python版本
在x64上,cymunk编译,但导入时崩溃与ntdll.dll错误
在x32上,cymunk无法编译“矮人错误”
我必须使用MSVC吗? 如果是这样,怎么版本?
任何答案赞赏!
额外信息:
http://cython.org/ – 从piv / easy_install,从kivy和预编译的版本(版本0.20.2和0.20.1-b?)尝试manuall编译的cython
使用python 2.7.6和最新的,也是一个捆绑在一起的kivy
用最新的mingw,还有一个捆绑了kivy
Windows Python程序重启(不同生活中的罪过)
在Windows LinkError上使用Anaconda发行版的%cython:命令'gcc'失败,退出状态为1
Cython编译为exe,Windows
在集群上使用Python,Cython和GSL
Cython的静态链接与Python运行时?
x32(vBox)与矮人错误日志: http : //pastebin.com/vgkcwj6W
问题我在github上打开: https : //github.com/tito/cymunk/issues/26
在Windows x64中运行Cython – 致命错误C1083:无法打开包含文件:'basetsd.h':没有这样的文件或目录
即使在编辑PATH之后,也无法使CythonfindMinGW gcc编译器,在distutils中创build一个文件,删除-mno-cygwin的所有实例
Python 3.4:编译用于64位窗口的cython模块
如何将一个链接的DLL和一个pyd文件打包成一个自包含的pyd文件?
Cython runtests.py:no属性'may_share_memory'
我很确定这与你的环境有关。 尝试至少使用mingw的4.8.2版本,并确保你的机器上没有多个mingw版本(或mingw和cygwin等)
如果你有多个版本的mingw(也许还有cygwin?),你可能会使用最新版本的编译器,但是一些指向LIB目录的环境变量是来自其他版本(不兼容的mingwrt可能?)。
我建议你尝试使用这个工具http://sourceforge.net/projects/mingw/files/Installer/来管理mingw包; 也许还有一个
mingw-get升级“mingwrt = 4.0.3”
(最新的mingw运行时系统 – 我猜ntdll错误是由此造成的)
在Windows上的技巧是使用-std = gnu99而不是-std = c99 – 在花栗鼠论坛上注意到。
我相应地更新了cymunk。
https://github.com/tito/cymunk/commit/2906ea14cbfaf42c067df4df59404c63de953c3b
编译Windows现在应该更容易。
c – 如何在Windows 7 / visual studio 2008下编译Windows XP
这是一个非常小的命令行程序,所以应该有任何荒谬的依赖:
// XPBuild.cpp : Defines the entry point for the console application. // #include "stdafx.h" int _tmain(int argc,_TCHAR* argv[]) { printf("Hello world"); getchar(); return 0; }
我在某处读到defining several constants such as WINVER应该允许我为其他平台编译.我已经尝试将以下内容添加到my / D编译器选项中:
;WINVER=0x0501;_WIN32_WINNT 0x0501;NTDDI_VERSION=NTDDI_WINXP
但这没有任何区别.当我在我的Windows XP机器上运行它(实际上在virtualbox中运行)时,我收到以下错误:
This application has Failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
那么我错过了什么?是否还需要运行MSVC编译的程序或其他编译器选项或其他东西?
解决方法
尝试在XP机器上安装Microsoft Visual C++ 2008 SP1 Redistributable Pack – 您很可能会看到您的程序无需任何更改即可运行.
configuration,使,git的Windows =如何编译和安装在Windows上
我想在Windows上使ffmpeg-ruby工作。 如果可能的话。 但我不知道该怎么办
configuration
使
./configure --prefix=/opt/ffmpeg --enable-pthreads --enable-shared --enable-gpl
make
如何获取Makefile中的用户名?
C ++查找数据目录的跨平台解决scheme
对于CIFS共享上的文件,PHP file_exists有时会返回false
ImportError:没有安装django.core.handlers.wsgi的模块django mod_wsgi config apache
如何安装脚本以从命令行的任何位置运行?
sudo make install
在Windows上的git ?
git clone git://github.com/gwik/ffmpeg-ruby.git
cd ffmpeg-ruby
gem build ./ffmpeg-ruby.gemspec
sudo gem install ./ffmpeg-ruby-0.1.0.gem -- --with-ffmpeg-dir=/opt/ffmpeg
– 抱歉的格式,不能让它看起来更好
我如何安装一个C ++库,以便我可以使用它?
无法在centos 6.5上安装python-dev
cmake“make install”到远程机器?
如何在Ubuntu 14.04上安装MarkLogic 8?
是否可以在Windows上多次安装特定版本的Python?
如果你以前从未使用git,可以使用TortoiseGit作为GUI界面。 这需要您安装由Ignacio链接的msysgit。 可能更好地获得来源。
然后从安装了Msys和MinGW的窗口启动msys命令行。 导航到你的文件夹(你可能想挂载它们 – 请参阅msys的etc目录中的fstab文件)。 在那里你可以运行./configure和make。
make install在windows上是没有意义的,而且sudo在msys中是不存在的,所以跳过这一步 – 你的二进制文件将会在源代码文件夹中生成。
cygwin gcc 编译windowsAPI 报错的一个解决方案
一开始按照linux的习惯去编译一个使用了windowsAPI的程序
结果提示:
$ i686-pc-cygwin-g++ screen_catch.c
screen_catch.c: In function ‘int main()’:
screen_catch.c:158:39: warning: ISO C++ forbids converting a string constant to ‘LPSTR {aka char*}’ [-Wwrite-strings]
SaveBitmapToFile(hBmp,"c:\\11.bmp");
^
/tmp/cc2yXn3P.o:screen_catch.c:(.text+0x38): undefined reference to `_imp__CreateDCA@16''
/tmp/cc2yXn3P.o:screen_catch.c:(.text+0x53): undefined reference to `_imp__GetDeviceCaps@8''
/tmp/cc2yXn3P.o:screen_catch.c:(.text+0x6d): undefined reference to `_imp__GetDeviceCaps@8''
/tmp/cc2yXn3P.o:screen_catch.c:(.text+0x83): undefined reference to `_imp__DeleteDC@4''
/tmp/cc2yXn3P.o:screen_catch.c:(.text+0x101): undefined reference to `_imp__GetObjectA@12''
/tmp/cc2yXn3P.o:screen_catch.c:(.text+0x215): undefined reference to `_imp__GetStockObject@4''
/tmp/cc2yXn3P.o:screen_catch.c:(.text+0x251): undefined reference to `_imp__SelectPalette@12''
/tmp/cc2yXn3P.o:screen_catch.c:(.text+0x264): undefined reference to `_imp__RealizePalette@4''
/tmp/cc2yXn3P.o:screen_catch.c:(.text+0x2aa): undefined reference to `_imp__GetDIBits@28''
/tmp/cc2yXn3P.o:screen_catch.c:(.text+0x2cf): undefined reference to `_imp__SelectPalette@12''
/tmp/cc2yXn3P.o:screen_catch.c:(.text+0x2df): undefined reference to `_imp__RealizePalette@4''
/tmp/cc2yXn3P.o:screen_catch.c:(.text+0x48e): undefined reference to `_imp__CreateCompatibleDC@4''
/tmp/cc2yXn3P.o:screen_catch.c:(.text+0x4c7): undefined reference to `_imp__CreateDIBSection@24''
/tmp/cc2yXn3P.o:screen_catch.c:(.text+0x4e1): undefined reference to `_imp__SelectObject@8''
/tmp/cc2yXn3P.o:screen_catch.c:(.text+0x52e): undefined reference to `_imp__BitBlt@36''
/tmp/cc2yXn3P.o:screen_catch.c:(.text+0x556): undefined reference to `_imp__DeleteDC@4''
collect2: error: ld returned 1 exit status
经过网上查找,发现是编译时没有链接到对应的库导致的。找到对应的库
g++ *.cpp -l Gdi32
编译成功。
Go交叉编译windows程序
在Mac下编译一个调用了 sqlite3 的程序。
安装 sqlite3
运行
go get github.com/mattn/go-sqlite3
go install github.com/mattn/go-sqlite3
windows安装sqlite3
请访问 SQLite 下载页面,从 Windows 区下载预编译的二进制文件。
您需要下载 sqlite-tools-.zip 和 sqlite-dll-.zip 压缩文件。然后创建文件夹 C:\sqlite
,并在此文件夹下解压上面两个压缩文件,将得到 sqlite3.def、sqlite3.dll 和 sqlite3.exe 文件。
添加 C:\sqlite
到 PATH 环境变量,最后在命令提示符下,使用 sqlite3 命令,就能进入sqlite了。
交叉编译
在启用CGO_ENABLED的情况下,尝试使用下面命令进行Windows平台的交叉编译:
$ CGO_ENABLED=1 GOOS=windows GOARCH=386 go build -x -v -ldflags "-s -w"
出现错误如下:
# runtime/cgo
gcc_libinit_windows.c:7:10: fatal error: ''windows.h'' file not found
安装mingw-w64
brew install mingw-w64
编译64位
CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ \
GOOS=windows GOARCH=amd64 go build
编译x86
$ CGO_ENABLED=1 CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ \
GOOS=windows GOARCH=386 go build
windows好用的终端工具
ConEmu,比 cmd 好用N倍。
Ref
- https://conemu.github.io/
今天关于我如何编译Windows的cymunk?和windows怎么编译c的分享就到这里,希望大家有所收获,若想了解更多关于c – 如何在Windows 7 / visual studio 2008下编译Windows XP、configuration,使,git的Windows =如何编译和安装在Windows上、cygwin gcc 编译windowsAPI 报错的一个解决方案、Go交叉编译windows程序等相关知识,可以在本站进行查询。
本文标签: