Recently lots of people asked me how to build QJson under Windows. Most of them reported build/link errors, so I decided to try personally.
The good news is that QJson can be successfully built under Window, I can show you proof
I have written the build instructions on QJson website: just take a look here.
One last note: if you have problems with QJson please subscribe to the developer mailing list and post a message.
Tags: JSON, KDE, qjson, Qt
















Entries (RSS)
Hi,
in your documentation on QJson website is an error.
In the line ‘cmake -G “MinGw Makefiles” ..’ it is ‘MinGW’ not ‘MinGw’
Maybe you can fix it on the QJson website to save others some time
Steffen
Thanks, I fixed it.
Hi
The link to the windows build instructions returns a 404. Would you please take a look.
Thanks
Sammy
********************************
An error has been encountered in accessing this page.
1. Server: qjson.sourceforge.net
2. URL path: /download.html
3. Error notes: NONE
4. Error type: 404
5. Request method: GET
6. Request query string: NONE
7. Time: 2010-04-29 17:58:36 UTC (1272563916)
********************************
The right page is http://qjson.sourceforge.net/get_it
Now http://qjson.sourceforge.net/download.html redirects to this page.
BTW, where did you find the reference to the download page? I thought I removed them…
Hi,
How to install the QJson in windows7. I am using the nokia qt sdk for developing app.
Please help me. THanks in advance
Just follow these instructions. Make sure you execute step 5.
Hi,
I am getting the following
“CMake Error: CMake was unable to find a build program corresponding to “Visual Studio 9 2008″. CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: Could not find cmake module file:C:/Program Files/qjson/build/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Could not find cmake module file:C:/Program Files/qjson/build/CMakeFiles/CMakeCXXCompiler.cmake
Configuring incomplete, errors occurred!”
Regards,
Girija.
I supposed you were trying to build qjson using QtCreator. Have you tried to do that?
yes.. I tried that itself. But If I use the qmake then it shows the error like…
C:\qjson-0.7.1\qjson>qmake
‘qmake’ is not recognized as an internal or external command,
operable program or batch file.
I could not create qjson.pro file.. :’(
Please follow the instructions I liked right above. Just use QtCreator, do not use qmake from the command line.
Ok. I am trying that one. But where could I find the qjson.pro file. The pro file is not available in the qjson folder. Thanks in advance.
You can find them using latest version of qjson from git.
Hi,, Thanks..
I got the following files when I built the qjson.pro. (libqjson0.a,qjson0.dll,qjson.prl). and I used the following line import the qjson to my project…
INCLUDEPATH += “C:\qjson\src\include”
LIBS += “C:\qjson\build\lib\libqjson0.a”
Still I am getting the errors “qjson/parser.h:No Such file or dirctory”
“qjson/qobjecthelper.h:No Such file or dirctory”
I included the both header file in my one of the cpp file. Where can I make the mistake. Please assist me. Thanks in advance.
Your LIBS directive is wrong.
On the page I linked you there’s an example project for windows developers. Check out its .pro file.
Hi,,
Sorry… I used the following lines but I could not solve the error. :’(
INCLUDEPATH += c:\qjson\include
LIBS += -Lc:\qjson\build\lib -lqjson
Please help me. THanks in advance
Regards,
Girija
Have you tried to build the example project? Does it work fine or do you get the same error?
No.. I could not build the sample. Project. I am getting the same error.
I’ll try to reproduce the issue. Right now I’m pretty busy (I’m moving to a different location).
Please send me a mail containing a list of sw you are using.
Hi Flavio,
I’m having problem in making QJson work on the actual Symbian device.
I followed the detailed build instructions in here: http://qjson.sourceforge.net/get_it/symbian.html
When I tried to install qjson.sis and cmdline_tester.sis to my n97 mini, I got “Request application Access not Granted” and “Update error” errors respectively.
I was able to run your sample qmake project (foo).
I created a “Mobile Qt Application” project to test the QJson on the phone.
It’s working on Qt Simulator, but when I switched the project target to “Symbian Device”, it could not start the application.
Here’s what I get in the Application Output
Executable file: 7696 2011-01-22T09:58:57 C:\NokiaQtSDK\Symbian\SDK\epoc32\release\gcce\udeb\qjsontest.exe
Package: 8316 2011-01-22T09:59:00 C:\Users\allan\workspace\Qt\qjsontest\qjsontest.sis
Deploying application to ‘Nokia N97 mini USB (COM4)’…
Copying installation file…
Installing application…
Starting application…
Could not start application: General OS-related error
Finished.
Hope you could help me with this.
Thanks in advance!
I completely followed the Qt Creator guide for compiling qjson, and I noticed that qjson does not have an include folder. is it supposed to make an include folder or something after compiling? what does INCLUDEPATH += …/qjson/include do if there is no include folder in qjson in the first place? doesnt that mean the code is looking for a header file in a folder which does not exist?
I completely followed the Qt Creator guide for compiling qjson, and I noticed that qjson does not have an include folder. is it supposed to make an include folder or something after compiling? what does INCLUDEPATH += …/qjson/include do if there is no include folder in qjson in the first place? doesnt that mean the code is looking for a header file in a folder which does not exist?
grossartiger ahlitu die herding den ditwerblu ohne finuang. bigen mir einsen die mmerrt und foselt den senstant und tionsen den amerista mit berena.
It works perfectly on simulator. but when we build smart installer sis file to Symbian devices, it occurs an error of Undefined Error of QJson::Parser~parser; and QJson::Serializer~serializer; i cant create my projects sis file.
Unfortunately I have no experience with symbian development.
Please send me a patch if you figure out how to fix that.
Hi Girija,
did you find any solution on this … i have same problem
i also having the same problem with QJSon, it working just fine in simulator for N9 but when i deploy it into N9 device ,
it produce Undefined Error of QJson::Parser~parser; and some other error with related to QJson. i dont have a clue how to fix this. im using harmattan to deploy it to n9.