QxOrm admin wrote:Could you tell me How do you build qxBlog staticlly? I still have errors when building it.
This is my step:
1. Open qxBlog.sln and convert it to MSVC 2010 format.
2. Build solution.
Step 0 => modify
QxOrm.pri file
I do the same things, I don't have any error, and I can execute qxBlog exec without problem.
Maybe the difference is : how do you link with compiler dependencies (
msvc...lib files) ?
For me, it is linked dynamically !
How do you linked dynamically? I think all librares would be static lib if you use static mode. Could you please send me your qxBlog project to
hcaihao@gmail.com?
This is my pri file:
###############################
# boost Library Configuration #
###############################
# In this section, it's necessary to specify boost directories (lib + include) and boost serialization module name (debug + release) :
# - QX_BOOST_INCLUDE_PATH : your boost include path
# - QX_BOOST_LIB_PATH : your boost lib path
# - QX_BOOST_LIB_SERIALIZATION_DEBUG : your boost serialization module name in debug mode
# - QX_BOOST_LIB_SERIALIZATION_RELEASE : your boost serialization module name in release mode
QX_BOOST_INCLUDE_PATH = $$quote(E:/Boost)
QX_BOOST_LIB_PATH = $$quote(E:/Boost/stage/lib)
QX_BOOST_LIB_SERIALIZATION_DEBUG = "libboost_serialization-vc100-mt-gd-1_48"
QX_BOOST_LIB_SERIALIZATION_RELEASE = "libboost_serialization-vc100-mt-1_48"
unix {
QX_BOOST_INCLUDE_PATH = $$quote(/usr/include)
QX_BOOST_LIB_PATH = $$quote(/usr/lib)
QX_BOOST_LIB_SERIALIZATION_DEBUG = "boost_serialization-mt-d"
QX_BOOST_LIB_SERIALIZATION_RELEASE = "boost_serialization-mt"
} # unix
##############################
# QxOrm Library Static Build #
##############################
# To create only 1 EXE including Qt, boost serialization and QxOrm libraries without any dependency :
# 1- be sure to build Qt and boost::serialization using static mode
# 2- in "./QxOrm.pri" file, add the following line : "DEFINES += _QX_STATIC_BUILD"
# 3- BUT PLEASE : in your program, add a "readme.txt" file and a "about my program..." window to indicate that your application is based on Qt, boost and QxOrm libraries !
# Note : on Windows, static mode works with only 1 EXE, it will never work mixing DLL and EXE (because of singleton implementation of boost::serialization and QxOrm libraries)
DEFINES += _QX_STATIC_BUILD