electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
go to the radio page Live at electro-music.com radio 1 Please visit the chat
poster
 Forum index » DIY Hardware and Software » ChucK programming language
ChucK build problem in Ubuntu
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [6 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
kujaw



Joined: Dec 03, 2013
Posts: 2
Location: Poland

PostPosted: Tue Dec 03, 2013 5:01 pm    Post subject: ChucK build problem in Ubuntu Reply with quote  Mark this post and the followings unread

Hey guys, it's my first post here, I am excited to start my journey with ChucK, but unfortunately I've got some problems with building it on Ubuntu. Here's the log:

Code:
g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c util_string.cpp -o util_string.o
util_string.cpp: In function ‘std::string get_full_path(const string&)’:
util_string.cpp:393:14: error: ‘PATH_MAX’ was not declared in this scope
util_string.cpp:395:42: error: ‘buf’ was not declared in this scope
make: *** [util_string.o] Błąd 1


I have no idea what's wrong, can anyone help?
Back to top
View user's profile Send private message
HotFuzzBox



Joined: Dec 08, 2013
Posts: 1
Location: Germany

PostPosted: Sun Dec 08, 2013 11:53 am    Post subject: Reply with quote  Mark this post and the followings unread

This seems to be code to handle a file name.
There is probably a problem with include files. This isn't a proper fix but just to get the programme built you could change "PATH_MAX" to 4096 on line 493 (or thereabouts) of util_string.cpp.
Back to top
View user's profile Send private message
kujaw



Joined: Dec 03, 2013
Posts: 2
Location: Poland

PostPosted: Sun Dec 08, 2013 12:47 pm    Post subject: Reply with quote  Mark this post and the followings unread

Problem is solved, mr Ge Wang released correct version to download and I don't get this bug now.
But now I've got same problem with miniAudicle:

Code:
make -f makefile.qt-alsa
make[1]: Wejście do katalogu `/home/kujaw/Chuck/miniAudicle/src'
g++ -c -m64 -pipe -D__LINUX_ALSA__ -D__CK_SNDFILE_NATIVE__ -D__LINUX__ -D__PLATFORM_LINUX__ -Ichuck/src -DHAVE_CONFIG_H -O3 -w -D_REENTRANT -DQT_WEBKIT -DHAVE_CONFIG_H -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Ibuild -Ibuild -o build/util_string.o chuck/src/util_string.cpp
chuck/src/util_string.cpp: In function ‘std::string get_full_path(const string&)’:
chuck/src/util_string.cpp:393:14: error: ‘PATH_MAX’ was not declared in this scope
chuck/src/util_string.cpp:395:42: error: ‘buf’ was not declared in this scope
make[1]: *** [build/util_string.o] Błąd 1
make[1]: Opuszczenie katalogu `/home/kujaw/Chuck/miniAudicle/src'
make: [linux-alsa] Błąd 2 (ignored)


So I'm waiting for the solution Smile
Back to top
View user's profile Send private message
witchbutter



Joined: Dec 30, 2013
Posts: 1
Location: Aurora, CO

PostPosted: Mon Dec 30, 2013 1:15 am    Post subject: Reply with quote  Mark this post and the followings unread

I noticed in the the tarball miniAudicle-1.3.1.tgz there is a folder ~miniAudicle-1.3.1/chuck/. This folder is actually a copy of the source for chuck. All I needed to do to compile the jack version on Ubuntu 13.10 was replace ~miniAudicle-1.3.1/chuck with the contents of chuck-1.3.3.0.tgz renamed of course to chuck. After that the compilation, 'make linux-jack' works fine and after the 'make install' the search pulls up miniAudicle which works as expected.
Back to top
View user's profile Send private message
nreese



Joined: Jan 16, 2014
Posts: 1
Location: Solomon Islands

PostPosted: Thu Jan 16, 2014 2:36 pm    Post subject: chuck build
Subject description: chuck
Reply with quote  Mark this post and the followings unread

it was easier to go to util_string.cpp in src/chuck/src and change MAX_PATH to 4096
Back to top
View user's profile Send private message
Luiz Mello



Joined: Feb 15, 2014
Posts: 1
Location: Brazil

PostPosted: Tue Feb 18, 2014 6:16 am    Post subject: works for me on Ubuntu 12.04 Reply with quote  Mark this post and the followings unread

The solution is to edit util_string.cpp by adding this line: (after other #includes)

#include <limits>

I found this solution here:
http://comments.gmane.org/gmane.comp.lang.chuck.user/184

works for me on Ubuntu 12.04
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [6 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use