Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

make from src does not work. #4

Closed
GoogleCodeExporter opened this issue Jul 2, 2015 · 6 comments
Closed

make from src does not work. #4

GoogleCodeExporter opened this issue Jul 2, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.qt4.6.2 SDK with mingw gcc 4.4.0(installed with the sdk) as the compiler. 
2.start qt command prompt,cd to project home,and follow your instructions,:
  "mingw32-make qmake"(which succeeded with a few warnings about
version.cpp can not found etc.) ,and then "make", at this moment, the
compiler complains error,as follows:
"mingw32-make[2]: Entering directory
`D:/projects/Qt/workspace/ostinato/ostinato.
src.ok/rpc'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE
-DQT_LARGEFILE_SUPPORT -
DHAVE_REMOTE -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB
-DQT_THREAD_SUPPORT -I"
d:\test\Qt\2010.02.1\qt\include\QtCore"
-I"d:\test\Qt\2010.02.1\qt\include\QtNet
work" -I"d:\test\Qt\2010.02.1\qt\include\QtGui"
-I"d:\test\Qt\2010.02.1\qt\inclu
de" -I"c:\msys\1.0\local\include" -I"google\protobuf"
-I"d:\test\Qt\2010.02.1\qt
\include\ActiveQt" -I"debug" -I"d:\test\Qt\2010.02.1\qt\mkspecs\win32-g++"
-o de
bug\rpcserver.o rpcserver.cpp
In file included from rpcserver.cpp:21:
rpcserver.h:23:37: error: google/protobuf/message.h: No such file or directory
rpcserver.h:24:40: error: google/protobuf/descriptor.h: No such file or
director
y
rpcserver.h:25:37: error: google/protobuf/service.h: No such file or directory
In file included from rpcserver.h:31,
                 from rpcserver.cpp:21:
pbrpccontroller.h:31: error: '::google' has not been declared
..."
3.I downloaded the google protobuff 2.3.0 src code,and extracted the
"google\protobuf" src subdir to "ostinato.src.ok\rpc", and tried again,but
the same problem still exsits.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
Version 0.1rev.d6d8d1ef7a on windows xp sp2.

Please provide any additional information below.
i noticed in the .pro file of the rpc subdir this:
INCLUDEPATH += "c:\msys\1.0\local\include"
but on my pc,there's no msys in the c drive, what is this about?


Original issue reported on code.google.com by [email protected] on 7 May 2010 at 4:02

@GoogleCodeExporter
Copy link
Author

telen0222,

You need to first build the protobuf source seperately from Ostinato and then 
ensure 
that protobuf SDK's exported header files and libraries are available to 
Ostinato 
via the environment variables CPLUS_INCLUDE_PATH and LIBRARY_PATH respectively.

See the following discussion for some expanded build instructions - <http://
groups.google.com/group/ostinato/browse_thread/thread/354b9368754724d1?pli=1>

Ignore the following line in pbrpc.pro. It is not required/used and something I 
seem 
to have forgotten to remove.
INCLUDEPATH += "c:\msys\1.0\local\include

Let me know if you need further help either by updating this issue or posting 
to the 
ostinato mailing list - ostinato at googlegroups dot com

Srivats P.

Original comment by [email protected] on 8 May 2010 at 3:42

@GoogleCodeExporter
Copy link
Author

Srivats
Thanks for your kind help.
Following your instructions,I managed to compile protobuf successfully, and i
modified the "pbrpc.pro" file a bit to to include the protobuf header and lib
files,as follows:
---build out put begin:
INCLUDEPATH += "D:\projects\Qt\workspace\ostinato\protobuf-2.3.0\src\"
LIBS += -L"D:\projects\Qt\workspace\ostinato\protobuf-2.3.0\src\.libs" 
-llibprotobuf.a
LIBS += -L"D:\projects\Qt\workspace\ostinato\protobuf-2.3.0\src\.libs"
-llibprotobuf-lite.a
LIBS += -L"D:\projects\Qt\workspace\ostinato\protobuf-2.3.0\src\.libs" 
-llibprotoc.a

And after this, the "pbrpc" part of the build process went well, but a new 
problem
pops up(while building the "common" part),as follows:
mingw32-make[2]: Entering directory `D:/projects/Qt/workspace/ostinato/ostinato.
src.ok/common'
d:\test\Qt\2010.02.1\qt\bin\uic.exe mac.ui -o ui_mac.h
d:\test\Qt\2010.02.1\qt\bin\uic.exe payload.ui -o ui_payload.h
d:\test\Qt\2010.02.1\qt\bin\uic.exe eth2.ui -o ui_eth2.h
d:\test\Qt\2010.02.1\qt\bin\uic.exe dot3.ui -o ui_dot3.h
d:\test\Qt\2010.02.1\qt\bin\uic.exe llc.ui -o ui_llc.h
d:\test\Qt\2010.02.1\qt\bin\uic.exe snap.ui -o ui_snap.h
d:\test\Qt\2010.02.1\qt\bin\uic.exe vlan.ui -o ui_vlan.h
d:\test\Qt\2010.02.1\qt\bin\uic.exe arp.ui -o ui_arp.h
d:\test\Qt\2010.02.1\qt\bin\uic.exe ip4.ui -o ui_ip4.h
d:\test\Qt\2010.02.1\qt\bin\uic.exe icmp.ui -o ui_icmp.h
d:\test\Qt\2010.02.1\qt\bin\uic.exe tcp.ui -o ui_tcp.h
d:\test\Qt\2010.02.1\qt\bin\uic.exe udp.ui -o ui_udp.h
d:\test\Qt\2010.02.1\qt\bin\uic.exe userscript.ui -o ui_userscript.h
d:\test\Qt\2010.02.1\qt\bin\uic.exe sample.ui -o ui_sample.h
protoc --cpp_out=. protocol.proto
process_begin: CreateProcess(NULL, protoc --cpp_out=. protocol.proto, ...) faile
d.
make (e=2): 系统找不到指定的文件。
mingw32-make[2]: *** [protocol.pb.h] Error 2
mingw32-make[2]: Leaving directory `D:/projects/Qt/workspace/ostinato/ostinato.s
rc.ok/common'
mingw32-make[1]: *** [debug] Error 2
mingw32-make[1]: Leaving directory `D:/projects/Qt/workspace/ostinato/ostinato.s
rc.ok/common'
mingw32-make: *** [all] Error 2

