Qt Error At Top Level
Contents |
download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript). Home Qt cannot open include file stddef h Development Installation and Deployment Issues compiling c files in Qt fatal error c1083 cannot open include file cstddef no such file or directory creator Issues compiling c files in Qt creator This topic has been deleted. Only users with
Microsoft Platform Sdk
topic management privileges can see it. benardmens last edited by I'm learning c/c++ and wanted to do some work with QT Creator. I am using a
Windows 8.1 Sdk
base64 class that just refuses to compile and any help would be greatly appreciated. The error lines I get is /QTDev/PolicyFrameworkDesktop-build-desktop/../PolicyFrameworkDesktop/libhaggle/base64.h:59: error: expected ';', ',' or ')' before 'in' /QTDev/PolicyFrameworkDesktop-build-desktop/../PolicyFrameworkDesktop/libhaggle/base64.h:66: error: expected ';', ',' or ')' before 'in' /QTDev/PolicyFrameworkDesktop-build-desktop/../PolicyFrameworkDesktop/libhaggle/base64.c:68: error: expected ';', ',' or ')' before 'in' /QTDev/PolicyFrameworkDesktop-build-desktop/../PolicyFrameworkDesktop/libhaggle/base64.c:: error: At top level: /QTDev/PolicyFrameworkDesktop-build-desktop/../PolicyFrameworkDesktop/libhaggle/base64.c:320: error: expected ';', ',' or ')' before '*' token /QTDev/PolicyFrameworkDesktop-build-desktop/../PolicyFrameworkDesktop/libhaggle/base64.c:373: error: expected ';', ',' or ')' before 'in' /QTDev/PolicyFrameworkDesktop-build-desktop/../PolicyFrameworkDesktop/libhaggle/base64.c:456: error: expected ';', ',' or ')' before 'in' The files in question are in the links below along with the 'pro' file and the generated Makefile. http://rapidshare.com/files/435084121/base64.c http://rapidshare.com/files/435084122/base64.h http://rapidshare.com/files/435084571/Makefile http://rapidshare.com/files/435084682/PolicyFrameworkDesktop.pro [fixed topic, Tobias Hunger] Reply Quote 0 DenisKormalev last edited by restrict is C keyword, not C++. I think you should not include them in .pro but make additional Makefile (manually) which will call C compiler for base64 library and link it in your .pro file. Reply Quote 0 benardmens last edited by Hi Denis, Thanks for the quick reply. Can you please give me an example of how to link a manual makefile to a pro file? Also i thought the #ifdef __cplusplus section would stop any compiler issues? Thanks again Reply Quote 0 tobias.hunger Moderators last edited by Why a base64 library? Qt can d
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask https://forum.qt.io/topic/2139/issues-compiling-c-files-in-qt-creator Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Compiler error when building Qt up vote 1 down vote favorite I am trying to build http://stackoverflow.com/questions/19511846/compiler-error-when-building-qt Qt myself. I checked out everything and want to run configure now. The Visual Studio 2013 compiler is in PATH but I get this error C:\Users\Philipp\Desktop\Qt>configure -developer-build -opensource -nomake examp les -nomake tests -opengl desktop + cd qtbase + C:\Users\Philipp\Desktop\Qt\qtbase\configure.bat -top-level -developer-build - opensource -nomake examples -nomake tests -opengl desktop Please wait while bootstrapping configure ...
●15 updated 2014-01-28 17:18:15 -0500 ngrennan 1 ●1 ●1 I am using Ubuntu 12.04LTS 64-bit, Hydro, Qt 5.1.1, and Qt Creator http://answers.ros.org/question/91516/qt-creator-281-ros-and-catkin-problems/ 2.8.1. I have been working on some wet ROS packages using Qt Creator without a hitch when using Qt Creator 2.4.1 and Qt 4.8 from Ubuntu's software center. However, I http://superuser.com/questions/1099693/qt-qbs-compile-error-unable-to-locate-3rd-party-library-file want to take advantage of some of the nice new openGL helper functions in Qt 5.1 so I installed it alongside 4.8. I also installed the latest version of Qt cannot open Creator (2.8.1) as recommended by that community. Qt Creator 2.8.1 is working great for non-ROS projects using a .pro file. But when I try to open ROS package from a CMakeLists.txt I get a few weird problems that I'm not sure how to fix. I'll walk you through what happens. I open my catkin workspace using CMakeLists.txt: $ /opt/qtcreator-2.8.1/bin/qtcreator sandbox/src/CMakeLists.txt With cannot open include Qt Creator 2.4.1, the build directory auto-populates with something like /sandbox/qt-build and I would simply change it to /sandbox/build. However, with 2.8.1 the auto-populated build directory is "/opt/ros/hydro/share/catkin/cmake-build". So I switch it to "/sandbox/build". Then I press next and Run CMake. CMake executes with no errors, just as I would expect it to. -- Configuring done -- Generating done -- Build files have been written to: /home/pwn/sandbox/build I Click finish, and get the following error: "Cannot create file /opt/ros/hydro/share/catkin/cmake/toplevel.cmake.user: Permission denied" After click finish, the project is populated with a bunch of catkin nonsense, but none of my actual ROS packages. I then get two popup windows with the following error: "Cannot create file /opt/ros/hydro/share/catkin/cmake/toplevel.cmake.user: Permission denied" Has anyone else run into any of these sorts of issues with the newer version of Qt Creator? Have you found any solutions? For now I am just using Qt Creator 2.4.1 and it continues to work well, but I would love to have only one version on my computer that works for ROS and other projects. edit retag flag offensive close merge de
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Qt qbs, compile error: unable to locate 3rd party library file up vote 0 down vote favorite 1 I am working on a project which has several levels. Personally, I am new to qbs and there are not many document and examples on the internal about qbs. environment: Qt5.6.1; Qt creator 4.01; Ubuntu 16.04 Here is the hierarchy of the project. On the top level, it has project.qbs: import qbs import qbs.File Project{ var binaries = [ "component1/component1.qbs", "component2/component2.qbs", "subpro/subpro.qbs", // <- 1. the project I am working on "ourlib/ourlib.qbs", // <- 2. the library I am using ] return binaries } The subpro.qbs is something like: import qbs Project { name: subpro references:[ "app1/app1.qbs" "app2/app2.qbs" "myapp/myapp.qbs" //<- 3. the application I am working on ] } The myapp.qbs is like: import qbs CppApplication{ type: "application" name: "myapp" Group{ name: "project-install" fileTagsFilter: "application" qbs.install: false qbs.install: "bin" } Depends {name:"cpp"} Depends {name:"blah1"} Depends {name:"ourlib"} cpp.libraryPaths:["path_of_lib3rdParty"] // 4. set the 3rd party lib path cpp.staticLibraries:["lib3rdParty.a"] // 5. set the 3rd party lib name files["myapp.cpp","f2"...] } finally the qbs for our lib: import qbs Dyn