danleeb / GreenJ

GreenJ is an open source Voice-over-IP phone software (softphone) using pjsip and Qt. It can easily be used to build your own VoIP phone system.
http://www.greenj.org
Other
60 stars 37 forks source link

Problem Building On Windows (QTJson) #20

Open tatocasta opened 11 years ago

tatocasta commented 11 years ago

Hi there,

I'm having a problem when i try com build the 1.1 Branch...

When i'm compiling JavascriptHandler.cpp i got this errors:

1>..\src\JavascriptHandler.cpp(25) : error C2039: 'json' : is not a member of 'QtJson' 1>..\src\JavascriptHandler.cpp(25) : error C2873: 'json' : symbol cannot be used in a using-declaration 1>..\src\JavascriptHandler.cpp(56) : error C2653: 'Json' : is not a class or namespace name 1>..\src\JavascriptHandler.cpp(56) : error C3861: 'serialize': identifier not found 1>..\src\JavascriptHandler.cpp(513) : error C2653: 'Json' : is not a class or namespace name 1>..\src\JavascriptHandler.cpp(513) : error C3861: 'serialize': identifier not found 1>Build log was saved at "file://G:\SOFTWARE\GreenJ-1.1\GreenJ-1.1\build\win32\Debug\BuildLog.htm" 1>greenj - 6 error(s), 1 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I've checked and i have the qt-json source code in the "vendor/qt-json/" folder.

i'm using Visual C++ 2008 Express and pjsip 1.16, and i have no problems to build the 1.0 branch...

Thanks for the help.

Regards.

danleeb commented 11 years ago

Hello,

are you sure you are using the correct VS project file? "$(VENDOR_DIR)\qt-json" has to be part of your include directories (AdditionalIncludeDirectories) in your VS project properties.

tatocasta commented 11 years ago

Hi, first, thanks for you reply... I have the qt-json path in the include directories, i have tried with the absolute and relative path, and nothing worked! I'm following the exact same process that i used for the GrennJ 1.0 (This works great), but i got always the same error!.. Please, tell me wath info should i post about the project to see wath am i doing wrong...

Another thing, do you have any available binaries/precompiled package for the 1.1 branch....?, The new softphone interface looks great, so if you have a binary package, i'd like to try it, and work on the HTML/Javascript interface (and translate it to spanish) while i get to build my own.

Thanks for your help!

Regards!

danleeb commented 10 years ago

QTJson is included via a git submodule. Maybe there went something wrong for you, or you haven't cloned the submodule as well. You could try to download qt-json from https://github.com/ereilin/qt-json manually and add a new include directory. I will provide binaries for 1.1 as soon as possible.

tatocasta commented 10 years ago

=(, Thanks, but i've already done that.... I have been trying everything for the last week, diferent pc, diferent visual studio version, download everythign and compile every thing from scratch, but nothing... I hope you can publish the 1.1 binaries soon...

Thanks for the help!

danleeb commented 10 years ago

I merged 1.1 into master and committed some changes in the Visual Studio project file. Please try building it again. I will upload the new binaries tomorrow.

danleeb commented 10 years ago

Binaries for v1.1 (Windows; VS 2008; PJSIP 1.16; QT 4.8.5) are now available on www.greenj.org

tatocasta commented 10 years ago

Thanks for your help, i tried to compile the with the new master branch, but i got the exact same results... No idea wath am i doing wrong... In any case i'm working with the binaries in the new phone interface... First i will translate it to spanish!. One question, the softphone works perfect for incoming and outgoing calls, but when i'm trying to send a DTMF nothing happens... Is there any configuration to set the DTMF mode (Sip Info, Inband, RFC2833)??? Or the softphone simply does not support DTMF sending?

danleeb commented 10 years ago

You could check out the feature-dtmf branch from elasticsales: https://github.com/elasticsales/GreenJ/tree/feature-dtmf