D:\projects\Qt\workspace\ostinato\ostinato.src.ok>
---build out put end.

Expecting your kind reply, thanks in advance:)

By the way, i am in China, and i could not open the link you gave in IE:
http://groups.google.com/group/ostinato/browse_thread/thread/354b9368754724d1?pl
i=1





Original comment by [email protected] on 8 May 2010 at 1:59

@GoogleCodeExporter
Copy link
Author

In case your os can not decode Chinese characters:
"make (e=2): 系统找不到指定的文件。"
means in english: "make (e=2): system can not find the designated file."

Original comment by [email protected] on 8 May 2010 at 2:04

@GoogleCodeExporter
Copy link
Author

telen0222,

When you built the protobuf library, you would also have built the protobuf 
compiler - 
protoc.exe - check if it is in your PATH - if not add it to a location which is 
in 
your PATH

Srivats

Original comment by [email protected] on 8 May 2010 at 3:00

@GoogleCodeExporter
Copy link
Author

telen0222,

Do you need any more help?

Srivats

Original comment by [email protected] on 12 May 2010 at 1:47

@GoogleCodeExporter
Copy link
Author

@telen0222: I'm closing this defect. Please leave a comment if you need help or 
send a 
mail to the mailing list - ostinato at googlegroups dot com

Original comment by [email protected] on 19 May 2010 at 1:25

  • Changed state: Invalid

