Error ao compilar o Tio no Mac OS X Lion

1 view
Skip to first unread message

Thiago Avelino

unread,
Aug 25, 2011, 9:57:24 PM8/25/11
to Tio Project Brasil
Segue o error:
$ cmake . && make
-- Boost version: 1.47.0
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/avelino/Sites/tio/tio
Scanning dependencies of target tio
[ 12%] Building CXX object CMakeFiles/tio.dir/pch.cpp.o
[ 25%] Building CXX object CMakeFiles/tio.dir/Command.cpp.o
[ 37%] Building CXX object CMakeFiles/tio.dir/ContainerManager.cpp.o
[ 50%] Building CXX object CMakeFiles/tio.dir/TioTcpServer.cpp.o
[ 62%] Building CXX object CMakeFiles/tio.dir/TioTcpSession.cpp.o
/Users/avelino/Sites/tio/tio/TioTcpSession.cpp: In member function
‘void tio::TioTcpSession::OnReadCommand(const
boost::system::error_code&, size_t)’:
/Users/avelino/Sites/tio/tio/TioTcpSession.cpp:267: error: ‘class
boost::asio::basic_stream_socket<boost::asio::ip::tcp,
boost::asio::stream_socket_service<boost::asio::ip::tcp> >’ has no
member named ‘io_service’
make[2]: *** [CMakeFiles/tio.dir/TioTcpSession.cpp.o] Error 1
make[1]: *** [CMakeFiles/tio.dir/all] Error 2
make: *** [all] Error 2

Rodrigo Strauss

unread,
Aug 26, 2011, 10:21:16 AM8/26/11
to tio-proje...@googlegroups.com
Deve ser incompatibilidade com o Boost 1.47.

Pode compilar com o 1.44? Vou migrar para o 1.47, mas não sei se
consigo fazer isso hoje. Está usando a última revisão?

Rodrigo Strauss
http://www.1bit.com.br
@rodrigostrauss

Rodrigo Strauss

unread,
Aug 26, 2011, 1:31:29 PM8/26/11
to tio-proje...@googlegroups.com
Já fiz a correção, agora funciona com o Boost 1.47. Pode testar novamente?

Rodrigo Strauss
http://www.1bit.com.br
@rodrigostrauss

Thiago Avelino

unread,
Aug 26, 2011, 1:43:52 PM8/26/11
to tio-proje...@googlegroups.com
Cara fiz algumas modificação na parte de Python colocando em PEP 8 me add no repositorio para eu mandar para vc, segue abaixo os erros:

$ cmake . && make
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/avelino/Sites/tio/tio
Scanning dependencies of target tio
[ 12%] Building CXX object CMakeFiles/tio.dir/pch.cpp.o
[ 25%] Building CXX object CMakeFiles/tio.dir/Command.cpp.o
[ 37%] Building CXX object CMakeFiles/tio.dir/ContainerManager.cpp.o
[ 50%] Building CXX object CMakeFiles/tio.dir/TioTcpServer.cpp.o
[ 62%] Building CXX object CMakeFiles/tio.dir/TioTcpSession.cpp.o
[ 75%] Building CXX object CMakeFiles/tio.dir/TioPython.cpp.o
[ 87%] Building CXX object CMakeFiles/tio.dir/tio.cpp.o
[100%] Building C object CMakeFiles/tio.dir/Users/avelino/Sites/tio/tioclient/tioclient.c.o
Linking CXX executable tio
ld: library not found for -lboost_system
collect2: ld returned 1 exit status
make[2]: *** [tio] Error 1
make[1]: *** [CMakeFiles/tio.dir/all] Error 2
make: *** [all] Error 2

--
Thiago Avelino | www.avelino.us

Rodrigo Strauss

unread,
Aug 29, 2011, 8:22:24 AM8/29/11
to tio-proje...@googlegroups.com
Isso é erro na hora de encontrar a lib do boost. Verifica a sua
instalação do Boost e se os caminhos no CMakeList.txt batem com os da
sua máquina.

Rodrigo Strauss
http://www.1bit.com.br
@rodrigostrauss

On Fri, Aug 26, 2011 at 2:43 PM, Thiago Avelino

Reply all
Reply to author
Forward
0 new messages