Coder Social home page Coder Social logo

whq527 / libqxt Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 18.76 MB

from https://bitbucket.org/libqxt/libqxt/src/master/

License: Other

QMake 1.61% C++ 92.65% Shell 0.04% Batchfile 0.48% NSIS 0.33% CMake 0.21% Makefile 0.17% Lua 1.53% C 2.94% PHP 0.02%

libqxt's Introduction

解压源码,不包含中文路径,尽量在顶层目录。
修改configre.bat 将qmake的路径添加到环境变量, 根据32位64位修改
在开始菜单里运行”VS2015开发人员命令提示“出configre.bat -msvc
然后运行命令:configure -msvc
在“qxtmailattachment.h"添加头文件: #include<QIODevice>
将项目中的所有“QT_STATIC_CONST_IMPL”换成“const"
将项目中的所有“QT_STATIC_CONST”换成“static const"

1) configure

	make sure qmake is in your PATH and run ./configure  or configure.bat on windows.

    	see configure --help for more information

    	(for msvc you could try  ./configure.bat -msvc and open 
    		the solution file in msvc, we recomend compiling on
    		commandline though)

2) build
	
	type make or nmake when using msvc
	then don't forget to make install 
	Note: This will also install qxt.prf to your qtdir/mkspecs/features directory.



3) use

	Add the following lines to your qmake project file:
	CONFIG  += qxt
	QXT     += core gui

	The QXT variable should contain the modules you want. (In this example core and gui are used.)
	Note: Some modules depend on other modules. The required modules are added automatically.

	if you have an existing msvc project and can't swtich to qmake you can use zbenjamins solution:
	
	     Howto use libqxt in a existing Visual Studio Project:
	      1.  create and install libqxt. (See install instructions)
	      2.  add {libqxtinstalldir}\include\qxt\QxtCore to your include path
	      3.  add {libqxtinstalldir}\lib to your library search path
	      4.  to add a specific libqxt module (f.e QxtSql) you have to:
	           - add {libqxtinstalldir}\include\qxt\QxtSql to your include path
	           - add the library QxtSql.lib to your project
	          Most of the times you have also to include the QxtCore and QxtKit modules.
	          It's done the same way like the example above.

==============================================================================

Building packages (Linux/Unix - experimental):

To build packages for Redhat or Debian based distributions, you can utilize
the "rpm" or "deb" make targets. Perform the configure as outlined above,
edit the "config" file in the packages subdirectory if needed and then type
"make rpm" or "make deb" as appropriate. This will also perform a "make clean"
to avoid copying files which will be rebuilt anyway.

For RPM packages, you will need a standard .rpmmacros file in your home
directory. A sample file, "rpmmacros-sample", is contained in the packages
directory and must be edited for your environment before use.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.