pstavirs added a commit that referenced this issue Jan 28, 2017
commit 33ad1ab
Author: Srivats P <[email protected]>
Date:   Wed Jan 4 18:21:07 2017 +0530

    Make osx_image global

commit d90a99f
Author: Srivats P <[email protected]>
Date:   Tue Jan 3 22:21:02 2017 +0530

    include not exclude the osx image

commit 4038ca8
Author: Srivats P <[email protected]>
Date:   Tue Jan 3 21:36:46 2017 +0530

    Fix osx_image location again

commit 232dfdb
Author: Srivats P <[email protected]>
Date:   Tue Jan 3 21:16:15 2017 +0530

    Fix incorrect location of overriding osx_image

commit 00a487c
Author: Srivats P <[email protected]>
Date:   Tue Jan 3 20:58:09 2017 +0530

    Force sierra instead of el-capitan

    See cartr/homebrew-qt4#7

commit 33c39b8
Author: Srivats P <[email protected]>
Date:   Tue Jan 3 20:37:26 2017 +0530

    Troubleshoot osx build break changeset #4

commit 8d16809
Author: Srivats P <[email protected]>
Date:   Tue Jan 3 19:03:56 2017 +0530

    Troubleshoot Travis OSX build break changeset #3

commit ae149d0
Author: Srivats P <[email protected]>
Date:   Tue Jan 3 18:24:51 2017 +0530

    troubleshoot osx build break - changeset #2

commit 2626339
Author: Srivats P <[email protected]>
Date:   Tue Jan 3 18:11:46 2017 +0530

    debug changes to troubleshoot osx build break

commit f3423b7
Author: Srivats P <[email protected]>
Date:   Sun Jan 1 12:49:57 2017 +0530

    Use latest protobuf version in HomeBrew

    We had reverted to using protobuf 2.6 when protobuf 3.0 had a regression
    issue with respect to RPCs - this has been fixed in v3.1.0
cdm-work pushed a commit to cdm-work/ostinato that referenced this issue Dec 7, 2017
commit 33ad1ab
Author: Srivats P <[email protected]>
Date:   Wed Jan 4 18:21:07 2017 +0530

    Make osx_image global

commit d90a99f
Author: Srivats P <[email protected]>
Date:   Tue Jan 3 22:21:02 2017 +0530

    include not exclude the osx image

commit 4038ca8
Author: Srivats P <[email protected]>
Date:   Tue Jan 3 21:36:46 2017 +0530

    Fix osx_image location again

commit 232dfdb
Author: Srivats P <[email protected]>
Date:   Tue Jan 3 21:16:15 2017 +0530

    Fix incorrect location of overriding osx_image

commit 00a487c
Author: Srivats P <[email protected]>
Date:   Tue Jan 3 20:58:09 2017 +0530

    Force sierra instead of el-capitan

    See cartr/homebrew-qt4#7

commit 33c39b8
Author: Srivats P <[email protected]>
Date:   Tue Jan 3 20:37:26 2017 +0530

    Troubleshoot osx build break changeset pstavirs#4

commit 8d16809
Author: Srivats P <[email protected]>
Date:   Tue Jan 3 19:03:56 2017 +0530

    Troubleshoot Travis OSX build break changeset pstavirs#3

commit ae149d0
Author: Srivats P <[email protected]>
Date:   Tue Jan 3 18:24:51 2017 +0530

    troubleshoot osx build break - changeset pstavirs#2

commit 2626339
Author: Srivats P <[email protected]>
Date:   Tue Jan 3 18:11:46 2017 +0530

    debug changes to troubleshoot osx build break

commit f3423b7
Author: Srivats P <[email protected]>
Date:   Sun Jan 1 12:49:57 2017 +0530

    Use latest protobuf version in HomeBrew

    We had reverted to using protobuf 2.6 when protobuf 3.0 had a regression
    issue with respect to RPCs - this has been fixed in v3.1.0
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant